Rules Distill
This is an OMH rules-distill workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
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.
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
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.
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
Use the current host's own tools and subagent/task mechanism when available;
otherwise run the same lanes sequentially or name the unavailable capability.
A prepared plan, handoff, checklist, or skill installation is not execution,
review, CI, merge-readiness, or merge evidence. Report actual tool results or
not_observed / not_available; never invent dispatch or host accounting.
Treat supplied context as advisory, not proof of hidden memory reads or writes.
State scope, constraints, verification, and the stop condition before work.
Supporting paths are relative to this skill directory; sibling skill paths are
relative to its parent. Resolve them from the host-provided skill base directory
({baseDir} on hosts that provide it), never a hardcoded install location.
A named workflow not installed here is unavailable, not permission to emulate
its host-specific capabilities. Verify through the real surface before done.
1---2name: omh-rules-distill-23description: [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.4---56# Rules Distill78This is an OMH `rules-distill` workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).910## Why This Exists1112`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.1314## Do Not Use When1516- The user wants a single workflow route regression; use `workflow-learning`.17- The user wants durable factual project memory; use `wiki` or memory curation.18- The user already approved a concrete code/doc change; use the implementation workflow.1920## Examples2122Good example:2324- Prompt: rules-distill 최근 실패 trace와 스킬들을 보고 OMH AGENTS에 넣을 만한 반복 원칙 후보만 뽑아줘.25- Expected behavior: Prepare principle_candidate_set/v1, duplication/conflict report, review queue, and approved patch handoff only after approval.26- Why: The request is meta-guidance learning and needs review before mutating rules.2728Bad example:2930- Prompt: rules-distill 한 번 본 실패를 바로 모든 스킬 규칙으로 써버려.31- Expected behavior: Keep it as a low-confidence candidate or regression case until repeated evidence and review approval exist.32- Why: Rule distillation should not turn one-off anecdotes into global behavior.3334## Completion Checklist3536- The durable fact, source evidence, retrieval hint, and staleness risk are recorded.37- Uncertain or conflicting knowledge is marked as review-needed rather than permanent truth.38- Separate coding or docs tasks are extracted instead of buried in notes.3940## Recovery Notes4142- If source evidence conflicts, route to memory or knowledge review before writing durable guidance.43- If the fact may be stale, record the staleness warning and next refresh action.44454647## Use When4849Use 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.5051 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`, `규칙 증류`, `원칙 추출`, `스킬 원칙`, `프롬프트 규칙`5253## Catalog Metadata5455Category: `knowledge`56Phase: `rules-distillation`57Quality tier: `rules-distillation-gated`58Reasoning demand: `light`5960Quality bar:6162- Collect repeated evidence before proposing a rule.63- Deduplicate against existing guidance and name conflicts or narrower scopes.64- Use imperative, testable wording and include non-goals for each candidate.65- Require review approval before any patch handoff or generated-skill update.6667Required inputs:6869- source corpus: skills, prompts, traces, reviews, failures, or docs70- destination boundary: AGENTS, skill catalog, prompt, docs, memory, or no-write review71- rule granularity and acceptance criteria72- reviewer or approval requirement7374Expected outputs:7576- rules_distillation_plan/v177- principle_candidate_set/v178- duplication_conflict_report/v179- review_queue/v180- approved_patch_handoff/v1 when approved81- not-evidence boundary8283Artifact expectations:8485- principle_candidate_set/v1 with source references, repeated pattern, candidate wording, scope, non-goals, and risk86- duplication_conflict_report/v1 with already-covered rules, conflicts, and stale guidance87- review_queue/v1 separating proposed, approved, rejected, deferred, and needs-evidence candidates8889Safety rules:9091- Do not silently mutate skills, prompts, AGENTS.md, docs, memory, or catalog data from a distillation result.92- Do not promote one-off preferences, weak anecdotes, or stale traces into global rules.93- Keep observed sources, inferred principles, candidate wording, review state, and implementation patches separate.9495## Runtime Evidence9697Use the current host's own tools and subagent/task mechanism when available;98otherwise run the same lanes sequentially or name the unavailable capability.99A prepared plan, handoff, checklist, or skill installation is not execution,100review, CI, merge-readiness, or merge evidence. Report actual tool results or101`not_observed` / `not_available`; never invent dispatch or host accounting.102Treat supplied context as advisory, not proof of hidden memory reads or writes.103State scope, constraints, verification, and the stop condition before work.104Supporting paths are relative to this skill directory; sibling skill paths are105relative to its parent. Resolve them from the host-provided skill base directory106(`{baseDir}` on hosts that provide it), never a hardcoded install location.107A named workflow not installed here is unavailable, not permission to emulate108its host-specific capabilities. Verify through the real surface before done.