AI Agent Hub
Back to skills
Agent Self-Evolving Core icon

Agent Self-Evolving Core

AI Agent Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_a6b21d30/self-evolving-core

About this skill

What it solves

A common failure mode for agents is not weak reasoning but missing durable experience: similar mistakes recur, constraints stay buried in chat, and session knowledge disappears after restart. self-evolving-core places task execution, experience extraction, rule prechecks, and memory maintenance into one closed loop, so known pitfalls become searchable, reusable, and verifiable memory.

How it works

  • Task logging: after each task, log records the work and automatically checks rules R1-R4, triggering review, immune-rule extraction, or distillation prompts.
  • Automatic review: review extracts success patterns and failure lessons from task traces, writes them to experiences.json, and preserves fuller scenario and lesson text.
  • Layered memory: memory is split into declarative, procedural, semantic, and working layers; MEMORY.md should hold rules, indexes, and pointers rather than raw experience text.
  • Immune prechecks: the Router checks existing rules before task execution and emits critical, warning, or info guidance to reduce repeat mistakes.
  • Dual-location sync: core scripts and config must stay consistent between the working copy and skill source to avoid new workspaces inheriting old bugs.

Boundaries

It fits agent workflows with clear domains and long-term task experience. Benefits are limited for one-off tasks, weakly abstractable lessons, or unstable directory structures. Adopting it means treating log as a mandatory accounting step and maintaining the PINNED section and dual-location sync rules in MEMORY.md.

Use Cases

  • After repeated data-extraction failures, run review to extract failure lessons and store immune rules.
  • Migrate recurring task constraints from chat history into MEMORY.md as rules, indexes, and path pointers.
  • Before deploying to a new workspace, sync core scripts such as evolution_guardian.py to avoid old bugs.
  • Record each task trace with log so R1-R4 checks can trigger review or distillation automatically.

Best For

  • Engineers maintaining long-running agent workflows who want to convert failure lessons into reusable rules.
  • Agent architects coordinating multi-domain tasks and needing unified routing, review, and memory indexes.
  • Development leads deploying agents in Cursor or WorkBuddy who must keep working copies and skill source in sync.
  • Prompt engineers governing MEMORY.md who want to turn note-like experience entries into rule pointers.