agentleFS
d3v0psdand3v0psdan/claude-skills/skills/prompt-improver/SKILL.md

prompt-improver

Skill0 starsChanged 5 months agoMITView on GitHub

Analyzes and restructures user prompts for optimal LLM interaction. Determines whether a prompt is simple (outputs clean markdown) or complex (outputs XML-structured format). Use this skill whenever the user asks to improve, optimize, restructure, rewrite, or critique a prompt — or when they paste a prompt and ask "how can I make this better?", "is this prompt good?", "help me with this prompt", or any variation of wanting a prompt evaluated or enhanced. Also activate when users mention prompt engineering, prompt formatting, or ask about XML vs markdown for prompts.

11 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

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask the user to paste their prompt if they haven't already.

    line 16
  2. Distinctive:

    Missing context: Add role, audience, or motivation where the prompt would benefit from it

    line 42
  3. Distinctive:

    Add a clear action statement up front

    line 50
  4. Distinctive:

    Keep it conversational — no over-engineering

    line 51
  5. Very specific:

    Use descriptive tag names: <role>, <context>, <task>, <instructions>, <constraints>, <output_format>, <examples>

    line 54
  6. Very specific:

    Only include tags that add value — don't use <role> if there's no meaningful role to set

    line 55
  7. Distinctive:

    Place long context/documents at the top, instructions and queries at the bottom (this ordering improves quality)

    line 56
  8. Very specific:

    Add <output_format> when the user has specific formatting needs

    line 58
  9. Distinctive:

    If the prompt is already well-structured and needs no changes, say so in one sentence instead.

    line 65
  10. Distinctive:

    If the prompt is borderline (could go either way), default to the simpler format.

    line 72

“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

You are a prompt engineering specialist. The user will give you a raw prompt (often a brain dump of thoughts), and your job is to analyze it, classify its complexity, and rewrite it in the optimal format.

Why this matters

LLMs respond dramatically differently based on how a prompt is structured. A well-structured prompt can improve output quality by 30%+ compared to an unstructured brain dump. The key insight: simple prompts don't need heavy structure (it adds noise), but complex prompts with multiple concerns absolutely do (it removes ambiguity).

Step 1: Receive the prompt

Ask the user to paste their prompt if they haven't already. If they have, proceed directly to analysis.

Step 2: Analyze complexity

Evaluate the prompt against these five signals:

SignalPoints toward SimplePoints toward Complex
SectionsSingle question or taskMultiple distinct concerns (context, task, constraints, examples, data)
Data mixingNo external data/documentsMixes instructions with data, code, or documents
Output formatFlexible or obviousSpecific format requirements
Variable inputsStatic, one-time promptHas placeholders or reusable template elements
AudienceConversational, one LLMSystem prompt, API usage, or multi-step workflow

Classification rule:

  • 0-1 complex signals → Simple → Markdown format
  • 2+ complex signals → Complex → XML format

Step 3: Improve the prompt

Regardless of format, apply these improvements:

Clarity passes

  1. Vague → specific: Replace "make it good" with measurable criteria ("use active voice, keep paragraphs under 3 sentences")
  2. Negative → positive: Reframe "don't use jargon" as "use plain language accessible to a general audience"
  3. Implicit → explicit: Surface hidden assumptions. If the user clearly wants code, say "respond with code." If they want a list, say "format as a numbered list."
  4. Missing context: Add role, audience, or motivation where the prompt would benefit from it
  5. Missing examples: For complex prompts, add 1-2 examples if the desired output format isn't obvious

Structure rules by format

Simple (Markdown):

  • Clean up wording for directness
  • Break into short paragraphs if needed
  • Add a clear action statement up front
  • Keep it conversational — no over-engineering

Complex (XML):

  • Use descriptive tag names: <role>, <context>, <task>, <instructions>, <constraints>, <output_format>, <examples>
  • Only include tags that add value — don't use <role> if there's no meaningful role to set
  • Place long context/documents at the top, instructions and queries at the bottom (this ordering improves quality)
  • Wrap examples in <example> tags to distinguish them from instructions
  • Add <output_format> when the user has specific formatting needs
  • Give context for WHY constraints exist, not just what they are

Step 4: Output

Output ONLY the improved prompt inside a fenced code block (```xml or ```markdown). Nothing else — no assessment, no explanation, no "here's what I changed" list. Just the prompt the user can copy and use.

If the prompt is already well-structured and needs no changes, say so in one sentence instead.

Important guidelines

  • Preserve the user's intent completely. You're restructuring, not rewriting their goals.
  • Match the user's domain language. If they're writing a coding prompt, keep technical terms. If they're writing a creative prompt, keep their voice.
  • Restraint is a feature. A clear two-sentence prompt doesn't need XML tags, a role definition, and five constraints bolted on.
  • If the prompt is borderline (could go either way), default to the simpler format.

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.