omk-agent
Distill a top-level principle into knowledge/rules.md. Trigger when user says 'add rule', 'new principle', 'enforce this',…
Agent self-learning: promote recurring episodes to rules, capture complex corrections. Trigger when hook outputs 🔥 or ⬆️ (promotion needed), 🚨 (complex correction), or when user says 'reflect', 'learn from this', 'remember this', 'always do X', 'never do Y', '@reflect'. Also
$ npx -y skills add kaimingwan/oh-my-kiro --skill omk-self-reflect --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/omk-self-reflectContext preview
The summary Claude sees to decide when to auto-load this skill.
Agent self-learning: promote recurring episodes to rules, capture complex corrections. Trigger when hook outputs 🔥 or ⬆️ (promotion needed), 🚨 (complex correction), or when user says 'reflect', 'learn from this', 'remember this', 'always do X', 'never do Y', '@reflect'. Also
name: omk-self-reflect description: "Agent self-learning: promote recurring episodes to rules, capture complex corrections. Trigger when hook outputs 🔥 or ⬆️ (promotion needed), 🚨 (complex correction), or when user says 'reflect', 'learn from this', 'remember this', 'always do X', 'never do Y', '@reflect'. Also trigger when same mistake pattern appears ≥3 times in episodes."
1. **Promotion execution**: When hook outputs 🔥 or ⬆️, read episodes.md, distill into 1-2 line rule, propose to user, write to rules.md if approved. Mark source episodes as `promoted`.
2. **Complex insight capture**: When hook outputs 🚨 (complex) and the correction is too complex for auto-capture (no simple DO/DON'T pattern), help user articulate and write to episodes.md via the same format.
NOT responsible for: daily capture (hook does it), dedup (hook does it), quality reporting (hook does it).
| Scenario | Target | |----------|--------| | Top-level principle (user approved) | AGENTS.md / CLAUDE.md (Principles section) | | Promotion (≥3 same pattern) | knowledge/rules.md (matching keyword section) | | Complex insight | knowledge/episodes.md | | Code-enforceable rule | .kiro/rules/enforcement.md |
When user explicitly approves writing to a protected instruction file, agent MUST autonomously execute the full three-step flow — do NOT wait for the human to do it manually: 1. `touch .skip-instruction-guard` 2. Write the change 3. `rm -f .skip-instruction-guard`
This bypasses the pre-write hook temporarily. Only do this when user has clearly approved the content in the current conversation.
`DATE | STATUS | KEYWORDS | SUMMARY`
1. Read episodes.md, find keywords appearing ≥3 times in active episodes 2. Distill into 1-2 line rule with DO/DON'T + trigger scenario 3. Read knowledge/rules.md section headers (`## [keywords]`) 4. **Clustering** — choose target section by semantic match:
5. Propose to user for approval (show target section) 6. If approved: append rule to chosen section, change source episodes status to `promoted` 7. Output: ⬆️ Promoted to rules.md [section]: 'RULE'
Note: promoted episodes are auto-cleaned by context-enrichment on next session start.
**High confidence (90%)**:
**Medium confidence (80%)**:
1. Confirm: `📝 Learning captured: '[preview]'` 2. **Write to target file immediately** (no queue) 3. Continue answering the user's question
Your AI agent forgets everything. Mine doesn't. oh-my-kiro is a framework that gives your AI coding agent persistent memory, deterministic workflows, and self-evolving intelligence. Like oh-my-zsh for Zsh — but for AI agents. Day 1: generic agent.
Distill a top-level principle into knowledge/rules.md. Trigger when user says 'add rule', 'new principle', 'enforce this',…
Enforces coding best practices: deep-read before modify, LSP-first navigation, TDD red-green-refactor, minimal changes,…
Fetch current library/framework documentation via Context7. Trigger when user asks about libraries, frameworks, API references,…
Systematic debugging: reproduce → hypothesize → verify → fix. Trigger when encountering bugs, test failures, errors, crashes,…
Branch completion workflow: verify tests → present 4 options (merge/PR/keep/discard) → execute → cleanup worktree. Trigger when…
Capture knowledge into episodes.md. Trigger when user says 'remember', 'capture this', 'lesson learned', 'note this', '@know', or…