omh-rules-distill
Skill này làm gì
Skill tìm các bài học lặp lại trong prompt, bản đánh giá và lỗi cũ, rồi biến chúng thành ý tưởng quy tắc. Dành cho người duy trì hướng dẫn cho agent AI.
Khi nào nên dùng
- ✓Khi bạn có nhiều lỗi trong quá khứ và muốn tìm những bài học cứ lặp đi lặp lại.
- ✓Khi hướng dẫn cho agent của bạn đã dài ra và bạn muốn tìm quy tắc trùng lặp hoặc mâu thuẫn.
- ✓Khi bạn muốn biến thói quen làm việc thành quy tắc bằng văn bản, được xem xét trước khi dùng.
Liên kết skill
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-rules-distill/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xem các lần chạy thất bại gần đây và liệt kê những bài học lặp lại có thể trở thành quy tắc trong hướng dẫn cho agent của chúng tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc các ví dụ bạn cung cấp, nhóm các nguyên tắc lặp lại, và liệt kê các quy tắc ứng viên cùng những điểm trùng lặp và mâu thuẫn. Không có gì thay đổi cho đến khi bạn phê duyệt.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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-wikior 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.mdandrun.jsonunder 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
Câu hỏi thường gặp
Skill có tự thay đổi hướng dẫn cho agent của tôi không?
Không. Skill chỉ chuẩn bị ứng viên, và mọi thay đổi chờ bạn phê duyệt.
Nếu một bài học chỉ xảy ra một lần thì sao?
Skill giữ nó như một ứng viên có độ tin cậy thấp thay vì một quy tắc chắc chắn.
Skill có lưu dữ kiện về dự án của tôi không?
Không. Dữ kiện dự án do một skill ghi chú riêng xử lý.
Chi tiết
Mô tả gốc của tác giả
[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
Độ phổ biến
- Sao GitHub
- 5.1k
- Vị trí xếp hạng
- #15156
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
omh-accessibility-audit
5.1kGiúp agent của bạn kiểm tra màn hình hoặc luồng có khoảng trống về khả năng truy cập không, như dùng bàn phím, nhãn trình đọc màn hình, tương phản và vùng chạm.
omh-adversarial-consensus
5.1kGiúp agent của bạn tấn công một đề xuất kỹ thuật từ nhiều góc độ độc lập trước khi bạn cam kết, rồi tổng hợp những gì còn đứng vững.
omh-agent-debug
5.1kGiúp agent của bạn tìm hiểu vì sao một agent AI khác bị kẹt, lặp vòng hoặc trôi khỏi nhiệm vụ, và gợi ý cách phục hồi nhỏ nhất an toàn.
omh-agent-instructions
5.1kGiúp agent của bạn viết hoặc cập nhật tệp hướng dẫn, như AGENTS.md hoặc CLAUDE.md, để nói cho các công cụ AI cách làm việc trong một dự án.
Skill tương tự
writing-skills
311kDạy agent của bạn viết skill mới và kiểm thử từng skill trước, kiểm tra xem skill có thực sự thay đổi cách agent hành xử hay không.
writing-for-agents
310kGiải thích cách viết hướng dẫn rõ ràng cho agent AI, gồm skill, tệp AGENTS.md và CLAUDE.md, để agent cư xử nhất quán.
bengali-nlp
280kGiúp agent của bạn xử lý văn bản tiếng Bengali, hỗ trợ hiểu ngôn ngữ này, chuẩn hóa văn bản và xử lý các đặc điểm riêng của nó.