# Failure codifier

> Failure codifier is an open-source agent skill for developer tools. Finds recurring failure patterns in agent logs and proposes reviewable rules. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/Chachamaru127/claude-code-harness/tree/main/opencode/skills/failure-codifier
- **Repository:** https://github.com/chachamaru127/claude-code-harness
- **GitHub stars:** 3,232
- **License:** MIT
- **Skill name:** failure-codifier
- **Collection:** https://github.com/Chachamaru127/claude-code-harness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Chachamaru127/claude-code-harness/tree/HEAD/opencode/skills/failure-codifier)
- [License: MIT](https://github.com/Chachamaru127/claude-code-harness/tree/HEAD/opencode/skills/failure-codifier)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [Correct](https://ai-powered.com/skills/correct): Correct is an open-source agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.
- [Skill authoring](https://ai-powered.com/skills/skill-authoring): Skill authoring is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review): Code review is an open-source agent skill for developer tools.
- [Japanese writing drafter](https://ai-powered.com/skills/japanese-writing-drafter-chachamaru127): Japanese writing drafter is an open-source agent skill for developer tools.
- [Writing rules](https://ai-powered.com/skills/writing-rules-xiaolai): Writing rules is an open-source agent skill for developer tools.
- [Agent introspection debugging](https://ai-powered.com/skills/agent-introspection-debugging): Agent introspection debugging is an open-source agent skill for developer tools.
- [Code simplifier](https://ai-powered.com/skills/code-simplifier): Code simplifier is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/failure-codifier-chachamaru127
