Rules Distill
This is a Hermes-native rules-distill workflow skill.
Why This Exists
rules-distill gives OMH a disciplined way to learn from large skill ecosystems like ECC without wholesale copying: extract principles, review them, then patch OMH only through explicit verified work.
Do Not Use When
- The user wants a single workflow route regression; use
workflow-learning.
- The user wants durable factual project memory; use
wiki or memory curation.
- The user already approved a concrete code/doc change; use the implementation workflow.
Examples
Good example:
- Prompt: rules-distill 최근 실패 trace와 스킬들을 보고 OMH AGENTS에 넣을 만한 반복 원칙 후보만 뽑아줘.
- Expected behavior: Prepare principle_candidate_set/v1, duplication/conflict report, review queue, and approved patch handoff only after approval.
- Why: The request is meta-guidance learning and needs review before mutating rules.
Bad example:
- Prompt: rules-distill 한 번 본 실패를 바로 모든 스킬 규칙으로 써버려.
- Expected behavior: Keep it as a low-confidence candidate or regression case until repeated evidence and review approval exist.
- Why: Rule distillation should not turn one-off anecdotes into global behavior.
Completion Checklist
- The durable fact, source evidence, retrieval hint, and staleness risk are recorded.
- Uncertain or conflicting knowledge is marked as review-needed rather than permanent truth.
- Separate coding or docs tasks are extracted instead of buried in notes.
Recovery Notes
- If source evidence conflicts, route to memory or knowledge review before writing durable guidance.
- If the fact may be stale, record the staleness warning and next refresh action.
Workflow Lane
- Current lane: Automation and status (
achievements, workspace-audit, production-audit, automation-blueprint, github-event-ops, github-issue-intake, buzz, agent-board, +35 more) - schedules, status, health, and ops review.
- If intent belongs to another lane, hand back to
oh-my-hermes or name the adjacent workflow.
- Shared product, routing, compatibility, and evidence rules:
omh-routing/references/skill-common-rail.md.
Use When
Use when Hermes should turn repeated workflow lessons, skill behavior, review comments, or failure traces into candidate rules that humans can review before docs or catalog changes.
Strong routing signals: `rules-distill`, `rules distill`, `distill rules`, `rule distillation`, `principle distill`, `skill principles`, `extract agent rules`, `turn traces into rules`, `policy distill`, `guidance distill`, `규칙 증류`, `원칙 추출`, `스킬 원칙`, `프롬프트 규칙`
Catalog Metadata
Category: knowledge
Phase: rules-distillation
Hermes role: memory-keeper
Quality tier: rules-distillation-gated
Reasoning demand: light
Quality bar:
- Collect repeated evidence before proposing a rule.
- Deduplicate against existing guidance and name conflicts or narrower scopes.
- Use imperative, testable wording and include non-goals for each candidate.
- Require review approval before any patch handoff or generated-skill update.
Handoff policy:
Keep principle extraction and candidate review in Hermes. Editing AGENTS.md, catalog data, prompts, skills, or docs requires explicit approved implementation work and verification.
Required inputs:
- source corpus: skills, prompts, traces, reviews, failures, or docs
- destination boundary: AGENTS, skill catalog, prompt, docs, memory, or no-write review
- rule granularity and acceptance criteria
- reviewer or approval requirement
Expected outputs:
- rules_distillation_plan/v1
- principle_candidate_set/v1
- duplication_conflict_report/v1
- review_queue/v1
- approved_patch_handoff/v1 when approved
- not-evidence boundary
Artifact expectations:
- principle_candidate_set/v1 with source references, repeated pattern, candidate wording, scope, non-goals, and risk
- duplication_conflict_report/v1 with already-covered rules, conflicts, and stale guidance
- review_queue/v1 separating proposed, approved, rejected, deferred, and needs-evidence candidates
Safety rules:
- Do not silently mutate skills, prompts, AGENTS.md, docs, memory, or catalog data from a distillation result.
- Do not promote one-off preferences, weak anecdotes, or stale traces into global rules.
- Keep observed sources, inferred principles, candidate wording, review state, and implementation patches separate.
Runtime Evidence
Preferred harness for this skill: rules-distill.
omh runtime record --skill rules-distill --harness rules-distill --status started
Record observed delegation results; otherwise return not_available or not_observed.
Prepared OMH routing is not execution, review, CI, merge-readiness, or merge evidence.
- Treat wrapper memory/context summaries as advisory local context, not proof of opaque Hermes memory reads or changes.
Preserve workflow intent and stop conditions; verify before claiming completion.
Use Hermes-native subagent/delegation features when available: native subagents -> Hermes delegation when available, otherwise sequential lanes.
Shared product, compatibility, topology, memory, harness, and execution rules: omh-routing/references/skill-common-rail.md. Load it when applicable; otherwise name an unavailable capability.
1---
2name: "omh-rules-distill"
3description: "[omh] Hermes Rules Distill workflow: extract repeated principles from skills, prompts, traces, reviews, and failures into reviewed rule candidates without auto-mutating guidance. Use when the user says: rules-distill, rules distill, distill rules, rule distillation, principle distill, skill principles, extract agent rules, turn traces into rules."
4metadata:
5 hermes:
6 tags: [workflow, oh-my-hermes, knowledge]
7 category: knowledge
8 phase: rules-distillation
9 role: memory-keeper
10 quality_tier: rules-distillation-gated
11---
12
13# Rules Distill
14
15This is a Hermes-native `rules-distill` workflow skill.
16
17## Why This Exists
18
19`rules-distill` gives OMH a disciplined way to learn from large skill ecosystems like ECC without wholesale copying: extract principles, review them, then patch OMH only through explicit verified work.
20
21## Do Not Use When
22
23- The user wants a single workflow route regression; use `workflow-learning`.
24- The user wants durable factual project memory; use `wiki` or memory curation.
25- The user already approved a concrete code/doc change; use the implementation workflow.
26
27## Examples
28
29Good example:
30
31- Prompt: rules-distill 최근 실패 trace와 스킬들을 보고 OMH AGENTS에 넣을 만한 반복 원칙 후보만 뽑아줘.
32- Expected behavior: Prepare principle_candidate_set/v1, duplication/conflict report, review queue, and approved patch handoff only after approval.
33- Why: The request is meta-guidance learning and needs review before mutating rules.
34
35Bad example:
36
37- Prompt: rules-distill 한 번 본 실패를 바로 모든 스킬 규칙으로 써버려.
38- Expected behavior: Keep it as a low-confidence candidate or regression case until repeated evidence and review approval exist.
39- Why: Rule distillation should not turn one-off anecdotes into global behavior.
40
41## Completion Checklist
42
43- The durable fact, source evidence, retrieval hint, and staleness risk are recorded.
44- Uncertain or conflicting knowledge is marked as review-needed rather than permanent truth.
45- Separate coding or docs tasks are extracted instead of buried in notes.
46
47## Recovery Notes
48
49- If source evidence conflicts, route to memory or knowledge review before writing durable guidance.
50- If the fact may be stale, record the staleness warning and next refresh action.
51
52## Workflow Lane
53
54- Current lane: **Automation and status** (`achievements`, `workspace-audit`, `production-audit`, `automation-blueprint`, `github-event-ops`, `github-issue-intake`, `buzz`, `agent-board`, `+35 more`) - schedules, status, health, and ops review.
55- If intent belongs to another lane, hand back to `oh-my-hermes` or name the adjacent workflow.
56- Shared product, routing, compatibility, and evidence rules: `omh-routing/references/skill-common-rail.md`.
57
58## Use When
59
60Use when Hermes should turn repeated workflow lessons, skill behavior, review comments, or failure traces into candidate rules that humans can review before docs or catalog changes.
61
62 Strong routing signals: `rules-distill`, `rules distill`, `distill rules`, `rule distillation`, `principle distill`, `skill principles`, `extract agent rules`, `turn traces into rules`, `policy distill`, `guidance distill`, `규칙 증류`, `원칙 추출`, `스킬 원칙`, `프롬프트 규칙`
63
64## Catalog Metadata
65
66Category: `knowledge`
67Phase: `rules-distillation`
68Hermes role: `memory-keeper`
69Quality tier: `rules-distillation-gated`
70Reasoning demand: `light`
71
72Quality bar:
73
74- Collect repeated evidence before proposing a rule.
75- Deduplicate against existing guidance and name conflicts or narrower scopes.
76- Use imperative, testable wording and include non-goals for each candidate.
77- Require review approval before any patch handoff or generated-skill update.
78
79Handoff policy:
80
81Keep principle extraction and candidate review in Hermes. Editing AGENTS.md, catalog data, prompts, skills, or docs requires explicit approved implementation work and verification.
82
83Required inputs:
84
85- source corpus: skills, prompts, traces, reviews, failures, or docs
86- destination boundary: AGENTS, skill catalog, prompt, docs, memory, or no-write review
87- rule granularity and acceptance criteria
88- reviewer or approval requirement
89
90Expected outputs:
91
92- rules_distillation_plan/v1
93- principle_candidate_set/v1
94- duplication_conflict_report/v1
95- review_queue/v1
96- approved_patch_handoff/v1 when approved
97- not-evidence boundary
98
99Artifact expectations:
100
101- principle_candidate_set/v1 with source references, repeated pattern, candidate wording, scope, non-goals, and risk
102- duplication_conflict_report/v1 with already-covered rules, conflicts, and stale guidance
103- review_queue/v1 separating proposed, approved, rejected, deferred, and needs-evidence candidates
104
105Safety rules:
106
107- Do not silently mutate skills, prompts, AGENTS.md, docs, memory, or catalog data from a distillation result.
108- Do not promote one-off preferences, weak anecdotes, or stale traces into global rules.
109- Keep observed sources, inferred principles, candidate wording, review state, and implementation patches separate.
110
111## Runtime Evidence
112
113Preferred harness for this skill: `rules-distill`.
114
115```sh
116omh runtime record --skill rules-distill --harness rules-distill --status started
117```
118
119Record observed delegation results; otherwise return `not_available` or `not_observed`.
120Prepared OMH routing is not execution, review, CI, merge-readiness, or merge evidence.
121- Treat wrapper memory/context summaries as advisory local context, not proof of opaque Hermes memory reads or changes.
122Preserve workflow intent and stop conditions; verify before claiming completion.
123
124Use Hermes-native subagent/delegation features when available: native subagents -> Hermes delegation when available, otherwise sequential lanes.
125
126Shared product, compatibility, topology, memory, harness, and execution rules: `omh-routing/references/skill-common-rail.md`. Load it when applicable; otherwise name an unavailable capability.