Improve an existing skill or repository through isolated proposals, reproducible evaluation and evidence-based acceptance. Use for self-evolve or skill improvement.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Self Evolve?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/daizedong-self-evolve-self-evolve)
---
name: self-evolve
description: "Improve an existing skill or repository through isolated proposals, reproducible evaluation and evidence-based acceptance. Use for self-evolve or skill improvement."
---
# self-evolve
Propose changes in a Git worktree, measure parent and candidate the same way, and let code decide
from the evidence. A passing check proves only what it measured.
`<repo>` below is the plugin or checkout root, two levels above this file. Run the CLI as
`python <repo>/tools/sie_cli.py <command>`.
## Invariants
1. **Fix the comparison before editing.** Freeze the goal, allowed edits, evaluation policy and
holdout before any candidate change, and keep parent obligations in the comparison even when the
candidate removes them. A changed goal needs a new run, not new rules for an old one.
2. **Evidence comes from observation.** A is executed tests, B is independently verified facts, C
is supplied regression and consistency measurements. The loop has no C measurement producer and
refuses A+B. A missing measurement stays unavailable; relabeling it creates no evidence.
3. **Models propose, code accepts.** Reflection and proposals come from installed `llmcall`
(`mode="agent"` for agents, default mode for judges), inheriting its routing, model, timeout and
fallback. Only actually returned, known, different providers establish review independence.
4. **Keep decisions recoverable.** Preserve failures, rejection reasons, provider metadata, events
and exact accepted snapshots; a digest identifies content but cannot restore it.
5. **Real evidence stays private.** Run records live only in the PRIVATE companion, with no in-repo
fallback. Worktrees, prompt filtering and AST checks are not an operating-system sandbox.
ACCEPT archives a candidate; merging, publishing and sending follow the caller's authorization.
Reasons and rejected alternatives: [PHILOSOPHY.md](../../PHILOSOPHY.md).
## Before a Run
1. Confirm the target repository, base revision, allowed scope and the behavior to improve.
2. Choose the signal (A, B or C) under invariant 2.
3. Select the PRIVATE companion: [runtime.md](reference/runtime.md#configuration).
4. Run `doctor --target <target>` and read its JSON, including `private_data.available`. Doctor
calls no model; exit zero alone does not prove readiness.
## Workflow
| Step | Work |
|---|---|
| PROFILE | Freeze the evaluation policy, target contract and holdout; resume keeps them |
| REFLECT | Diagnose from existing records and check citations; a structural pass is not a fact check |
| PROPOSE | Propose changes inside the allowed scope; keep actual providers and failure reasons |
| PATCH | Apply in the candidate worktree with path, AST and IMMUTABLE checks |
| EVALUATE | Measure parent and candidate with the same identities; keep unavailable reasons |
| ACCEPT / REVIEW | Code applies the gates: archive, reject or queue human review |
```bash
python <repo>/tools/sie_cli.py init --target <target>
python <repo>/tools/sie_cli.py run --target <target> --run-id <id> --base-ref HEAD
python <repo>/tools/sie_cli.py status --target <target> --run-id <id>
```
The default `builtin` proposer turns supplied fixes into proposals and discovers none. `--live`
enables model proposals and parallel reflection; `--proposer llm-artifact` proposes JSON artifacts.
Resume by running the same run ID; `--max-rounds` counts rounds for this invocation. Options,
replay, rollback and selfboot: [runtime.md](reference/runtime.md).
## Accept and Deliver
- Report missing baselines, regression records, fact checks or independent providers as gaps.
No regressions or an all-green suite is not by itself an improvement; read evidence with
[evaluation.md](reference/evaluation.md). Statistical claims need the assumptions in
[acceptor_math.md](reference/acceptor_math.md).
- When the candidate changes a skill repository, it follows skill-smith's
[repo-layout.md](https://github.com/DaizeDong/skill-smith/blob/main/skills/skill-smith/reference/repo-layout.md):
edit every doc line the change makes wrong, PHILOSOPHY.md included, and release with
`bump_version.py` when shipped behavior changes. With the change staged, run skill-smith's doc
pass `scripts/artifact_catalog.py <candidate repo>` and edit or confirm each document it prints.
Finish this before the review snapshot; a change after review needs the affected checks again.
- Deliver the candidate diff, source revision, actual measurements, acceptance reason, uncovered
scope and run state.
- Storage inventory, retention and recovery limits: [DATA.md](../../DATA.md).
Load each reference only for its step; do not substitute historical research for current code and
measurements.