| name | prompt |
| description | Use when a request aimed at an AI is vague, rushed, or under-specified and the user wants it sharpened โ "improve my prompt", "fix this prompt", "how should I ask for this" โ or before firing an expensive task off a thin prompt. About prompts for an AI, not about optimizing code. |
MasterMind โ Prompt
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 user's rough ask into a prompt an AI will
execute well: clear intent, only the context that matters, structured, and token-efficient. Grounded in
Anthropic's prompt-engineering guidance (~/.mastermind/engineering/core/agent-loop.md, product-sense.md).
First: get the real intent
If the goal is ambiguous, ask one or two sharp questions before rewriting โ the rewrite carries only
requirements the user actually implied. You sharpen their intent; it stays theirs.
The rewrite checklist (apply what fits โ keep it lean)
- Lead with the task. State the goal in the first line, plainly. Treat the AI like a sharp new
hire: say exactly what "done" looks like.
- Give load-bearing context only โ the why, the audience, the stack/constraints, what already
exists. Cut backstory that doesn't change the output.
- Be explicit and concrete. Replace vague adjectives ("nice", "modern", "clean") with specifics
(what, for whom, which constraints, which examples to match).
- Structure it. Separate the parts โ
context / task / requirements / output format โ
with headings or XML-ish tags (<context>โฆ</context>) so the model can parse roles of text.
- Show an example, not just a description. Add one short example of the desired output (or a
reference to match) when words alone are ambiguous โ few-shot beats adjectives.
- Set the role when it sharpens tone/expertise ("You are a senior accessibility engineerโฆ").
- Pin the output contract โ format, length, what to include/exclude, and any must-nots.
- Ask for reasoning on hard/analytical tasks ("think step by step before answering").
Token efficiency (efficient โ lossy)
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 โ not a shorter prompt
that drops requirements.
Output
Return, in this order:
- The optimized prompt โ ready to paste, in a copyable block.
- What changed & why โ 2โ4 bullets (e.g. "added output format; cut 3 lines of backstory; made
'fast' concrete = <2.5s LCP").
- Open questions โ anything still genuinely ambiguous the user should decide.
Flag any change of scope out loud. If the request implies a product/business decision, surface it rather
than guessing (product-sense.md).