From enhance-prompt
Transforms raw prompts into professional-grade, codebase-aware instructions. Use when improving vague/incomplete prompts, adding codebase context, or crafting structured AI requests with templates.
npx claudepluginhub vodailocz/enhance-prompt --plugin enhance-promptThis skill uses the workspace's default tool permissions.
Transform raw, vague, or incomplete prompts into professional-grade, context-rich instructions that produce optimal AI output.
Optimizes prompts for code tasks like implementation, debugging, refactoring, review, and testing by adding investigation steps, verification, anti-hallucination rules, and clarity.
Optimizes prompts for clarity and effectiveness by applying role-task-constraints-output structure, stripping fluff, and auto-routing to codebase research, clarifiers, or web search. Triggers on 'improve this prompt' or vague inputs.
Improves prompts using Anthropic's 4-step workflow. Handles direct text, files, conversation context, iteration; adds XML, chain-of-thought, examples, clear formats.
Share bugs, ideas, or general feedback.
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 description