failure-codifier
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.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 3.2k
- Forks
- 305
01 前言 Front Matter
- 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" ]
- argument-hint
- [propose|explain]
- description-en
- 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.
- description-ja
- breezing ログと Judgment Ledger から再現失敗パターンを抽出し、confidence 付き failure-rule.v1 候補を提案する。patterns.md / decisions.md への昇格は human-approval-required(自動昇格禁止)。Use when user mentions failure codifier, 失敗パターン, self-learning loop, codify failures. Do NOT load for: SSOT 直接編集, 自動昇格.
- user-invocable
- true
02 资源文件 1
- 参考文档references/promotion-workflow.md2.5 KB
03 SKILL.md 正文
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 提案(推奨)
./scripts/failure-codifier-propose.sh --dry-run
stdout は JSON 配列(failure-rule.v1 候補)。SSOT ファイルには一切書き込みません。
Go テスト
cd go && go test ./internal/failurecodifier/... -count=1
参照
- 昇格ワークフロー: references/promotion-workflow.md
- Schema:
templates/schemas/failure-rule.v1.json - Core:
go/internal/failurecodifier/
禁止事項
patterns.md/decisions.mdへの Write / Edit(human 承認後も codifier 経由では不可)AutoPromote/ unattended SSOT 更新- Plans.md の
cc:*マーカー変更
04 同仓库更多 Skills
escape-skill
暂无简介
zz-review-empty
暂无简介
session-send
This skill should be used when the user asks to notify other session, requests a session handoff, says tell other agent, or needs a cross-session message.
memory
Manage SSOT, memory, and cross-tool memory search. Guardian of decisions.md and patterns.md. Use when user mentions memory, SSOT, decisions.md, patterns.md, merging, migration, SSOT promotion, sync memory, save learnings, memory search, harness-mem, past decisions, or record this. Do NOT load for: implementation work, reviews, ad-hoc notes, or in-session logging.
maintenance
File cleanup and archiving. Tidies up bloated Plans.md, session-log.md, old logs, and state files. Trigger: /maintenance, cleanup, archive, organize, split session-log. Do NOT load for: implementation, review, release, new feature development.
japanese-writing-drafter
Detect when the operator corrects the agent's Japanese phrasing mid-conversation (rewrites a sentence, calls out a style problem, says 'this wording is bad, say it like X instead') and draft a pending writing-rule proposal into ~/.claude/writing-lint/proposals.jsonl for later human review. This skill is the ONLY writer of proposals.jsonl — it never edits rules.jsonl and never sets status to anything but pending. Promotion to rules.jsonl only happens via the human-run scripts/writing-rule-approve.sh. Use when user mentions writing-rule proposal, 表現を直して, 文体を直して, その言い方はNG, writing lint 提案, 指摘をルール化して. Do NOT load for: approving or rejecting proposals (use scripts/writing-rule-approve.sh), listing pending proposals (use scripts/writing-rule-list.sh), or scanning text against the existing dictionary (the writinglint engine / PostToolUse hook does that).