brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
prompt-improverImprove 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 technique…
Independent GitHub snapshot · Automated classification · Original documentation governs
Analyze and improve prompts using Anthropic's official best practices and the 5-Element Persona Framework.
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 |
For any prompt involving expertise or role-play, ensure ALL five elements:
Constraints are the game-changer—without them, Claude gives fantasy answers.
See references/persona-framework.md for templates and examples.
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.
Modern Claude models require explicit direction:
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]
references/techniques.md — For detailed technique explanations, API-specific guidance (prefilling), extended thinking tips, or system/user separation patternsreferences/persona-framework.md — When building expert personas, role-based prompts, or adding constraints to get realistic outputsreferences/examples.md — When the user needs before/after demonstrations or few-shot patterns