Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .agents/skills/learn/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ Use the abstraction ladder from `docs/ai/learning-system.md`, but do not force a

After identifying the principle, note what would enforce it next time: a regression test, lint rule, schema/contract scan, shared helper, checklist, docs update, skill tweak, or automation.

When the bug stems from a changed shared contract — an API shape, hook signature, cache key, DB schema field, type definition, fixture format, or doc assumption — explicitly name the contract and list the consumer classes that share the same assumption (hooks, routes, tests, fixtures, helpers, docs). Ask: who else in the codebase could have made the same wrong assumption? Contract-change bugs often have sibling-bug risk beyond the immediate incident. Climb to the highest-actionable prevention principle and pair it with a candidate enforcement hook that would catch a future consumer getting the contract wrong.

Store prevention work as one readable list, e.g. `Prevention artifacts: docs (required), test (required), skill (proposed)`. Required artifacts describe work needed to prevent the issue; proposed artifacts are worthwhile ideas to consider. The executor decides what is executable now and records completed, blocked, deferred, or follow-up status. Any required code, test, helper, skill, automation, architecture, or enforcement artifact requires TDD/review discipline. If the code surface does not exist yet, docs, skill, or nested-AGENTS updates may be the only executable prevention artifact for now.

Before writing, check active inbox, candidates, promoted entries, and recent archives for an existing related learning. The CLI adds `Captured: YYYY-MM-DD` and a stable fingerprint so dashboard decisions can target a row. Fingerprint matching is not semantic dedupe; it only catches exact replay-like writes. Agents own semantic dedupe and clustering and should merge related evidence instead of creating noisy parallel entries.
Expand Down