Darwin: Measurable Evolution of Agent Skills via Evaluation and Git Ratchets

Preface

When maintaining multiple SKILL.md files, a common practice is manual review: checking whether formats are standardized, whether steps are numbered, and whether paths are correctly written. Such structural checks can catch obvious omissions, but they struggle to answer a more critical question—when running typical tasks with this Skill, does the output actually improve?

Below we introduce the community Skill “Darwin” (coordinates @user_df471c2d/darwin-skill). It applies Karpathy autoresearch’s “only keep measurable improvements” philosophy to Skill optimization: first establish a baseline score, then modify SKILL.md based on weaknesses, re-verify with test prompts, retain changes only if scores increase, otherwise git revert to rollback, and require human confirmation at key milestones.

What This Is

Darwin is an optimization-focused Skill targeting Agent Skill (SKILL.md) quality and effectiveness, published by GitHub maintainer alchaincyf (related to the Huashu ecosystem). It’s categorized as ai-agent on SkillHub, tagged with requires_api_key=false, with the current list version being 1.0.0; the repository README also documents evaluation and workflow upgrades for Darwin.skill 2.0. After installation, the Agent executes according to the SKILL.md contained in the installed package.

It addresses the problem that arises when Skills grow from a few to dozens: the need for a repeatable, rollback-capable optimization process that distinguishes between “well-formatted” and “performs better,” rather than one-off manual edits.

Core Features

The following capabilities are derived from the official SKILL.md / README / ClawHub documentation, organized by phase.

Dual Evaluation and Weighted Total Score

  • Structural dimension (static analysis): Checks Frontmatter, workflow clarity, boundaries and checkpoints, instruction specificity, resource references, etc.; the v2.0 documentation upgrades some dimensions to more detailed rubrics such as “failure mode encoding,” “executable specificity,” and “blacklists for high-risk actions.”
  • Effectiveness dimension (requires testing or controlled degradation): Prepares test-prompts.json for each Skill (typically 2–3 representative user phrasings), uses independent sub-Agents to compare outputs “with Skill / without Skill” and score actual performance; when sub-Agents cannot be run, dry runs can be performed with eval_mode=dry_run noted in results.tsv.
  • Total score: Each dimension scored 1–10 multiplied by weight and summed, full score 100; improvements are retained only if the total score strictly exceeds the pre-improvement score, otherwise rolled back.

Optimization Lifecycle (Human-in-the-Loop)

The official workflow is roughly divided into:

  1. Phase 0 Initialization: Confirm optimization scope (all or specified Skills), create auto-optimize/YYYYMMDD-HHMM branch, initialize or read results.tsv (default location .claude/skills/auto-optimize-results.tsv).
  2. Phase 0.5 Test Prompts: Design and display test prompts for each Skill, evaluate only after user confirmation.
  3. Phase 1 Baseline Evaluation: Structural scores by main Agent, effectiveness scores preferably using sub-Agents; pause for confirmation after displaying scorecards.
  4. Phase 2 Optimization Loop: Process from lowest to highest score; each round targets only one weak dimension to modify SKILL.md, git commit then re-evaluate; v2.0 emphasizes multiple judges, no judge reuse, early stopping when single-round improvements are too small; checkpoints at each Skill completion, user can request rollback.
  5. Phase 2.5 (Optional) Exploratory Rewrite: When hill-climbing gets stuck, with user consent, can rewrite entire document and compare with stashed version.
  6. Phase 3 Summary Report: Output pre/post scores, retain/rollback counts, main change summaries.

Ratchet and Constraints

  • Changes occur only on Git branches; regressions use git revert, documentation explicitly discourages using git reset --hard as a rollback method.
  • Constraints include: not changing core Skill purpose, not arbitrarily adding dependency files, modifying only one dimension per round, controlling SKILL.md size bloat, etc.
  • Experiment logs written to TSV with fields including timestamp, commit, skill, old_score, new_score, status, dimension, note, eval_mode, etc.

Trigger Methods

Typical trigger semantics from the ClawHub page include: enable when user mentions “optimize skill,” “skill scoring,” “auto-optimize,” “skill quality check,” “help me modify skill,” “skill review” in Chinese or English expressions.

Installation and Activation

Before installation, confirm your local Agent’s skills directory; SkillHub documentation requires --dir to point to this directory during install, otherwise defaults to ./skills/ which may not be recognized.

Via SkillHub (Domestic Store Coordinates)

SkillHub page and API entry both point to coordinate @user_df471c2d/darwin-skill. If you have the skillhub CLI installed, refer to:

command -v skillhub && skillhub --version
skillhub install @user_df471c2d/darwin-skill --dir ~/.cursor/skills/

If CLI is not installed, follow the official installation script at SkillHub Installation Guide. Cursor users’ skills directory is ~/.cursor/skills/; Claude Code is ~/.claude/skills/; Codex is ~/.codex/skills/ or project-level .agents/skills/ (refer to your current client documentation).

You can also provide the following prompt to your Agent to complete installation per SkillHub documentation:

请根据 https://skillhub.cn/install/skillhub.md,安装 @user_df471c2d/darwin-skill。

Official API page: https://api.skillhub.cn/user_df471c2d/darwin-skill
SkillHub display page: https://www.skillhub.cn/skills/user_df471c2d/darwin-skill

Via skills.sh / GitHub Package Name

Installation command from repository README:

npx skills add alchaincyf/darwin-skill

OpenClaw / ClawHub

Command listed on ClawHub:

openclaw skills install @alchaincyf/darwin-skill

Offline or Cannot Access GitHub

README provides zip download links; after extraction, place contents in ~/.claude/skills/darwin-skill/ (path subject to your Agent’s skills directory).

Pre-run recommendation: Execute optimization in a Git repository, and commit or stash local Skill modifications beforehand to preserve/rollback experimental changes; diffs involving shell, git, credentials, or release workflows should be manually reviewed at checkpoints.

Typical Usage

After installation, drive with natural language; official examples include:

Full optimization (common for first use)

优化所有skills

Agent will go through Phases 0–3; documentation recommends completing baseline evaluation first, then prioritizing the lowest-scoring Skills.

Single Skill

优化 huashu-slides 这个skill

Execute test prompt design and optimization loop only for the specified Skill.

Evaluate only, don’t modify

评估所有skills的质量

Execute Phases 0.5–1 (design test prompts + baseline evaluation), do not enter rewrite loop.

View history

看看skill优化历史

Read and display results.tsv.

Each Skill directory to be optimized can maintain test-prompts.json, for example:

[
  {"id": 1, "prompt": "用户会说的话", "expected": "期望输出的简短描述"},
  {"id": 2, "prompt": "...", "expected": "..."}
]

Use Cases and Considerations

Who it’s for

  • Teams or individuals who have accumulated multiple Skills in environments like Claude Code, Cursor, OpenClaw, Codex, and need batch health checks or continuous improvement.
  • Those who want to turn “Skill modification” into auditable experiments (branches, commits, TSV logs) rather than manual patches scattered across chat records.

Limitations and Notes

  • Effectiveness dimension depends on sub-Agents or dry runs; when dry run ratio is too high, v2.0 documentation warns that conclusion confidence is weaker than full empirical testing.
  • Workflow default scan path example is .claude/skills/*/SKILL.md; if your Skills are in ~/.cursor/skills/ or similar locations, need to clarify scope in conversation or adjust per SKILL.md Phase 0 instructions.
  • SkillHub list version is 1.0.0, may not be synced with GitHub README’s 2.0 feature descriptions; defer to the actual SKILL.md in your installed package.
  • No API Key required (requires_api_key=false), but requires Git, sufficiently long Agent sessions, and willingness to participate in checkpoint confirmations.

Conclusion

Darwin organizes Skill optimization into a closed loop of “evaluate → improve → test → retain or rollback,” using Git’s ratchet mechanism to prevent scores and quality from silently degrading. If you’re maintaining a full suite of Agent Skills, treat it as a repeatable optimization pipeline rather than one-time document review.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye