失败模式提取与编码
failure-codifier
从 breezing 编排日志和 Judgment Ledger 中提取反复出现的失败模式,生成带置信度分数的 failure-rule.v1 提案。将 SSOT 提升到 patterns.md 或 decisions.md 仅限提案 —— 需要人工批准。当用户提到 failure codifier、失败模式、自学习循环、codify failures 或 failure-rule 提案时使用该技能。不要为以下情况加载:直接编辑 SSOT、自动提升,或与失败分析无关的实现。
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 3.2k
- Forks
- 306
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.
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
当用户要求通知其他会话、请求会话交接、说'告诉其他智能体',或需要跨会话传递消息时使用此技能。
记忆与 SSOT 管理
memory
管理 SSOT(单一事实来源)、记忆及跨工具记忆搜索。负责维护 decisions.md 和 patterns.md。当用户提到 memory、SSOT、decisions.md、patterns.md、合并、迁移、SSOT 提升、同步记忆、保存经验、记忆搜索、harness-mem、过往决策或记录此事时使用。请勿在以下场景加载:实现工作、评审、临时笔记或会话内日志记录。
文件清理与归档
maintenance
文件清理与归档。整理臃肿的 Plans.md、session-log.md、旧日志和状态文件。触发词:/maintenance、cleanup、archive、organize、split session-log。请勿在以下场景加载:实现、评审、发布、新功能开发。
日文写作规则提案起草
japanese-writing-drafter
检测操作员是否在对话中途纠正了智能体的日文措辞(重写句子、指出风格问题、说'这个措辞不好,改成 X 这样'),并将一条待定写作规则提案起草到 ~/.claude/writing-lint/proposals.jsonl 中,供人工后续审阅。本技能是 proposals.jsonl 的唯一写入者——它从不编辑 rules.jsonl,也从不将 status 设置为 pending 以外的任何值。将规则提升到 rules.jsonl 仅通过人工运行 scripts/writing-rule-approve.sh 完成。当用户提到 writing-rule proposal、表現を直して、文体を直して、その言い方はNG、writing lint 提案、指摘をルール化して时使用。不要为以下场景加载:批准或拒绝提案(使用 scripts/writing-rule-approve.sh)、列出资定提案(使用 scripts/writing-rule-list.sh)、或依据现有词典扫描文本(由 writinglint 引擎 / PostToolUse hook 完成)。