/specclaw-extras:patternsfrom specclaw-extras
Tracks recurring errors and learnings across changes, detects patterns, and promotes prevention rules to a repo-local knowledge base.
Ships in specclaw-extras. 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.
First, run specclaw-ensure-init .specclaw — idempotently creates .specclaw/ if it doesn't exist (silent if already initialized; auto-inits using the current directory's basename as the project name).
Track recurring patterns across changes — errors and learnings that repeat become prevention rules.
Scan a change for patterns:
specclaw-detect-patterns .specclaw scan <change>
Reads errors.md and learnings.md, matches against existing patterns, creates new ones or increments existing.
List all patterns:
specclaw-detect-patterns .specclaw list [--min-recurrence N]
Promote a pattern to the repo-local knowledge base:
specclaw-detect-patterns .specclaw promote <pat-id>
Promote writes the prevention rule to .specclaw/knowledge/agent-hints.md — never to the plugin itself. The plugin stays versioned and generic; each repo builds its own knowledge over time.
Auto-promotion: patterns with 3+ occurrences are flagged ⚠️ — run promote to write their prevention rules into the local knowledge base so future build agents see them automatically.
Pattern registry lives at .specclaw/patterns.md (global, not per-change).
Knowledge base lives at .specclaw/knowledge/ (repo-local, not plugin).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub chan4lk/specclaw --plugin specclaw-extras8 skills in this plugin
/author-specspecclaw author-specUse when the user wants to co-author a spec interactively instead of a one-shot plan./autospecclaw autoUse when the user wants every active change advanced to its next phase without prompts./contextspecclaw contextUse when the user wants to view or change project-wide rules in .specclaw/context.md./debugspecclaw debugUse when a bug, test failure, build failure, or unexpected behaviour is reported or observed, before proposing any fix./learnspecclaw learnUse when a build uncovers a spec gap, design miss or lesson worth recording./loopspecclaw loopUse when asked to loop or iterate a change until every gate is green.Other plugins' skills for the same job