agentleFS
divik-09divik-09/claude-skills-collection/skills/prompt-improver/SKILL.md

prompt-improver

Skill1 starsChanged 9 days agoMITView on GitHub

Improve and debug prompts for LLMs: make them clearer, more reliable, and better structured. Use whenever the user shares a prompt, system prompt, or agent instructions and asks to improve, optimize, fix inconsistent outputs, reduce hallucinations, or asks how to prompt Claude or other models for a task.

13 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 3

    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:

    Ask for (or infer): the task, the model, example good and bad outputs, and what is going wrong (wrong format, hallucination, ignoring …

    line 10
  2. Distinctive:

    Keep it as short as it can be: Remove contradictions, duplicate rules, and shouting (ALL CAPS, repeated "never").

    line 22
  3. Distinctive:

    Keep the user's intent and constraints intact.

    line 31

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

Diagnose first

Ask for (or infer): the task, the model, example good and bad outputs, and what is going wrong (wrong format, hallucination, ignoring instructions, verbosity, inconsistency). A prompt cannot be judged without knowing what failure it must prevent.

Principles

  1. State the goal and the audience. Say what the output is for and who reads it.
  2. Give context the model cannot guess: domain facts, constraints, definitions, what has been tried.
  3. Be explicit and positive. Say what to do, not only what to avoid. Explain why for non-obvious rules; models follow reasoning better than bare commands.
  4. Specify the output format exactly (schema, length, sections). For machine-read output, show a literal example.
  5. Use examples. Two or three diverse input-output pairs beat paragraphs of description. Include at least one edge case.
  6. Separate parts clearly with XML-style tags or headings: instructions, context, input data, examples. Put long documents first and the question last.
  7. Let it think on hard tasks: ask for step-by-step reasoning before the final answer, or for a scratchpad then a clean result.
  8. Handle uncertainty: permit "I don't know", require quoting sources from provided text, and ask for confidence or missing information.
  9. Keep it as short as it can be. Remove contradictions, duplicate rules, and shouting (ALL CAPS, repeated "never").

Process

  1. Rewrite the prompt applying the principles above.
  2. List what you changed and why, in 3-6 bullets.
  3. Provide 3-5 test inputs, including adversarial and edge cases, and the pass criteria for each.
  4. Suggest how to iterate: change one thing at a time, compare outputs side by side, keep a regression set.

Keep the user's intent and constraints intact. If the prompt must include sensitive data or secrets, tell the user to remove them first.

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.