跳到正文
Skillpedia
提示词与 LLM5.1k · #15156

omh-rules-distill

它能做什么

该技能从旧的提示词、审阅和失败记录中找出反复出现的经验,并把它们整理成规则构想。适合维护 AI 智能体指令的人。

适用场景

  • ✓当你有许多过去的失败记录,想找出反复出现的经验时。
  • ✓当你的智能体指导内容越来越多,你想找出重复或冲突的规则时。
  • ✓当你想把工作习惯整理成书面规则,并在使用前经过审阅时。

技能链接

https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-rules-distill/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-rules-distill/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请查看我们最近失败的运行记录,列出可以写入智能体指令的、反复出现的经验。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体阅读你提供的示例,把反复出现的原则归类,并列出规则候选项,同时注明重复和冲突之处。在你批准之前,任何内容都不会改变。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.
  • The user wants durable factual project memory; use omh-wiki or memory curation.
  • 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.

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; a candidate resting on one observation stays needs-evidence in review_queue/v1.
  • 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 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.

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 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 active profile's Hermes home) as a source like a review or a trace: it records which skills the curator consolidated, archived, or created in that run, and one report is one observation, never repeated evidence by itself.

Required inputs:

  • source corpus: skills, prompts, traces, reviews, failures, or docs
  • destination boundary: AGENTS, skills, prompt, docs, memory, check, or no-write review
  • rule granularity and acceptance criteria
  • reviewer or approval requirement

Expected outputs:

  • rules_distillation_plan/v1
常见问题

它会自动修改我的智能体指令吗?

不会。它只准备候选项,任何改动都要等你批准。

如果某条经验只出现过一次怎么办?

该技能会把它保留为低置信度的候选项,而不是确定的规则。

它会保存关于我项目的事实吗?

不会。项目事实由单独的笔记技能负责。

详情

作者的原始描述

[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.

repo: rlaope/oh-my-hermes

热度

GitHub 星标
5.1k
排名
#15156
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能