Self-Evolution
Paste the following prompt into your AI chat to install this skill:
Please follow the installation guide at https://skillhub.cn/install/skillhub.md and install @user_5953718f/self-evolution-v2.
About this skill
The Evolutionary Dilemma of AI Agents
Current AI Agents, particularly large language model applications, often face two core pain points: "amnesia" across sessions due to isolation and passive execution lacking continuous improvement. Each new session (/new) may start from scratch, losing lessons learned and context from previous interactions. Meanwhile, when executing complex tasks, Agents typically respond passively to commands, lacking the ability to proactively audit their own outputs, correct deviations, and systematically accumulate experience.
How Self-Evolution Works
This skill aims to inject a structured "self-evolution" mechanism into AI Agents. Its core is not about modifying model weights, but achieving continuous behavioral optimization through conversation-driven rule and memory management.
Core Capabilities and Workflow
-
Automatic Session Review and Context Injection
Once installed, the skill writes a core rule into the Agent'sSOUL.mdconfiguration file. This rule ensures that upon detecting the/newcommand or similar signals to start a new session, the Agent will automatically scan and read learning records left from the last session (typically stored in the.learnings/directory), injecting key lessons and context into the current session, thus overcoming the fundamental session amnesia of base models. -
Real-time Metacognition and Introspection Framework
The skill defines a prioritized set of self-check rules (P0-P6) for the Agent, internalized as triggers:- P0 (Highest Priority): When the Agent hesitates before generating content, such as thinking of saying "might" or "probably," it is immediately intercepted, triggering immediate verification behavior (categorized into L1/L2/L3 actions).
- P1 (Proactiveness): Drives the Agent to propose actions daily, ask for feedback on task results, and anticipate problems.
- P2 (Instant Introspection): After every task completion or correction, the Agent immediately conducts introspection and writes findings to
.learnings/files, rather than waiting for a fixed schedule. - Other Rules: Cover multiple dimensions including emotion perception, communication simplification, and proactive reporting of capability gaps.
-
Automated Memory Formation
The skill defines five clear "signals" (e.g., user correction, dissatisfaction with results, stating new rules). When these signals are detected, they automatically trigger the Agent to record relevant information intoMEMORY.mdor.learnings/files, creating persistent memory assets that can be invoked by subsequent sessions.
Key Implementation Steps
The application process is entirely conversation-driven, requiring no scripts. After installation, telling the AI to apply the skill causes it to automatically:
1. Write all the above evolution rules and checkpoint logic into SOUL.md.
2. Create necessary template file structures like .learnings/.
3. From then on, the Agent's behavior operates under this self-auditing and evolution framework.
Scope of Application and Considerations
- Dependency on Framework Configuration: This skill works by injecting rules into the Agent's configuration file (e.g.,
SOUL.md). Therefore, it requires the target AI Agent framework to support similar persistent personality/rule file configurations. It is applicable to OpenClaw and other Agent frameworks that can write rules to their configuration. - Behavioral Guidance, Not Model Training: The skill's role is to guide and standardize the Agent's external behavior and interaction patterns, making them align with the human-desired "self-evolution" mode. It does not change the underlying large model's capabilities or knowledge, but optimizes its output generation strategy and internal decision-making processes.
- Dependent on High-Quality Input: Its effectiveness heavily relies on the "boss" (user) providing clear and timely feedback. The quality of feedback directly determines the depth and accuracy of the Agent's introspection and memory formation.
- Requires Active Cooperation: The Agent needs to strictly adhere to the written rules (e.g., "Uncertain → Verify Immediately") to maximize effectiveness. This necessitates establishing a new interaction contract during usage.
Use Cases
- When iteratively developing an AI Agent, it needs to automatically review errors from the last interaction (like giving vague answers or missing critical steps) and proactively avoid them at the start of a new session.
- When an AI Agent serves as a technical assistant on a long-term project, it needs to proactively summarize action items and sync progress with the owner after daily meetings, rather than passively waiting for commands.
- In fields requiring high accuracy (like code review, data validation), the AI Agent needs real-time self-checks, forcing verification before outputting uncertain phrasing such as "might" or "probably."
- After a user repeatedly corrects an AI Agent's behavioral preference (e.g., communication style or answer format), the Agent needs to immediately internalize the correction as a permanent rule to prevent recurrence.
Best For
- An algorithm engineer building a continuously learning AI Agent, who wants the Agent to autonomously review and correct its behavior to reduce repetitive debugging.
- A technical lead maintaining a large project's knowledge base, needing an AI assistant to automatically record decision rationale and sync team changes to avoid information gaps.
- A data scientist using AI for high-risk assisted decision-making (e.g., clinical data analysis, investment strategy verification), who requires mandatory confidence labeling and source tracing in outputs.
- A product manager customizing AI workflows for internal teams, needing to systematically systematize every user correction and feedback into the Agent's permanent configuration.
Related Skills
Run a grilling session to interact with or test AI agents.
A systematic prompt optimization skill that refines prompts using a four-step distillation framework (diagnose, structure, think, compress) and methodologies from four prompting masters.
Quickly converts a user's input, list, or screenshot into a multi-page workbench, supporting template selection, custom builds, and responsive layouts.
HeartFlow is a pure rule-based discrimination layer for AGI that checks AI outputs for correctness and safety before they reach humans.