원클릭으로
self-evolution
Learn from experience — capture insights, organize knowledge, share reusable practices as skills, and refine your role over time
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Learn from experience — capture insights, organize knowledge, share reusable practices as skills, and refine your role over time
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Feishu/Lark platform interaction via MCP - documents, tasks, calendar, Bitable, messaging
Use the Claude Code CLI for complex refactors, multi-file changes, and sustained codebase exploration
Use the OpenAI Codex CLI for quick fixes, targeted edits, and non-interactive automation
Use external coding tools (Claude Code, Codex, Cursor) via invoke_coding_tool and coding_tool_apply to implement, debug, and refactor code
Use the Cursor CLI agent mode for IDE-integrated coding with project rules and repo-aware edits
Design and create AI agent packages — manifest format, directory structure, file writing workflow
| name | self-evolution |
| description | Learn from experience — capture insights, organize knowledge, share reusable practices as skills, and refine your role over time |
You learn from experience and evolve yourself over time. This goes beyond remembering facts — you organize your own knowledge, develop effective procedures, and refine your role. Continuous self-improvement is a core part of being an effective agent.
Your memory has two stores with distinct roles:
| Store | File | Purpose | Written by |
|---|---|---|---|
| Observation buffer | memories.json | Raw observations, individual insights, tool tips | memory_save |
| Curated knowledge | MEMORY.md | Validated procedures, consolidated insights, proven patterns | memory_update_longterm |
Flow: Observations enter the buffer → recurring patterns get promoted to MEMORY.md (by you or by dream cycles) → source entries are pruned.
MEMORY.md is always loaded into your context as ## Your Knowledge. The observation buffer is surfaced by the cognitive preparation pipeline or by relevance matching.
Trigger reflection when any of these happen:
Skip trivial matters — typos, one-off path errors, situations that won't recur.
| What you learned | Where to save | How |
|---|---|---|
| Single insight, gotcha, mistake | Observation buffer | memory_save with tags: ["insight", ...] |
| Tool tip or preference | Observation buffer | memory_save with tags: ["insight", "tool:<name>"] |
| Validated pattern from successful task | Observation buffer | memory_save with tags: ["insight", ...] |
| Multi-step repeatable workflow (personal) | MEMORY.md | memory_update_longterm({ section: "<your-section>", mode: "patch" }) |
| Practice worth sharing with the team | Skill package | Create via skill-building, install with package_install |
| Behavioral rule or guiding principle | ROLE.md | file_read → file_edit to append |
| New recurring check for your patrol | HEARTBEAT.md | file_read → file_edit to add/remove items |
When a reflection trigger fires:
Use memory_save with:
"insight"[INSIGHT] <one-line summary>
Situation: <brief context>
Mistake: <what went wrong>
Correction: <what works>
Rule: <generalized principle>
"insight" first, then category tags: coding, tool-usage, communication, architecture, process, domain:<topic>Dream cycles automatically promote recurring patterns (3+ similar insights) from the observation buffer to MEMORY.md and prune the source entries.
MEMORY.md is your knowledge base. You decide what sections to create and how to organize it. There is no rigid system-imposed taxonomy — structure it in whatever way makes your work most effective.
| Section name | Example content |
|---|---|
conventions | Coding standards, naming rules, review criteria for your projects |
procedures | Step-by-step workflows for recurring tasks |
preferences | Tool choices, flags, parameter settings that work well |
domain-knowledge | Technical facts specific to your area of expertise |
evolution-log | Chronological record of ROLE.md changes |
You are not limited to these — create whatever sections make sense for your work.
Use memory_update_longterm with mode: "patch" to append without overwriting:
memory_update_longterm({
section: "procedures",
mode: "patch",
content: "### <Name>\nTrigger: <when to use>\nSteps:\n1. ...\n2. ...\nNotes: <gotchas>\nLast updated: <date>"
})
Use mode: "replace" with the full updated section content (read existing first, modify, then write back):
memory_update_longterm({
section: "procedures",
mode: "replace",
content: "<full updated section content>"
})
Before starting a task, check your existing knowledge:
## Your Knowledge. Read and follow any procedures whose trigger matches.discover_tools({ mode: "list_skills" }) to see available team skills. Activate relevant ones with discover_tools({ name: ["skill-name"] }).recall_activity to query your execution history for relevant context.Do not reinvent approaches you have already codified. If an existing procedure or skill partially applies, start from it and adapt.
When a practice would benefit other agents on the team (not just you), package it as an installable skill instead of a personal MEMORY.md entry.
| Criterion | MEMORY.md entry | Skill |
|---|---|---|
| Who benefits | Only you | Multiple agents |
| Storage | MEMORY.md (your context) | Installable skill package |
| Visibility | Only in your prompt | Available to all agents after install |
| Examples | "How I deploy service X" | "Code review checklist", "Git workflow for this repo" |
Before creating a new skill, check if one already exists:
discover_tools({ mode: "list_skills" }) to see all installed skillspackage_list to see packages in builder-artifactsskill.json manifest + SKILL.md instructions to ~/.markus/builder-artifacts/skills/{name}/package_install({ type: "skill", name: "{name}" })memory_save with tags ["insight", "skill-created"]~/.markus/builder-artifacts/skills/{name}/ (use file_read then file_edit)skill.json (e.g., "1.0.0" → "1.1.0")package_install({ type: "skill", name: "{name}" }) — this overwrites the old version and re-registersmemory_save with tags ["insight", "skill-updated"]Only create a skill when you are confident the practice is validated (proven across 2+ tasks) and genuinely useful for others.
ROLE.md is your identity — it is loaded into every conversation and shapes all your behavior. Updating it is one of the simplest and most impactful forms of self-evolution.
Modify ROLE.md when you discover a behavioral rule, working style, or guiding principle that should always apply to your work. Examples:
You do NOT need to accumulate multiple insights first — even a single validated lesson can warrant a role update if it is fundamental and non-obvious.
file_readfile_edit for surgical changesmemory_save with tags ["insight", "role-evolution"]HEARTBEAT.md is your personal patrol checklist — it controls what you check during each heartbeat cycle. Customizing it is a direct way to evolve your operational behavior.
file_readfile_editmemory_save with tags ["insight", "heartbeat-evolution"]task_list for tasks blocked more than 24 hours — escalate if needed"During heartbeat, check your revision rate:
executionRound > 1 required revisionWhen you notice patterns that affect the whole team — not just yourself:
| Signal | Action |
|---|---|
| Same bug type recurring across multiple agents | Create a skill with prevention guidelines |
| Common tool usage mistakes | Add to team NORMS.md or propose a skill |
| Repeated review feedback across the team | Propose a coding standard update |
| Process bottleneck affecting multiple tasks | Flag to manager with data |
Use deliverable_create to share patterns as team knowledge. Individual insights go to memory_save; team patterns deserve broader visibility.
Apply the keep-or-discard discipline to your own evolution:
memory_save, MEMORY.md, or ROLE.md).Your accumulated knowledge exists to compensate for your limitations. As you improve — through practice, better tools, or model upgrades — some of that knowledge becomes overhead:
mode: "patch" when adding to MEMORY.md sections