[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6PVF06SCV28QARM5MQPANC9":3,"skill-same:01M6PVF06SCV28QARM5MQPANC9":69},{"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":23,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":48,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6PVF06SCV28QARM5MQPANC9","skill-optimization",null,"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.","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\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"skill optimization","Optimization","Rules","high","role","token budget","token","maintenance","periodic","use","components","Budget","refactor","audit","library","issues","component","2026-11-10 10:12:30",false,"---\nname: skill-optimization\ndescription: >-\n  Audit and refactor library components to eliminate redundancy and\n  staleness. Use during periodic library maintenance, after adding\n  multiple new skills or rules, when a role's token budget is too high, or\n  after retrospectives identify component issues.\nlicense: MIT\nai_hats:\n  schema_version: 1\n  type: skill\n---\n\n# Skill Optimization\n\nAudit and refactor library components (rules, skills, traits) to eliminate redundancy, verbosity, and stale instructions.\n\n## When to Use\n\nCross-component *audit* — dedup, staleness, and token-budget trimming across the\nwhole rule\u002Fskill\u002Ftrait library. Authoring or validating a *single* skill's\nstructure is **skill-template**, not this. And the upstream act of turning a\nretro finding into a new framework component is **retro-to-framework**; this\nskill optimises what already exists.\n\n## Procedure\n\n1. **Audit:** Review `\u003Cai_hats_dir>\u002Fsessions\u002Fretros\u002F` for recurring issues.\n   List all active rules and skills in the current role composition.\n\n2. **Identify Debt:**\n   - Redundancy: two components covering the same behavior\n   - Stale instructions: references to removed tools, obsolete workflows\n   - Verbosity: rules that can be condensed without losing meaning\n   - Misplaced content: rule that should be a skill (has a procedure),\n     or skill that should be a rule (is just a constraint)\n   - Prohibition-led wording, and unowned silences — both are debt here, and\n     `skill-template`'s validation checklist is where they are stated as\n     authoring rules; audit against it, so the two do not drift apart\n\n3. **Refactor:**\n   - Merge fragmented rules into existing traits or skills\n   - Condense verbose content into declarative checklists\n   - Delete deprecated items\n   - Move misplaced content to the right component type\n\n4. **Validate:**\n   - Run `composer.compose()` for affected roles — 0 errors\n   - Run test suite — all green\n   - Spot-check assembled prompt — no regressions\n\n## Completion\n\n- Audit report produced with identified debt\n- Refactoring applied and validated (0 errors, tests green)\n- Token impact measured before\u002Fafter\n\n## Anti-Patterns\n\n- Refactoring without measuring token impact — optimization must be quantified\n- Deleting components without checking wiring — verify every trait\u002Frole still resolves\n- Cosmetic changes disguised as optimization — focus on real redundancy and staleness\n","# Skill Optimization\n\nAudit and refactor library components (rules, skills, traits) to eliminate redundancy, verbosity, and stale instructions.\n\n## When to Use\n\nCross-component *audit* — dedup, staleness, and token-budget trimming across the\nwhole rule\u002Fskill\u002Ftrait library. Authoring or validating a *single* skill's\nstructure is **skill-template**, not this. And the upstream act of turning a\nretro finding into a new framework component is **retro-to-framework**; this\nskill optimises what already exists.\n\n## Procedure\n\n1. **Audit:** Review `\u003Cai_hats_dir>\u002Fsessions\u002Fretros\u002F` for recurring issues.\n   List all active rules and skills in the current role composition.\n\n2. **Identify Debt:**\n   - Redundancy: two components covering the same behavior\n   - Stale instructions: references to removed tools, obsolete workflows\n   - Verbosity: rules that can be condensed without losing meaning\n   - Misplaced content: rule that should be a skill (has a procedure),\n     or skill that should be a rule (is just a constraint)\n   - Prohibition-led wording, and unowned silences — both are debt here, and\n     `skill-template`'s validation checklist is where they are stated as\n     authoring rules; audit against it, so the two do not drift apart\n\n3. **Refactor:**\n   - Merge fragmented rules into existing traits or skills\n   - Condense verbose content into declarative checklists\n   - Delete deprecated items\n   - Move misplaced content to the right component type\n\n4. **Validate:**\n   - Run `composer.compose()` for affected roles — 0 errors\n   - Run test suite — all green\n   - Spot-check assembled prompt — no regressions\n\n## Completion\n\n- Audit report produced with identified debt\n- Refactoring applied and validated (0 errors, tests green)\n- Token impact measured before\u002Fafter\n\n## Anti-Patterns\n\n- Refactoring without measuring token impact — optimization must be quantified\n- Deleting components without checking wiring — verify every trait\u002Frole still resolves\n- Cosmetic changes disguised as optimization — focus on real redundancy and staleness\n",{"name":5,"ai_hats":46,"license":15,"description":7},{"type":47,"schema_version":48},"skill",1,"master","f922a7f627276366873d546942d9ad899a86f71a","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add muratovv\u002Fai-hats --skill skill-optimization",{"tool":61,"command":62},"bunx","bunx skills add muratovv\u002Fai-hats --skill skill-optimization",{"tool":64,"command":65},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill skill-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",true,[],[70,96,121,140,154,177],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":41},"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",[],[77,78,79,80,33,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95],"tool evaluation protocol","tool","Evaluation","protocol","candidate","bounded","for","recommendation","project","time","frameworks","up","dependency","Tools","methodology","adoption","libraries","ml","testing",{"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":41},"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,107,108,109,110,111,112,113,33,114,115,116,117,118,80,119,120],"systematic","debugging","systematic debugging","evidence","bug-fix","with","error","users","pattern","reports","bug","fix","behavior","verify","hypothesis","monitoring","phase","test",{"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":128,"publishedAt":41},"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":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[129,130,131,115,83,132,133,134,111,135,33,136,137,138,139],"skill template","template","Existing","which","canonical","structural","new skill","guide","hats","compliance","validation",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":41},"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",[],[147,148,149,150,151,152,33,83,153],"silent fallback gate","fallback","gate","edit","write","python","hook",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":161,"publishedAt":41},"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",[160],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[162,163,164,165,166,167,40,168,169,170,85,171,172,33,115,26,173,174,175,176],"retro to framework","retro","framework","problem","generic","single","skill update","more","about","across","incident","convert","projects","retrospective","change",{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":186,"publishedAt":41},"01M6PVEQ05ETVVB2NX7FSYXRV2","py-security-lint","PostToolUse hook — reports the project's own ruff security (`S`) findings on every `.py` you Edit\u002FWrite, non-blockingly; fail-open, no manual invocation.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fpy-security-lint\u002FSKILL.md",[183],{"categoryNo":184,"categoryName":185,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查",[187,188,189,85,112,190,191,151,150,153,192,193],"lint","security","py security lint","ruff","open","you","manual"]