From claude-ecosystem
Improves prompts via Anthropic best practices: queries official docs first, applies 4-step workflow with chain-of-thought, XML tags, and examples for accuracy and structure.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-ecosystem:prompt-improvementThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **STOP - Before improving ANY prompt, you MUST invoke the docs-management skill.**
references/examples/advanced-transformations.mdreferences/examples/basic-transformations.mdreferences/examples/domain-specific.mdreferences/metadata/keyword-registry.mdreferences/metadata/tag-reference.mdreferences/patterns/cot-patterns.mdreferences/patterns/example-enrichment-patterns.mdreferences/patterns/prefill-patterns.mdreferences/patterns/system-prompt-patterns.mdreferences/patterns/xml-tagging-patterns.mdreferences/troubleshooting/common-issues.mdreferences/troubleshooting/debugging-guide.mdreferences/troubleshooting/tradeoffs-guide.mdreferences/workflows/improvement-workflow.mdreferences/workflows/iterative-refinement.mdreferences/workflows/test-case-generation.mdSTOP - Before improving ANY prompt, you MUST invoke the docs-management skill.
This is NOT optional guidance - it is a required execution step.
Invoke the claude-ecosystem:docs-management skill BEFORE making any improvements:
Search for relevant documentation using natural language:
Query at least ONE of these topics based on your improvement needs:
Before improving a prompt, verify:
If ANY checkbox is unchecked, STOP and invoke the docs-management skill first.
This meta-skill replicates Anthropic's Console/Workbench prompt improver functionality within Claude Code. It provides workflows, patterns, and keyword registries to transform basic prompts into high-performance structured templates.
What this skill provides:
What this skill does NOT provide:
docs-management skill)docs-management for current guidance)Use this skill when:
What do you want to do?
The prompt improver enhances prompts through a structured 4-step process:
<instructions> - Task definition and behavioral guidelines<context> - Background information and relevant details<examples> - Demonstration cases<formatting> - Desired output format specification<thinking>, <analysis>, <answer><thinking> steps within examples showing intermediate reasoningDetailed workflow: references/workflows/improvement-workflow.md
An improved prompt typically includes:
<instructions>
Your task definition and behavioral guidelines
</instructions>
<context>
Background information and relevant details
</context>
<examples>
<example>
<input>Sample input</input>
<thinking>Step-by-step reasoning</thinking>
<output>Expected output</output>
</example>
</examples>
<formatting>
Specify desired output format and structure
</formatting>
Use these keywords to query the docs-management skill for official documentation:
| Topic | Query Keywords |
|---|---|
| Prompt Improver | prompt improver, prompt improvement, optimize prompts |
| Chain of Thought | chain of thought, CoT, thinking, step-by-step, reasoning |
| XML Tags | XML tags, structure prompts, tagging, XML structure |
| Examples | multishot, few-shot, example formatting, multishot prompting |
| System Prompts | system prompt, role, persona, Claude role |
| Clarity | clear, direct, explicit, specific instructions, be clear and direct |
| Claude 4.x | Claude 4, Claude 4.5, Sonnet 4.5, Opus 4.5, best practices |
| Topic | Query Keywords |
|---|---|
| Prefilling | prefill, response prefill, assistant prefill, output format |
| Long Context | long context, long context tips, document placement |
| Extended Thinking | extended thinking, thinking budget, deep reasoning |
| Prompt Chaining | chain prompts, prompt chaining, multi-step prompts |
Find documentation about chain of thought prompting and thinking tags
Find documentation about XML tags for structuring prompts
Find documentation about multishot prompting and example formatting
Find documentation about Claude 4 and Claude 4.5 prompting best practices
Find documentation about prefilling Claude's response for output control
Empirical Guidance: The metrics below are illustrative examples from Anthropic's testing at time of publication. Actual results vary by task, domain, and model version. These are NOT guarantees - use them as rough benchmarks for improvement potential.
Based on Anthropic's testing, prompt improvement typically yields:
Important: Improved prompts produce longer, more thorough responses. Consider trade-offs for latency-sensitive or cost-sensitive applications.
Load these files based on your specific needs:
/improve-prompt command--feedback for iterative refinement--generate-examples for prompts lacking examplesDate: 2025-12-03 Model: claude-opus-4-5-20251101
npx claudepluginhub melodic-software/claude-code-plugins --plugin claude-ecosystemImproves prompts using Anthropic's 4-step workflow. Handles direct text, files, conversation context, iteration; adds XML, chain-of-thought, examples, clear formats.
Prompt design techniques for LLMs: structure, examples, reasoning patterns, and optimization. Invoke whenever task involves any interaction with AI instructions — crafting, debugging, improving, or evaluating prompts for skills, agents, output styles, or system configurations.
Crafts or updates LLM prompts from first principles by discovering goals, constraints, and context through targeted questions. Use for new prompts, updates, or reviews.