prompt-rewrite

by Giuseppe Setaro · ★ 1 · updated 5 Oct 2026

BandsGuardsCommandsvalidates

0

/rewrite: turns a rough draft prompt into a thorough one, asking clarifying questions first, without adding anything to the conversation

install prompt-rewrite

Install

git clone https://github.com/zPeppOz/prompt-rewrite
claude --plugin-dir ./prompt-rewrite

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runtool.callui.render
API calls
$.clock.every$.clock.now$.command.register$.config.set$.fs.exists$.fs.read$.fs.write$.model.complete$.model.fork$.prompt.compose$.prompt.fill$.prompt.read$.session.cwd$.session.messages$.session.model$.session.surfaces$.session.version$.ui.ask$.ui.invalidate$.ui.log$.ui.resolve$.ui.toast
Draws
AbovePrompt
Can see
AskUserQuestion calls
Reach
level 2 of 3 writes fileschanges configdrives Claudewrites the prompt boxreads filesreads the transcriptreads the prompt boxreads the system promptdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/zPeppOz/prompt-rewrite
Path in repo
repository root
Source commit
9d965e2 the exact code the scan read
Author
Giuseppe Setaro @zPeppOz
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

Other mods in Bands, close to this one by stars.