omk-agent

GitHub

将用户输入的原则、决策或行为准则提取并持久化存储到 knowledge/rules.md 中,支持去重、严重性分级及数量限制。

skills/omk-agent/SKILL.md KaimingWan/oh-my-kiro

Trigger Scenarios

用户说 'add rule' 或 'new principle' 要求将架构决策或工作流原则固化为规则

Install

npx skills add KaimingWan/oh-my-kiro --skill omk-agent -g -y
More Options

Use without installing

npx skills use KaimingWan/oh-my-kiro@omk-agent

指定 Agent (Claude Code)

npx skills add KaimingWan/oh-my-kiro --skill omk-agent -a claude-code -g -y

安装 repo 全部 skill

npx skills add KaimingWan/oh-my-kiro --all -g -y

预览 repo 内 skill

npx skills add KaimingWan/oh-my-kiro --list

SKILL.md

Frontmatter
{
    "name": "omk-agent",
    "description": "Distill a top-level principle into knowledge\/rules.md. Trigger when user says 'add rule', 'new principle', 'enforce this', '@agent', or wants to codify an architectural decision, workflow principle, or behavioral guideline into persistent rules.",
    "argument-hint": "[principle to capture]",
    "disable-model-invocation": true
}

Trigger Examples

  • "@agent 所有 JSON 操作必须用 jq"
  • "add this as a permanent rule"
  • "enforce: never skip tests"
  • "把这个原则写进规则"
  • "@agent submodule 修改必须走 worktree"

Agent — Distill Top-Level Principle

Capture a principle into knowledge/rules.md as a staged rule.

Input

$ARGUMENTS

Process

  1. If no input provided, ask user: "What principle should I capture?"
  2. Extract: trigger scenario + DO/DON'T action + keywords
  3. Check dedup: grep -iw keywords in knowledge/rules.md and knowledge/episodes.md
    • Already in rules → tell user, skip
    • Already in episodes with same meaning → tell user, suggest upgrading to rule
  4. Determine severity: 🔴 (critical, always inject) or 🟡 (relevant, keyword-matched)
  5. Find or create matching section header ## [keyword1,keyword2] in knowledge/rules.md
  6. Append rule under that section, format: 🔴 N. SUMMARY or 🟡 N. SUMMARY
  7. Cap: max 5 rules per section, max 30 rules total. Warn if approaching limit.
  8. Output: 📝 Captured → rules.md: 'SUMMARY'

Rules

  • Summary must contain actionable DO/DON'T, not narrative
  • Keywords: 1-3 english technical terms, ≥4 chars each, comma-separated
  • Default severity: 🟡 (only use 🔴 for principles that should apply to EVERY conversation)

Version History

  • ba228be Current 2026-07-24 21:07

Same Skill Collection

skills/omk-context7-docs/SKILL.md
skills/omk-debugging/SKILL.md
skills/omk-finishing/SKILL.md
skills/omk-know/SKILL.md
skills/omk-pdf-gen/SKILL.md
skills/omk-planning/SKILL.md
skills/omk-reviewing/SKILL.md
skills/omk-self-reflect/SKILL.md
skills/omk-skill-creation/SKILL.md
skills/omk-stitch/SKILL.md
skills/omk-verification/SKILL.md
skills/omk-youtube/SKILL.md
skills/omk-coding/SKILL.md

Metadata

Files
0
Version
ba228be
Hash
5b347483
Indexed
2026-07-24 21:07

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 02:50
浙ICP备14020137号-1 $Гость$