Introduction¶
Colleagues who have run Agents long-term have likely encountered the same gap: a fix that worked in one conversation, only to see the same mistake reappear in another; or lessons written into chat logs that are lost the next time the context is truncated. Common remedies involve hand-writing long system prompts or relying on external memory products, but “why it failed this time, which mechanism to change, and how to verify” still often depends on human oversight.
The Self-Iteration Kernel (@user_c0f5ae43/self-iteration-core) introduced below takes a different path: it is not a tool-type Skill that calls external APIs, but a behavioral pattern written into SKILL.md—using a four-step retrospective method, a three-tier memory directory, and change logs to transform failure scenarios into searchable, verifiable workspace rules. SkillHub categorizes it under ai-agent, sourced from the community (community), published by user_c0f5ae43, current version 1.0.0, with the tag requires_api_key=false (no API Key required).
What This Is¶
In one sentence: a self-reflection and iteration system in the style of Hermes Agent, whose core belief is “problems are not bugs, but iteration signals.”
After installation, the Agent is guided to proactively go through a closed-loop process when errors occur, corrections are made, repeated mistakes happen, or better approaches are discovered—rather than just offering verbal apologies. The skill description notes that it is built based on Hermes Agent concepts and real iteration experience (master Agent “Wangcai”).
Core Features¶
The following capabilities are drawn from the official SKILL.md and the SkillHub brief, and can be understood by module.
Four-Step Retrospective Method¶
Execute immediately when a retrospective-worthy scenario arises—no need to wait for the user to prompt:
- Trace the root cause: Ask “why” repeatedly about the surface phenomenon until you reach the mechanism level (e.g., the checklist lacks priority, missing external state comparison, etc.).
- Identify the modification point: Decide where to change based on the root cause type—incomplete rules go to
MEMORY.md, tool misuse goes toTOOLS.md, process gaps go to SOP or the skill’sSKILL.md; the principle is to change only one point at a time. - Implement the change: Actually modify files rather than verbally acknowledging; the immediate layer (
MEMORY.md/USER.md/TOOLS.md) requires incremental editing with edit_file to avoid overwriting entire files with write_file; the near-mid-term layer creates or edits inrecent_memory/. After the change, append a change log at the end of the file (date, rule summary, root cause). - Verify and consolidate: Wait for the same type of scenario to reappear or actively simulate tests; if it passes, write a summary into
MEMORY.md; if it fails, return to step 1.
Three-Tier Memory Architecture¶
The skill defines a layered file structure and retrieval order under the working directory:
Working Directory/
├── MEMORY.md ← Daily rules + current state (≤5KB)
├── USER.md ← User profile (≤2KB)
├── SOUL.md ← Soul/character settings
├── SECRET.md ← Sensitive credentials
├── Foundation Settings/
│ ├── SOUL.md
│ └── TOOLS.md ← Tool usage experience
└── recent_memory/
├── index.json ← Memory directory (summaries + tags)
├── decision/ ← Important decision retrospectives
├── project/ ← Project progress snapshots
└── todo/ ← To-do items
Retrieval order: first the immediate layer (files already in context such as MEMORY.md) → then recent_memory/index.json to locate near-mid-term files → finally use memory_search for long-term semantic retrieval.
Automatic Skill Consolidation and Iteration Verification¶
After a fix is verified through step 4, rules remain in MEMORY.md and recent_memory/decision/, forming a closed loop of “fixed bug → explicit rule → next retrieval.” The skill also provides pacing suggestions for the startup phase (run for 1–2 days first, then do batch retrospectives) and the mature phase (retrospect on the spot, weekly reviews, quarterly upgrades to SOUL.md).
Built-in Retrospective Template¶
For the first retrospective, you can directly copy the Markdown template from the skill. Fields include: failure scene, root cause excavation (three layers), what files were changed, how to verify, whether it was written into MEMORY.md.
Installation and Activation¶
The official page and SkillHub installation documentation are consistent: first ensure the skillhub CLI is available on your machine, then install the skill into the skills directory that the current Agent reads (the Agent will not load it if installed in the wrong directory).
1. Check or Install SkillHub CLI¶
command -v skillhub && skillhub --version
If not installed, follow the SkillHub documentation (full installation includes default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install the Self-Iteration Kernel¶
Search to confirm the coordinates, then install (skillhub search will list @user_c0f5ae43/self-iteration-core):
skillhub install self-iteration-core --namespace user_c0f5ae43 --dir <your Agent skills directory>
Common paths (from SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex CLI:
~/.codex/skills/or.agents/skills/under the project
You can also ask the Agent to read https://skillhub.cn/install/skillhub.md and install @user_c0f5ae43/self-iteration-core according to the page instructions.
After installation, restart or refresh the Agent so that SKILL.md enters the skills list. This Skill does not depend on external API Keys; it works by the Agent following the processes and file conventions within it during conversations.
Typical Usage¶
Below is a reproducible “failure → consolidation” path, consistent with sections 3 and 5 of the skill.
- Determine the trigger: For example, replying to the same person repeatedly, missing important messages, omitting execution steps—these fall under the “must initiate retrospective” scenarios listed in the skill.
- Fill in the retrospective template (excerpt structure):
# [Problem] Retrospective (2026-10-21)
## Failure Scene
Repeatedly sent the same conclusion to the same user.
## Root Cause Excavation
Surface: sent another reply → did not compare against external already-sent state → Root cause: missing pre-send state snapshot/checklist item.
## What I Changed
Added a "check the most recent outbound before replying" rule to MEMORY.md, and supplemented the TOOLS.md with check steps.
## How to Verify
Read MEMORY first before the next similar task, simulate a round to see if double-sending still occurs.
## Recorded in MEMORY
- [x] Added rule to MEMORY.md: check conversation outbound state before replying
- Use edit_file to modify
MEMORY.md/TOOLS.mdper step 3, and write the change log. - Store the detailed retrospective in
recent_memory/decision/, leave a one-line summary inMEMORY.md; call it later according to the three-tier retrieval order.
The skill explicitly states “don’t over-retrospect”: smooth daily execution, uncontrollable infrastructure failures, casual preferences, etc., do not require the four-step method every time; preferences can be directly recorded in memory files.
Applicable Scenarios and Notes¶
Who It’s For
- Teams or individuals who need the Agent to execute tasks long-term in the same workspace and are willing to use files like
MEMORY.mdandrecent_memory/to carry rules. - Those who want to extract “error correction” from chat and turn it into diffable, reviewable mechanism changes, rather than re-explaining the prompt every time.
Limitations and Notes
- It depends on whether the Agent can actually read and write the working directory you agreed upon; names like
edit_file,memory_searchin the skill correspond to specific client capabilities, and you need to map them to equivalent tools if the environment doesn’t support them. - File size limits (e.g.,
MEMORY.md≤5KB) require periodic summarization to avoid immediate layer bloat. - SkillHub page statistics (as of the data capture): rating 100000, approximately 940 downloads, install count 0—this is only a reference for store popularity and does not mean your local Agent has auto-enabled it.
- Community-sourced skill; upgrades and maintenance follow the versions published by
user_c0f5ae43on SkillHub (current 1.0.0).
Conclusion¶
The Self-Iteration Kernel embeds Hermes Agent-style retrospectives into a Skill: four-step method to dig into mechanisms, three-tier memory division of labor, and consolidation after verification passes. If you are already using the skills mechanism of Cursor, Claude Code, or Codex, you can install it to the corresponding directory using the official coordinates, so that the Agent has a fixed closed loop when failures occur rather than repeatedly explaining.
- SkillHub page: https://www.skillhub.cn/skills/user_c0f5ae43/self-iteration-core
- API coordinates page: https://api.skillhub.cn/user_c0f5ae43/self-iteration-core
- Installation instructions: https://skillhub.cn/install/skillhub.md