self-improve

Automate iterative codebase improvements using research, planning, execution, and tournament selection.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/cheafi/Trading-bot-CC --skill self-improve-cheafi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-improve
Source: https://github.com/cheafi/Trading-bot-CC/tree/main/.github/skills/self-improve
Command: npx skills add https://github.com/cheafi/Trading-bot-CC --skill self-improve-cheafi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you automatically improve a codebase toward a measurable goal without manually coordinating experiments, benchmarks, and repeated refactors.

Core Features & Use Cases

  • Autonomous evolutionary improvement loop: Research, plan, execute changes, and select winners using tournament-style benchmarking.
  • Guardrails and resumability: Enforces harness rules (e.g., no benchmark tampering) and persists state under .omg/self-improve/ to resume after crashes.
  • No-interruption execution policy: Runs fully autonomously after the initial gate, without pausing for confirmation between iterations.

Quick Start

Ask the assistant to run self-improve on your repository path with optional resume mode by saying: self-improve [repo path] --resume.

Frequently Asked Questions about self-improve

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

FAQPage Schema
How do I automate codebase performance optimization without manual intervention?

Autonomous codebase performance optimization uses an evolutionary loop applying research, planning, execution, and tournament selection via benchmarking. It runs fully autonomously after an initial gate without pausing for user confirmation, continuously improving measurable performance goals safely using git worktrees.

What is tournament selection for evolutionary code improvement?

Tournament selection for evolutionary code improvement benchmarks competing code variations against measurable goals like performance or accuracy. The system selects winning variations to proceed while enforcing harness rules that prevent benchmark tampering, ensuring safe and measurable evolutionary optimization.

How do I safely apply git worktree-based changes for autonomous refactoring?

Applying git worktree-based changes for autonomous refactoring isolates experimental code variations in separate worktrees to protect the main branch. The system enforces safe constraint rules via a benchmarking harness and maintains persistent state under a dedicated directory for crash resumability.

Can I resume an interrupted code quality improvement loop after a crash?

Resuming an interrupted code quality improvement loop is fully supported via persistent state stored under a dedicated directory. This resumability allows the evolutionary optimization process to recover and continue executing benchmarking safely after crashes or interruptions without losing prior progress.

What are the limitations of autonomous evolutionary optimization for codebases?

Limitations of autonomous evolutionary optimization include its restriction to measurable code-quality goals like performance and accuracy improvements, requiring a benchmark harness. The no-interruption execution policy prevents pausing for user confirmation, and strict harness rules are required to enforce constraints and prevent benchmark tampering.

When do I need benchmark harnessing for iterative code refactoring?

Benchmark harnessing for iterative code refactoring is needed when applying evolutionary optimization to achieve measurable performance or accuracy goals. It provides the tournament selection framework to evaluate code changes objectively and enforces safe constraint rules preventing benchmark tampering during autonomous execution.