원클릭으로
rule-patcher
Propose, test, and promote patches to rules, workflows, and skills via replay-gated promotion
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Propose, test, and promote patches to rules, workflows, and skills via replay-gated promotion
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Extracting key findings from AI/ML research papers.
Auditing frontend components for WCAG AA compliance.
Guide users through resolving 4xx and 5xx API errors.
Diagnosing failed GitHub Action or GitLab CI runs.
Framework to analyze and summarize competitor features and market positioning.
Walk new users through the initial setup and configuration.
| name | rule-patcher |
| description | Propose, test, and promote patches to rules, workflows, and skills via replay-gated promotion |
Proposes mutations to the agent's rules, workflows, and skills based on incident data. V4: includes Failure Genome replay-gated promotion.
After a high-impact incident (Impact ≥ 7) or when a failure family is detected.
| Type | Target | Example | When to Use |
|---|---|---|---|
rule_patch | .agents/rules/*.md | Add new invariant | Missing knowledge — no rule existed |
workflow_patch | .agents/workflows/*.md | Add new check step | Process gap — steps skipped |
skill_patch | .agents/skills/*/SKILL.md | Extend extraction | Capability gap |
verifier_patch | Checklist or test | Add verification check | Invariant was clear but not enforced |
doc_patch | docs/*.md | Update architecture | Documentation drift |
From the incident and its failure genome:
Write the proposed change:
patch_type: rule_patch
target_file: .agents/rules/10-truthfulness-and-no-fallbacks.md
change: Add CSS variable detection to pre-commit checklist
rationale: CSS var(--x) passes presence check but is unresolvable
source_genome: FG-000004
THIS IS THE CORE V4 MECHANISM
┌─ 1. Is the current incident FIXED? ──────────────────┐
│ NO → STOP. Fix first. │
│ YES ↓ │
├─ 2. Are there SIMILAR genomes in the family? ────────┤
│ NO → Promote with "replay: not_run" (first member) │
│ YES ↓ │
├─ 3. Would this patch have PREVENTED similar ones? ───┤
│ For each family member: │
│ - Read its incident │
│ - Simulate: would patch have caught it? │
│ - Score: PASS / FAIL │
│ ↓ │
├─ 4. Pass rate ≥ 60%? ───────────────────────────────┤
│ NO → Reject or refine the patch │
│ YES ↓ │
├─ 5. Holdout regression? ────────────────────────────┤
│ Pick 1-2 genomes from DIFFERENT family │
│ Does patch obviously break them? │
│ YES → Reject │
│ NO ↓ │
├─ 6. PROMOTE ────────────────────────────────────────┤
│ Apply patch to target file │
│ Update genome: promotion_decision = "promoted" │
│ Update genome: replay.status = "passed" │
│ Update genome: replay.pass_rate = actual_rate │
│ Commit: "🧬 genome-promoted: [family] → [type]" │
└──────────────────────────────────────────────────────┘
Update the source genome file:
{
"promotion_decision": "promoted",
"proposed_patch_types": ["rule_patch"],
"replay": {
"status": "passed",
"family_sample_size": 3,
"holdout_sample_size": 2,
"pass_rate": 0.8,
"notes": "Patch would have prevented 4/5 similar incidents. No holdout regressions."
},
"notes": "Added CSS var detection to rule 10 pre-commit checklist"
}
{
"promotion_decision": "rejected",
"replay": {
"status": "failed",
"family_sample_size": 5,
"holdout_sample_size": 2,
"pass_rate": 0.4,
"notes": "Only prevented 2/5 family members. Too narrow."
},
"notes": "Patch too specific — only catches exact CSS var pattern, not general quality gate bypass"
}
After rejection: refine the patch or propose a different patch type.