distilllisted
Install: claude install-skill mik2win/foureyes
# Distill Patterns: $ARGUMENTS
`$ARGUMENTS` optionally scopes the mining to a subtree or a dimension ("error handling in
the API layer"); empty = the whole codebase, all dimensions below.
## Principle
Every codebase teaches by example — and its next contributor is an agent that learns the
house style from whatever code it happens to read. If three error-handling styles coexist,
generated code picks one at random; if the dominant example is bad, **every generated line
copies the rot forward**. Consistency isn't aesthetics: it's the difference between a
codebase that compounds and one that decays with each addition.
This skill closes the loop: **mine** the recurring patterns actually present, **verdict**
each one deliberately instead of letting frequency decide, and **install** the verdicts
where they change behavior — always-on rules, `CONTEXT.md`, reference examples. The kit's
rule packs carry the *stack's* conventions; this skill extracts the *project's own*, which
no pack can know.
It decides and codifies. Code changes (unification, deepening) route out.
## Phase 0 — Load profile
1. Read `.claude/PROJECT.md` — **Architecture**, **Conventions**, **Plans location**.
Missing or `TEMPLATE` → fall back to the root `CLAUDE.md` (always in context) when it
carries those facts, proceeding on it and noting you're running without a kit profile;
only if *neither* has them, **STOP**, run `/bootstrap` first.
2. Read the installed `.claude/rules/*` (generic + stack packs)