Help us improve
Share bugs, ideas, or general feedback.
From 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.
npx claudepluginhub tenxengineer/claude-code-enhanceHow this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-enhance:consult-scarsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are about to design, refactor, migrate, or introduce something. Before
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.
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.