Skip to content
Skill

Failure codifier

Finds recurring failure patterns in agent logs and proposes reviewable rules

Failure codifier is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
3.2K
Last commit
License
MIT
Listing updated

Similar skills

About Failure codifier

This skill reads breezing orchestration logs and the Judgment Ledger to find failures that keep happening, then proposes failure-rule.v1 candidates, each with a confidence score based on how often the pattern occurred. It works read-only: the main entry point is a dry-run proposal script that prints a JSON array to stdout and writes nothing to the SSOT files.

Promotion of a proposal into patterns.md or decisions.md is only suggested, never performed. The skill's rules state that any move into those files needs human approval and that the codifier must not auto-promote or edit them directly. Confidence rises to medium at three occurrences and to high at five, and the skill points to a promotion workflow reference for the review steps.

The skill expects the breezing log and Judgment Ledger to exist in the project, and it uses a Go package with tests for the core logic. Its SKILL.md is written in Japanese.

When your agent uses it

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (4 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the harness plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Chachamaru127/claude-code-harness
/plugin install harness@claude-code-harness-marketplace

Or copy only this skill to ~/.claude/skills/failure-codifier:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/failure-codifier &&
cp -R "$tmp/opencode/skills/failure-codifier" ~/.claude/skills/failure-codifier &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/failure-codifier inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/failure-codifier to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/failure-codifier &&
cp -R "$tmp/opencode/skills/failure-codifier" ~/.agents/skills/failure-codifier &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/failure-codifier inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/failure-codifier to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/failure-codifier &&
cp -R "$tmp/opencode/skills/failure-codifier" ~/.cursor/skills/failure-codifier &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/failure-codifier inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Chachamaru127/claude-code-harness.git --path opencode/skills/failure-codifier

Or copy the folder to ~/.gemini/skills/failure-codifier yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/failure-codifier:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/failure-codifier &&
cp -R "$tmp/opencode/skills/failure-codifier" ~/.copilot/skills/failure-codifier &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/failure-codifier inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git

Then copy claude-code-harness/opencode/skills/failure-codifier into your agent's skills folder as failure-codifier. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Recurring failure extraction
Scans orchestration logs and the Judgment Ledger for repeated failure patterns.
Dry-run rule proposals
Outputs failure-rule.v1 candidates as JSON without touching SSOT files.
Confidence scoring
Assigns medium or high confidence based on how often a pattern occurs.
Human-approved promotion
Suggests patterns.md or decisions.md targets that require manual approval.
Go test suite
Includes a Go test command for the failure codifier core package.

Good for

  • Find repeated failures in recent orchestration runs
  • Propose rules from past agent mistakes for review
  • Check which failure patterns have enough occurrences to codify
  • Prepare candidate entries for patterns.md or decisions.md

Failure codifier FAQ

What does the skill change in my project?

It is read-only. The dry-run script prints proposals to stdout and does not write to patterns.md or decisions.md.

How are proposals promoted into SSOT files?

Promotion is proposal-only and requires human approval. The skill forbids automatic promotion and direct edits by the codifier.

What confidence thresholds are used?

A pattern with at least three occurrences gets medium confidence, and at least five occurrences gets high confidence.

How do I run Failure codifier?

Run the failure-codifier-propose script with the --dry-run flag, which outputs a JSON array of failure-rule.v1 candidates.

How do I install Failure codifier in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/failure-codifier to use it in all your projects, or to .claude/skills/failure-codifier in one project. Or install the harness plugin, which includes it: /plugin marketplace add Chachamaru127/claude-code-harness, then /plugin install harness@claude-code-harness-marketplace.

Does Failure codifier run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Failure codifier?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Failure codifier?

The closest alternatives to Failure codifier are Correct, Ci, Skill authoring, Code review and Japanese writing drafter.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Chachamaru127/claude-code-harness

  1. Guards upstream Claude and Codex update reviews against docs-only feature additions

    • Open source
    • 3.2K GitHub stars
    • Developer tools
  2. Lets an agent drive a browser via the agent-browser CLI for UI checks and forms

    • Open source
    • 3.2K GitHub stars
    • Browser automation
  3. Diagnoses failing CI pipelines and proposes fixes for build and test errors

    • Open source
    • 3.2K GitHub stars
    • Developer tools
  4. Gets a read-only second opinion from Cursor's Composer agent on questions and designs

    • Open source
    • 3.2K GitHub stars
    • Developer tools
  5. Hands one write task to Cursor Composer in an isolated worktree, then reviews

    • Open source
    • 3.2K GitHub stars
    • Developer tools
  6. Gets an advisory second-opinion review of a diff from Cursor Composer, read-only

    • Open source
    • 3.2K GitHub stars
    • Developer tools