[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JGE62PQT73DDQPYKFWCT62":3,"skill-same:01M6JGE62PQT73DDQPYKFWCT62":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":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M6JGE62PQT73DDQPYKFWCT62","worktree-venv",null,"Provisions a Python venv inside every freshly created worktree — infrastructure only, no agent-side decision logic","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\u002Fai-hats-dev\u002Fskills\u002Fworktree-venv\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28],"worktree","venv","worktree venv","python","infrastructure","decision","only","hooks","logic","python venv","2026-11-10 10:12:30",false,"---\nname: worktree-venv\ndescription: >-\n  Provisions a Python venv inside every freshly created worktree —\n  infrastructure only, no agent-side decision logic\nai_hats:\n  # hook-carrier skill. The lifecycle bundle spawns this script in\n  # place from the skill dir after `git worktree add` (a migration retired the\n  # materialized wt-hooks tree; `migrations.py` sweeps what it left behind).\n  worktree:\n    wt_in:\n      - script: hooks\u002Fprovision-venv.sh\nlicense: MIT\n---\n\n# worktree-venv\n\n`hooks\u002Fprovision-venv.sh` runs after `git worktree add` and mints a `.venv` in\nthe new worktree: `uv venv`, then one editable `uv pip install` over the root\nproject and every `packages\u002F**\u002Fpyproject.toml`.\n\nWithout it the worktree's `sys.executable` is the main checkout's, whose\neditable install points at main — so the e2e tier (which strips `PYTHONPATH` by\ndesign) tests the wrong source and the guard blocks the\nfirst commit. The paired half is the `git-mastery` smoke hook preferring\n`\u003Cgit-toplevel>\u002F.venv\u002Fbin\u002Fpytest`; neither half works alone.\n\n## Conventions\n\n- **Warn-continue** (ADR-0012 D3\u002FD7). Every declining path exits 0: no root\n  `pyproject.toml`, `.venv\u002Fbin\u002Fpython` already present (idempotent), no `uv` on\n  PATH, or a failed install. Each leaves a worktree without `.venv` — the\n  status quo before this hook, never worse.\n- **Bounded** by the 45s `wt_in` budget; a timeout is a WARN, not a failed\n  create. Cost when it runs: ~1–2s on a warm uv cache.\n- **Unpinned by necessity** — the repo gitignores `uv.lock`, so the install\n  resolves fresh and a worktree venv may carry newer dev tools than an older\n  main venv.\n\n## References\n\n- Paired hook: `packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fcore\u002Fskills\u002Fgit-mastery\u002Fgit_hooks\u002Fpre-commit-smoke.sh`\n- Hook contract: `docs\u002Fhow-to-extend.md#worktree-lifecycle-hooks`\n","# worktree-venv\n\n`hooks\u002Fprovision-venv.sh` runs after `git worktree add` and mints a `.venv` in\nthe new worktree: `uv venv`, then one editable `uv pip install` over the root\nproject and every `packages\u002F**\u002Fpyproject.toml`.\n\nWithout it the worktree's `sys.executable` is the main checkout's, whose\neditable install points at main — so the e2e tier (which strips `PYTHONPATH` by\ndesign) tests the wrong source and the guard blocks the\nfirst commit. The paired half is the `git-mastery` smoke hook preferring\n`\u003Cgit-toplevel>\u002F.venv\u002Fbin\u002Fpytest`; neither half works alone.\n\n## Conventions\n\n- **Warn-continue** (ADR-0012 D3\u002FD7). Every declining path exits 0: no root\n  `pyproject.toml`, `.venv\u002Fbin\u002Fpython` already present (idempotent), no `uv` on\n  PATH, or a failed install. Each leaves a worktree without `.venv` — the\n  status quo before this hook, never worse.\n- **Bounded** by the 45s `wt_in` budget; a timeout is a WARN, not a failed\n  create. Cost when it runs: ~1–2s on a warm uv cache.\n- **Unpinned by necessity** — the repo gitignores `uv.lock`, so the install\n  resolves fresh and a worktree venv may carry newer dev tools than an older\n  main venv.\n\n## References\n\n- Paired hook: `packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fcore\u002Fskills\u002Fgit-mastery\u002Fgit_hooks\u002Fpre-commit-smoke.sh`\n- Hook contract: `docs\u002Fhow-to-extend.md#worktree-lifecycle-hooks`\n",{"name":5,"ai_hats":34,"license":15,"description":7},{"worktree":35},{"wt_in":36},[37],{"script":38},"hooks\u002Fprovision-venv.sh","master","b4819add93efbaf4d80627118ec34680406b309b","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fai-hats-dev\u002Fskills\u002Fworktree-venv",1,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add muratovv\u002Fai-hats --skill worktree-venv",{"tool":52,"command":53},"bunx","bunx skills add muratovv\u002Fai-hats --skill worktree-venv",{"tool":55,"command":56},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill worktree-venv","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fai-hats-dev\u002Fskills\u002Fworktree-venv\u002FSKILL.md",true,[60],{"path":38,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"SCRIPT","脚本",4599,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fai-hats-dev\u002Fskills\u002Fworktree-venv\u002Fhooks\u002Fprovision-venv.sh",[66,93,118,141,165,178],{"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":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",[],[73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],"protocol","Evaluation","tool","tool evaluation protocol","testing","ml","libraries","adoption","methodology","Tools","use","dependency","up","frameworks","time","project","recommendation","for","bounded","candidate",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"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",[],[100,101,102,103,73,104,105,106,107,108,83,109,110,111,112,113,114,115,116,117],"systematic debugging","debugging","systematic","test","monitoring","hypothesis","verify","behavior","fix","evidence","bug","reports","pattern","users","error","with","bug-fix","phase",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":129,"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",[124],{"categoryNo":125,"categoryName":126,"taxonomyType":127,"taxonomyTypeDesc":128},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[130,131,132,133,134,107,135,83,136,112,137,138,139,90,140],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":148,"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",[147],{"categoryNo":125,"categoryName":126,"taxonomyType":127,"taxonomyTypeDesc":128},[149,150,151,152,153,154,155,156,157,158,83,159,160,161,162,163,164],"Optimization","skill optimization","components","component","issues","library","audit","refactor","Budget","Rules","periodic","maintenance","token","token budget","role","high",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":29},"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",[],[172,173,174,22,175,176,83,177,90],"gate","fallback","silent fallback gate","write","edit","hook",{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":185,"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",[184],{"categoryNo":125,"categoryName":126,"taxonomyType":127,"taxonomyTypeDesc":128},[186,187,188,189,152,190,191,192,158,107,83,193,194,88,195,196,197,198,199,200],"framework","retro","retro to framework","change","retrospective","projects","convert","incident","across","problem","about","more","skill update","single","generic"]