Help us improve
Share bugs, ideas, or general feedback.
From claude-code-enhance
Augment-style prompt enhancer for Claude Code. Takes a rough developer intent and produces a production-quality, codebase-aware, lesson-cross- referenced, prompt-engineering-optimized prompt that the user reviews and approves before execution. USE THIS SKILL when the user types "/enhance <rough idea>", "enhance: <idea>", "improve this prompt: <idea>", "structure this: <idea>", "expand this: <idea>", "make this prompt better:", "rephrase as a proper prompt:", or asks for a better-written/structured version of their request before any actual work begins. ALSO use when the user gives a vague high-level request with multiple possible interpretations and you want to align with them BEFORE coding — the enhancement output surfaces ambiguities as explicit questions. The skill loads project context (codemap, lessons, CLAUDE.md, recent git activity) and applies real prompt engineering principles (clear goal, scope, constraints, success criteria, suggested approach, anti-patterns, verification). The user can submit, edit, or scrap the enhanced version. This is a USER-FACING enhancement tool. The user must approve the enhanced version before it becomes the actual instruction. Never auto- apply the enhanced prompt without explicit user confirmation.
npx claudepluginhub tenxengineer/claude-code-enhanceHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-enhance:enhanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When the user invokes this skill (via `/enhance <rough intent>` or any
Guides technical evaluation of code review feedback: read fully, restate for understanding, verify against codebase, respond with reasoning or pushback before implementing.
Share bugs, ideas, or general feedback.
When the user invokes this skill (via /enhance <rough intent> or any
trigger phrase listed in the description), follow this protocol exactly.
The output is a structured, codebase-aware prompt the user reviews,
edits, or submits verbatim.
The end goal: lift a vague developer thought into a prompt that a distinguished engineer would actually act on.
The user has typed something like:
/enhance refactor auth middleware
Capture their full text after the trigger word. This is the rough intent. Preserve it verbatim — never lose the original wording.
Run these in parallel where possible. Skip silently any source that doesn't exist:
.codemap/ directoryoverview.md, hotfiles.md, recent.md~/.claude/lessons/*.md (one per domain)**Tags:** lines for keywords from the rough intent<project-root>/CLAUDE.md if present (project-specific rules)<project-root>/AGENTS.md, GEMINI.md, .claude/CLAUDE.md
variants if present~/.claude/memory/_global/MEMORY.md for universal rulesfind_symbol or get_symbol_overview to identify relevant codefind_references to identify all callers of relevant symbolsgrep -r, find, and git ls-files
to identify relevant filesgit log --since="14 days ago" --oneline -- <relevant-paths>Process the rough intent through these stages:
Classify the rough intent as one of:
Distill the rough intent into ONE crisp goal sentence. Concrete, not abstract. Names the outcome, not the process.
Pull from:
Specific, verifiable conditions. Not "tests pass" — "ran X, Y passed, manually verified Z". Each criterion answers: "how would I verify this in production?"
Surface things the user is taking for granted that might be wrong:
Format as explicit yes/no or short-answer questions.
A 3-5 step high-level plan. Not detailed implementation — just the
shape of the work. Reference which skills should be invoked at each
step (spec-architect for planning, consult-scars already auto-
fires, codex for adversarial review post-implementation, etc.).
high — security-critical, payment, migrations, production data, distributed consensus, cryptography medium — auth, persistent state, public APIs, infra changes low — UI tweaks, internal refactors, dev tooling, docs
Cite the specific reason for the risk level.
Output using this structure (markdown, with the original prompt preserved at the bottom for reference):
# Enhanced Prompt
> **Original rough intent:** <verbatim user input>
## Intent class
<one of: build | refactor | migrate | debug | investigate | review | plan | optimize>
## Goal
<one crisp sentence>
## Scope
**In:**
- <file/module/symbol path 1>
- <file/module/symbol path 2>
- ...
**Out:**
- <explicit exclusion 1>
- <explicit exclusion 2>
## Constraints
**Lessons that apply:**
- **L-XXX-NNN** — <one-line summary>
- **L-YYY-NNN** — <one-line summary>
**Project rules (from CLAUDE.md):**
- <rule 1>
- <rule 2>
**Universal preferences (from global MEMORY):**
- <pref 1>
## Success criteria
1. <verifiable condition with command + expected outcome>
2. <verifiable condition>
3. <verifiable condition>
## Implicit assumptions to confirm
- [ ] <question 1 with multiple-choice answers if helpful>
- [ ] <question 2>
- [ ] <question 3>
## Suggested approach
1. **<step 1>** — invoke `<skill>` if applicable
2. **<step 2>** — ...
3. **<step 3>** — ...
4. **Verification step** — `/browse` for UI, full test suite for backend, etc.
## Skills to invoke
- `<skill 1>` — <why>
- `<skill 2>` — <why>
## Risk: <high | medium | low>
<one-line reason — cite specific lesson IDs or domain factors>
---
**Original prompt preserved:**
<verbatim user input>
After producing the enhanced prompt, ask the user EXACTLY:
Submit this enhanced version (s), edit first (e), or scrap (x)?
Wait for their response. Do NOT proceed without explicit confirmation.
Treat the enhanced prompt as the actual instruction. Begin executing the goal using the suggested approach. Invoke listed skills in order. Apply listed constraints. Verify against success criteria before claiming done.
Wait for the user's revisions. They might:
After they reply, treat their revised version as the actual instruction and proceed as in "s".
Discard the enhancement. Fall back to the original rough intent verbatim. Proceed without the enhancement, treating the user's original text as the instruction.
They've provided revisions or follow-up. Interpret intelligently and proceed.
~/.claude/lessons/This skill works in three tiers depending on what's available:
In Tier C, mark the output as "no project context loaded — enhancement based on prompt engineering principles only" so the user knows what they're getting.
Prompt quality is a force multiplier. A vague prompt produces guessing; a structured prompt produces aligned execution. This skill applies real prompt engineering principles (Anthropic's prompt design guidelines, scope boundaries, success criteria, explicit assumption surfacing) to lift rough developer intent into something a distinguished engineer would actually act on.
Specifically, this skill closes the gap between:
This skill is portable. It uses standard locations:
~/.claude/lessons/ (optional — lessons cross-reference)~/.claude/memory/_global/MEMORY.md (optional — universal preferences)<project>/.codemap/ (optional — project context)<project>/CLAUDE.md (optional — project conventions)If none of these exist, the skill operates in Tier C (prompt engineering principles only) and still produces value.
To distribute as a plugin:
SKILL.md to your plugin's skills directoryThe skill itself is self-contained — no hardcoded paths to specific projects, no project-specific assumptions.