From fd6c453ee4701408d2751107bc3452d45fb2a63e Mon Sep 17 00:00:00 2001 From: David Hu <159687+divad12@users.noreply.github.com> Date: Wed, 1 Jul 2026 20:05:51 -0300 Subject: [PATCH] task-observer: enhance bugfix-tdd step 5 with abstraction ladder and enforcement pairing --- .agents/skills/bugfix-tdd/SKILL.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.agents/skills/bugfix-tdd/SKILL.md b/.agents/skills/bugfix-tdd/SKILL.md index eb07e65..d305d0a 100644 --- a/.agents/skills/bugfix-tdd/SKILL.md +++ b/.agents/skills/bugfix-tdd/SKILL.md @@ -57,10 +57,9 @@ npm test -- --run ### 5. Route the learning -After the fix passes verification, invoke `/learn` capture for any reusable bug -class, missing guardrail, or project-specific workflow lesson. The canonical -record is `docs/learnings/`; legacy files such as `BUG_PATTERNS.md` and -`LESSONS_LEARNED.md` may be candidate artifacts when a project still uses them. +After the fix passes verification, invoke `/learn` capture for any reusable bug class, missing guardrail, or project-specific workflow lesson. The canonical record is `docs/learnings/`; legacy files such as `BUG_PATTERNS.md` and `LESSONS_LEARNED.md` may be candidate artifacts when a project still uses them. + +Climb the abstraction ladder before writing the learning — don't stop at the specific symptom. Ask "why did this happen?" until you reach the highest principle that is still actionable (see the ladder in `docs/ai/learning-system.md`). Pair each principle with an enforcement candidate: regression test, lint rule, shared helper, checklist, or docs/ai rule. A bug is fully learned only when it leaves a guardrail that makes the next similar mistake harder to write. ### 6. Summarize