[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JGMXQWD2BXMV30SQR9QM1Y":3,"skill-same:01M6JGMXQWD2BXMV30SQR9QM1Y":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":6,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6JGMXQWD2BXMV30SQR9QM1Y","drift-detection",null,"Compare implementation diff against task acceptance criteria and ADRs to surface drift. Use when a task is in review state before transitioning to done, when integrating a worktree spanning two or more sessions, during a pre-merge audit when the diff exceeds the task description, or after a sub-agent reports completion.","muratovv\u002Fai-hats","muratovv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7502801?v=4","01M6JGCBN4KEJX012GPJVSH04T","Fedor Muratov","01M6JGCBSNMN7CW3RGTPPE0MN2",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fdrift-detection\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"drift detection","detection","drift","implementation","sub-agent","pre-merge","more","compare","done","acceptance criteria","task","sessions","reports","diff","use","audit","worktree","acceptance","state","merge","2026-11-10 10:12:30",false,"---\nname: drift-detection\ndescription: >-\n  Compare implementation diff against task acceptance criteria and ADRs to\n  surface drift. Use when a task is in review state before transitioning\n  to done, when integrating a worktree spanning two or more sessions,\n  during a pre-merge audit when the diff exceeds the task description, or\n  after a sub-agent reports completion.\nlicense: MIT\n---\n\n# Drift Detection\n\nVerify that what was implemented matches what was asked. Surfaces silent scope creep, missing acceptance criteria, and architectural drift before a PR is merged or a long-running worktree is integrated.\n\n## When to Use\n\nCompares **what was asked vs what was built** — the implementation diff against\nthe task's acceptance criteria and ADRs — to catch silent scope creep at\n`review`, on long-lived worktrees, or after a sub-agent reports done. Distinct\nfrom **domain-reviewer**, which judges the quality of the code *as written*;\ndrift-detection asks whether it's the *right scope at all*. (This is task-vs-impl\ndrift, not IaC config drift.)\n\n## Procedure\n\n1. **Extract requirements.** Acceptance Criteria from `task.yaml`, linked ADRs in `\u003Cai_hats_dir>\u002Ftracker\u002Fdecisions\u002F`, GitHub Issue body, and any updates logged via `rack transition --log`.\n2. **Extract changes.** `git diff --stat \u003Cbase>...HEAD` — categorize files (source \u002F test \u002F config \u002F doc) and note added vs modified vs deleted.\n3. **Semantic matching.** For each AC, locate the implementing artifact (function, file, test, doc paragraph) and cite it by `path:line`. \"The diff has it somewhere\" is not acceptance.\n4. **Drift report.** Classify findings: **missing** (AC without artifact), **extra** (artifact without AC), **mismatch** (partial \u002F differing semantics), **out-of-scope** (unrelated module touched).\n5. **Decision.** For each finding: (a) update AC with rationale; (b) split into follow-up task; (c) revert the diff segment; (d) accept with explicit waiver in the PR description.\n\n## Completion\n\n- Every AC has either a matching artifact (`path:line`) or an explicit decision\n- Drift report attached to PR description or task work-log\n- No silent extras — every \"extra\" is either accepted, deferred, or removed before merge\n\n## Example\n\nTask AC: \"add pagination to \u002Fusers endpoint\". Diff also modifies `\u002Forders` and adds a Redis client. Drift report: pagination on \u002Fusers — `users.go:42` ✓ matches; \u002Forders change — *out-of-scope*, split to follow-up; Redis client — *extra*, no AC, revert (cache feature was a different ticket).\n\n## Anti-Patterns\n\n- Treating green CI as drift-free — tests pass on extras too\n- Updating AC after the fact to retroactively justify the diff — log the change with reason, do not silently rewrite\n- Reviewing only added lines — deletions and renamed symbols cause the most drift\n- Skipping drift check on \"small\" PRs — small PRs that touch unexpected files are exactly where drift hides\n","# Drift Detection\n\nVerify that what was implemented matches what was asked. Surfaces silent scope creep, missing acceptance criteria, and architectural drift before a PR is merged or a long-running worktree is integrated.\n\n## When to Use\n\nCompares **what was asked vs what was built** — the implementation diff against\nthe task's acceptance criteria and ADRs — to catch silent scope creep at\n`review`, on long-lived worktrees, or after a sub-agent reports done. Distinct\nfrom **domain-reviewer**, which judges the quality of the code *as written*;\ndrift-detection asks whether it's the *right scope at all*. (This is task-vs-impl\ndrift, not IaC config drift.)\n\n## Procedure\n\n1. **Extract requirements.** Acceptance Criteria from `task.yaml`, linked ADRs in `\u003Cai_hats_dir>\u002Ftracker\u002Fdecisions\u002F`, GitHub Issue body, and any updates logged via `rack transition --log`.\n2. **Extract changes.** `git diff --stat \u003Cbase>...HEAD` — categorize files (source \u002F test \u002F config \u002F doc) and note added vs modified vs deleted.\n3. **Semantic matching.** For each AC, locate the implementing artifact (function, file, test, doc paragraph) and cite it by `path:line`. \"The diff has it somewhere\" is not acceptance.\n4. **Drift report.** Classify findings: **missing** (AC without artifact), **extra** (artifact without AC), **mismatch** (partial \u002F differing semantics), **out-of-scope** (unrelated module touched).\n5. **Decision.** For each finding: (a) update AC with rationale; (b) split into follow-up task; (c) revert the diff segment; (d) accept with explicit waiver in the PR description.\n\n## Completion\n\n- Every AC has either a matching artifact (`path:line`) or an explicit decision\n- Drift report attached to PR description or task work-log\n- No silent extras — every \"extra\" is either accepted, deferred, or removed before merge\n\n## Example\n\nTask AC: \"add pagination to \u002Fusers endpoint\". Diff also modifies `\u002Forders` and adds a Redis client. Drift report: pagination on \u002Fusers — `users.go:42` ✓ matches; \u002Forders change — *out-of-scope*, split to follow-up; Redis client — *extra*, no AC, revert (cache feature was a different ticket).\n\n## Anti-Patterns\n\n- Treating green CI as drift-free — tests pass on extras too\n- Updating AC after the fact to retroactively justify the diff — log the change with reason, do not silently rewrite\n- Reviewing only added lines — deletions and renamed symbols cause the most drift\n- Skipping drift check on \"small\" PRs — small PRs that touch unexpected files are exactly where drift hides\n",{"name":5,"license":15,"description":7},"master","b4819add93efbaf4d80627118ec34680406b309b","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fdrift-detection",1,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add muratovv\u002Fai-hats --skill drift-detection",{"tool":57,"command":58},"bunx","bunx skills add muratovv\u002Fai-hats --skill drift-detection",{"tool":60,"command":61},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill drift-detection","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fdrift-detection\u002FSKILL.md",true,[],[66,92,116,134,156,170],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":39},"01M6PVFB1SM738R2SRSRSF7CY6","tool-evaluation-protocol","Time-bounded protocol for evaluating new tools, libraries, or methodologies before adoption. Use when evaluating a candidate dependency for the project, researching a methodology (e.g. ML\u002FLLM frameworks, testing approaches), or following up on a hype-driven recommendation.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Ftool-evaluation-protocol\u002FSKILL.md",[],[73,74,75,76,77,78,79,80,81,82,33,83,84,85,86,87,88,89,90,91],"protocol","Evaluation","tool","tool evaluation protocol","testing","ml","libraries","adoption","methodology","Tools","dependency","up","frameworks","time","project","recommendation","for","bounded","candidate",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":39},"01M6PVF7HATBEX1G7N50E2QT57","systematic-debugging","4-phase bug-fix protocol (evidence, pattern, hypothesis, verify). Use when investigating any error, failure, or unexpected behavior, handling bug reports from users or monitoring, or diagnosing test failures with non-obvious causes.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[99,100,101,102,73,103,104,105,106,107,33,108,109,31,110,111,112,113,114,115],"systematic debugging","debugging","systematic","test","monitoring","hypothesis","verify","behavior","fix","evidence","bug","pattern","users","error","with","bug-fix","phase",{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":39},"01M6PVF3MTQN3RPF73AN34856J","skill-template","Canonical template and validation guide for ai-hats skills. Use when creating a new skill, reviewing an existing one for structural compliance, or deciding which pattern fits a new behavior.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-template\u002FSKILL.md",[],[123,124,125,126,127,106,128,33,129,110,130,131,132,89,133],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":39},"01M6PVF06SCV28QARM5MQPANC9","skill-optimization","Audit and refactor library components to eliminate redundancy and staleness. Use during periodic library maintenance, after adding multiple new skills or rules, when a role's token budget is too high, or after retrospectives identify component issues.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[],[141,142,143,144,145,146,34,147,148,149,33,150,151,152,153,154,155],"Optimization","skill optimization","components","component","issues","library","refactor","Budget","Rules","periodic","maintenance","token","token budget","role","high",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":39},"01M6PVEXM9717016T9MW82HDCT","silent-fallback-gate","PreToolUse hook — refuses an Edit or Write that adds an inert broad except. Use when a Python edit was blocked for a silent fallback.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002FSKILL.md",[],[163,164,165,166,167,168,33,169,89],"gate","fallback","silent fallback gate","python","write","edit","hook",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":39},"01M6PVESM49C5NT7SB7N3F76VS","retro-to-framework","Convert an observation about agent behavior — from a retrospective or from a single incident — into a framework-level change (hook, rule, skill, skill update). Use after a retrospective identifies problems that are not project-specific, after an incident where an agent misapplied a component it had read, when CLAUDE.md band-aids accumulate (more than 3 per-project rules that could be generic), or when the same problem recurs across multiple projects.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fretro-to-framework\u002FSKILL.md",[],[177,178,179,180,144,181,182,183,149,106,33,184,185,87,186,187,25,188,189,190],"framework","retro","retro to framework","change","retrospective","projects","convert","incident","across","problem","about","skill update","single","generic"]