agentleFS
mehrad-dmmehrad-dm/mastermind/skills/prompt/SKILL.md

prompt

Skill23 starsChanged 2 months agoMITView on GitHub

Use ONLY when the user explicitly asks to improve a prompt aimed at an AI: \"improve my prompt\", \"fix this prompt\", \"how should I ask for this\", \"make this prompt better\". A prompt pasted to be answered or executed is a task, not a rewrite request: do that task instead. About prompts for an AI, not about optimizing code.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use brainstorm and review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nicolasestremSkill

    brainstorm

    Structured idea generation and solution exploration with systematic analysis.

    Also in 4 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If it's genuinely ambiguous, ask one question before rewriting.

    line 28
  2. Distinctive:

    Never execute the rewritten prompt: not in the same turn, not "to show it works".

    line 35
  3. Distinctive:

    Never drop a requirement: Every constraint in the original survives, or you say out loud that you cut it and why.

    line 36
  4. Distinctive:

    If the goal is ambiguous, ask one sharp question before rewriting: the rewrite carries only requirements the user actually implied.

    line 45
  5. Distinctive:

    Set the role: when it sharpens tone/expertise ("You are a senior accessibility engineer…").

    line 60

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 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.

Do not fire unless asked

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 thisYou do this
"improve / fix / sharpen this prompt"This skill
Pastes a prompt and says "run this" / "what do you think?" / nothingAnswer or execute it. Not this skill
Pastes a prompt written for another tool, asking what it doesExplain it. Not this skill
Asks for a prompt to be written from scratchWrite 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 prompt stays theirs

The output is a proposal, never an action:

  1. Never execute the rewritten prompt: not in the same turn, not "to show it works". Hand it back.
  2. Never drop a requirement. Every constraint in the original survives, or you say out loud that you cut it and why. Silent removal is the failure mode that makes this skill dangerous.
  3. Never add a requirement they didn't imply. Additions get named in "what changed": a specific the user never chose (a framework, a length, a tone) is a guess wearing their voice.
  4. Never rewrite a prompt containing credentials, private data, or client names into a form that moves them somewhere new. Flag them and quarantine instead (quarantine).

First: get the real intent

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.

The rewrite checklist (apply what fits: keep it lean)

  1. 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.
  2. Give load-bearing context only: the why, the audience, the stack/constraints, what already exists. Cut backstory that doesn't change the output. Context is never the cruft; padding is.
  3. Be explicit and concrete. Replace vague adjectives ("nice", "modern", "clean") with specifics (what, for whom, which constraints, which examples to match).
  4. 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.
  5. Show an example, not just a description: but show two or three varied ones, labeled illustrative. A single gold example gets copied: the model matches its length, tone and structure.
  6. Set the role when it sharpens tone/expertise ("You are a senior accessibility engineer…"). One line. A role statement is not a substitute for saying what the output must contain.
  7. Pin the output contract: format, length, what to include/exclude, and any must-nots.
  8. Say what to do, not what to avoid. "Answer in three sentences" beats "don't be verbose"; a list of prohibitions can anchor the model toward the very failure it names.

Keyword effects: what words actually do to a modern model

Prompts written for 2023-era models are now actively harmful, because current models follow instructions far more literally. What to strip, and what to reach for instead:

PatternEffect todayInstead
CRITICAL: / MUST / NEVER / ALL-CAPS, several per promptEmphasis inflation: when everything is critical, nothing is. Causes over-triggering and rigid behavior in gray areasPlain imperative + the reason. Reserve emphasis for the one genuinely load-bearing constraint
"think step by step", <scratchpad> instructionsRedundant on reasoning models, which already think; can add latency for nothingControl depth with the tool's thinking/effort setting, not prose
"double-check your work", "verify before answering"Current models self-verify; instructing it causes over-verification and padding. This inverts the old best practiceDelete. State the acceptance test instead
"be thorough", "don't be lazy", "don't stop early"Written against models that quit early; now just noiseDelete
"try to", "if possible", "ideally" on a real requirementRead literally as permission to skip itState it as a requirement
"don't hallucinate", "only use the provided context"Still useful when grounding genuinely mattersKeep: but pair it with what to do when the answer isn't there ("say you don't know")
Politeness padding, repeated context, restated rulesConsumes budget and makes the model reconcile wordingsSay 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 50k tokens of context gets lost. If the same preamble is reused across calls, keeping it stable and at the front is also what makes prompt caching hit (core/agent-loop.md).

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, 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.

Output

Return, in this order:

  1. The optimized prompt: ready to paste, in a copyable block. Nothing else in that block.
  2. What changed & why: 2–4 bullets, and every one of them names an addition or a removal (e.g. "added output format; cut 3 lines of backstory; made 'fast' concrete = <2.5s LCP").
  3. 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).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.