Agent skill

Failure Codifier

by Chachamaru127 in Chachamaru127/claude-code-harness

Reads orchestration and judgment logs without writing to them, finds failures that keep recurring, and proposes rule candidates with confidence scores for human review.

MITAuto-check: notesAgent Workflows

SKILL.md written in Japanese; this summary is our English description.

Install Failure Codifier

skills CLI
$ npx skills add Chachamaru127/claude-code-harness --skill failure-codifier -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Chachamaru127/claude-code-harness failure-codifier --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/failure-codifier .claude/skills/failure-codifier && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
failure-codifier
GitHub stars
3.2k
Token cost
~603 tokens
SKILL.md length
73 words
Files
2 (incl. references)
Skills in repo
25
Repo updated
First seen
Licence
MIT

At a glance

Reads orchestration and judgment logs without writing to them, finds failures that keep recurring, and proposes rule candidates with confidence scores for human review.

  • Reviewing orchestration logs for failures that keep coming back
  • SKILL.md covers 核心契約, 使い方, 参照 and 禁止事項
  • Calls go
  • Drafting failure-rule proposals from a Judgment Ledger

What it does

The skill extracts repeated failures in read-only mode from the breezing orchestration ledger and the Judgment Ledger, then proposes `failure-rule.v1` candidates, each with a confidence score. Confidence follows how often a failure occurs: three occurrences give medium and five give high, as implemented in a Go package under `go/internal/failurecodifier/`.

Nothing is promoted automatically. A dry-run command, `./scripts/failure-codifier-propose.sh --dry-run`, prints a JSON array of candidates and writes to no source-of-truth file, and the `proposed_ssot_target` field only suggests whether a rule belongs in `patterns.md` or `decisions.md`. Editing those files through the codifier, unattended updates and changes to the `cc:*` markers in `Plans.md` are all forbidden. A reference covers the promotion workflow and a JSON schema defines the rule format.

When your agent uses it

  • Reviewing orchestration logs for failures that keep coming back
  • Drafting failure-rule proposals from a Judgment Ledger
  • Running the self-learning loop without touching shared rule files
  • Checking how confident the codifier is about a repeated failure

Example prompts

  • “Run the failure codifier in dry-run mode and show me the proposed rules.”
  • “Which failure patterns in the breezing logs have happened at least five times?”
  • “Draft failure-rule proposals from the Judgment Ledger, but do not touch patterns.md.”

Requirements

  • Breezing orchestration logs and a Judgment Ledger to read
  • Go, for the bundled tests
  • Pre-approved tools (allowed-tools): Read, Bash, Grep

What it can do on your machine

Read from SKILL.md and the folder at commit 2b2b748. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Failure Codifier loads about 603 tokens when it runs, and up to ~1.2k if it reads all its reference files. Until then it costs about 119 tokens; SKILL.md has 73 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~119
When it runs · the whole SKILL.md, loaded when a task matches
~603
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Chachamaru127/claude-code-harness at commit 2b2b748, republished under its MIT licence (© Chachamaru127). 73 words, ~603 tokens.

Download SKILL.mdSave it as .claude/skills/failure-codifier/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
failure-codifier
description
Extract recurring failure patterns from breezing orchestration logs and Judgment Ledger, emit failure-rule.v1 proposals with confidence scores. SSOT promotion to patterns.md or decisions.md is proposal-only — human-approval-required. Use when user mentions failure codifier, failure patterns, self-learning loop, codify failures, or failure-rule proposals. Do NOT load for: direct SSOT edits, auto-promotion, or implementation unrelated to failure analysis.
allowed-tools
Read, Bash, Grep
description-en
Extract recurring failure patterns from breezing orchestration logs and Judgment Ledger, emit failure-rule.v1 proposals with confidence scores. SSOT promotion…
description-ja
breezing ログと Judgment Ledger から再現失敗パターンを抽出し、confidence 付き failure-rule.v1 候補を提案する。patterns.md / decisions.md への昇格は human-approval-required(自動昇格禁止)。Use when…
argument-hint
[propose|explain]
user-invocable
true

Failure Codifier

breezing orchestration ledger + Judgment Ledger から再現失敗を read-only で抽出し、failure-rule.v1 候補を confidence score 付きで提案します。

核心契約

  • human-approval-required: codifier は dry-run 提案のみ。patterns.md / decisions.md への自動昇格は構造的に禁止。
  • Confidence 閾値: occurrence count ≥ 3 → medium、count ≥ 5 → high(go/internal/failurecodifier/confidence.go)。
  • 昇格先 heuristic: proposed_ssot_target フィールドで patterns.md または decisions.md を提案するのみ。

使い方

Dry-run 提案(推奨)
bash
./scripts/failure-codifier-propose.sh --dry-run

stdout は JSON 配列(failure-rule.v1 候補)。SSOT ファイルには一切書き込みません。

Go テスト
bash
cd go && go test ./internal/failurecodifier/... -count=1

参照

禁止事項

  • patterns.md / decisions.md への Write / Edit(human 承認後も codifier 経由では不可)
  • AutoPromote / unattended SSOT 更新
  • Plans.md の cc:* マーカー変更

© Chachamaru127, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/failure-codifier of Chachamaru127/claude-code-harness.

  • SKILL.md
  • references/promotion-workflow.md

Open the folder on GitHubat commit 2b2b748

Compare with similar skills

Failure Codifier next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Failure Codifier compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Failure Codifier this skillChachamaru127/claude-code-harness3.2k—~603Automated safety check: NotesMIT
Ad Level UpCorridorTech/PoseCap220—~2.1kAutomated safety check: NotesApache-2.0
PUA High-Agency Governancetanweai/pua20k—~502Automated safety check: PassMIT
Defect Intake and RCA Candidatesprotect-my-hair/nucleus-marketplace164—~745Automated safety check: PassMIT
Paseo Committeegetpaseo/paseo20k1 repos~496Automated safety check: PassCustom licence
Orca Run Replayiflytek/skillhub5.2k4 repos~3kAutomated safety check: PassApache-2.0

Similar skills

  • Ad Level Up

    CorridorTech/PoseCap

    Curate the project's rule-set — add, refine, merge, or retire a convention.

    220 GitHub stars~2.1k tokensUpdated today
    Agent WorkflowsAuto-check: notes
  • Pushes an agent to keep verifying and changing approach after repeated failures, using a diagnosis line, evidence-based completion and confirmation before risky edits.

    20k GitHub stars~502 tokensUpdated 28 days ago
    Agent WorkflowsAuto-check passed
  • Defect Intake and RCA Candidates

    protect-my-hair/nucleus-marketplace

    Checks whether a defect report has enough context to be accepted, then drafts candidate-only root-cause evidence for human review without confirming causes or changing code.

    164 GitHub stars~745 tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • Paseo Committee

    getpaseo/paseo

    Forms a two-agent committee with contrasting profiles to analyze a stuck problem in parallel, reconcile their views and return a consensus plan without editing files.

    20k GitHub starsUsed in 1 repo~496 tokens
    Agent WorkflowsAuto-check passed
  • Orca Run Replay

    iflytek/skillhub

    Answers questions about a past agent run from its recording, using causal graphs and replay, instead of reconstructing events from memory.

    5.2k GitHub starsUsed in 4 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • LoopX Self Repair

    loopx-project/loopx

    Diagnoses surprising LoopX behavior, such as stale recommendations or tiny progress, assigns it to the responsible layer and repairs it at the lowest durable level.

    6.2k GitHub stars~2.2k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from Chachamaru127/claude-code-harness

All 25 skills in this repo
  • CI Failure Triage and Repair

    Chachamaru127/claude-code-harness

    Diagnoses failing CI pipelines and tests, deciding first whether the test or the implementation is at fault, and hands hard cases to a dedicated fixer subagent.

    3.2k GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check: notes
  • Cursor Composer Task Delegate

    Chachamaru127/claude-code-harness

    Hands one implementation task to Cursor Composer in an isolated git worktree, then reviews its diff and cherry-picks the result into the main branch.

    3.2k GitHub stars~4.4k tokensUpdated 2 days ago
    Auto-check: notes
  • Acceptance Demo Generator

    Chachamaru127/claude-code-harness

    Renders a single HTML page showing each acceptance criterion as verified or not, with a ship, wait, or reject recommendation for non-engineers.

    3.2k GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check: notes
  • Harness Long-Running Task Loop

    Chachamaru127/claude-code-harness

    Repeats a long task as a series of scheduled wake-ups, each re-entering with fresh context and calling harness-work for one task per cycle.

    3.2k GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check: notes
  • Harness Plan

    Chachamaru127/claude-code-harness

    Creates and maintains Plans.md task plans with a spec delta, updates task markers and syncs plan progress with the implementation.

    3.2k GitHub stars~3.7k tokensUpdated 2 days ago
    Auto-check: notes
  • Harness Release

    Chachamaru127/claude-code-harness

    Runs a release for any project that keeps a Keep a Changelog file on GitHub, from version bump to merge, tag and GitHub Release after a single approval.

    3.2k GitHub stars~4.4k tokensUpdated 2 days ago
    Auto-check: notes

Questions about Failure Codifier

What does Failure Codifier do?

Reads orchestration and judgment logs without writing to them, finds failures that keep recurring, and proposes rule candidates with confidence scores for human review. v1` candidates, each with a confidence score. Confidence follows how often a failure occurs: three occurrences give medium and five give high, as implemented in a Go package under `go/internal/failurecodifier/`.

When should I use Failure Codifier?

Failure Codifier fits situations like: reviewing orchestration logs for failures that keep coming back; drafting failure-rule proposals from a Judgment Ledger; running the self-learning loop without touching shared rule files; checking how confident the codifier is about a repeated failure.

How do I install Failure Codifier in Claude Code?

Run `npx skills add Chachamaru127/claude-code-harness --skill failure-codifier -a claude-code`. Or copy the skill folder (skills/failure-codifier in Chachamaru127/claude-code-harness) into .claude/skills/failure-codifier in your project. Claude Code loads it when a task matches its description.

How do I install Failure Codifier in Codex?

Run `npx skills add Chachamaru127/claude-code-harness --skill failure-codifier -a codex`. Or copy the skill folder (skills/failure-codifier in Chachamaru127/claude-code-harness) into .agents/skills/failure-codifier in your project. Codex loads it when a task matches its description.

Can I use Failure Codifier in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Chachamaru127/claude-code-harness --skill failure-codifier -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/failure-codifier, .gemini/skills/failure-codifier, .github/skills/failure-codifier and .opencode/skills/failure-codifier in your project.

What does Failure Codifier need to run?

Going by SKILL.md and its folder, Failure Codifier needs the command-line tools its instructions call (go). Our summary lists: Breezing orchestration logs and a Judgment Ledger to read; Go, for the bundled tests. Its frontmatter pre-approves these tools: Read, Bash, Grep.

Does Failure Codifier access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Failure Codifier safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Failure Codifier use?

Failure Codifier is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Failure Codifier use?

About 603 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 641 tokens, read only when the agent opens those files.

What are the alternatives to Failure Codifier?

Skills that share tags, products or a category with Failure Codifier: Ad Level Up (CorridorTech/PoseCap, 220 stars), PUA High-Agency Governance (tanweai/pua, 20k stars), Defect Intake and RCA Candidates (protect-my-hair/nucleus-marketplace, 164 stars) and Paseo Committee (getpaseo/paseo, 20k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Failure Codifier?

Chachamaru127 (a GitHub user) maintains it in Chachamaru127/claude-code-harness, which has 3,153 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on October 5, 2026.

Source: Chachamaru127/claude-code-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.