{"repo":"johnpsasser/claude-code-prompt-optimizer","free":true,"listed":false,"github":"https://github.com/johnpsasser/claude-code-prompt-optimizer","clone":"git clone https://github.com/johnpsasser/claude-code-prompt-optimizer.git","description":"AI-powered prompt optimization hook for Claude Code. Transforms simple prompts into comprehensive, structured instructions using Claude Opus 4.6's advanced reasoning capabilities.","language":"JavaScript","stars":42,"topics":["ai","anthropic","claude","claude-code","developer-tools","hooks","opus","prompt-optimization","typescript"],"license":"MIT","category":"dev-tools","readme_excerpt":"Claude Code Prompt Optimizer A Claude Code hook that transforms simple prompts into detailed, structured instructions. Add to any prompt and it'll expand your request into something Claude can really sink its teeth into. What It Does When you tag a prompt with , this hook intercepts it and runs it through Claude's extended thinking mode. The result is a fleshed-out version of your original request with: - Specific implementation steps - Error handling considerations - Testing requirements - Edge cases to watch for Basically, it does the prompt engineering for you. Requirements - Claude Code CLI installed - Node.js 18+ - One of the following: - CLAUDE CODE OAUTH TOKEN (Claude Pro/MAX subscribers) - ANTHROPIC API KEY (API credit users) - Stored OAuth from claude login Quick Install The installer handles dependencies, auth setup, hook configuration, and verification. Authentication The Agent SDK checks for credentials in this order: Priority Method Variable Best For ---------- -------- ---------- ---------- 1 OAuth token CLAUDE CODE OAUTH TOKEN Claude Pro/MAX subscribers 2 API key ANTHROPIC API KEY API credit users 3 Stored OAuth (none — uses claude login ) Already logged in If CLAUDE CODE OAUTH TOKEN is set, the API key is ignored. If neither env var is set, the Agent SDK falls back to stored OAuth credentials from claude login . Auth resolution is adaptive and can be forced with OPTIMIZER AUTH : OPTIMIZER AUTH Behavior ------------------ ---------- auto (default) An explicit C","default_branch":null,"files":null,"tree":[],"storefront":"/r/johnpsasser","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/johnpsasser/claude-code-prompt-optimizer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}