[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JGWY56XP1Z4XDW5XV86YMX":3,"skill-same:01M6JGWY56XP1Z4XDW5XV86YMX":62},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M6JGWY56XP1Z4XDW5XV86YMX","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\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"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\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,"license":15,"description":7},"master","b4819add93efbaf4d80627118ec34680406b309b","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fskill-optimization",1,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add muratovv\u002Fai-hats --skill skill-optimization",{"tool":54,"command":55},"bunx","bunx skills add muratovv\u002Fai-hats --skill skill-optimization",{"tool":57,"command":58},"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\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",true,[],[63,89,114,132,137,151],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":36},"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",[],[70,71,72,73,74,75,76,77,78,79,28,80,81,82,83,84,85,86,87,88],"protocol","Evaluation","tool","tool evaluation protocol","testing","ml","libraries","adoption","methodology","Tools","dependency","up","frameworks","time","project","recommendation","for","bounded","candidate",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":36},"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",[],[96,97,98,99,70,100,101,102,103,104,28,105,106,107,108,109,110,111,112,113],"systematic debugging","debugging","systematic","test","monitoring","hypothesis","verify","behavior","fix","evidence","bug","reports","pattern","users","error","with","bug-fix","phase",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":36},"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",[],[121,122,123,124,125,103,126,28,127,108,128,129,130,86,131],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":133,"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":134,"categories":135,"keywords":136,"publishedAt":36},"01M6PVF06SCV28QARM5MQPANC9","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[],[20,19,29,35,34,33,32,31,30,21,28,27,26,25,24,23,22],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":36},"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",[],[144,145,146,147,148,149,28,150,86],"gate","fallback","silent fallback gate","python","write","edit","hook",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":36},"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",[],[158,159,160,161,35,162,163,164,21,103,28,165,166,84,167,168,169,170,171,172],"framework","retro","retro to framework","change","retrospective","projects","convert","incident","across","problem","about","more","skill update","single","generic"]