prompt-enhancer
A Claude Code mod that turns a rough prompt into a strong one, in place, before you send it. It adds a row above the prompt box with two buttons. Enhance rewrites your draft so that it:
- keeps your intent, scope and your own terms, word for word,
- states the kind of work and its domain, so the agent (and any skill router) can tell what it is,
- describes what the finished result looks like,
- stays as short as the request: a one-line ask becomes a few lines, not a page.
It names no skills you did not name and asks you no questions back: it leaves skill choice to the agent. These rules come from skill-concierge's concierge-enhancer, whose blind A/B on 20 real prompts found that naming skills and listing questions in the rewrite made the agent's skill menus worse.
The rewrite lands in the prompt box, where you can read it, edit it, and send it yourself.
Prompt enhancer [ Enhance ] [ Send ] ctrl+x tab · e enhance · s send · esc back
────────────────────────────────────────────────────────────────────
❯ write a python script that summarizes my youtube watch history
Use the row
- Type a draft in the prompt box.
- Press the focus chord that the row shows to move the focus to the row. The chord is
ctrl+x tab unless you bind your own (see Change the focus chord).
- Press
e to rewrite the draft, or s to send it.
- Press
Esc to go back to the prompt box without pressing a button.
You can also click Enhance or Send with the mouse.
- Enhance reads the draft, rewrites it, and replaces the draft with the rewrite (
hooks/register.tsx:75-99). It never sends anything. While the rewrite runs, the row shows Enhancing… (hooks/register.tsx:137-140).
- Send clears the box and submits the draft as a turn (
hooks/register.tsx:101-111).
- The key hint shows the focus chord, then
e enhance · s send · esc back (hooks/register.tsx:132). Esc is Claude Code's built-in chord for leaving the row. While a turn runs, s send becomes s queue. The hint shows on the terminal only (hooks/register.tsx:148). On the desktop app and in VS Code, you click the buttons.
- The hotkeys are
e for Enhance and s for Send (hooks/register.tsx:144, hooks/register.tsx:146). They work while the row has the focus.
- An empty box makes either button show a toast and do nothing else: "Type a prompt first" for Enhance, "Nothing to send" for Send (
hooks/register.tsx:78-81, hooks/register.tsx:103-106).
Use the row while a turn runs
The row stays above the prompt while Claude works, so you can prepare the next prompt mid-turn (hooks/register.tsx:123).
- Enhance forks the session the same way it does when idle. The fork runs as its own request and does not interrupt or change the running turn. It sees the conversation up to the last request the turn sent, so it misses the step still in flight.
- Send queues the draft. The prompt runs as its own turn after the running turn ends. This is not what Enter does: Claude Code delivers a prompt you type and send with Enter into the running turn.
Use the row beside other bands
The row shares the band above the prompt with other mods. It draws its own row and keeps the drawing beneath it: another mod's band, or the engine's own (hooks/register.tsx:126, hooks/register.tsx:160-165). Two mods that both do this show both rows. concierge-enhancer's band (a Rank now button and the skill menu) is one such mod; its hotkeys are r and 1 to 5, so they do not collide with e and s here.
While a survey holds the band, the row yields and draws nothing (hooks/register.tsx:123). A mod outside this one that draws without calling the rest of the chain replaces this row; a mod inside it that does the same still shows beneath it.
Change the focus chord
The chord that focuses the row belongs to Claude Code, not to the mod. It is the abovePrompt:focus action in the Chat context, and its built-in chord is ctrl+x tab. The action focuses every plugin row, so a new chord applies to other mods' rows too.
To add your own chord, add a Chat block to ~/.claude/keybindings.json. On macOS, cmd+e is free in Claude Code:
{
"bindings": [
{ "context": "Chat", "bindings": { "cmd+e": "abovePrompt:focus" } },
{ "context": "AbovePrompt", "bindings": { "cmd+e": "abovePrompt:leave" } }
]
}
The second block makes the same chord a toggle: inside the row, cmd+e returns to the prompt box. Esc returns too, with or without that block.
If the file already has a bindings list, add the block to that list. On Linux and Windows, terminals rarely pass cmd keys through, so pick a chord that your terminal does send, such as meta+e. To turn off the built-in chord, map it to null: "ctrl+x tab": null.
The mod reads keybindings.json when a session starts and shows the chord in the row (hooks/register.tsx:114-118):