self-evolution

Analyzes, modifies, builds, and upgrades the agent's own source code with automatic version bumps.

1|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/maopujie10-sys/Bailongma --skill self-evolution-maopujie10-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-evolution
Source: https://github.com/maopujie10-sys/Bailongma/tree/main/src/skills/self-evolution
Command: npx skills add https://github.com/maopujie10-sys/Bailongma --skill self-evolution-maopujie10-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When users feed source code to the agent to absorb new features or fix bugs, manual editing, versioning, compiling, and deploying is error-prone. This Skill automates the full self-modification loop so the agent can evolve its own codebase safely and consistently. ## Core Features & Use Cases - Source Analysis: Lists and reads the agent's own source files to understand structure before making changes. - Automated Code Modification: Writes source changes with a mandatory automatic version bump so upgrades are always detectable. - Build & Upgrade Pipeline: Runs a self-test, compiles the project, and applies the upgrade, with rollback support if something goes wrong. - Use Case: A user pastes a new feature's source code and says "absorb this feature" — the agent analyzes the existing code, integrates the change, bumps the version, compiles, and upgrades itself, then reports the new version number. ## Quick Start Feed the agent a piece of source code and ask it to absorb the feature or fix the bug, then let it analyze, modify, build, and upgrade itself automatically.

Frequently Asked Questions about self-evolution

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make an AI agent modify its own source code?

Feed the agent the source code and trigger the self-evolution workflow. It analyzes existing files with list_source and read_source, applies changes via write_source, then runs self-test, build, and upgrade phases automatically.

How to fix bugs in a running agent without manual redeployment?

Describe the bug or paste the relevant code, and the skill follows a five-phase pipeline: analyze, modify source with a version bump, self-test, compile, and upgrade. A rollback option exists if the upgrade misbehaves.

Why must every source change bump the version number?

The skill enforces bump_version: true on every write_source call because the upgrade mechanism detects new versions by number. Without a bump, the modified code would never be deployed to the running agent.

Can a self-upgrade be rolled back if the build breaks the agent?

Yes, the allowed tools include self_rollback alongside self_build and self_upgrade. If an upgrade causes problems, the agent can revert to the previous working version of its source code.

What triggers the self-evolution workflow?

It activates when users feed source code with intents like absorbing a feature, upgrading, evolving, or fixing a bug, as declared in the skill's trigger metadata.