[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6P8ZMH12CSKDSACWRBNNGCY":3,"skill-same:01M6P8ZMH12CSKDSACWRBNNGCY":60},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6P8ZMH12CSKDSACWRBNNGCY","haiku-repair",null,"Rebuild a corrupted drift baseline, relocate misplaced worktrees, or open PRs against mainline for already-merged intent branches","TheBushidoCollective\u002Fhaiku-method","TheBushidoCollective","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F233175215?v=4","01M6P8SCRJW0J2C9YZ0D14R6MA","The Bushido Collective","01M6P8SCX4KGHF4C5GPWEV48SC",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FTheBushidoCollective\u002Fhaiku-method\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fhaiku-repair\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"haiku","haiku repair","repair","baseline","open","worktrees","rebuild","intent","branches","drift","for","prs","2026-11-10 10:12:30",false,"---\nname: haiku-repair\ndescription: Rebuild a corrupted drift baseline, relocate misplaced worktrees, or open PRs against mainline for already-merged intent branches\n---\n\n# Repair\n\nCall `haiku_repair` for one of the three remaining v4 recovery paths.\n\n## When to use this skill\n\n`haiku_repair` under v4 is narrow. Use it for:\n\n1. **Drift baseline corruption** — the drift sweep reports the baseline can't be read or parsed. The repair tool rebuilds the baseline from the unit's current outputs.\n2. **Worktree relocation** — older H·AI·K·U builds (pre-2026-04) rooted `.haiku\u002Fworktrees\u002F` at the agent's cwd instead of the primary repo root. After upgrading, the misplaced worktrees still exist and confuse the engine. Repair migrates them via `git worktree move` for clean trees; dirty ones are reported for manual resolution.\n3. **Mainline PR\u002FMR generation** — when an intent branch is already merged into mainline but a fixable issue is found, repair pushes a fix commit and opens a PR against mainline.\n\n## When NOT to use this skill\n\nDo not run `\u002Fhaiku:haiku-repair` to \"fix a wedge\" on a v4 intent that won't advance. The fixes it once did under v3 — synthesizing `state.json`, validating `active_stage`, enforcing `status: completed`\u002F`active` on units — are **no-ops on v4 intents**. v4 derives stage position from disk (unit FM + branch topology), has no `state.json`, and uses iterations + approval stamps instead of unit-level `status` enums. The v0→v4 migrator runs in-band at `haiku_run_next` time and handles every schema-shape concern.\n\nIf a v4 intent won't advance, the right diagnostic is the loop-guard diagnostic in `haiku_run_next`'s response (writes to `$TMPDIR\u002Fhaiku-prompts\u002F{session_id}\u002Floop-guards.log` and surfaces a `diagnostic:` line in the error body). Paste that into a bug report — don't run `\u002Fhaiku:haiku-repair` hoping it'll patch something.\n\n## Default behavior (git repo)\n\nIn a git repository, `haiku_repair` (no args) scans every intent branch via temp worktrees, applies the narrow fixes above, pushes, and opens PRs when applicable. The loop is sequential because some fixes need user input.\n\n## Args\n\n- `intent: \u003Cslug>` — repair a single intent in the current working directory only (skips multi-branch mode)\n- `apply: false` — scan without applying fixes (returns the report only)\n- `skip_branches: true` — force cwd-only mode even in a git repo\n\n## Workflow\n\n1. Call `haiku_repair` with the specific concern (drift baseline \u002F worktree \u002F mainline-PR) — passing `intent: \u003Cslug>` if scoped to one intent.\n2. Read the report.\n3. For anything that needs manual attention, follow the report's per-issue instructions.\n\nIf the report is empty on a v4 intent, that's the expected outcome. Repair has nothing to do — the engine handles state in-band.\n","# Repair\n\nCall `haiku_repair` for one of the three remaining v4 recovery paths.\n\n## When to use this skill\n\n`haiku_repair` under v4 is narrow. Use it for:\n\n1. **Drift baseline corruption** — the drift sweep reports the baseline can't be read or parsed. The repair tool rebuilds the baseline from the unit's current outputs.\n2. **Worktree relocation** — older H·AI·K·U builds (pre-2026-04) rooted `.haiku\u002Fworktrees\u002F` at the agent's cwd instead of the primary repo root. After upgrading, the misplaced worktrees still exist and confuse the engine. Repair migrates them via `git worktree move` for clean trees; dirty ones are reported for manual resolution.\n3. **Mainline PR\u002FMR generation** — when an intent branch is already merged into mainline but a fixable issue is found, repair pushes a fix commit and opens a PR against mainline.\n\n## When NOT to use this skill\n\nDo not run `\u002Fhaiku:haiku-repair` to \"fix a wedge\" on a v4 intent that won't advance. The fixes it once did under v3 — synthesizing `state.json`, validating `active_stage`, enforcing `status: completed`\u002F`active` on units — are **no-ops on v4 intents**. v4 derives stage position from disk (unit FM + branch topology), has no `state.json`, and uses iterations + approval stamps instead of unit-level `status` enums. The v0→v4 migrator runs in-band at `haiku_run_next` time and handles every schema-shape concern.\n\nIf a v4 intent won't advance, the right diagnostic is the loop-guard diagnostic in `haiku_run_next`'s response (writes to `$TMPDIR\u002Fhaiku-prompts\u002F{session_id}\u002Floop-guards.log` and surfaces a `diagnostic:` line in the error body). Paste that into a bug report — don't run `\u002Fhaiku:haiku-repair` hoping it'll patch something.\n\n## Default behavior (git repo)\n\nIn a git repository, `haiku_repair` (no args) scans every intent branch via temp worktrees, applies the narrow fixes above, pushes, and opens PRs when applicable. The loop is sequential because some fixes need user input.\n\n## Args\n\n- `intent: \u003Cslug>` — repair a single intent in the current working directory only (skips multi-branch mode)\n- `apply: false` — scan without applying fixes (returns the report only)\n- `skip_branches: true` — force cwd-only mode even in a git repo\n\n## Workflow\n\n1. Call `haiku_repair` with the specific concern (drift baseline \u002F worktree \u002F mainline-PR) — passing `intent: \u003Cslug>` if scoped to one intent.\n2. Read the report.\n3. For anything that needs manual attention, follow the report's per-issue instructions.\n\nIf the report is empty on a v4 intent, that's the expected outcome. Repair has nothing to do — the engine handles state in-band.\n",{"name":5,"description":7},"main","42451f546de75e0c4f38d5d3bb0999e54661bf32","plugin\u002Fskills\u002Fhaiku-repair",0,"https:\u002F\u002Fgithub.com\u002FTheBushidoCollective\u002Fhaiku-method","https:\u002F\u002Fhaikumethod.ai\u002F","https:\u002F\u002Fgithub.com\u002FTheBushidoCollective","https:\u002F\u002Fthebushido.co","Strategic Technology Leadership That Actually Delivers","2026-11-04 00:54:41",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add TheBushidoCollective\u002Fhaiku-method --skill haiku-repair",{"tool":52,"command":53},"bunx","bunx skills add TheBushidoCollective\u002Fhaiku-method --skill haiku-repair",{"tool":55,"command":56},"pnpm","pnpm dlx skills add TheBushidoCollective\u002Fhaiku-method --skill haiku-repair","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTheBushidoCollective\u002Fhaiku-method\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fhaiku-repair\u002FSKILL.md",true,[],[61,80,103,113,128,142],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":31},"01M6P93YBHRPSHMRR5C870HPF8","haiku-zap","Zero-ceremony single-unit execution — run one task directly through a stage's hat loop without intent or workflow scaffolding","https:\u002F\u002Fgithub.com\u002FTheBushidoCollective\u002Fhaiku-method\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fhaiku-zap\u002FSKILL.md",[],[68,69,19,70,71,72,73,74,75,76,77,78,26,79],"zap","haiku zap","single","unit","stage","scaffolding","task","workflow","run","ZeRO","execution","loop",{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":91,"publishedAt":31},"01M6P93D0VA0HWH0NZHER4C6YN","haiku-version","Show the running H·AI·K·U MCP binary version, plugin version, and whether the engine is the dev source build or the compiled bundle","https:\u002F\u002Fgithub.com\u002FTheBushidoCollective\u002Fhaiku-method\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fhaiku-version\u002FSKILL.md",[86],{"categoryNo":87,"categoryName":88,"taxonomyType":89,"taxonomyTypeDesc":90},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[19,92,93,94,95,96,97,98,99,100,101,102],"version","haiku version","show","MCP","plugin","dev","engine","build","binary","bundle","source",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":31},"01M6P93947PNH55ZJ999GZ9J3C","haiku-unarchive","Unarchive an intent — restore a previously archived intent to default lists","https:\u002F\u002Fgithub.com\u002FTheBushidoCollective\u002Fhaiku-method\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fhaiku-unarchive\u002FSKILL.md",[],[110,19,26,111,112],"haiku unarchive","restore","default",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":31},"01M6P936W0VF4BE1WR6JGQ6NJW","haiku-triggers","Poll configured providers for events that should create intents or advance gates","https:\u002F\u002Fgithub.com\u002FTheBushidoCollective\u002Fhaiku-method\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fhaiku-triggers\u002FSKILL.md",[],[120,121,19,122,123,124,125,126,127,29],"triggers","haiku triggers","events","create","Providers","intents","advance","gates",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":31},"01M6P92V5HDE325PHZHK2BVR7S","haiku-studios","Browse available H·AI·K·U studios grouped by category with help links into each studio definition","https:\u002F\u002Fgithub.com\u002FTheBushidoCollective\u002Fhaiku-method\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fhaiku-studios\u002FSKILL.md",[],[19,135,136,137,138,139,140,141],"haiku studios","browse","help","with","links","studio","definition",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":31},"01M6P92KY8511PWQP83YKVFJB3","haiku-statusline","Install, remove, or preview the H·AI·K·U custom Claude Code status line — a one-line stage\u002Fphase indicator for the active intent","https:\u002F\u002Fgithub.com\u002FTheBushidoCollective\u002Fhaiku-method\u002Fblob\u002Fmain\u002Fplugin\u002Fskills\u002Fhaiku-statusline\u002FSKILL.md",[],[19,149,150,151,152,153,154,26,155,156,72,157,29,158,159,160],"statusline","haiku statusline","code","indicator","install","remove","preview","active","line","custom","phase","status"]