Home / Claude Code mods / Context & memory / prompt-rewriter

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.

Updated 2026-10-12

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.

TypeClaude code mod
AuthorKunalKumarkkr01
RepositoryKunalKumarkkr01/prompt-rewriter
Popularity2 GitHub stars
CategoryContext & memory
SecurityLow risk (80/100)
Rank#2,443 of 9,397 Claude Code mods; #232 in Context & memory
LicenseMIT
Last commit2026-10-12
Hooks4 events
Seesevery prompt
Draws onnothing

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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.command.register
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.model.completedrives Claude
$.prompt.fillwrites the prompt box
$.tool.calldrives Claude
$.ui.statusdraws interface

How do I install prompt-rewriter?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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/.
  3. 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.