prompt-improver
Skill1.9k starsChanged 10 months agoMITView on GitHub
This skill enriches vague prompts with targeted research and clarification before execution. Should be used when a prompt is determined to be vague and requires systematic research, question generation, and execution guidance.
9 other projects use a version of this.
Trending
More talk lately.thin dataabout the whole repository
Most recently taken up by
- Amery2010/skillstheir own version, first seen Sep 9, 2026
- davekilleen/Dextheir own version, first seen Aug 31, 2026
- shinzoxD/knackboxtheir own version, first seen Jul 10, 2026
- ndpvt-web/prompt-improvertheir own version, first seen May 15, 2026
- Damon-Stewart-1/claude-skills-publictheir own version, first seen Apr 29, 2026
- kakarot-oncloud/claude-skillstheir own version, first seen Apr 18, 2026
Who's talking about severity1/claude-code-prompt-improver
- @qdrddr.bsky.social“Prompt Enhancing #plugin for #Claude #Code #OSS MIT lic #PromptEngineering #ContextEngineering #CodeAgent …”Bluesky · May 16, 2026 · 7 likes
- @tom-doerr.bsky.social“https://github.com/severity1/claude-code-prompt-improver”Bluesky · Jun 14, 2026 · 1 likes
- anthropics/claude-code“[FEATURE] unvibe user prompts with optional prompt optimizer”GitHub · Oct 17, 2025 · 1 reactions
- sudosubin/agents.nix“claude-code-plugins.github.severity1.claude-code-prompt-improver: init at 0.6.3”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.severity1.claude-code-prompt-improver: 0.6.1 → 0.6.3”GitHub · Oct 3, 2026
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub and Bluesky (9 times).
On GitHub · 7
- Oct 17, 2025[FEATURE] unvibe user prompts with optional prompt optimizer — anthropics/claude-code1 reaction · 3 comments
- Oct 4, 2026claude-code-plugins.github.severity1.claude-code-prompt-improver: init at 0.6.3 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.severity1.claude-code-prompt-improver: 0.6.1 → 0.6.3 — sudosubin/agents.nix0 reactions
- Oct 2, 2026agent-skills.github.severity1.claude-code-prompt-improver: init at 0.6.1 — sudosubin/agents.nix0 reactions
- Mar 7, 2026feat: Add hook+skill two-layer prompt evaluation recipe to hooks-patterns — Jamie-BitFlight/claude_skills0 reactions · 5 comments
2 more on GitHub
- Dec 13, 2025Add auto-memory and prompt-improver plugins — anthropics/claude-plugins-official0 reactions
- Nov 6, 2025feat: integrate claude-code-prompt-improver with sequential hooks — azalio/map-framework0 reactions
On Bluesky · 2
- May 16, 2026Prompt Enhancing #plugin for #Claude #Code #OSS MIT lic #PromptEngineering #ContextEngineering #CodeAgent #AI #LLM #Agents #Coding… — @qdrddr.bsky.social7 likes and reposts
- Jun 14, 2026https://github.com/severity1/claude-code-prompt-improver — @tom-doerr.bsky.social1 likes and repost
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- davekilleen/Dex★ 492same name
- ndpvt-web/prompt-improver★ 87same name
- dazuck/operator-skills★ 17same name
- Amery2010/skills★ 4same name
- Damon-Stewart-1/claude-skills-public★ 3same name
- namearth5005/claude-skills★ 2same name
- dazuck/claude-code-skills★ 1same name
- kakarot-oncloud/claude-skills★ 0same name
- shinzoxD/knackbox★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 18 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
18
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
- Distinctive: line 21
When building or testing prompt evaluation systems
- Distinctive: line 22
When prompt lacks sufficient context even with conversation history
- Distinctive: line 35
Create a dynamic research plan using TodoWrite before asking questions.
- Distinctive: line 38
Check conversation history first: - Avoid redundant exploration if context already exists
- Distinctive: line 39
Review codebase: if needed:
- Distinctive: line 42
Check git log for recent changes
- Distinctive: line 43
Search for errors, failing tests, TODO/FIXME comments
- Distinctive: line 45
Read local documentation files
- Distinctive: line 52
Check conversation history before exploring codebase
- Distinctive: line 64
Grounded: Every option comes from research (codebase findings, documentation, common patterns)
- Distinctive: line 65
Specific: Avoid vague options like "Other approach"
- Distinctive: line 79
Use the AskUserQuestion tool to present your research-grounded questions.
- Distinctive: line 91
Important: Always include multiSelect field (true/false).
- Distinctive: line 112
Check conversation history for recent errors
- Distinctive: line 115
Check git log for recent problem areas
- Distinctive: line 148
Research First: Always gather context before formulating questions
- Distinctive: line 149
Ground Questions: Use research findings, not assumptions or base knowledge
- Distinctive: line 152
Systematic Approach: Follow 4-phase workflow (Research → Questions → Clarify → Execute)
“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.
Files
Prompt Improver Skill
Purpose
Transform vague, ambiguous prompts into actionable, well-defined requests through systematic research and targeted clarification. This skill is invoked when the hook has already determined a prompt needs enrichment.
When This Skill is Invoked
Automatic invocation:
- UserPromptSubmit hook evaluates prompt
- Hook determines prompt is vague (missing specifics, context, or clear target)
- Hook invokes this skill to guide research and questioning
Manual invocation:
- To enrich a vague prompt with research-based questions
- When building or testing prompt evaluation systems
- When prompt lacks sufficient context even with conversation history
Assumptions:
- Prompt has already been identified as vague
- Evaluation phase is complete (done by hook)
- Proceed directly to research and clarification
Core Workflow
This skill follows a 4-phase approach to prompt enrichment:
Phase 1: Research
Create a dynamic research plan using TodoWrite before asking questions.
Research Plan Template:
- Check conversation history first - Avoid redundant exploration if context already exists
- Review codebase if needed:
- Task/Explore for architecture and project structure
- Grep/Glob for specific patterns, related files
- Check git log for recent changes
- Search for errors, failing tests, TODO/FIXME comments
- Gather additional context as needed:
- Read local documentation files
- WebFetch for online documentation
- WebSearch for best practices, common approaches, current information
- Document findings to ground questions in actual project context
Critical Rules:
- NEVER skip research
- Check conversation history before exploring codebase
- Questions must be grounded in actual findings, not assumptions or base knowledge
- Route Glob, Grep, WebSearch, WebFetch, and multi-file Read through
Task/Explore— never call them directly in main context - Include conversation-relevant context (file paths, errors, prior decisions) in every Explore prompt — Explore cannot see prior turns
For detailed research strategies, patterns, and examples, see references/research-strategies.md.
Phase 2: Generate Targeted Questions
Based on research findings, formulate 1-6 questions that will clarify the ambiguity.
Question Guidelines:
- Grounded: Every option comes from research (codebase findings, documentation, common patterns)
- Specific: Avoid vague options like "Other approach"
- Multiple choice: Provide 2-4 concrete options per question
- Focused: Each question addresses one decision point
- Contextual: Include brief explanations of trade-offs
Number of Questions:
- 1-2 questions: Simple ambiguity (which file? which approach?)
- 3-4 questions: Moderate complexity (scope + approach + validation)
- 5-6 questions: Complex scenarios (major feature with multiple decision points)
For question templates, effective patterns, and examples, see references/question-patterns.md.
Phase 3: Get Clarification
Use the AskUserQuestion tool to present your research-grounded questions.
AskUserQuestion Format:
- question: Clear, specific question ending with ?
- header: Short label (max 12 chars) for UI display
- multiSelect: false (unless choices aren't mutually exclusive)
- options: Array of 2-4 specific choices from research
- label: Concise choice text (1-5 words)
- description: Context about this option (trade-offs, implications)Important: Always include multiSelect field (true/false). User can always select "Other" for custom input.
Phase 4: Execute with Context
Proceed with the original user request using:
- Original prompt intent
- Clarification answers from user
- Research findings and context
- Conversation history
Execute the request as if it had been clear from the start.
Examples
Example 1: Skill Invocation → Research → Questions → Execution
Hook evaluation: Determined prompt is vague Original prompt: "fix the bug" Skill invoked: Yes (prompt lacks target and context)
Research plan:
- Check conversation history for recent errors
- Explore codebase for failing tests
- Grep for TODO/FIXME comments
- Check git log for recent problem areas
Research findings:
- Recent conversation mentions login failures
- auth.py:145 has try/catch swallowing errors
- Tests failing in test_auth.py
Questions generated:
- Which bug are you referring to?
- Login authentication failure (auth.py:145)
- Session timeout issues (session.py:89)
- Other
User answer: Login authentication failure
Execution: Fix the error handling in auth.py:145 that's causing login failures
Example 2: Clear Prompt (Skill Not Invoked)
Original prompt: "Refactor the getUserById function in src/api/users.ts to use async/await instead of promises"
Hook evaluation: Passes all checks
- Specific target: getUserById in src/api/users.ts
- Clear action: refactor to async/await
- Success criteria: use async/await instead of promises
Skill invoked: No (prompt is clear, proceeds immediately without skill invocation)
For comprehensive examples showing various prompt types and transformations, see references/examples.md.
Key Principles
- Assume Vagueness: Skill is only invoked for vague prompts (evaluation done by hook)
- Research First: Always gather context before formulating questions
- Ground Questions: Use research findings, not assumptions or base knowledge
- Be Specific: Provide concrete options from actual codebase/context
- Stay Focused: Max 1-6 questions, each addressing one decision point
- Systematic Approach: Follow 4-phase workflow (Research → Questions → Clarify → Execute)
Progressive Disclosure
This SKILL.md contains the core workflow and essentials. For deeper guidance:
- Research strategies: references/research-strategies.md
- Question patterns: references/question-patterns.md
- Comprehensive examples: references/examples.md
Load these references only when detailed guidance is needed on specific aspects of prompt improvement.
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
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.

