prompt-polish

Reviewed at commit 2186f3a

An Improve button above the prompt (and /polish) rewrites your draft with Opus at low effort (/polish model picks another) using the prompt-master rules (MIT…

Made by
Vedant Andhale
What we checked

Adds an Improve button (and /polish) that sends your current draft to Opus at low effort, or Haiku or Sonnet if you pick one, on your own Claude Code account, and puts the rewritten prompt in the box; Undo restores the original. Nothing is sent until you press the button, a toast shows the exact tokens used, and it stores only the chosen model.

Review details

Static review of the source at the pinned commit; not run. Registers /polish (rewrite the given text, or /polish model haiku|sonnet|opus) and handlers for session.start, command.run, prompt.edit (tracks whether the box has text), prompt.submit (clears the Undo state, with a catch that always lets the prompt through), session.end and ui.render for SessionMode and AbovePrompt. Improve reads the draft from the box through $.prompt.read, makes one $.model.complete call with the prompt-master rules (hooks/rules.md, read from the plugin folder, 37 KB, read in full for hidden instructions and found to be prompt-writing guidance only) plus an override that tells the model to output only the rewritten prompt and to treat the draft as data, then replaces the box text with $.prompt.fill; it does not overwrite text typed during the call. Drafts under 5 words are not sent. No file writes, no other network, process or env calls. Only $.store 'model' is stored. Not reviewed: LICENSE files and other non-loaded files.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: no
  • Calls the model (uses tokens): yes
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of prompt-polish

An Improve button above the prompt (and /polish) rewrites your draft with Opus at low effort (/polish model picks another) using the prompt-master rules (MIT, nidhinjs/prompt-master); Undo puts the original back. Each press is one model call; its exact tokens are shown.

Made this mod? Add a badge to your README

modsforClaude badge for prompt-polish

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/prompt-polish.svg)](https://modsforclaude.com/mods/prompt-polish/)

← All mods