Skills recursive self improvement
Use when asked to evaluate, design, or run a bounded recursive self-improvement cycle for an OpenClaw agent, skill, tool, prompt, workflow, or sub-agent. Applies candidate generation, isolated testing, fidelity control, and successor-state recording while preventing unsafe self-modification, uncontrolled recursion, unapproved scheduling, or unverified permanent changes.From its SKILL.md
npx -y skills add UillihansDias/skills-recursive-self-improvementAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.8 KB, 703 tokens by cl100k_base, as published. Nobody here has run it
Recursive Self-Improvement
Objective
Improve agent capabilities through a bounded closed loop:
- diagnose a target capability and baseline failure
- generate candidate improvements
- test candidates in isolation
- accept only verified improvements
- record accepted deltas for successor use
Safety Boundary
- Do not modify global agent files, system prompts, credentials, memory, scheduler state, or runtime configuration without explicit user approval.
- Do not schedule autonomous recursion unless the user explicitly requests scheduling.
- Do not terminate sessions as part of the skill.
- Do not treat self-improvement as unrestricted self-rewriting.
- Keep all candidate changes reversible until fidelity checks pass.
- Do not claim permanent self-improvement unless verified changes were actually applied.
Supporting Resources
- Read
references/examples.mdwhen examples, edge cases, or invocation patterns are needed. - Use
assets/template.jsonwhen a machine-readable cycle report or structured successor-state note is needed. - Run
scripts/init-rsir-report.shwhen a workspace needs an empty report file based onassets/template.json. - Run
scripts/validate-rsir-report.pybefore returning or storing a machine-readable cycle report. - Use
hooks/openclaw/only when the user explicitly wants an OpenClaw bootstrap reminder for bounded RSIR behavior.
Workflow
1. Diagnose
Inspect available logs, errors, tests, user feedback, and recent task failures.
Identify:
- target capability
- current failure mode
- measurable baseline
- allowed modification surface
- rollback path
2. Generate Candidate Improvements
Create 1–3 candidate changes.
Valid candidates include:
- new skill instructions
- revised sub-agent workflow
- deterministic helper script
- test fixture
- validation checklist
- prompt or tool-routing improvement
For each candidate, define:
- expected benefit
- affected files
- required tools
- success metrics
- risk level
3. Isolate
Implement candidates only in a sandbox, branch, temporary directory, or proposed patch.
Do not write to persistent agent files unless the user explicitly approved that target path.
4. Fidelity Control
A candidate passes only if all required checks pass.
Minimum checks:
- syntax or format validation
- relevant unit tests or dry-run tests
- regression check against baseline behavior
- no new privileged action surface
- no degradation in stated success metric
Reject the candidate if:
- tests fail
- performance worsens without user-approved tradeoff
- behavior expands beyond the requested capability
- safety boundaries are weakened
- rollback is unclear
5. Augment
For accepted candidates:
- produce the final patch or updated skill content
- summarize the improvement delta
- state what changed and why it passed
- record any follow-up validation needed
For rejected candidates:
- state rejection reason
- preserve useful observations only
- do not merge or persist the change
6. Recursion Control
Run only one improvement cycle per invocation unless the user explicitly asks for another cycle.
For repeated cycles, require:
- explicit user approval
- fresh baseline
- bounded scope
- stop condition
- reviewable changelog
Output Contract
Return:
- target capability
- baseline problem
- candidate improvements
- fidelity checks
- accepted changes
- rejected changes
- successor-state notes
What ships with it: 17 files
41.6 KB alongside SKILL.md, 10 of them executable
assets/
- ERRORS.md848 B
- FEATURE_REQUESTS.md800 B
- LEARNINGS.md1.5 KB
- SKILL-TEMPLATE.md3.6 KB
- template.jsonruns755 B
hooks/
- openclaw/handler.jsruns2.4 KB
- openclaw/handler.tsruns2.5 KB
- openclaw/HOOK.mdruns682 B
references/
- examples.mdruns1.4 KB
- hooks-setup.md5.8 KB
- openclaw-integration.md6.2 KB
scripts/
- activator.shruns897 B
- error-detector.shruns1.1 KB
- extract-skill.shruns4.4 KB
- init-rsir-report.shruns518 B
- validate-rsir-report.pyruns2.9 KB
- README.md5.3 KB