haiku-repair

haiku-repair is a skill for Claude Code from gigsmart/haiku-method. It costs 30 tokens per session (682 once invoked), scanned A, original, Apache-2.0.

A repair tool for specific H·AI·K·U recovery problems, including damaged baselines, misplaced Git worktrees, and fixes for already-merged branches.

In plain words
What is it for?
Rebuilding a drift baseline, moving older worktrees, or creating a pull or merge request against the main branch.
Why use it?
It addresses repository and workflow states that normal processing cannot repair automatically.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the haiku plugin — 31 skills, 2 hooks, 2 MCP servers shipped together

Good fit Rebuilding a drift baseline, moving older worktrees, or creating a pull or merge request against the main branch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gigsmart/haiku-method/haiku-repair
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gigsmart/haiku-method --skill haiku-repair
Clone the repo
git clone --depth 1 https://github.com/gigsmart/haiku-method

Made for: Claude Code.

Or install haiku, the plugin that ships this one along with the rest of its 31 skills, 2 hooks, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for haiku-repair

README.md
[![agentmods](https://agentmods.dev/badge/skills/gigsmart/haiku-method/haiku-repair/github.svg)](https://agentmods.dev/skills/gigsmart/haiku-method/haiku-repair)
Your own site
<a href="https://agentmods.dev/skills/gigsmart/haiku-method/haiku-repair"><img src="https://agentmods.dev/badge/skills/gigsmart/haiku-method/haiku-repair/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for haiku-repair

Your own site · 80×15
<a href="https://agentmods.dev/skills/gigsmart/haiku-method/haiku-repair"><img src="https://agentmods.dev/badge/skills/gigsmart/haiku-method/haiku-repair.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 682 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00682
Opus 5.5 $0.00012 $0.00273
Sonnet 5.5 $0.00006 $0.00136
Haiku 4.5 $0.00003 $0.00068

Measured 3mo ago against content hash f0e36bfe4136, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

haiku-repair scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/haiku-repair/SKILL.md · 41 lines

How it starts

The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repair

Call haiku_repair for one of the three remaining v4 recovery paths.

When to use this skill

haiku_repair under v4 is narrow. Use it for:

  1. 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.
  2. Worktree relocation — older H·AI·K·U builds (pre-2026-04) rooted .haiku/worktrees/ 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.
  3. Mainline PR/MR 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.

When NOT to use this skill

Do not run /haiku: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/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.

If a v4 intent won't advance, the right diagnostic is the loop-guard diagnostic in haiku_run_next's response (writes to $TMPDIR/haiku-prompts/{session_id}/loop-guards.log and surfaces a diagnostic: line in the error body). Paste that into a bug report — don't run /haiku:haiku-repair hoping it'll patch something.

Default behavior (git repo)

In 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.

Args

  • intent: <slug> — repair a single intent in the current working directory only (skips multi-branch mode)
  • apply: false — scan without applying fixes (returns the report only)
  • skip_branches: true — force cwd-only mode even in a git repo

Read the full file on GitHub · 41 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 41 lines · 30 tokens per session scan A f0e36bfe4136

Subscribe to this mod's changes

haiku-repair is a skill published in the GitHub repository gigsmart/haiku-method (30 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 682 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

haiku-repair compared with skills from other repositories

haiku-repair next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
haiku-repairgigsmart/haiku-methodSkill306mo agoApache-2.0A30Claude Code
cdd-closeOscaner/skillsSkill68todayMITA111Claude Code
git-worktreeBackToCimaCoppi/PraxisSkill628d agoApache-2.0A125Claude Code
commit-changesBackToCimaCoppi/PraxisSkill628d agoApache-2.0A100Codex
branch-finisher10CG/AriaSkill219d agoMITA37Claude Code
cooperative-vibe-codingcuriositech/windags-skillsSkill214d agononeA159Claude Code
sdlc-commitMinh-Tam-Solution/SDLC-Enterprise-FrameworkSkill2111d agononeA70Claude Code, Codex