Agent skill

Omk Self Reflect

by KaimingWan in KaimingWan/oh-my-kiro

Agent self-learning: promote recurring episodes to rules, capture complex corrections.

MITAuto-check passedAgent Workflows

Install Omk Self Reflect

skills CLI
$ npx skills add KaimingWan/oh-my-kiro --skill omk-self-reflect -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install KaimingWan/oh-my-kiro omk-self-reflect --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/KaimingWan/oh-my-kiro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/omk-self-reflect .claude/skills/omk-self-reflect && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
omk-self-reflect
GitHub stars
107
Token cost
~896 tokens
SKILL.md length
411 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
MIT

At a glance

Agent self-learning: promote recurring episodes to rules, capture complex corrections.

  • Works in 2 steps: Promotion execution: When hook outputs… → Complex insight capture: When hook…
  • Hook outputs 🔥
  • SKILL.md covers Trigger Examples, Scope (v3), Sync Targets and Writing to Protected Files…, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Omk Self Reflect is an agent skill from KaimingWan/oh-my-kiro. 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.

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. The licence is MIT.

When your agent uses it

  • Hook outputs 🔥
  • ⬆️ (promotion needed)
  • 🚨 (complex correction)
  • User says reflect

Example prompts

  • “reflect”
  • “learn from this”
  • “remember this”
  • “/omk-self-reflect”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Promotion execution: When hook outputs 🔥 or ⬆️, read episodes.md,
  2. Complex insight capture: When hook outputs 🚨 (complex) and the correction

What it can do on your machine

Read from SKILL.md and the folder at commit ba228be. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Omk Self Reflect loads about 896 tokens when it runs. Until then it costs about 90 tokens; SKILL.md has 411 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~90
When it runs · the whole SKILL.md, loaded when a task matches
~896

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from KaimingWan/oh-my-kiro at commit ba228be, republished under its MIT licence (© KaimingWan). 411 words, ~896 tokens.

Download SKILL.mdSave it as .claude/skills/omk-self-reflect/SKILL.md (or your agent's skills folder).
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.

Trigger Examples

  • "记住,以后都要这样做"
  • "always use jq for JSON, never sed"
  • "@reflect 把这个教训沉淀一下"
  • "I told you this before, capture it"
  • "这个错误犯了好几次了,升级成规则"

Self-Reflect — Agent Self-Learning System

Scope (v3)

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

Sync Targets

ScenarioTarget
Top-level principle (user approved)AGENTS.md / CLAUDE.md (Principles section)
Promotion (≥3 same pattern)knowledge/rules.md (matching keyword section)
Complex insightknowledge/episodes.md
Code-enforceable rule.kiro/rules/enforcement.md

Writing to Protected Files (AGENTS.md / CLAUDE.md / .claude/rules/)

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.

Episode Format

DATE | STATUS | KEYWORDS | SUMMARY

  • DATE: YYYY-MM-DD
  • STATUS: active / resolved / promoted
  • KEYWORDS: 1-3 english technical terms, ≥4 chars, comma-separated
  • SUMMARY: ≤80 chars, no | character, actionable DO/DON'T
Show full SKILL.md (191 more words)Show less

Promotion Process

  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:
    • Compare episode keywords with each section's keyword list
    • Pick the section with most keyword overlap + semantic relevance
    • If no section matches → create new ## [episode-keywords] section at end of file
    • If placing in existing section → append new keywords to section header if they add value
  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.

Trigger Patterns

High confidence (90%):

  • remember: / always:
  • don't ... unless
  • I told you

Medium confidence (80%):

  • no, use X / not X, use Y
  • you missed / why didn't you
Exclusion Patterns (Don't capture)
  • Questions ending with ?
  • Requests starting with please / help me
  • Messages over 300 characters without clear DO/DON'T pattern

On Detection

  1. Confirm: 📝 Learning captured: '[preview]'
  2. Write to target file immediately (no queue)
  3. Continue answering the user's question

© KaimingWan, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/omk-self-reflect of KaimingWan/oh-my-kiro.

Open the folder on GitHubat commit ba228be

Compare with similar skills

Omk Self Reflect next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Omk Self Reflect compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Omk Self Reflect this skillKaimingWan/oh-my-kiro107—~896Automated safety check: PassMIT
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k10 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k35 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers297k2 repos~5.1kAutomated safety check: PassMIT
Skill CreatorAzure/azqr79689 repos~8.2kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 10 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 35 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    297k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    796 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 7 repos~2.8k tokens
    Agent WorkflowsAuto-check passed

More from KaimingWan/oh-my-kiro

All 15 skills in this repo
  • Omk Research

    KaimingWan/oh-my-kiro

    Multi-level research: built-in knowledge → web search → Tavily deep research API.

    107 GitHub stars~827 tokensUpdated 6 mo ago
    Auto-check passed
  • Omk Reviewing

    KaimingWan/oh-my-kiro

    Code and plan review with multi-angle dispatch. An agent skill from KaimingWan/oh-my-kiro.

    107 GitHub stars~1.9k tokensUpdated 6 mo ago
    Auto-check passed
  • Omk Skill Creation

    KaimingWan/oh-my-kiro

    Create high-quality, production-ready skills from scratch. An agent skill from KaimingWan/oh-my-kiro.

    107 GitHub stars~2k tokensUpdated 6 mo ago
    Auto-check passed
  • Omk Youtube

    KaimingWan/oh-my-kiro

    Extract and summarize YouTube video content via subtitle extraction.

    107 GitHub stars~381 tokensUpdated 6 mo ago
    Auto-check passed
  • Documentation Lookup

    KaimingWan/oh-my-kiro

    Fetch current library/framework documentation via Context7. An agent skill from KaimingWan/oh-my-kiro.

    107 GitHub stars~616 tokensUpdated 6 mo ago
    Auto-check passed
  • Omk Coding

    KaimingWan/oh-my-kiro

    Enforces coding best practices: deep-read before modify, LSP-first navigation, TDD red-green-refactor, minimal changes, self-review, verification.

    107 GitHub stars~2.4k tokensUpdated 6 mo ago
    Auto-check passed

Categories

Questions about Omk Self Reflect

What does Omk Self Reflect do?

Agent self-learning: promote recurring episodes to rules, capture complex corrections. Omk Self Reflect is an agent skill from KaimingWan/oh-my-kiro. Agent self-learning: promote recurring episodes to rules, capture complex corrections.

When should I use Omk Self Reflect?

Omk Self Reflect fits situations like: hook outputs 🔥; ⬆️ (promotion needed); 🚨 (complex correction); user says reflect.

How do I install Omk Self Reflect in Claude Code?

Run `npx skills add KaimingWan/oh-my-kiro --skill omk-self-reflect -a claude-code`. Or copy the skill folder (skills/omk-self-reflect in KaimingWan/oh-my-kiro) into .claude/skills/omk-self-reflect in your project. Claude Code loads it when a task matches its description.

How do I install Omk Self Reflect in Codex?

Run `npx skills add KaimingWan/oh-my-kiro --skill omk-self-reflect -a codex`. Or copy the skill folder (skills/omk-self-reflect in KaimingWan/oh-my-kiro) into .agents/skills/omk-self-reflect in your project. Codex loads it when a task matches its description.

Can I use Omk Self Reflect in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add KaimingWan/oh-my-kiro --skill omk-self-reflect -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/omk-self-reflect, .gemini/skills/omk-self-reflect, .github/skills/omk-self-reflect and .opencode/skills/omk-self-reflect in your project.

What does Omk Self Reflect need to run?

SKILL.md names no scripts, command-line tools or credentials: Omk Self Reflect is instructions for the agent only.

Does Omk Self Reflect access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Omk Self Reflect safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Omk Self Reflect use?

Omk Self Reflect is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Omk Self Reflect use?

About 896 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Omk Self Reflect?

Skills that share tags, products or a category with Omk Self Reflect: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 297k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Omk Self Reflect?

KaimingWan (a GitHub user) maintains it in KaimingWan/oh-my-kiro, which has 107 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on April 2, 2026.

Source: KaimingWan/oh-my-kiro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.