What is prompt-rewriter?
prompt-rewriter is a Claude Code mod by KunalKumarkkr01 that on demand via /rewrite: classifies a prompt into role + task personas, adds recent web context, and rewrites it with Haiku for review. It is listed under Context & memory and has 2 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | KunalKumarkkr01 |
| Repository | KunalKumarkkr01/prompt-rewriter |
| Popularity | 2 GitHub stars |
| Category | Context & memory |
| Security | Low risk (80/100) |
| Rank | #2,443 of 9,397 Claude Code mods; #232 in Context & memory |
| License | MIT |
| Last commit | 2026-10-12 |
| Hooks | 4 events |
| Sees | every prompt |
| Draws on | nothing |
Is prompt-rewriter safe to install?
prompt-rewriter scores 80/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.command.register | |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.model.complete | drives Claude |
$.prompt.fill | writes the prompt box |
$.tool.call | drives Claude |
$.ui.status | draws interface |
How do I install prompt-rewriter?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/KunalKumarkkr01/prompt-rewriter claude plugin validate ./prompt-rewriter/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add KunalKumarkkr01/prompt-rewriter && claude plugin install prompt-rewriter@prompt-rewriter
Or ask Claude to set it up
Paste this into Claude Code and it installs prompt-rewriter for you:
Install the "prompt-rewriter" Claude Code mod from https://github.com/KunalKumarkkr01/prompt-rewriter. Run claude plugin validate on it first and show me what it can access before you enable it.