agentleFS
Damon-Stewart-1Damon-Stewart-1/claude-skills-public/skills/prompt-improver/SKILL.md

prompt-improver

Skill3 starsChanged 7 months agoMITView on GitHub

Rewrites a natural-language prompt into a structured, high-quality prompt that follows Anthropic's prompting best practices: explicit role, XML-tagged inputs, clear output format, examples, chain-of-thought scaffolding when warranted, and concrete success criteria. Use when the user says 'improve this prompt,' 'make this prompt better,' 'rewrite this prompt,' 'design a better prompt,' 'tune this prompt,' 'output a better prompt,' 'design your own prompt,' 'prompt for me,' or invokes /prompt-improver. Also use when the user pastes a draft prompt and asks for feedback or a stronger version.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat all three the same way: they are inputs to the gate.

    line 19
  2. Distinctive:

    Ask exactly these two numbered questions, then wait for answers.

    line 23
  3. Distinctive:

    One-shot mode: no follow-ups. Go straight to Step 4.

    line 45
  4. Distinctive:

    Standard mode: ask these 3 follow-up questions, numbered:

    line 47
  5. Distinctive:

    Interview mode: ask these 6 follow-up questions in one batch, numbered:

    line 55
  6. Distinctive:

    If the user gave any of this in Step 1, fill it in yourself and ask only the missing items.

    line 66
  7. Very specific:

    Read references/checklist.md.

    line 70
  8. Very specific:

    Read references/rewrite-template.md.

    line 74
  9. Very specific:

    After One-shot: "If this needs to run repeatedly or accuracy matters more than I assumed, run /prompt-improver --standard to add inputs, …

    line 88
  10. Very specific:

    After Standard: "If this is high-stakes or you have examples, run /prompt-improver --full for the full interview-style rewrite with …

    line 89
  11. Distinctive:

    After Interview: no escalation line.

    line 90
  12. Distinctive:

    No em dashes or double-hyphens as em-dash substitutes in prose.

    line 95
  13. Distinctive:

    Never commit or push files.

    line 96
  14. Distinctive:

    If the user's input is already a strong prompt, say so directly and propose only the changes worth making.

    line 97
  15. Very specific:

    When a rewrite misfires (user pushes back, the prompt does not produce the expected behavior), append a one-line gotcha to gotchas.md for …

    line 101

“Common” is measured: kept by at least 6 in 10 of the 9 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

Prompt Improver

Rewrites a natural-language prompt into a structured prompt that follows Anthropic's prompting best practices. The depth of the rewrite scales to the job, set by a 2-question triage gate at the start.

Step 1: Capture

Take whatever the user provided as the prompt-to-improve. It may be:

  • A pasted draft prompt
  • A natural-language task description ("write me a prompt that classifies tickets")
  • A vague ask ("design your own prompt for X")

Treat all three the same way: they are inputs to the gate.

Step 2: Triage gate (always)

Ask exactly these two numbered questions, then wait for answers. Do not skip, do not add a third.

1. How important is getting this exactly right?  low / medium / high
2. Will this prompt run once, or repeatedly?     once / repeatedly

Map the answers to a tier:

ImportanceReuseTier
lowonceOne-shot
mediumonceStandard
lowrepeatedlyStandard
mediumrepeatedlyInterview
highonceStandard
highrepeatedlyInterview

The user may also override directly with --light (one-shot), --standard, or --full (interview). If an override flag is present, skip the gate.

Step 3: Mode-specific follow-ups

One-shot mode: no follow-ups. Go straight to Step 4.

Standard mode: ask these 3 follow-up questions, numbered:

1. What inputs will this prompt receive at runtime? (e.g. "a ticket title and body")
2. What output format do you want? (e.g. "one of: bug / feature / question")
3. What does "good enough" look like? (one line)

Interview mode: ask these 6 follow-up questions in one batch, numbered:

1. Who reads or consumes the output?
2. What inputs will this prompt receive at runtime?
3. What output format do you want?
4. What does "good enough" look like?
5. Do you have 1 to 3 example input/output pairs I can draw from?
6. Anything to explicitly avoid (anti-patterns, banned phrases, scope creep)?

If the user gave any of this in Step 1, fill it in yourself and ask only the missing items.

Step 4: Diagnose

Read references/checklist.md. Score the original input against the 12 axes. Note the top 3 to 5 weaknesses the rewrite will address. Skip axes the chosen tier does not support.

Step 5: Rewrite

Read references/rewrite-template.md. Use the template that matches the tier.

For shape and tone of the output, read references/examples.md and pattern-match to the example closest to the user's task.

Output the rewritten prompt in a fenced code block so the user can copy it directly.

Step 6: Explain the diff

Below the rewritten prompt, add a short "What changed and why" block. Each change maps to one best-practice axis from the checklist. Two to four bullets max in One-shot, four to seven in Standard, seven plus in Interview.

Step 7: Offer escalation

End with one line offering the next tier up if the user wants more rigor:

  • After One-shot: "If this needs to run repeatedly or accuracy matters more than I assumed, run /prompt-improver --standard to add inputs, output format, and success criteria."
  • After Standard: "If this is high-stakes or you have examples, run /prompt-improver --full for the full interview-style rewrite with chain-of-thought and examples."
  • After Interview: no escalation line. Offer to run the rewritten prompt against a test input if the user provided one.

Constraints

  • Numbered questions only. Always.
  • No em dashes or double-hyphens as em-dash substitutes in prose. Code blocks exempt.
  • Never commit or push files. The user owns when to ship.
  • If the user's input is already a strong prompt, say so directly and propose only the changes worth making. Do not rewrite for the sake of rewriting.

Failure modes

When a rewrite misfires (user pushes back, the prompt does not produce the expected behavior), append a one-line gotcha to gotchas.md for next time.

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.