prompt-improver
Analyzes and restructures user prompts for optimal LLM interaction.
Skill by d3v0psdan
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/d3v0psdan-prompt-improver
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/prompt-improver
What's inside
- Skill name
prompt-improver- Description
- 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.
- License
- MIT
- Instructions
- 69 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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:
| Signal | Points toward Simple | Points toward Complex |
|--------|--------------------|-----------------------|
| **Sections** | Single question or task | Multiple distinct concerns (context, task, constraints, examples, data) |
| **Data mixing** | No external data/documents | Mixes instructions with data, code, or documents |
| **Output format** | Flexible or obvious | Specific format requirements |
| **Variable inputs** | Static, one-time prompt | Has placeholders or reusable template elements |
| **Audience** | Conversational, one LLM | System 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.From d3v0psdan/claude-skills, MIT.
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 26, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/d3v0psdan/claude-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from d3v0psdan
Cite this page
prompt-improver skill. Agent Mart. https://agentmart.dev/skills/d3v0psdan-prompt-improver (last updated 2026-10-24)