/enhance-prompt:enhance-prompt runs instead · from enhance-prompt
Transforms vague or incomplete prompts into structured, codebase-aware instructions using auto-category detection, chain decomposition, and 13 professional templates.
This skill never runs in Claude Code
It ships in enhance-prompt at skills/, but /enhance-prompt:enhance-prompt (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Transform raw, vague, or incomplete prompts into professional-grade, context-rich instructions that produce optimal AI output.
Core principle: A bad prompt produces bad output. Every minute spent on prompt quality saves ten minutes of wrong output.
Announce at start: "I'm using the enhance-prompt skill to transform your prompt into a professional-grade instruction."
Do NOT output an enhanced prompt without first scanning the codebase for context. Even if the prompt seems clear, codebase context ALWAYS improves it. No exceptions.NO ENHANCED PROMPT WITHOUT CODEBASE CONTEXT
Skipping the codebase scan? The enhanced prompt will be generic. Generic prompts produce generic output. That defeats the purpose.
Always:
Especially when:
/enhance-prompt slash command is invokedYou MUST complete these steps in order:
references/prompt-patterns.md)references/auto-detection.md)references/prompt-chain.md)references/codebase-analysis.md procedurereferences/output-format.md templatereferences/iteration-mode.mddigraph enhance_prompt {
rankdir=TB;
receive [label="Receive\nraw prompt", shape=box];
score [label="Score\n7 dimensions", shape=box];
detect [label="Auto-Detect\ncategory", shape=box, style=filled, fillcolor="#ffffcc"];
multi [label="Multi-Intent?", shape=diamond];
chain [label="Chain\nDecomposition", shape=box, style=filled, fillcolor="#ffffcc"];
scan [label="Scan\ncodebase", shape=box, style=filled, fillcolor="#ccffcc"];
ambiguous [label="Critical\nambiguity?", shape=diamond];
ask [label="Ask MAX 2\nquestions", shape=box];
enhance [label="Apply 7-Layer\nEnhancement", shape=box, style=filled, fillcolor="#ccccff"];
format [label="Format\noutput", shape=box];
present [label="Present\nbefore/after", shape=doublecircle];
feedback [label="User\nfeedback?", shape=diamond];
iterate [label="Iteration\nMode", shape=box, style=filled, fillcolor="#ffccff"];
receive -> score;
score -> detect;
detect -> multi;
multi -> chain [label="yes (2+)"];
multi -> scan [label="no (1)"];
chain -> scan;
scan -> ambiguous;
ambiguous -> ask [label="yes"];
ambiguous -> enhance [label="no"];
ask -> enhance;
enhance -> format;
format -> present;
present -> feedback;
feedback -> iterate [label="refine"];
}
Each layer is mandatory. Skipping layers produces weak prompts.
| Layer | What | Red Flag If Missing |
|---|---|---|
| 1. Clarity | Remove ambiguity, define terms | Multiple interpretations possible |
| 2. Specificity | File paths, function names, line numbers | "Fix the thing" without WHERE |
| 3. Context | Tech stack, patterns, dependencies from scan | AI has to guess the project |
| 4. Structure | Context → Task → Constraints → Output sections | Wall of text |
| 5. Constraints | DO/DON'T rules, boundaries, edge cases | No guardrails = wrong output |
| 6. Output Format | Code block, diff, step-by-step, docs | AI chooses random format |
| 7. Verification | Testable success criteria | "Done" is subjective |
Details and examples: See references/prompt-patterns.md
| Excuse | Reality |
|---|---|
| "Prompt is clear enough" | If it were, you wouldn't need this skill |
| "Codebase scan takes too long" | 30 seconds of scanning saves 10 minutes of wrong output |
| "Context is obvious" | Obvious to you. Not to the AI reading it cold |
| "I'll add details later" | You won't. Enhanced prompt is the details |
| "Just make it longer" | Length ≠ quality. Specificity = quality |
When prompt is not in English:
database, authentication, frontend)references/prompt-patterns.md — 7-Layer framework with examples and scoringreferences/codebase-analysis.md — Multi-level scanning with monorepo and framework detectionreferences/output-format.md — Structured output template with risk assessmentreferences/prompt-library.md — 6 core prompt templatesreferences/prompt-library-extended.md — 7 extended prompt templatesreferences/auto-detection.md — Auto-category detection and template selectionreferences/prompt-chain.md — Prompt chain decomposition for multi-intent promptsreferences/iteration-mode.md — Enhancement iteration and refinement trackingsrc/auth/login.ts:42 > paragraph of descriptionreferences/auto-detection.md (opens in a new tab)references/codebase-analysis.md (opens in a new tab)references/iteration-mode.md (opens in a new tab)references/output-format.md (opens in a new tab)references/prompt-chain.md (opens in a new tab)references/prompt-library-extended.md (opens in a new tab)references/prompt-library.md (opens in a new tab)references/prompt-patterns.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vodailocz/enhance-prompt --plugin enhance-promptOther plugins' skills for the same job