[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JGWVR0JJ6AA571FTATMQKC":3,"skill-same:01M6JGWVR0JJ6AA571FTATMQKC":70},{"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":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M6JGWVR0JJ6AA571FTATMQKC","silent-fallback-gate",null,"PreToolUse hook — refuses an Edit or Write that adds an inert broad except. Use when a Python edit was blocked for a silent fallback.","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\u002Fsilent-fallback-gate\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28],"gate","fallback","silent fallback gate","python","write","edit","use","hooks","hook","for","2026-11-10 10:12:30",false,"---\nname: silent-fallback-gate\ndescription: >-\n  PreToolUse hook — refuses an Edit or Write that adds an inert broad\n  except. Use when a Python edit was blocked for a silent fallback.\nai_hats:\n  runtime_hooks:\n    PreToolUse:\n      - matcher: Edit|Write|MultiEdit\n        script: hooks\u002Fsilent_fallback_gate.py\nlicense: MIT\n---\n\n# silent-fallback-gate\n\nThin registration for a PreToolUse hook. On an Edit, Write or MultiEdit of a\n`.py` file outside `tests\u002F`, the hook refuses when the edit adds a broad\n`except` whose body neither raises, calls, nor uses the bound exception.\n`# silent-ok: \u003Creason>` marks a deliberate one. The refusal names that choice.\n\nThe check is `violations()` in `hooks\u002Fsilent_fallback_gate.py`. CI walks the\ntree through `scripts\u002Fcheck_silent_fallback.py`, which calls the same function.\nAn edit that does not grow the set is silent, including a file that already\nhas one. A payload the hook cannot reconstruct is fail-open; the CI walk still\nsees the file. Kill switch `AI_HATS_SILENT_FALLBACK_OFF=1`, exported.\n\n## When to Use\n\nRead this when an edit was blocked and the next step in the refusal is unclear.\nNot a nudge: `py-security-lint` reports and lets the edit through.\n\n## Completion\n\nThe refusal names the line and one of: report it, re-raise it, or mark\n`# silent-ok: \u003Creason>`.\n\n**Validation scenario (RED).** An agent adds `except Exception: return []` to a\nmodule. Without this hook the standing rule asked it not to, and the edit\nlanded; CI caught it at review. With the hook the edit is refused and the\nreason names the mark.\n\n## Anti-Patterns\n\n- Refusing every edit of a file that already contains an inert handler.\n- A second copy of the check in the CI script.\n","# silent-fallback-gate\n\nThin registration for a PreToolUse hook. On an Edit, Write or MultiEdit of a\n`.py` file outside `tests\u002F`, the hook refuses when the edit adds a broad\n`except` whose body neither raises, calls, nor uses the bound exception.\n`# silent-ok: \u003Creason>` marks a deliberate one. The refusal names that choice.\n\nThe check is `violations()` in `hooks\u002Fsilent_fallback_gate.py`. CI walks the\ntree through `scripts\u002Fcheck_silent_fallback.py`, which calls the same function.\nAn edit that does not grow the set is silent, including a file that already\nhas one. A payload the hook cannot reconstruct is fail-open; the CI walk still\nsees the file. Kill switch `AI_HATS_SILENT_FALLBACK_OFF=1`, exported.\n\n## When to Use\n\nRead this when an edit was blocked and the next step in the refusal is unclear.\nNot a nudge: `py-security-lint` reports and lets the edit through.\n\n## Completion\n\nThe refusal names the line and one of: report it, re-raise it, or mark\n`# silent-ok: \u003Creason>`.\n\n**Validation scenario (RED).** An agent adds `except Exception: return []` to a\nmodule. Without this hook the standing rule asked it not to, and the edit\nlanded; CI caught it at review. With the hook the edit is refused and the\nreason names the mark.\n\n## Anti-Patterns\n\n- Refusing every edit of a file that already contains an inert handler.\n- A second copy of the check in the CI script.\n",{"name":5,"ai_hats":34,"license":15,"description":7},{"runtime_hooks":35},{"PreToolUse":36},[37],{"script":38,"matcher":39},"hooks\u002Fsilent_fallback_gate.py","Edit|Write|MultiEdit","master","b4819add93efbaf4d80627118ec34680406b309b","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fsilent-fallback-gate",1,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add muratovv\u002Fai-hats --skill silent-fallback-gate",{"tool":53,"command":54},"bunx","bunx skills add muratovv\u002Fai-hats --skill silent-fallback-gate",{"tool":56,"command":57},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill silent-fallback-gate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002FSKILL.md",true,[61,67],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"hooks\u002Fbypass_journal.py","SCRIPT","脚本",35,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002Fhooks\u002Fbypass_journal.py",{"path":38,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":68,"sourceHtmlUrl":69},11729,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002Fhooks\u002Fsilent_fallback_gate.py",[71,96,121,144,168,173],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":29},"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",[],[78,79,80,81,82,83,84,85,86,87,25,88,89,90,91,92,93,28,94,95],"protocol","Evaluation","tool","tool evaluation protocol","testing","ml","libraries","adoption","methodology","Tools","dependency","up","frameworks","time","project","recommendation","bounded","candidate",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":29},"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",[],[103,104,105,106,78,107,108,109,110,111,25,112,113,114,115,116,117,118,119,120],"systematic debugging","debugging","systematic","test","monitoring","hypothesis","verify","behavior","fix","evidence","bug","reports","pattern","users","error","with","bug-fix","phase",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":132,"publishedAt":29},"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",[127],{"categoryNo":128,"categoryName":129,"taxonomyType":130,"taxonomyTypeDesc":131},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[133,134,135,136,137,110,138,25,139,115,140,141,142,28,143],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":151,"publishedAt":29},"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",[150],{"categoryNo":128,"categoryName":129,"taxonomyType":130,"taxonomyTypeDesc":131},[152,153,154,155,156,157,158,159,160,161,25,162,163,164,165,166,167],"Optimization","skill optimization","components","component","issues","library","audit","refactor","Budget","Rules","periodic","maintenance","token","token budget","role","high",{"skillNo":169,"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":170,"categories":171,"keywords":172,"publishedAt":29},"01M6PVEXM9717016T9MW82HDCT","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",[],[19,20,21,22,23,24,25,27,28],{"skillNo":174,"name":175,"nameZh":6,"description":176,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":177,"categories":178,"keywords":180,"publishedAt":29},"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",[179],{"categoryNo":128,"categoryName":129,"taxonomyType":130,"taxonomyTypeDesc":131},[181,182,183,184,155,185,186,187,161,110,25,188,189,92,190,191,192,193,194,195],"framework","retro","retro to framework","change","retrospective","projects","convert","incident","across","problem","about","more","skill update","single","generic"]