self-improve
БесплатноБез исполняемых скриптовНе проверенAutonomous evolutionary code improvement engine with tournament selection. Activate when user says: self-improve, self improve, evolve code, improve…
от zereight★ 2 132 звезды на GitHubОб этом скилле
Self-Improvement Orchestrator
Autonomous loop controller for evolutionary code improvement. Manages the full lifecycle: setup, research, planning, execution, tournament selection, history recording, and stop-condition evaluation.
When to Use
- You want to iteratively improve a codebase toward a measurable benchmark goal
- Optimization tasks: performance, bundle size, test coverage, accuracy
- Code quality improvement with measurable metrics
When NOT to Use
- No measurable benchmark available
- One-shot fix or feature request → use
/omg-autopilot - Manual, interactive coding → use
/ralph
Autonomous Execution Policy
NEVER stop or pause to ask the user during the improvement loop. Once the gate check passes and the loop begins, run fully autonomously until a stop condition is met.
- Do not ask for confirmation between iterations
- On agent failure: retry once, then skip and continue
- On all plans rejected: log it, continue to next iteration
- The only things that stop the loop are the stop conditions in Step 11
State Tracking
All state lives under .omc/self-improve/:
.omc/self-improve/
├── config/
│ ├── settings.json # agents, benchmark, thresholds, sealed_files
│ ├── goal.md # Improvement objective + target metric
│ ├── harness.md # Guardrail rules (H001/H002/H003)
│ └── idea.md # User experiment ideas
├── state/
│ ├── agent-settings.json # iterations, best_score, status, counters
│ ├── iteration_state.json # Within-iteration progress (resumability)
│ ├── research_briefs/ # Research output per round
│ ├── iteration_history/ # Full history per round
│ ├── merge_reports/ # Tournament results
│ └── plan_archive/ # Archived plans (permanent)
├── plans/ # Active plans (current round)
└── tracking/
├── raw_data.json # All candidate scores
├── baseline.json # Initial benchmark score
└── events.json # Config changes
Agent Mapping
| Step | Role | Agent | Purpose |
|---|---|---|---|
| Research | Codebase analysis | @explore + @architect | Hypothesis generation |
| Planning | Hypothesis → plan | @planner | Structured plan per agent |
| Architecture Review | 6-point review | @architect | Advisory review |
| Critic Review | Harness enforcement | @critic | Approve/reject plans |
| Execution | Implement + benchmark | @executor | Implement plan faithfully |
| Git Operations | Merge/tag/PR | @git-master | Atomic merge operations |
Setup Phase
- Check if target repo path exists. If not configured, ask user.
- Create
.omc/self-improve/directory structure. - Read
agent-settings.json. Check setup flags. - Trust confirmation (mandatory):
- Display target repo path, ask user to confirm benchmark execution.
- If declined: abort.
- Record consent:
trust_confirmed: true
- If goal not set → Run Socratic interview (Objective, Metric, Target, Scope). Write to
goal.md. - If benchmark not set → Survey repo, create/wrap benchmark, validate 3x, record baseline.
- If harness not set → Confirm default harness rules (H001/H002/H003).
- Gate: All settings + trust must be true.
- Create improvement branch:
improve/{goal_slug}from target branch. - Write initial state via
omg_write_state.
Improvement Loop
Gate: All settings must be true. Execute continuously without stopping.
Step 0 — Stale Worktree Cleanup
Remove orphaned worktrees from prior iterations.
Step 1 — Refresh State
Update state to reset TTL.
Step 2 — Check Stop Request
If state is cleared or status is user_stopped: exit gracefully.
Step 3 — Check User Ideas
Read idea.md. If non-empty, pass to planners.
Step 4 — Research
Spawn @explore + @architect to analyze codebase and generate hypotheses based on goal, history, and prior briefs.
Step 5 — Plan
Spawn N @planner agents in parallel (N = number_of_agents). Each produces a plan with one testable hypothesis, approach_family tag, and history_reference.
Step 6 — Review
For each plan:
- 6a. Architecture Review: @architect with 6-point checklist (testability, novelty, scope, target files, implementation clarity, expected outcome). Advisory only.
- 6b. Critic Review: @critic with harness rules (H001: one hypothesis, H002: no approach_family streak ≥3, H003: intra-round diversity). Sets
critic_approved: true/false.
Step 7 — Execute
For each approved plan, spawn @executor in parallel. Each executor works in a git worktree, implements the plan, runs validation, and benchmarks.
Step 8 — Tournament Selection
- Collect results, filter to
status: "success" - Rank by
benchmark_score(respecting direction) - For each candidate (best first):
- No-regression check vs
best_score - Merge via @git-master with
--no-ff - Re-benchmark on merged state
- If confirmed: accept winner, break
- If regres
- No-regression check vs
Установить self-improve в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл self-improve?
Autonomous evolutionary code improvement engine with tournament selection. Activate when user says: self-improve, self improve, evolve code, improve iteratively, tournament, benchmark loop, optimize code.
Как установить скилл self-improve?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл self-improve запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic