@iasiv5/dsh-skills 1.3.4 → 1.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/package.json +1 -1
  2. package/skills/answer-me-with-html/SKILL.md +3 -3
  3. package/skills/answer-me-with-html/references/video.md +1 -0
  4. package/skills/answer-me-with-html/scripts/am.mjs +1671 -1131
  5. package/skills/darwin-skill/README.md +136 -121
  6. package/skills/darwin-skill/README_EN.md +138 -123
  7. package/skills/darwin-skill/SKILL.md +256 -421
  8. package/skills/darwin-skill/_archive/hero-2.0.gif +0 -0
  9. package/skills/darwin-skill/assets/banner-en.svg +1 -1
  10. package/skills/darwin-skill/assets/banner.svg +2 -2
  11. package/skills/darwin-skill/assets/chart-loop-en.html +2 -2
  12. package/skills/darwin-skill/assets/chart-loop-en.png +0 -0
  13. package/skills/darwin-skill/assets/chart-loop.html +2 -2
  14. package/skills/darwin-skill/assets/chart-loop.png +0 -0
  15. package/skills/darwin-skill/assets/chart-phases-en.html +12 -12
  16. package/skills/darwin-skill/assets/chart-phases-en.png +0 -0
  17. package/skills/darwin-skill/assets/chart-phases.html +13 -13
  18. package/skills/darwin-skill/assets/chart-phases.png +0 -0
  19. package/skills/darwin-skill/assets/darwin-3.0-launch.mp4 +0 -0
  20. package/skills/darwin-skill/assets/hero.gif +0 -0
  21. package/skills/darwin-skill/assets/result-card-example.png +0 -0
  22. package/skills/darwin-skill/docs/index.html +93 -357
  23. package/skills/darwin-skill/references/about-author.md +101 -0
  24. package/skills/darwin-skill/references/eval-protocol.md +156 -0
  25. package/skills/darwin-skill/references/skilllens-evidence.md +2 -1
  26. package/skills/darwin-skill/references/v3-evidence.md +114 -0
  27. package/skills/darwin-skill/scripts/darwin.py +400 -0
  28. package/skills/darwin-skill/scripts/screenshot.mjs +3 -2
  29. package/skills/darwin-skill/showcase.html +93 -357
  30. package/skills/darwin-skill/templates/result-card.html +36 -20
  31. package/skills/darwin-skill/templates/result-card.png +0 -0
  32. package/skills/darwin-skill/test-prompts.json +36 -12
  33. package/skills/docx/SKILL.md +5 -4
  34. package/skills/docx/scripts/office/helpers/__init__.py +22 -4
  35. package/skills/docx/scripts/office/helpers/pptx_chart.py +124 -11
  36. package/skills/docx/scripts/office/helpers/pptx_slide.py +43 -3
  37. package/skills/docx/scripts/office/soffice.py +85 -1
  38. package/skills/docx/scripts/office/validate.py +50 -7
  39. package/skills/docx/scripts/office/validators/base.py +16 -4
  40. package/skills/docx/scripts/office/validators/docx.py +59 -6
  41. package/skills/docx/scripts/office/validators/pptx.py +116 -8
  42. package/skills/docx/scripts/office/validators/redlining.py +292 -113
  43. package/skills/impeccable/SKILL.md +4 -2
  44. package/skills/impeccable/reference/adapt.md +1 -1
  45. package/skills/impeccable/reference/animate.md +17 -0
  46. package/skills/impeccable/reference/critique-rubric.md +496 -0
  47. package/skills/impeccable/reference/critique.md +12 -504
  48. package/skills/impeccable/reference/degraded/documenter.md +1 -1
  49. package/skills/impeccable/reference/degraded/motion-reviewer.md +29 -0
  50. package/skills/impeccable/reference/document.md +3 -1
  51. package/skills/impeccable/reference/foundations.md +44 -0
  52. package/skills/impeccable/reference/hooks.md +3 -3
  53. package/skills/impeccable/reference/live-setup.md +1 -1
  54. package/skills/impeccable/reference/live.md +26 -12
  55. package/skills/impeccable/reference/new-work-comp.md +24 -0
  56. package/skills/impeccable/reference/new-work-world.md +20 -0
  57. package/skills/impeccable/reference/new-work.md +6 -34
  58. package/skills/impeccable/reference/typeset.md +6 -0
  59. package/skills/impeccable/reference/visualize.md +1 -1
  60. package/skills/impeccable/scripts/VERSION +1 -1
  61. package/skills/impeccable/scripts/engine-checksums.txt +5 -5
  62. package/skills/impeccable/scripts/live-browser.js +51 -22
  63. package/skills/pdf/{forms.md → FORMS.md} +1 -1
  64. package/skills/pdf/{reference.md → REFERENCE.md} +3 -2
  65. package/skills/xlsx/SKILL.md +19 -14
  66. package/skills/xlsx/scripts/office/helpers/__init__.py +22 -4
  67. package/skills/xlsx/scripts/office/helpers/pptx_chart.py +124 -11
  68. package/skills/xlsx/scripts/office/helpers/pptx_slide.py +43 -3
  69. package/skills/xlsx/scripts/office/soffice.py +85 -1
  70. package/skills/xlsx/scripts/office/validate.py +50 -7
  71. package/skills/xlsx/scripts/office/validators/base.py +16 -4
  72. package/skills/xlsx/scripts/office/validators/docx.py +59 -6
  73. package/skills/xlsx/scripts/office/validators/pptx.py +116 -8
  74. package/skills/xlsx/scripts/office/validators/redlining.py +292 -113
  75. package/skills/xlsx/scripts/recalc.py +731 -136
  76. package/skills-manifest.json +1 -1
  77. /package/skills/darwin-skill/{assets → _archive}/chart-ratchet-en.html +0 -0
  78. /package/skills/darwin-skill/{assets → _archive}/chart-ratchet-en.png +0 -0
  79. /package/skills/darwin-skill/{assets → _archive}/chart-ratchet.html +0 -0
  80. /package/skills/darwin-skill/{assets → _archive}/chart-ratchet.png +0 -0
  81. /package/skills/darwin-skill/{templates → _archive}/result-card-dark.html +0 -0
  82. /package/skills/darwin-skill/{templates → _archive}/result-card-white.html +0 -0
@@ -6,18 +6,24 @@ English | **[中文](README.md)**
6
6
 
7
7
  ![darwin.skill](assets/banner-en.svg)
8
8
 
9
+ <p align="center">
10
+ <img src="assets/hero.gif" alt="darwin.skill 3.0 launch film" />
11
+ <br/>
12
+ <sub>3.0 launch film (Chinese captions) · <a href="assets/darwin-3.0-launch.mp4">full version with sound (mp4)</a> · made with the <a href="https://github.com/alchaincyf/huashu-motion">huashu-motion</a> skill; every number on screen comes from a real record</sub>
13
+ </p>
14
+
9
15
  <div align="center">
10
16
 
11
- # darwin.skill 2.0
17
+ # darwin.skill 3.0
12
18
 
13
- **Optimize your Agent Skills the way you train models.**
19
+ **Evolve your Agent Skills the way you train models.**
14
20
 
15
- Inspired by [Karpathy's autoresearch](https://github.com/karpathy/autoresearch). Autonomous experiment loops, applied to skill optimization. A ratchet that only turns forward.
21
+ Inspired by [Karpathy's autoresearch](https://github.com/karpathy/autoresearch). Autonomous experiment loops, applied to skills. A ratchet that only turns forward.
16
22
 
17
- **v2.0** · Updated 2026-05-28 · A structural upgrade integrating Microsoft Research's [SkillLens](https://arxiv.org/abs/2605.23899) and [SkillOpt](https://arxiv.org/abs/2605.23904) papers.
23
+ **v3.0** · 2026-11 · The ratchet now judges what a skill *does*, not how its document reads.
18
24
 
19
25
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
20
- [![Version](https://img.shields.io/badge/version-2.0-blue.svg)](#whats-new-in-20)
26
+ [![Version](https://img.shields.io/badge/version-3.0-blue.svg)](#whats-new-in-30)
21
27
  [![Agent Skill](https://img.shields.io/badge/Agent%20Skill-Compatible-blueviolet)](https://skills.sh)
22
28
  [![Skills](https://img.shields.io/badge/skills.sh-Compatible-green)](https://skills.sh)
23
29
  [![Microsoft SkillOpt](https://img.shields.io/badge/Microsoft_SkillOpt-Listed_Integration-0078D4?logo=microsoft&logoColor=white)](https://github.com/microsoft/SkillOpt)
@@ -31,52 +37,34 @@ npx skills add alchaincyf/darwin-skill
31
37
  ---
32
38
 
33
39
  > [!NOTE]
34
- > **🤝 Microsoft Research lists darwin-skill as an official SkillOpt integration.**
40
+ > **🤝 Microsoft Research lists darwin-skill among SkillOpt's integrations.**
35
41
  > On 2026-06-03, the [SkillOpt repo](https://github.com/microsoft/SkillOpt) noted:
36
42
  > *"gbrain, gbrain-evals, and **darwin-skill** have all integrated SkillOpt."*
37
- > We absorbed its validation-gated framework; it added darwin to its integration list. A two-way nod. 👉 [Visit the SkillOpt repo](https://github.com/microsoft/SkillOpt)
38
43
 
39
44
  ---
40
45
 
41
- ## What's New in 2.0
42
-
43
- v2.0 is not a patch release. It's a structural upgrade absorbing two Microsoft Research papers published on 2026-05-22. Five concrete changes:
44
-
45
- **1. Rubric expanded from 8 → 9 dimensions** (integrating [SkillLens](https://arxiv.org/abs/2605.23899)'s empirically validated 73.8% rubric recipe)
46
-
47
- - The legacy "error handling" dimension is upgraded to **Failure Mechanism Encoding**: not just "tell the agent to be careful," but explicitly encode known failure paths into the skill.
48
- - The legacy "clarity" dimension is upgraded to **Actionable Specificity**: explicitly bans vague hedge words like "suggest / could consider / depending on / use judgment / case by case."
49
- - A new ninth dimension **High-Risk Action Blacklist**: destructive operations like `rm` / `git reset --hard` / `force push` must be explicitly listed as forbidden in the skill.
50
-
51
- **2. Validation aligned with SkillOpt's validation-gated design**
46
+ ## What's New in 3.0
52
47
 
53
- - Multi-judge independent review: 2 independent judges per round
54
- - Judges never reused: each new round spawns fresh judges to avoid anchoring bias
55
- - Early stopping: if a round's score gain < 1 point, automatically halt to prevent padding for score
56
- - Dry-run control: warn when dry-run ratio exceeds 30%
48
+ The core loop is unchanged: evaluate → improve → validate → human confirm → keep or revert. The 9-dimension rubric, independent judges, git rollback, a human checkpoint after every skill, and result cards are all still here.
57
49
 
58
- **3. Human-in-the-loop at three checkpoints** (the core differentiator from SkillOpt's fully autonomous design)
50
+ What changed is what the ratchet measures. In 2.x, judges read the before and after SKILL.md and voted. Research published in 2026, and our own logs, show that this measures the wrong thing:
59
51
 
60
- - Phase 1 baseline eval: auto + human review the report, decide what to optimize
61
- - Phase 2 single-dimension edit: 🔴 CHECKPOINT mandatory pause for user confirmation
62
- - Phase 2.5 test-prompt run (optional)
63
- - Phase 3 regression test: 🛑 STOP if gain falls below threshold
64
-
65
- **4. Anti-pattern blacklist with 8 explicit forbidden behaviors**
66
-
67
- 1. Same AI both edits and scores (SkillLens empirical: LLM self-eval accuracy only 46.4%)
68
- 2. Using `git reset --hard` as a rollback mechanism (use `git revert`)
69
- 3. Padding edits just to push the score up
70
- 4. Skipping test prompts and scoring directly
71
- 5. Changing multiple dimensions in one round
72
- 6. Dry-run ratio > 30%
73
- 7. Silently swallowing exceptions
74
- 8. Ignoring correlated dimension clusters
52
+ | Finding | Source |
53
+ |:---|:---|
54
+ | Scores from reading a skill document are essentially uncorrelated with the lift the skill gives a live agent (ρ = −0.02 and −0.03) | NVIDIA, arXiv:2608.20614 |
55
+ | The document selected for "looking complete" was the worst of its set on every behavioral metric | JetBrains, arXiv:2609.12742 |
56
+ | Compact skills add +19 points; comprehensive ones add +0.7; model-written skills do worse than no skill | SkillsBench, arXiv:2602.12670 |
57
+ | An edit that judges approved 3–0 cost 33 extra tool calls on a real device | This project's logs, 2026-09 |
75
58
 
76
- **5. Empirical validation data**
59
+ So 3.0 does seven things:
77
60
 
78
- - huashu-gpt-image skill: **80.8 → 91.5 → 91.65** (+10.85, consensus across 6 independent judges)
79
- - darwin-skill self-eval: **86.05 → 92.05 → 92.7**
61
+ 1. **A behavior ratchet.** After each edit, independent agents do real tasks with the new skill, and judges blind-compare the outputs of the old and new versions. The document rubric is demoted to a diagnostic: it finds problems and sets priorities.
62
+ 2. **Ask whether the skill helps at all.** Before evolving, an agent with the skill and a bare model each run the tests. If the bare model already does the job, darwin tells you so. If the skill hurts, it deletes before it adds.
63
+ 3. **Ties go to the shorter version.** An edit is kept only when it is strictly better, or equal and shorter. Every "close enough, keep it" makes a skill longer, and longer skills stop helping.
64
+ 4. **Held-out acceptance.** Tests are split into a dev set and a held-out set. Edits are driven by the dev set; the held-out set checks that they did not just fit the tests.
65
+ 5. **A script decides, not a feeling.** Random A/B order, removal of anything that reveals which output is which, vote counting and the verdict are all done by `scripts/darwin.py` under fixed rules. When a judge raises a checkable factual objection, it is verified first: facts outrank votes.
66
+ 6. **A zero-cost health check.** `darwin.py check` scans every skill without spending tokens: routing, body length, missing references, secrets, personal paths.
67
+ 7. **Honest reports.** Every conclusion carries an evidence level (E0 check, E1 read, E2 run, E3 real environment), and every report lists what was verified, what was not, and the remaining risk.
80
68
 
81
69
  ---
82
70
 
@@ -84,151 +72,178 @@ v2.0 is not a patch release. It's a structural upgrade absorbing two Microsoft R
84
72
 
85
73
  ![Core Loop](assets/chart-loop-en.png)
86
74
 
87
- Evaluate → Improve → Test → Human Confirm → Keep or Revert. Repeat.
88
-
89
75
  ---
90
76
 
91
77
  ## Why This Exists
92
78
 
93
- Agent skill ecosystems are expanding fast. Claude Code, Codex, OpenClaw, Trae, CodeBuddy and more all support the SKILL.md format. When you have 10 skills, you can maintain them by hand. When you have 60+, you need a system.
94
-
95
- Traditional skill review is purely structural: does the frontmatter look right? Are the steps numbered? Do the file paths exist? But a perfectly formatted skill can still produce terrible output.
79
+ With 10 skills you can maintain them by hand. With 60 or more you need a system.
96
80
 
97
- darwin.skill evaluates both **structure** and **real-world effectiveness**, then keeps only the changes that actually improve things.
81
+ Conventional skill review looks at the document: format, numbered steps, reachable paths. A perfectly formatted skill can still leave an agent no better off than having no skill. darwin accepts one criterion: with this skill installed, does the agent do the same job better?
98
82
 
99
83
  ---
100
84
 
101
- ## From autoresearch to Skill Optimization
85
+ ## From autoresearch to Skill Evolution
102
86
 
103
- This project maps Karpathy's autoresearch directly onto skill optimization:
104
-
105
- | autoresearch | darwin.skill | Why |
87
+ | autoresearch | darwin.skill | Why this mapping |
106
88
  |:---|:---|:---|
107
- | `program.md` | This SKILL.md | Defines evaluation criteria and constraints |
108
- | `train.py` | Each target SKILL.md | The single editable asset per experiment |
109
- | `val_bpb` | 9-dimension weighted score (max 100) | Quantifiable optimization target |
110
- | `git ratchet` | keep / revert mechanism | Only improving commits survive |
111
- | `test set` | test-prompts.json | Validates whether improvements are real |
112
- | Fully autonomous | **Human in the loop** | Skill quality is more subjective than loss |
113
-
114
- The key difference: autoresearch is fully autonomous (loss is just a number). Skill quality sometimes needs human judgment. So darwin.skill pauses after each skill's optimization cycle, shows you the diff and score delta, and waits for your confirmation.
89
+ | `program.md` | darwin's SKILL.md | Defines the evaluation criteria and constraints |
90
+ | `train.py` | Each SKILL.md being evolved | The asset under optimization; one hypothesis per round |
91
+ | `val_bpb` | Win/tie/loss from blind comparison of real outputs | A loss is repeatable; an LLM score is not, so darwin compares pairs and never absolute scores |
92
+ | `git ratchet` | keep / revert | Only commits proven better by real runs survive |
93
+ | `test set` | test-prompts.json, split into dev and held-out | Confirms the gain is real, not test-fitting |
94
+ | Fully autonomous | **Human in the loop** | Skill quality is subtler than a loss value |
115
95
 
116
96
  ---
117
97
 
118
98
  ## Five Core Principles
119
99
 
120
- | # | Principle | Details |
100
+ | # | Principle | Description |
121
101
  |:---|:---|:---|
122
- | 01 | **Single editable asset** | One SKILL.md per experiment. One change, one measurement, one decision |
123
- | 02 | **Dual evaluation** | Structure scoring (static analysis) + effectiveness scoring (live test execution) |
124
- | 03 | **Ratchet mechanism** | Score can only go up. Regressions are auto-reverted |
125
- | 04 | **Independent scoring** | The agent that edits is never the agent that scores (SkillLens: LLM self-eval is only 46.4% accurate) |
126
- | 05 | **Human in the loop** | System pauses after each skill. You review, then continue |
102
+ | 01 | **Single editable asset** | One hypothesis per round, so gains are attributable |
103
+ | 02 | **Dual evaluation** | Read the document to find problems; run tasks to decide |
104
+ | 03 | **Ratchet** | Keep only edits that real runs prove better; revert the rest |
105
+ | 04 | **Independent scoring** | Executors and judges are separate subagents; judges never know which output is new |
106
+ | 05 | **Human in the loop** | Three pauses: the test set, the baseline, and after each skill |
127
107
 
128
108
  ---
129
109
 
130
110
  ## 9-Dimension Evaluation Rubric
131
111
 
132
- Total: 100 points. Structure + Effectiveness. v2.0's three new dimensions come directly from SkillLens's empirically validated rubric.
112
+ 100 points, same weights as 2.x. In 3.0 its job is diagnosis and triage: the total says which skill to fix first, the dimensions say where the problem probably is. It does not decide whether an edit stays.
133
113
 
134
114
  ![Evaluation Rubric](assets/chart-rubric-en.png)
135
115
 
136
- The three new dimensions (SkillLens 73.8% rubric recipe):
116
+ Two adjustments:
137
117
 
138
- | Dimension | Description |
139
- |:---|:---|
140
- | **Failure Mechanism Encoding** | Explicitly encode known failure paths, not just "be careful" reminders |
141
- | **Actionable Specificity** | Ban vague hedge words like "suggest / could consider / depending on / use judgment / case by case" |
142
- | **High-Risk Action Blacklist** | Destructive operations (rm / git reset --hard / force push) must be explicitly forbidden |
143
-
144
- > Live test performance has the highest weight. A beautifully written skill that produces bad output is still a bad skill.
118
+ - **Live performance (23 points) is computed, not guessed**: the check pass rate sets the base score and the lift over the bare model caps it. No real run, no score; the total is marked incomparable.
119
+ - **Necessity.** Failure branches, checkpoints and blacklists are required only where the task is fragile. Sections added to chase points are penalized as redundancy.
145
120
 
146
121
  ---
147
122
 
148
- ## The Optimization Cycle
149
-
150
- Five phases. The system runs autonomously within each phase but pauses between phases for human confirmation.
123
+ ## The Evolution Cycle
151
124
 
152
- ![Optimization Lifecycle](assets/chart-phases-en.png)
125
+ ![Evolution Lifecycle](assets/chart-phases-en.png)
153
126
 
154
- **Phase 2 (the heart, hardened in v2.0):**
155
-
156
- 1. Find the dimension with the largest weighted gap (weighted_gap = weight × (10 − score) / 10, so low-weight dimensions can't fake progress)
157
- 2. Generate one targeted improvement (one dimension per round, blacklist #5)
158
- 3. Edit SKILL.md, git commit
159
- 4. **Spawn 2 independent sub-agents** to re-score (next round spawns fresh judges to avoid anchoring)
160
- 5. Score up → keep. Score down → `git revert` (never `git reset --hard`, blacklist #2)
161
- 6. Round gain < 1 point → early-stop automatically (no padding for score)
162
- 7. 🔴 CHECKPOINT pauses, shows diff + score delta, waits for human confirmation
127
+ | Phase | What happens | Human checkpoint |
128
+ |:---|:---|:---|
129
+ | 0 Prepare | Health check, branch, snapshot, read history, agree on protected sections | |
130
+ | 1 Test set | At least 4 tests, half dev and half held-out; real past requests first | 🔴 Confirm tests |
131
+ | 2 Baseline runs | With-skill and bare-model runs, blind-judged for lift; a read review for the 9-dim score | 🔴 Confirm scorecard and direction |
132
+ | 3 Evolve | One hypothesis per round: delete, then rewrite, then move, and only then add; real runs, three blind judges, scripted verdict | |
133
+ | 4 Held-out check | Original vs final on the held-out set; trigger test and real-environment run where needed | 🔴 Review the diff |
134
+ | 5 Report | Verdict, score, live results, edits, verified, not verified, remaining risk | |
163
135
 
164
136
  ---
165
137
 
166
- ## The Ratchet
138
+ ## How the Ratchet Decides
167
139
 
168
- Scores can only go up. Failed experiments are cleanly reverted. No regressions accumulate over time.
140
+ `darwin.py tally` applies four rules. The main agent does not weigh in:
169
141
 
170
- ![Ratchet Mechanism](assets/chart-ratchet-en.png)
142
+ | Blind result | Verdict |
143
+ |:---|:---|
144
+ | More wins than losses, no check regressed | Keep |
145
+ | Tie, new version shorter | Keep |
146
+ | Tie, new version not shorter | Revert |
147
+ | More losses than wins, or a check regressed | Revert |
171
148
 
172
- Round 2 scored 75, below the current best of 78. Auto-reverted. Effective baseline stays at 78. Subsequent improvements build from 78, not 75.
149
+ When the margin is one test and judges disagree, those tests are rerun for both versions before deciding. Reverts use `git revert`, so history is preserved.
173
150
 
174
151
  ---
175
152
 
176
- ## Quick Start
153
+ ## A Real Run
177
154
 
178
- ```bash
179
- npx skills add alchaincyf/darwin-skill
180
- ```
155
+ On 2026-11-14 the 3.0 process was run on a copy of [huashu-excel](https://github.com/alchaincyf/huashu-excel), a data-analysis skill with a 791-line body. The two dev tasks are real requests from its own test set, paired with data synthesized to carry the original traps: a sales workbook whose two sheets share 235 duplicated orders, and a ticket export whose SLA-deadline column is entirely empty. Executors and judges were independent subagents (Claude Sonnet).
156
+
157
+ | Step | Result |
158
+ |:---|:---|
159
+ | Health check | 0 errors, 1 warning: body over 500 lines |
160
+ | Baseline: with skill vs bare model | 1 win, 1 tie, 0 losses; checks passed 7/7 vs 6/7 |
161
+ | Round 1 hypothesis | Neither task produces a report file, yet both load 253 lines of report-making detail; move it to references |
162
+ | Round 1 verdict (3 blind judges) | 1 win, 1 tie, 0 losses (both deciding votes were "slight"), no check regressed, SKILL.md −31% in size: keep |
163
+ | Tokens per execution | Bare about 72k, original about 98k, new version about 92k |
164
+
165
+ The limits of this run: only 2 dev tasks, on synthetic data; the held-out set was not run, and report-producing tasks were not checked after the move; the edit lives on a copy and was not merged into huashu-excel. Under 3.0's reporting rules all of that is "not verified".
181
166
 
182
- After installation, tell your agent: "optimize all skills" or "optimize [skill-name]". Works with any tool that supports the SKILL.md format.
167
+ The run also exposed three holes in the evaluation protocol itself, fixed before release: test files sitting in the skill directory let executors read the checks; transcripts and paths in the outputs let judges tell which output had the skill; and a skill with checkpoints stops to wait for a user who is not there.
183
168
 
184
- Can't access GitHub? Download the zip: [darwin-skill.zip](https://pub-161ae4b5ed0644c4a43b5c6412287e03.r2.dev/skills/darwin-skill.zip). Extract and place SKILL.md in `~/.claude/skills/darwin-skill/`.
169
+ ---
170
+
171
+ ## How This Differs from skill-creator's Evals
185
172
 
186
- Safety notes:
173
+ Anthropic's skill-creator already runs with-skill against a baseline, grades assertions, and has a blind comparator. On the evaluation side, darwin 3.0 adds:
187
174
 
188
- - Run optimization from a git repository and commit or stash your local skill edits first, so darwin.skill can keep or revert experiment changes cleanly.
189
- - Review the checkpoint diff before continuing to the next optimization round, especially when a skill touches shell commands, git operations, credentials, local files, or publishing workflows.
175
+ | | skill-creator | darwin 3.0 |
176
+ |:---|:---|:---|
177
+ | Blind comparison | Optional advanced step | Required for every verdict; random A/B order, transcripts and path clues removed |
178
+ | Keep or revert | A person decides after viewing results | A script applies fixed rules, then a person reviews |
179
+ | Ties | No rule | Ties go to the shorter version |
180
+ | Held-out set | Description optimization only | Body edits must pass it too |
181
+ | Factual objections | No rule | Verified first; facts outrank votes |
182
+ | Trigger test | Target skill alone | Neighboring skills included as competition |
183
+ | Edit preference | None | Delete before adding; growth needs failing evidence |
184
+ | Regression after a model upgrade | None | Retest mode |
185
+ | Evidence level | None | E0 to E3, with verified and not-verified listed separately |
186
+ | Fleet-wide screening | None | Zero-token health check |
187
+
188
+ skill-creator also creates skills from scratch and ships a results viewer, which darwin does not try to do. They work together: create with one, evolve with the other.
190
189
 
191
190
  ---
192
191
 
193
- ## Design Inspiration
192
+ ## Quick Start
194
193
 
195
- Directly inspired by **Andrej Karpathy's [autoresearch](https://github.com/karpathy/autoresearch)**.
194
+ ```bash
195
+ npx skills add alchaincyf/darwin-skill
196
+ ```
196
197
 
197
- The core mechanism is identical: **keep only measurable improvements, revert everything else.**
198
+ Then tell your agent:
198
199
 
199
- v2.0 builds on this foundation by integrating two Microsoft Research papers (published 2026-05-22): [SkillLens](https://arxiv.org/abs/2605.23899) provides the empirically validated rubric design, and [SkillOpt](https://arxiv.org/abs/2605.23904) provides the formal framework of validation-gated edits.
200
+ | You say | It does | Cost |
201
+ |:---|:---|:---|
202
+ | "health-check all my skills" | Runs the check script, returns a ranked table | About zero |
203
+ | "evaluate skill X" | Real runs against the bare model, a 9-dim scorecard, no edits | About 6 subagent runs |
204
+ | "optimize skill X" | The full evolution cycle | 20-odd subagent runs |
205
+ | "retest X" | Reruns the saved tests after a model upgrade | Same as evaluate |
200
206
 
201
- ---
207
+ The health check also runs directly:
202
208
 
203
- ## References & Credits
209
+ ```bash
210
+ python3 scripts/darwin.py check ~/.claude/skills # use your own skills directory
211
+ ```
204
212
 
205
- v2.0's design directly builds on the following academic work. Recommended reading for researchers and engineers working on the skill ecosystem:
213
+ Can't access GitHub? Download the zip: [darwin-skill.zip](https://pub-161ae4b5ed0644c4a43b5c6412287e03.r2.dev/skills/darwin-skill.zip). Extract the complete `darwin-skill` folder into the skills directory documented by your agent/runtime. Keep `SKILL.md`, `references/`, `scripts/`, and `templates/` together; do not copy only `SKILL.md`.
206
214
 
207
- ### SkillLens
215
+ Notes:
208
216
 
209
- > Microsoft Research. *From Raw Experience to Skill Consumption: A Systematic Study of Model-Generated Agent Skills.* arXiv:2605.23899, 2026.
217
+ - Run evolution inside a git repository, and commit or stash your local edits to the skill first, so darwin can keep or revert its experiments cleanly.
218
+ - Real runs need an environment that can spawn independent subagents. Without one, darwin does only the health check and the read review, and says so in the report.
219
+ - Tests never perform outward actions (publish, push, send messages) on their own. Such tests are listed as not verified and left to you.
220
+ - darwin stops after each skill to show you the diff. Read it, especially when the skill involves shell commands, git, credentials or publishing.
210
221
 
211
- - Paper: https://arxiv.org/abs/2605.23899
212
- - **Contribution**: The empirically validated 73.8% rubric recipe. darwin.skill v2.0's three new dimensions (Failure Mechanism Encoding / Actionable Specificity / High-Risk Action Blacklist) come directly from this paper. It is also the empirical source for the "same AI edits and scores" anti-pattern — LLM self-eval accuracy is only 46.4%.
222
+ ---
213
223
 
214
- ### SkillOpt
224
+ ## Known Limits
215
225
 
216
- > Microsoft Research. *SkillOpt: Executive Strategy for Self-Evolving Agent Skills.* arXiv:2605.23904, 2026.
226
+ - A handful of tests per skill can only detect large differences. Small gains drown in run-to-run variance; in 3.0 they are judged a tie and reverted. That is a deliberate trade.
227
+ - Judges are still LLMs. Pairwise comparison and random order cancel some bias, not all.
228
+ - The trigger test is a simulation and differs from each runtime's real loading logic.
217
229
 
218
- - 🔗 **Code repo**: [github.com/microsoft/SkillOpt](https://github.com/microsoft/SkillOpt) (`pip install skillopt`, v0.1.0 on PyPI)
219
- - Project page: https://microsoft.github.io/SkillOpt/
220
- - Paper: https://arxiv.org/abs/2605.23904
221
- - **Contribution**: The formal framework of validation-gated edits. Treats a skill as the "external trainable state" of a frozen model: every edit must pass independent validation to be kept. darwin.skill v2.0's multi-judge independent review, non-reuse of judges, early stopping, and dry-run ratio control all align with this framework.
222
- - 🤝 **Mutual recognition**: On 2026-06-03, the official SkillOpt repo listed darwin-skill as an integration: *"gbrain, gbrain-evals, and darwin-skill have all integrated SkillOpt."* They give us the framework; we give it real-world validation.
230
+ ---
223
231
 
224
- ### autoresearch
232
+ ## References & Credits
225
233
 
226
- > Andrej Karpathy. *autoresearch.* GitHub repository, 2026.
234
+ The evidence and numbers behind each rule are in [references/v3-evidence.md](references/v3-evidence.md) (Chinese).
227
235
 
228
- - Code: https://github.com/karpathy/autoresearch
229
- - **Contribution**: The original inspiration for darwin.skill 1.0. The mapping of core mechanisms (program.md / train.py / val_bpb / git ratchet / test set) is inherited directly from autoresearch.
236
+ - **autoresearch** (Karpathy): [github.com/karpathy/autoresearch](https://github.com/karpathy/autoresearch). Single editable asset, experiment loop, ratchet; the original inspiration for darwin 1.0.
237
+ - **SkillOpt** (Microsoft Research et al., arXiv:[2605.23904](https://arxiv.org/abs/2605.23904)): a candidate edit is accepted only if strictly better on a held-out selection split; ties are rejected. Code: [github.com/microsoft/SkillOpt](https://github.com/microsoft/SkillOpt).
238
+ - **arXiv:[2605.23899](https://arxiv.org/abs/2605.23899)** (Fudan University, Microsoft Research, Shanghai Jiao Tong University; code alias SkillLens; title *From Raw Experience to Skill Consumption*): the empirical source for three rubric dimensions. An unguided LLM judge picking the better of two skills is 46.4% accurate; scoring on those three dimensions raises it to 73.8%. A different paper is actually titled SkillLens (2605.08386); cite the identifier.
239
+ - **SkillsBench** (arXiv:[2602.12670](https://arxiv.org/abs/2602.12670)): focused skills help, exhaustive ones do not.
240
+ - **ACES** (NVIDIA, arXiv:[2608.20614](https://arxiv.org/abs/2608.20614)): document scores do not predict live lift; the paired with/without difference is the skill's value.
241
+ - **Skill Issue** (JetBrains Research, arXiv:[2609.12742](https://arxiv.org/abs/2609.12742)): file-scoring metrics select the worst-behaving document; small test sets cannot resolve few-point gains.
242
+ - **SSO** (arXiv:[2607.28777](https://arxiv.org/abs/2607.28777)): without ground truth, compare executions pairwise and randomize presentation order.
243
+ - **138K SKILL.md study** (arXiv:[2608.08453](https://arxiv.org/abs/2608.08453)): routing defects are the most common, and defects grow with length.
244
+ - Thanks to everyone who filed issues and PRs. 3.0 directly adopts #7 (verified / not verified / residual risk), #18 (execution tests with real data), #24 (security-scan perception), #25 (evaluation cost) and #29 (portable paths).
230
245
 
231
- **The key difference between darwin and SkillOpt**: SkillOpt is fully autonomous; darwin.skill emphasizes human-in-the-loop — skill quality is more subjective than validation loss. Critical phases (baseline eval, single-dimension edit, regression test) mandatorily pause for the human to make the final judgment.
246
+ **darwin vs SkillOpt**: SkillOpt is fully autonomous and needs a task set with ground truth. darwin is for skill authors who have a few real requests and no labels: it uses blind comparison in place of ground truth and stops for human judgment at key points.
232
247
 
233
248
  ---
234
249