/claude-code-enhance:consult-scarsfrom claude-code-enhance
Scar-tissue retrieval. Loads relevant past lessons from ~/.claude/lessons/ before producing any architectural plan, so you don't repeat mistakes that already cost time/money. Use this skill at the START of any task involving: authentication, JWT, OAuth, RBAC, sessions, multi-tenancy, permissions, caching (any layer), cache invalidation, TTLs, database migrations, schema changes, ORM upgrades, indexes, distributed locking, payment flows, refunds, webhook handling, queue processing, retry logic, error recovery, rate limiting, deploys, infrastructure changes, API contract design, response wrappers, response formats, frontend-backend type contracts, NestJS modules, NestJS DI, Prisma client setup, Next.js layouts, Server Components, seed data, demo data, fake data generation. Triggers on prompts containing "design", "refactor", "migrate", "introduce", "implement", "build", "set up", "fix", "upgrade", "add caching", "add auth", "ship", "deploy", "schema change", "data model", "memory system", "agent architecture", "tune Claude", "context optimization", "improve Claude" or any combination of action verbs with the topics above. ALSO use when user asks to plan, spec, or architect anything non-trivial. The cost of skipping this skill is repeating a known-broken pattern; the cost of running it is ~30 seconds and ~500 tokens.
Trending skills
7-day visitors to each skill page
Ships in claude-code-enhance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are about to design, refactor, migrate, or introduce something. Before producing any plan or writing any code, run this protocol.
List the domains your task touches. Use the lesson library structure:
agent-architecture — memory, context, tooling for AI agentsagent-tuning — Claude Code config, output styles, pluginsapi-design — API contracts, response wrappers, namingauth — JWT, OAuth, sessions, RBAC, multi-tenancycaching — cache layers, TTLs, invalidationdata-modeling — schemas, seeds, soft-delete, time-seriesexternal-apis — rate limits, headers, auth, retries, pricingmigrations — schema changes, downtime, rollbacknestjs — NestJS-specific gotchasnextjs — Next.js / React-specific gotchasprisma — Prisma ORM specificsA task can touch multiple domains. List all of them.
For each domain identified, read ~/.claude/lessons/<domain>.md.
Use the Read tool. Skim every entry — they're short. Pay attention to:
Tags field — does this lesson actually apply to your specific case?Severity field — high-severity lessons get more weight in your plan.Never do again field — that's the actionable rule.If no lesson file exists for a domain, that's fine — note it in your plan ("no scar tissue logged for X — proceeding without precedent").
For each lesson loaded, ask:
If yes to any: revise your plan BEFORE presenting it.
When you present the plan, name the lessons that informed it. Format:
Plan:
Lessons consulted:
- L-NESTJS-001 — avoiding ESM/CJS conflict by inlining types instead of importing from shared workspace package
- L-API-001 — typing the wrapper, not the inner data, in the new endpoint client
Domains with no logged scars:
caching(no~/.claude/lessons/caching.mdyet)
This makes the lesson library's contribution visible to the user — they can audit whether you're actually using it, and they can request specific lessons not be applied if context has changed.
If during execution something breaks, surprises you, or reveals a non- obvious gotcha:
~/.claude/lessons/README.md.After-the-fact lessons lose 60% of their specificity. Write while it stings.
<project>/memory/feedback_*.md instead.~/.claude/memory/_global/MEMORY.md.The lessons library should grow because of pain, not because of theory.
If the user explicitly says "skip scar tissue, just do it" — comply. The skill's forcing function is for default behavior, not absolute mandate. The user is in control.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/enhanceAugment-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.
/refresh-codemapRegenerates the project codemap files (hotfiles.md, recent.md) from git
history. Run weekly or before starting major architectural work to keep
the SessionStart-injected codemap fresh. Triggers on user prompts like
"refresh codemap", "update hotfiles", "regenerate codemap", "what's been
hot lately", "what changed this month", "rebuild project map", or after
significant rebases / merges that may have shifted the change-frequency
picture. Does NOT regenerate overview.md — that's hand-curated and should
only be edited when the architecture genuinely changes.
Generated from the plugin's indexed repository (tenxengineer/claude-code-enhance) — no native marketplace selected
npx claudepluginhub p/tenxengineer-claude-code-enhance