Skip to content
Agent Orchestration
Skill

/omh-rules-distill

[omh] Turn repeated lessons into written rules: 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,

From plugin
oh-my-hermes
5.7k158 skills

Claude Code

$ npx -y skills add rlaope/oh-my-hermes --skill omh-rules-distill --agent claude-code

SKILL.md

omh-rules-distill.SKILL.md
name: "omh-rules-distill"
description: "[omh] Turn repeated lessons into written rules: 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."
license: MIT
author: "oh-my-hermes maintainers"
metadata:
  hermes:
    tags: [workflow, oh-my-hermes, knowledge]
    category: knowledge
    phase: rules-distillation
    role: memory-keeper
    quality_tier: rules-distillation-gated
    related_skills: [omh-workflow-learning, omh-memory-new, omh-memory-sync, omh-agent-instructions, omh-model-compression]

Rules Distill

This is a Hermes-native `rules-distill` workflow skill.

Why This Exists

`rules-distill` exists because a repeated lesson buried in traces, reviews, and skill text changes behaviour only once it is written down as a rule, and a rule written from one anecdote does the opposite: it extracts candidate rules from a corpus the user names, checks them against what is already written, and hands approved ones to the destination the user chose; the method is adapted from ECC's rules-distill without wholesale copying.

Do Not Use When

  • The user wants a single workflow route regression; use `omh-workflow-learning`.
  • The user wants durable factual project memory; use `omh-memory-new`, or `omh-memory-sync` to curate what Hermes already holds.
  • The user already approved a concrete code/doc change; use the implementation workflow.
  • The ask is writing or keeping current the file an agent reads at startup -- AGENTS.md, CLAUDE.md, a Cursor rule; use `omh-agent-instructions`, which updates only its marked region.
  • The ask is shrinking a neural network's weights into a smaller student model; use `omh-model-compression`.

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

  • Every candidate in principle_candidate_set/v1 cites the repeated observations it rests on, counted as independent runs, sessions, or sources (one session counts once); a candidate resting on one observation stays needs-evidence in review_queue/v1, and two is tentative.
  • Every candidate is classed mechanical or judgement before it is worded. A mechanical candidate is a miss a machine can find from the text alone (a forbidden call, a disallowed import, a file in the wrong place), and its destination is a check (a linter rule, test, hook, or CI step); when the repository already has a check for it that never runs or no longer fails, the candidate is repairing that check, not adding another. Its approved_patch_handoff/v1 names the check and where it is wired, and sets as an acceptance criterion the run the implementer must observe: the check fails with the violation injected and passes once it is reverted. A mechanical candidate outside the chosen destination boundary is reported as a check proposal outside the boundary, never reworded as prose. Only judgement candidates, which need a reader (consistency across files, fit with the code around them), are worded as prose.
  • duplication_conflict_report/v1 names the existing rule or check each candidate repeats or contradicts, or says none was found and where it looked.
  • Nothing reached a destination without an approval recorded in review_queue/v1.

Recovery Notes

  • If a principle rests on one observation, retain its source reference in principle_candidate_set/v1, mark the rule tentative and needs-evidence in review_queue/v1, and hand back the candidate for repeated observations.
  • If approval is missing, retain principle_candidate_set/v1 and duplication_conflict_report/v1, mark implementation not_observed, and hand back review_queue/v1 without producing approved_patch_handoff/v1.
  • If skill_manage stages an approved change, retain the approved candidate and staged result, mark the skill update not_observed, and hand back the pending ID for the person's `/skills approve <id>`.

Workflow Lane

  • Current lane: **Automation and status** - schedules, status, health, and ops review.
  • If intent belongs to another lane, hand back to `omh-routing` or name the adjacent workflow.
  • Shared product, routing, compatibility, and evidence rules: `skill_view(name='omh-routing', file_path='references/skill-common-rail.md')`.

When to Use

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.
  • On Hermes, read a curator run report (`logs/curator/<run>/REPORT.md` and `run.json` under the act
Read more
@rlaope
Ships withoh-my-hermes

⚚ The ultrawork agent with AI coworkers wired into you

5.7k158 skills
Get the whole plugin

Stars on GitHub

Momentum

stars in total
5.7k
Star history of rlaope/oh-my-hermes on GitHub, a chart by star-history.com

Other skills on oh-my-hermes.

model-onboarding

model-onboarding

Onboard a new model generation or sibling into oh-my-hermes: probe router recognition, research the official contract, write…

@rlaope@rlaopeInstall Skill
review-sweep

review-sweep

Review oh-my-hermes pull requests that have not been reviewed at their current head commit. Run manually to sweep the open…

@rlaope@rlaopeInstall Skill
triage-sweep

triage-sweep

Backfill labels across oh-my-hermes issues and pull requests. Run manually to sweep everything currently unlabeled, or pass a…

@rlaope@rlaopeInstall Skill
dag-ulw

dag-ulw

[omh] Large multi-part job to run on its own: plan it as a graph of small nodes, run the ready ones in parallel through Hermes'…

@rlaope@rlaopeInstall Skill
omh-achievements

omh-achievements

[omh] Hermes badges unlocked and achievement progress: achievements observation: summarize hermes-achievements badges, tiers,…

@rlaope@rlaopeInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw4d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca1d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about omh-rules-distill.

Which coding agents can use omh-rules-distill?
omh-rules-distill installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.