prompt-improver
Improve and optimize prompts for Claude using Anthropic's official best practices and the 5-Element Persona Framework.
Skill by skeletorjs
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/classified-ai-core-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: 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
- Improve and optimize prompts for Claude using Anthropic's official best practices and the 5-Element Persona Framework. Use when asked to improve, refine, optimize, or review a prompt. Also triggers on requests to make prompts clearer, more effective, better structured, or to get better/more realistic outputs from Claude. Covers Claude 4.x-specific techniques, persona engineering, constraint-based prompting, and structured outputs.
- License
- MIT
- Metadata
- author: skeletorjs
- Instructions
- 100 lines in SKILL.md · view on GitHub
Files (5)
- DISPLAY.json
- SKILL.md
- examples.md · references/
- persona-framework.md · references/
- techniques.md · references/
SKILL.md (first lines)
# Prompt Improver Analyze and improve prompts using Anthropic's official best practices and the 5-Element Persona Framework. ## Workflow ### Step 1: Identify the Prompt & Intent - Get the prompt if not provided - Clarify: Is this for Claude 4.x? API or chat interface? - Understand: What outcome does the user want to improve? ### Step 2: Diagnose the Core Issue Quick triage against common failure modes: | Symptom | Likely Cause | |---------|--------------| | Generic/shallow output | Missing persona depth or constraints | | Wrong format | No output specification or examples | | Inconsistent results | Needs few-shot examples with reasoning | | Unrealistic suggestions | Missing constraints (budget/time/resources) | | Ignores instructions | Needs XML structure or system/user separation | | Verbose/over-engineered | Missing explicit direction (Claude 4.x issue) | | Off-topic responses | Lacks context about purpose/audience | ### Step 3: Apply the 5-Element Persona Framework For any prompt involving expertise or role-play, ensure ALL five elements: 1. **Role + Seniority** — "Senior Backend Engineer with 8 years..." 2. **Industry/Domain Context** — "B2B SaaS in fintech, enterprise customers" 3. **Methodologies** — "Uses JTBD framework, presents at 95% confidence" 4. **Constraints** — "$50K budget, 6-week timeline, team of 3" 5. **Output Format** — "2-page executive brief with 3 options + recommendation" Constraints are the game-changer—without them, Claude gives fantasy answers. See `references/persona-framework.md` for templates and examples. ### Step 4: Apply Structural Techniques Select techniques based on the diagnosed issue: | Issue | Technique | |-------|-----------| | Complex reasoning needed | Chain of thought with `<thinking>` tags | | Multiple components | XML tag structure | | Format compliance | Prefill (API) + XML output tags | | Inconsistent outputs | Few-shot WITH reasoning (input→reasoning→output) | | Instruction injection risk | System/User separation | See `references/techniques.md` for implementation details. ### Step 5: Apply Claude 4.x Optimizations Modern Claude models require explicit direction: - **Be explicit**: Add "Go beyond basics" if you want comprehensive output - **Explain the why**: Context behind instructions improves compliance - **Tell what TO do**: Not "don't use jargon" → "Use plain language a 10th grader understands" - **Match prompt style to output**: Reduce markdown in prompt → less markdown in output - **Opus 4.5**: Add "Keep solutions simple" to prevent over-engineering ### Step 6: Generate the Improved Prompt Produce the complete improved prompt using this structure: ``` [SYSTEM PROMPT - when using API or Projects] You are [role + seniority] with [X years] in [industry/domain]. You specialize in [expertise]. Your approach: [methodologies/frameworks] Your constraints: [budget/time/resources/tradeoffs] Deliver: [specific output format] [USER PROMPT] <context> [Background, purpose, audience, success criteria, WHY this matters] </context> <instructions> [Clear, numbered steps - tell what TO do, not what NOT to do] </instructions> <constraints> [Negative constraints: "Never assume X", "Do not exceed Y words"] </constraints> <examples> [2-3 examples showing: INPUT → REASONING → OUTPUT] </examples> <output_format> [Exact structure with XML tags for reliable parsing] </output_format> [Actual task/content to process] ``` ## When to Load References - **`references/techniques.md`** — For detailed technique explanations, API-specific guidance (prefilling), extended thinking tips, or system/user separation patterns - **`references/persona-framework.md`** — When building expert personas, role-based prompts, or adding constraints to get realistic outputs - **`references/examples.md`** — When the user needs before/after demonstrations or few-shot patterns
From Classified-AI-Core/skill-library, MIT.
More from Classified-AI-Core/skill-library
- 0.476score
supermemory
skeletorjs
Long-term memory for AI agents via Supermemory's knowledge graph API.
SkillCFreshness: CClaude Code +9 - 0.475score
self-improvement
skeletorjs
AI self-improvement and reflection skill.
SkillCFreshness: CClaude Code +9 - 0.474score
close-spec
Classified AI
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it…
SkillCFreshness: CClaude Code +9 - 0.474score
premortem
Classified AI
Run a premortem on any plan, launch, product, hire, strategy, or decision.
SkillCFreshness: CClaude Code +9 - 0.474score
refactor-clean
Classified AI
Refactor cleanly instead of layering sediment.
SkillCFreshness: CClaude Code +9 - 0.474score
write-spec
Classified AI
Break large features into independently verifiable, human-reviewable slices under specs/<feature>/.
SkillCFreshness: CClaude Code +9 - 0.472score
share-skill
rc2.zo.computer
Safely prepare and guide skills for contribution to the Zo Skills Registry.
SkillCFreshness: CClaude Code +9 - 0.471score
simplify
skeletorjs
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillCFreshness: CClaude Code +9 - 0.466score
plan-code-changes
0.zo.computer
Plan out code changes using a plan file.
SkillCFreshness: CClaude Code +9 - 0.448score
skill-creator
Anthropic
Guide for creating effective skills.
SkillCFreshness: CClaude Code +9 - 0.447score
brainstorming
Obra
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.
SkillCFreshness: CClaude Code +9 - 0.442score
template-skill
Anthropic
A starter template for writing your own skill.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jul 22, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- www.classified.llc/resources
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from skeletorjs
- 0.476score
supermemory
skeletorjs
Long-term memory for AI agents via Supermemory's knowledge graph API.
SkillCFreshness: CClaude Code +9 - 0.475score
self-improvement
skeletorjs
AI self-improvement and reflection skill.
SkillCFreshness: CClaude Code +9 - 0.471score
simplify
skeletorjs
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
SkillCFreshness: CClaude Code +9 - 0.441score
code-degunker
skeletorjs
Identify and fix AI-generated code anti-patterns: incomplete implementations, TODO placeholders, over-engineering, hallucinated APIs, missing error handling…
SkillCFreshness: CClaude Code +9
Cite this page
prompt-improver skill. Agent Mart. https://agentmart.dev/skills/classified-ai-core-prompt-improver (last updated 2026-10-24)