
Prompt Improver
- 458 installs
- 3 repo stars
- Updated January 23, 2026
- dotneet/claude-code-marketplace
prompt-improver is a Claude Code marketplace skill that refines user and agent prompts for clarity, constraints, and tool-calling reliability for developers deploying skills, subagents, or automations.
About
prompt-improver is a Claude Code marketplace skill that rewrites prompts to add explicit constraints, clearer instructions, and more reliable tool-calling behavior before you ship skills, subagents, or marketplace automations. Developers reach for prompt-improver when draft prompts are vague, omit edge cases, or produce inconsistent agent actions during Claude Code workflows. The skill focuses on prompt structure and constraint language rather than application code, making it a pre-deployment polish step for agent configurations.
- Tightens vague instructions into actionable prompts
- Adds constraints, examples, and output format specs
- Improves tool-selection and step ordering clarity
- Reduces ambiguity for multi-step agent tasks
- Iterates prompts for marketplace skill quality
Prompt Improver by the numbers
- 458 all-time installs (skills.sh)
- Ranked #1,880 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/dotneet/claude-code-marketplace --skill prompt-improverAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 458 |
|---|---|
| repo stars | ★ 3 |
| Last updated | January 23, 2026 |
| Repository | dotneet/claude-code-marketplace ↗ |
How do you improve Claude Code skill prompts for reliability?
Refine user or agent prompts for clarity, constraints, and tool-calling reliability before deploying Claude Code skills, subagents, or marketplace automations.
Who is it for?
Developers authoring Claude Code skills, subagents, or marketplace automations who need tighter prompt constraints before deployment.
Skip if: Developers seeking application code generation, test writing, or infrastructure automation unrelated to prompt authoring.
When should I use this skill?
User asks to improve, refine, tighten, or debug a Claude Code prompt, skill description, or subagent instruction set.
What you get
Rewritten prompts with explicit constraints, clearer instructions, and improved tool-calling directives.
Files
Prompt Improver
Overview
A skill that analyzes and improves prompts based on general LLM/agent best practices. It focuses on verifiability, clear scope, explicit constraints, and context economy so the agent can execute with minimal back-and-forth.
If you are running in Claude Code, also read references/claude.md and apply the additional Claude-specific techniques. If you are running in Codex CLI, also read references/codex.md and apply the additional Codex-specific techniques.
When the input is a document that instructs an agent (e.g., plan files, AGENTS.md, system instruction docs), treat the document as the improvement target; identify issues and propose concrete improvements, and include a revised draft when helpful.
Workflow
Step 0: Classify Task and Complexity
Classify the task and decide whether an explicit exploration/planning phase should be recommended:
- Task type: bugfix, feature, refactor, research, UI/visual, docs, ops
- Complexity: single-file/small change vs multi-file/uncertain impact
- Risk: data safety, security, compatibility, performance
- Input type: prompt vs agent-instruction document (plan files, AGENTS.md, system instruction docs)
If the task is complex or ambiguous, the improved prompt should explicitly request an exploration/planning phase before implementation.
Step 1: Analyze the Prompt
Analyze the user-provided prompt from the following perspectives:
1. Verifiability: Does it include means for Claude to verify its own work? 2. Specificity: Are files, scenarios, and constraints clearly specified? 3. Context: Is necessary background information provided? 4. Scope: Is the task scope appropriately defined? 5. Expected Outcome: Are success criteria clear? 6. Constraints: Are language/runtime versions, dependencies, security, or compatibility requirements specified? 7. Context Economy: Is the prompt concise and focused, without unnecessary information? 8. Execution Preference: Is it clear whether the model should implement, propose, or just analyze?
Step 2: Identify Issues
Check for the following anti-patterns:
| Anti-pattern | Description |
|---|---|
| Vague instructions | Lacks specificity like "make it better" or "improve it" |
| No verification method | Missing tests, screenshots, or expected output |
| No verification commands | Missing how to run tests or check outputs |
| Overly broad scope | Asking for too many things at once |
| Insufficient context | Missing file paths, error messages, or references to existing patterns |
| Symptom-only description | Not requesting investigation of root cause |
| Missing constraints | No environment, dependency, or compatibility requirements |
| No exploration/planning cue | Complex tasks not asking for exploration/planning first |
| Context bloat | Unnecessary details that increase token usage |
| Ambiguous deliverable | Unclear whether to plan, implement, or only analyze |
| Unclear response format | Missing brevity/structure expectations |
Step 3: Create Improved Prompt
Apply best practices to create an improved version:
Add Verifiability
Before: "implement a function that validates email addresses"
After: "write a validateEmail function. test cases: user@example.com is true, invalid is false, user@.com is false. run the tests after implementing"Add Specific Context
Before: "fix the login bug"
After: "users report that login fails after session timeout. check the auth flow in src/auth/, especially token refresh. write a failing test that reproduces the issue, then fix it"Add Reference to Existing Patterns
Before: "add a calendar widget"
After: "look at how existing widgets are implemented on the home page to understand the patterns. HotDogWidget.php is a good example. follow the pattern to implement a new calendar widget with month selection and pagination"Add Context Economy
Before: "here is a long unrelated history ... fix the dropdown"
After: "fix the dropdown in src/ui/Dropdown.tsx. issue: keyboard navigation skips items. keep the prompt focused; omit unrelated history"Add Rich Context Inputs
Before: "build fails"
After: "build fails with this error: [paste error]. run the smallest relevant test command. if needed, read the build script and package config"Add Explicit Exploration/Planning When Needed
Before: "refactor auth to support OAuth"
After: "first explore src/auth and summarize current flow, then propose a plan. after approval, implement with tests"When information is missing, include explicit questions inside the improved prompt and do not assume defaults.
Example: Bugfix
Before: "search is broken"
After: "users report search returns empty results for queries with hyphens. reproduce in src/search/. paste the error log if any. write a failing test for 'foo-bar' returning results, fix the root cause, run: pnpm test --filter search"Example: UI/Visual
Before: "make the dashboard look better"
After: "implement the attached screenshot for the dashboard header in src/ui/DashboardHeader.tsx. match spacing and typography. take a new screenshot and list any differences. run: pnpm lint"Example: Refactor
Before: "clean up the auth code"
After: "inspect src/auth and list duplication hotspots. propose a refactor plan scoped to one module. after approval, remove duplication without changing behavior. add a targeted test if coverage is missing. run the smallest relevant test command"Example: Research
Before: "why is this API slow?"
After: "explore request flow around src/api/. summarize likely bottlenecks with evidence (logs, timings). propose 2-3 hypotheses and what data is needed to confirm. do not implement yet. if needed, ask for access to profiling output"Example: Ops
Before: "deployment failed"
After: "deploy fails with error: [paste log]. identify the failing step in scripts/deploy.sh and related CI config. suggest a fix and a rollback plan. run: ./scripts/deploy.sh --dry-run (if available)"Example: Docs
Before: "update the README"
After: "update README.md to include install + dev steps based on existing scripts. keep it concise. confirm commands exist and match actual scripts"Step 4: Output Format
Output in the following format:
## Prompt Analysis
### Original Prompt
[User-provided prompt]
### Issues
- [Issue 1 and its impact]
- [Issue 2 and its impact]
...
### Missing Information (Questions to Ask)
The following questions should be answered to make the prompt more effective:
- [Question 1] (Why it is needed)
- [Question 2] (Why it is needed)
...
### Verification Plan
- Commands to run (tests, build, lint, screenshots)
- Expected results or acceptance criteria
### Exploration/Planning Recommendation
- Recommend exploration/planning first? [Yes/No] and why
### Execution Preference
- Implement now / propose plan only / analyze only
- Any constraints on response length or format
### Improved Prompt
[The improved prompt]
### Document Improvement Suggestions (if applicable)
- [Issue and concrete improvement for the instruction document]
- [Issue and concrete improvement for the instruction document]
### Revised Document (optional)
[A revised draft of the instruction document when helpful]
### Improved Prompt Template (optional)
Use this as a fill-in template if the user wants a reusable prompt format:[Task]
- Goal:
- Target files/paths (@...):
- Constraints (runtime/version/deps/security/compat):
- Context (symptom, logs, repro, links):
[Verification]
- Commands:
- Expected results:
- UI checks (screenshots/visual diffs):
[Exploration/Planning]
- Do exploration/planning first? (Yes/No) + reason:
[Execution Preference]
- Implement now / plan only / analyze only
- Output format (concise report, patch summary, checklist, etc.)
### Short Prompt Template (optional)
Use this when the user wants the shortest effective prompt:Goal: ... Targets: path1/path2 Context: symptom + repro + logs Constraints: runtime/deps/compat Verify: command + expected result Explore/Plan: yes/no (why) Execute: implement / plan only / analyze only Output: concise format
### Improvement Points
1. [Explanation of improvement 1]
2. [Explanation of improvement 2]
...
### Additional Recommendations (optional)
- [Whether to do exploration/planning first]
- [Whether to parallelize or delegate investigation]
- [Whether preliminary research is needed]
- [Ways to reduce context usage]Reference: Best Practices Checklist
Best practices to reference when improving prompts:
Provide Verification Methods
- Include test cases
- Specify expected output
- For UI changes, request screenshot comparison
- Add "run the tests" or "verify the build succeeds"
- Include explicit commands to run
Explore → Plan → Implement Order
- Use an exploration/planning phase first for complex tasks
- Create a plan before implementation
- Small fixes don't need a formal plan
- When uncertain, ask clarifying questions before coding
Include Specific Context
- Paste error messages
- Specify existing patterns
- Clarify edge cases
- State environment constraints (runtime, language versions, dependencies)
Use Rich Inputs
- Paste logs and stack traces
- Provide URLs for docs or API references
- Attach or paste large text outputs when needed
Manage Context Window
- Keep prompts concise and focused
- Remove unrelated history or speculation
- Ask for missing info instead of guessing
Leverage Parallelism/Delegation
- For research tasks: request parallel investigation or summaries
- For code review: request an independent review pass
- Keeps the main task focused
Patterns to Avoid
- Vague instructions like "make it better" or "improve it"
- Implementation requests without verification methods
- Multiple unrelated tasks at once
- Requesting changes to files not yet read
- Large context dumps with no clear signal
Prompt Improver
A Claude Code skill that improves prompts by applying the official Best Practices for Claude Code.
What it does
This skill analyzes your prompts and transforms them into more effective versions based on proven patterns from Anthropic's internal teams and engineers using Claude Code.
When you provide a prompt, the skill outputs:
- Improved prompt - A rewritten version applying best practices
- Missing information - What additional context would make the prompt more effective
- Improvement points - Specific explanations of what was improved and why
Key Best Practices Applied
The skill evaluates and improves prompts based on these core principles:
| Best Practice | What the skill checks |
|---|---|
| Give Claude a way to verify its work | Does the prompt include tests, expected outputs, or success criteria? |
| Explore first, then plan, then code | Should Plan Mode be used for this task? |
| Provide specific context | Are files, constraints, and existing patterns referenced? |
| Use subagents for investigation | Would delegating research keep context clean? |
Usage
Invoke the skill with /prompt-improver followed by your prompt:
/prompt-improver fix the login bugOr ask Claude to improve a prompt conversationally:
Improve this prompt: "add tests for foo.py"Example
Input:
/prompt-improver make the dashboard look betterOutput:
## Prompt Analysis
### Original Prompt
make the dashboard look better
### Issues
- Vague instruction ("look better") - Claude cannot verify success
- No reference to existing design patterns or components
- No verification method specified
### Missing Information
- Screenshot or mockup of desired design
- Specific aspects to improve (layout, colors, typography, etc.)
- Reference to existing UI patterns in the codebase
### Improved Prompt
[paste screenshot of current dashboard] implement this updated design for the dashboard.
reference the existing component patterns in src/components/ui/.
take a screenshot of the result and compare it to the original.
list any differences and fix them.
### Improvement Points
1. Added verification method (screenshot comparison)
2. Referenced existing patterns for consistency
3. Made success criteria explicitReference
Claude Code Specific Guidance (Additions)
Use this file when the skill is running inside Claude Code. These additions complement the generic guidance in SKILL.md.
Plan Mode Terminology
- If the task is complex or ambiguous, explicitly request Plan Mode first.
- Suggested phrasing: "use Plan Mode to explore, then propose a plan. after approval, implement with tests."
File/Context Inputs
- Prefer
@pathreferences (e.g.,@src/auth/index.ts) over describing locations. - For large logs or outputs, pipe them in:
cat error.log | claude. - Paste screenshots or images directly when visual verification is needed.
Verification in Claude Code
- Ask for concrete commands to run (tests/build/lint) and expected results.
- For UI changes, request screenshot comparison when possible.
Parallelism
- If useful, ask to use subagents for research or independent review to keep main context clean.
Permissions/Docs
- If external docs are needed, include the URL and ask for allowlisting via
/permissionswhen required.
Codex CLI Specific Guidance (Additions)
Use this file when the skill is running inside Codex CLI. These additions complement the generic guidance in SKILL.md.
Autonomy and Completion
- Prefer end-to-end execution in one pass: explore → plan → implement → verify.
- Avoid asking for long upfront plans or preambles; if planning is needed, request a brief plan and then proceed.
- Encourage reasonable assumptions when blocked, but require explicit questions for true blockers.
- Ask for completion with concrete edits rather than only analysis (unless analysis is explicitly requested).
Tooling Preferences
- Prefer
rg/rg --filesfor search andapply_patchfor single-file edits. - If multiple reads/searches are needed, batch or parallelize tool calls when supported.
- Avoid raw shell commands when a dedicated tool exists (if the harness provides tools).
- Avoid repetitive micro-edits; read enough context and batch logical changes.
Parallel Tool Calling
- If parallel tool calls are supported, enable them and use
multi_tool_use.parallel. - Decide all needed files/resources up front and read them together.
- Avoid sequential reads unless the next file truly depends on the previous result.
- Prefer call ordering: function_call → function_call → function_call_output → function_call_output.
Output Style
- Ask for concise final reports; avoid dumping full files.
- Reference paths and summarize changes instead of pasting large code blocks.
- Ask for a brief verification summary (what was run, what passed/failed).
UI/Frontend Work
- Request verification (screenshot comparison) when visual changes are expected.
- Ask for explicit design direction if not provided (typography, layout, color, constraints).
Code Quality Guardrails
- Preserve existing behavior unless change is explicitly intended.
- Avoid broad try/catch or silent failures; surface errors consistently with repo patterns.
- Maintain type safety; avoid unnecessary casts or weakening types.
- Reuse existing helpers/patterns before adding new abstractions.
Related skills
FAQ
What does prompt-improver change in a prompt?
prompt-improver adds clearer constraints, sharper instructions, and tool-calling guidance so Claude Code skills, subagents, and marketplace automations behave more predictably at runtime.
Is prompt-improver for application code?
prompt-improver targets prompt text for Claude Code agent configurations, not application source code, tests, or deployment scripts.