Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By dimitritholenv1.3.0MITIn 1 marketplace
/promptimize: turn a rough prompt into an optimized one (small, medium or large) in a pane, after a short interview
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Modelmodel
The model that writes the prompt: an alias (opus, sonnet, haiku) or a full model id. Empty: the model in your settings, else sonnet.
stringdefault
Extra modelsmodels
More model ids for the picker, separated by commas.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it writes files; reads your settings; calls a model on your account.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Keep a historykeepHistory
Keep the last 50 rough prompts and their results on this machine, for the History list and for export. The conversation is never kept.
booleandefault true
Include session contextincludeContext
Tick "Include recent session context" by default. It costs tokens.
booleandefault false
/promptimize for Claude Code: a pane where you type a rough prompt, pick a size and get an optimized prompt back, after a short interview when the prompt leaves real gaps. The result lands in the prompt box, unsent, so you can edit it before you press Enter.
It is a Claude Code plugin with a hooks module (a "mod"). The mod API is early access and can change between releases.
claude --version; update with claude update.Install the plugin. In a terminal session of Claude Code, type at the prompt:
/plugin install promptimize --marketplace dimitritholen/claude-promptimize
Or run this in a shell:
claude plugin install promptimize --marketplace dimitritholen/claude-promptimize
Answer y when Claude Code asks to add the marketplace dimitritholen/claude-promptimize.
Choose a scope. user (the default) makes the plugin available in all your projects.
Set the options when asked, or press Enter to keep the defaults. They are described under Settings.
Type /promptimize. A pane opens. If it does not, see Troubleshooting.
In the desktop app, where /plugin does not run: click + next to the prompt box, then Plugins, then Add marketplace with dimitritholen/claude-promptimize, then Add plugin.
claude plugin update promptimize # then restart Claude Code
claude plugin uninstall promptimize
/promptimize runs something else, or is not listed. Another command or skill already has that name. The pane is then available as /promptimize-pane.claude -p.claude plugin list to see whether it is installed and enabled, and claude --debug to see why a hook was skipped.To work on the plugin, clone the repository and load it from its folder for one session:
git clone https://github.com/dimitritholen/claude-promptimize
claude --plugin-dir claude-promptimize
Open the pane with /promptimize [text]. Typing /promptimize again closes it.
If another command or skill already holds the name /promptimize, the pane registers as /promptimize-pane instead.
Compose. Pick the model that writes the prompt and who the prompt is written for (this session, or a Claude, GPT, Gemini or image model used elsewhere), type the rough prompt, choose a size and, if the prompt refers to the conversation ("fix that", "the same for X"), tick Include recent session context. Enter in the prompt field or the Generate button starts.
The size sets how much is added. A rough prompt that is already long may grow beyond these ranges; a result over the limit is shortened once.
Interview. When the prompt leaves decisions open that only you can make and that change the result, the model asks questions first, each with a suggested default. A clear prompt gets none. Budget: small 2 questions in 1 round, medium 3 in up to 2 rounds, large 4 in up to 3 rounds. Enter answers; an empty Enter takes the default; - skips; Use defaults and generate takes the defaults for the rest.
Review. The pane shows the result, and above it what the model thinks you are after. If that reading is off, type what you are after in the field under it and press Enter: the prompt is written again from your words. Use puts it in the prompt box; r regenerates; 1, 2, 3 switch size (keeps your answers); e goes back to edit the rough prompt; c copies the result.
The model first works out the goal behind your words, then writes a new prompt from that goal instead of rearranging your text. Vague requirements ("polished", "complete") get a minimum bar the target can check; matters of taste ("original") get a working method. The prompt is written for the target you picked: by default a coding agent working in the current directory. What the agent can look up becomes an instruction to look it up; only what you alone know and the result cannot do without becomes an [INSERT X] placeholder.
The pane has two tabs that stay on top: New prompt and History. Keys: Tab and the arrow keys move between the controls, Enter presses the focused one, Esc closes the pane and cancels a running request. While the model works, the Cancel button stops the request and keeps the pane open. The pane remembers your model, size, context choice and unfinished prompt for the session.
npx claudepluginhub dimitritholen/claude-promptimize --plugin promptimizeBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.