跳到正文
Skillpedia
通用编程41k · #7024

self-improve

它能做什么

这项技能运行一个自动化循环,尝试对项目进行多项改进,并保留表现最好的那些。适合希望获得可衡量、可重复改进,并且能接受智能体独立运行的人。

适用场景

  • ✓当你希望在项目上运行一个以基准测试为驱动的改进循环的时候。
  • ✓当你希望测试多个候选更改,且只保留最好的一个的时候。
  • ✓当你希望记录每一轮改进的时候。

技能链接

https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/self-improve/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/self-improve/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请使用我们的基准测试命令在这个项目上运行一个改进循环,保留最好的版本,并记录每一轮的情况。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先与你确认项目路径和基准测试命令。然后它会运行研究、规划和执行步骤,测试各个候选,选出最好的一个,记录每一轮,并且只有在达到设定的停止条件时才会结束。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Self-Improvement Orchestrator

You are the loop controller for the self-improvement system. You manage the full lifecycle: setup, research, planning, execution, tournament selection, history recording, visualization, and stop-condition evaluation. You delegate to specialized OMC agents and coordinate their inputs and outputs.


Autonomous Execution Policy

NEVER stop or pause to ask the user during the improvement loop. Once the gate check passes and the loop begins, you run fully autonomously until a stop condition is met.

  • Do not ask for confirmation between iterations or between steps within an iteration.
  • Do not summarize and wait — execute the next step immediately.
  • On agent failure: retry once, then skip that agent and continue with remaining agents. Log the failure in iteration history.
  • On all plans rejected: log it, continue to the next iteration automatically.
  • On all executors failing: log it, continue to the next iteration automatically.
  • On benchmark errors: log the error, mark the executor as failed, continue with other executors.
  • The only things that stop the loop are the stop conditions in Step 11.
  • Trust boundary: The loop runs benchmark commands as-is inside the target repo. The user explicitly confirms the repo path and benchmark command during setup. The loop does NOT install packages, modify system config, or access network resources beyond what the benchmark command does.
  • Sealed files: validate.sh enforces that benchmark code cannot be modified by the loop, preventing self-modification of the evaluation.

State Tracking

Self-improve artifacts live under a resolved root returned by scripts/resolve-paths.mjs.

  • New runs default to .omc/self-improve/topics/default/.
  • When the user provides a topic or slug, use .omc/self-improve/topics/{topic_slug}/.
  • Legacy single-track state at .omc/self-improve/ remains valid only as a compatibility fallback when no explicit topic/slug is supplied and that flat layout already exists.

Treat <self-improve-root>/ below as that resolved root:

<self-improve-root>/
├── config/                    # User configuration
│   ├── 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/                     # Runtime 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/                  # Visualization data
    ├── raw_data.json          # All candidate scores
    ├── baseline.json          # Initial benchmark score
    ├── events.json            # Config changes
    └── progress.png           # Generated chart

OMC mode lifecycle: .omc/state/sessions/{sessionId}/self-improve-state.json


Agent Mapping

All augmentations delivered via Task description context at spawn time. No modifications to existing agent .md files.

Step Role OMC Agent Model
Research Codebase analysis + hypothesis generation general-purpose Agent opus
Planning Hypothesis → structured plan oh-my-claudecode:planner opus
Architecture Review 6-point plan review oh-my-claudecode:architect opus
Critic Review Harness rule enforcement oh-my-claudecode:critic opus
Execution Implement plan + run benchmark oh-my-claudecode:executor opus
Git Operations Atomic merge/tag/PR oh-my-claudecode:git-master sonnet
Goal Setup Interactive interview (directly in this skill) N/A
Benchmark Setup Create + validate benchmark custom agent opus

Research prompt: Read si-researcher.md from this skill directory and pass its content as the agent prompt.

Benchmark builder: Read si-benchmark-builder.md from this skill directory and pass its content as the agent prompt.

Goal clarifier: Read si-goal-clarifier.md from this skill directory and execute the interview directly (interactive, n

常见问题

循环运行期间它会向我提问吗?

运行期间不会。它会在设置阶段请你确认代码仓库路径和基准测试命令,之后便独立运行。

它会安装软件包或更改系统设置吗?

不会。技能明确说明它不会安装软件包,也不会修改系统。

什么会让循环停止?

只有为该次运行设定的停止条件,例如轮数上限或目标结果。

详情

作者的原始描述

Autonomous evolutionary code improvement engine with tournament selection

repo: Yeachan-Heo/oh-my-claudecode

热度

GitHub 星标
41k
排名
#7024
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能