/mastermind:promptfrom mastermind
Rewrites rough user prompts into clear, structured, token-efficient prompts for AI execution. Only activates on explicit rewrite requests, never on task execution.
Ships in mastermind. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The single biggest lever on AI output quality is the prompt. Most weak results aren't a model failure, they're an under-specified request. This skill rewrites a rough ask into a prompt an AI executes well: clear intent, only the context that matters, structured, token-efficient.
The user's own words are not yours to rewrite. Fire only on an explicit ask, propose rather than apply, and name every requirement you added or cut,
~/.mastermind/engineering/core/rigor.md§ Stay in scope.
Auto-invocation is the danger here: rewriting a prompt the user meant you to answer replaces their work with your paraphrase and loses whatever they actually wanted. The bar is an explicit request to improve the prompt.
| The user does this | You do this |
|---|---|
| "improve / fix / sharpen this prompt" | This skill |
| Pastes a prompt and says "run this" / "what do you think?" / nothing | Answer or execute it. Not this skill |
| Pastes a prompt written for another tool, asking what it does | Explain it. Not this skill |
| Asks for a prompt to be written from scratch | Write it: then the checklist below applies |
If it's genuinely ambiguous, ask one question before rewriting. Guessing wrong wastes a turn; rewriting unasked destroys their text.
The output is a proposal, never an action:
quarantine).If the goal is ambiguous, ask one sharp question before rewriting: the rewrite carries only requirements the user actually implied. You sharpen their intent; it stays theirs.
context / task / requirements / output format,
with headings or XML-ish tags (<context>…</context>) so the model can parse roles of text.Current models follow instructions closely and literally, so a prompt tuned for a weaker model can now over-apply. What to change, and what to reach for instead:
| Pattern | Effect today | Instead |
|---|---|---|
CRITICAL: / MUST / NEVER / ALL-CAPS, several per prompt | Emphasis inflation: when everything is critical, nothing is. Causes over-triggering and rigid behavior in gray areas | Plain imperative + the reason. Reserve emphasis for the one genuinely load-bearing constraint |
"think step by step", <scratchpad> instructions | Redundant on reasoning models, which already think; can add latency for nothing | Control depth with the tool's thinking/effort setting, not prose |
| "double-check your work", "verify before answering" | Too vague to act on: it names no check | Keep the intent and make it concrete: name the acceptance test the answer must pass |
| "be thorough", "don't be lazy" | Generic virtue with no observable result | Replace with what finished looks like |
| "don't stop early", "finish the whole task" | Still useful on long agentic tasks, where a model can stop with work left | Keep, and say which obstacles to work through and which to report |
| "try to", "if possible", "ideally" on a real requirement | Read literally as permission to skip it | State it as a requirement |
| "don't hallucinate", "only use the provided context" | Still useful when grounding genuinely matters | Keep: but pair it with what to do when the answer isn't there ("say you don't know") |
| Politeness padding, repeated context, restated rules | Consumes budget and makes the model reconcile wordings | Say it once, in the right place |
Placement matters as much as wording. Long documents go first, the question last: a model attends best to the start and end, and a question buried above a long document gets lost. If the same preamble is reused across calls, keeping it stable and at the front is also what lets a provider's prompt cache hit.
Cut politeness padding, redundancy, and repeated context; compress prose to bullets; keep every detail that changes the output and no more. Fewer tokens and a sharper signal, never a shorter prompt that drops requirements. Length is not the metric: a too-short prompt produces generic output because the model fills the gaps with safe defaults.
Return, in this order:
Name any change of scope in "what changed". If the request implies a product/business decision, surface
it rather than guessing (product-sense.md).
What SKILL.md sets; muted values are Claude Code's defaults
33 skills in this plugin
/analyzeUse when a feature's spec, plan and task list all exist and need checking against each other before code is written: "check the spec and plan agree", "is this ready to build?", "find gaps before we start", or before building anything that touches money, auth or data from a task list. Read-only. Not for one concern inside the spec (`checklist`), not for code against the documents after building (`converge`)./assessUse when someone wants to know whether an idea deserves building before anyone builds it: "is this worth doing?", "should we build X?", "would users actually want this?", a product idea with no code yet, or a feature request nobody has said yes to. Ends in go, clarify or stop. Not for specifying something already decided (`specify`), not for choosing a library (`tech-scout`)./npx claudepluginhub mehrad-dm/mastermind --plugin mastermindOther plugins' skills for the same job