routing-learnings
Skill3 starsChanged 4 months agoMITView on GitHub
The anti-auto-memory router. Use this EVERY time you notice something worth remembering — a repeated mistake, a user correction, a procedure that worked, a preference, a project quirk — and especially whenever you feel the urge to "just note this down" in CLAUDE.md or memory. Also use during /retro to classify each mined learning. Routing prose into the wrong artifact is the primary failure mode of this harness; when in doubt, trigger this skill.
In this repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- auto-healerSkill
- build-loopSkill
- calibrationSkill
- coordinateSkill
- eval-captureSkill
- follow-up-handlingSkill
- guardSkill
- harness-authoringSkill
- harness-pr-opsSkill
- host-assumption-bleedSkill
- labSkill
- language-selectionSkill
- learnSkill
- loop-prompt-architectSkill
- nested-reposSkill
- observeSkill
- retrospectionSkill
- roadmapSkill
- specializationSkill
- structural-qaSkill
- stuck-detectionSkill
- vendoring-skillsSkill
- venture-buildSkill
- verifySkill
- windows-host-pathsSkill
- worktreeSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Never edit hooks/ directly.
- Distinctive: line 18
Weight gate — net hook count must not grow by reflex: Before adding a NEW hook, in order: (a) can you fix the ROOT CAUSE so the problem …
- Distinctive: line 32
Follow skills/harness-authoring before writing it.
- Very specific: line 56
Every routed artifact gets a provenance: line: date, session, triggering event.
- Very specific: line 61
Precedent check before changing a subsystem's mechanism: Before drafting a hook/skill/ADR that alters how an existing subsystem works, grep …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Routing Learnings
A learning only counts if it lands in an artifact that changes future behavior. Walk the tree top-down; first match wins.
The decision tree
- Can it be enforced mechanically? ("never X", "always Y before Z") → hook — but only after the weight gate below. Code that blocks beats prose that suggests, and costs zero context. Hooks are enforcement-layer: draft the script + settings entry, open a PR via /harness-pr, human merges. Never edit hooks/ directly. Weight gate — net hook count must not grow by reflex. Before adding a NEW hook, in order: (a) can you fix the ROOT CAUSE so the problem can't arise? (b) does an EXISTING guard already cover this trigger — strengthen/repurpose it? (c) do overlapping guards exist to CONSOLIDATE instead? (d) can you make the correct action the easy default? A new hook is justified only when all four fail. Reflexively answering every papercut with "always/never → new hook" is hook-bloat, not improvement — more enforcement surface makes the harness HARDER to follow, which causes more mistakes. That case routes to /meta-retro (audit / consolidate / prune), NOT /harness-pr (add). The user named hook proliferation as the anti-pattern itself (session b7488db6, 2026-06-19: "we already have so many fucking hooks... we gotta stop bandaid fixing this").
- Is it a multi-step procedure you (Claude) will repeat across tasks? → skill. Loaded only on trigger, so cost is ~its description. Follow skills/harness-authoring before writing it.
- Is it a workflow the USER initiates by name? ("do a release", "run retro") → command in commands/. Keep under 80 lines.
- Is it a role that needs an isolated, fresh context? (grading, auditing) → agent in agents/. If the role must not see your working context to do its job honestly (any evaluation of your own work), it MUST be an agent.
- Is it this user's taste, style, or recurring preference?
→ one bullet in memory/user-model.md, formatted exactly:
- <claim> (evidence: N, last: YYYY-MM-DD, source: corrections|stated|inferred)Lint rejects bullets without evidence counts. New entries start at evidence: 1; bump the count and date on each confirmation. Never write a horoscope. - Is it a fact true of exactly one project? (build quirks, domain glossary) → that project's CLAUDE.md, one line. If you later see it in a second project, promote it upstream (it was a #2 or #5 all along).
- None of the above → discard. Most candidate learnings should die here. Hoarding is the failure mode this tree exists to prevent.
Hard rules
- Every routed artifact gets a
provenance:line: date, session, triggering event. Lint enforces this for post-v1 artifacts. Unsourced rules are rumors. - One learning, one artifact. If it seems to need two, it is two learnings.
- A decision with alternatives that were rejected → also write a short ADR in memory/decisions/NNNN-slug.md so future-you doesn't relitigate it.
- Precedent check before changing a subsystem's mechanism. Before drafting a
hook/skill/ADR that alters how an existing subsystem works, grep
memory/decisions/AND the target's SKILL + provenance comments for that mechanism. If a prior audit/ADR rejected it, rebut THAT named decision on its own terms — not a generic restatement of it. Re-running a decision already made (the rejected line is often already in your own earlier grep output) costs a full auditor pass to re-derive. (session 0d0fe086, 2026-06-22: re-proposed an auto-fire recall hook that stuck-detection had already rejected by name.)
<!-- provenance: /retro-backlog 2026-06-19, session b7488db6 — after the agent
reflexively proposed "add a hook+skill" for a recurring git-base papercut, the
user pushed back hard ("we already have so many fucking hooks... stop bandaid
fixing this"). The hook step had no restraint; added the weight gate so net
enforcement surface doesn't grow by reflex. Paired with the /meta-retro guard-
friction audit (audit/consolidate/prune existing); a companion /retro-backlog PR
records the same taste in memory/user-model.md. -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

