hive-skills 0.1.0

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 (238) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +235 -0
  3. package/assets/LICENSE +32 -0
  4. package/assets/THIRD_PARTY_NOTICES.md +72 -0
  5. package/assets/manifest.json +1290 -0
  6. package/assets/skills/authored/code-review/composable/BUNDLE.md +192 -0
  7. package/assets/skills/authored/code-review/composable/INDEX.md +13 -0
  8. package/assets/skills/authored/code-review/composable/VERSION +1 -0
  9. package/assets/skills/authored/code-review/composable/mini/01-review-method.md +34 -0
  10. package/assets/skills/authored/code-review/composable/mini/02-security-review.md +20 -0
  11. package/assets/skills/authored/code-review/composable/mini/03-correctness-bugs.md +19 -0
  12. package/assets/skills/authored/code-review/composable/mini/04-concurrency.md +16 -0
  13. package/assets/skills/authored/code-review/composable/mini/05-error-handling.md +12 -0
  14. package/assets/skills/authored/code-review/composable/mini/06-performance.md +11 -0
  15. package/assets/skills/authored/code-review/composable/mini/07-api-design.md +20 -0
  16. package/assets/skills/authored/code-review/composable/mini/08-missing-tests.md +25 -0
  17. package/assets/skills/authored/code-review/composable/mini/09-refactoring-and-communication.md +32 -0
  18. package/assets/skills/authored/data-analysis/composable/BUNDLE.md +186 -0
  19. package/assets/skills/authored/data-analysis/composable/INDEX.md +13 -0
  20. package/assets/skills/authored/data-analysis/composable/VERSION +1 -0
  21. package/assets/skills/authored/data-analysis/composable/mini/01-data-quality-profiling.md +26 -0
  22. package/assets/skills/authored/data-analysis/composable/mini/02-aggregation-pitfalls.md +21 -0
  23. package/assets/skills/authored/data-analysis/composable/mini/03-time-series.md +19 -0
  24. package/assets/skills/authored/data-analysis/composable/mini/04-segmentation.md +23 -0
  25. package/assets/skills/authored/data-analysis/composable/mini/05-discount-pricing.md +17 -0
  26. package/assets/skills/authored/data-analysis/composable/mini/06-insight-generation.md +25 -0
  27. package/assets/skills/authored/data-analysis/composable/mini/07-executive-writing.md +26 -0
  28. package/assets/skills/authored/data-analysis/composable/mini/08-recommendations.md +20 -0
  29. package/assets/skills/authored/data-analysis/composable/mini/09-reproducibility-assumptions.md +20 -0
  30. package/assets/skills/authored/financial-analysis/composable/BUNDLE.md +1293 -0
  31. package/assets/skills/authored/financial-analysis/composable/INDEX.md +17 -0
  32. package/assets/skills/authored/financial-analysis/composable/VERSION +1 -0
  33. package/assets/skills/authored/financial-analysis/composable/mini/00-core.md +69 -0
  34. package/assets/skills/authored/financial-analysis/composable/mini/01-profitability-efficiency-ratios.md +173 -0
  35. package/assets/skills/authored/financial-analysis/composable/mini/02-liquidity-leverage-ratios.md +120 -0
  36. package/assets/skills/authored/financial-analysis/composable/mini/03-valuation-ratios-interpretation.md +107 -0
  37. package/assets/skills/authored/financial-analysis/composable/mini/04-dcf-projection-wacc.md +122 -0
  38. package/assets/skills/authored/financial-analysis/composable/mini/05-dcf-terminal-value-sensitivity.md +75 -0
  39. package/assets/skills/authored/financial-analysis/composable/mini/06-comparables-precedents.md +78 -0
  40. package/assets/skills/authored/financial-analysis/composable/mini/07-budget-variance-analysis.md +47 -0
  41. package/assets/skills/authored/financial-analysis/composable/mini/08-driver-based-forecasting-scenarios.md +111 -0
  42. package/assets/skills/authored/financial-analysis/composable/mini/09-rolling-forecasts-accuracy.md +114 -0
  43. package/assets/skills/authored/financial-analysis/composable/mini/10-reporting-exec-summary.md +58 -0
  44. package/assets/skills/authored/financial-analysis/composable/mini/11-industry-adaptations.md +130 -0
  45. package/assets/skills/authored/financial-analysis/composable/mini/12-toolkit-scripts-io.md +102 -0
  46. package/assets/skills/authored/python-api/composable/BUNDLE.md +389 -0
  47. package/assets/skills/authored/python-api/composable/INDEX.md +13 -0
  48. package/assets/skills/authored/python-api/composable/VERSION +1 -0
  49. package/assets/skills/authored/python-api/composable/mini/01-project-structure.md +44 -0
  50. package/assets/skills/authored/python-api/composable/mini/02-routing-and-app.md +38 -0
  51. package/assets/skills/authored/python-api/composable/mini/03-pydantic-models.md +45 -0
  52. package/assets/skills/authored/python-api/composable/mini/04-validation-and-errors.md +59 -0
  53. package/assets/skills/authored/python-api/composable/mini/05-dependencies-and-auth.md +60 -0
  54. package/assets/skills/authored/python-api/composable/mini/06-pagination-filtering.md +44 -0
  55. package/assets/skills/authored/python-api/composable/mini/07-async-performance.md +30 -0
  56. package/assets/skills/authored/python-api/composable/mini/08-testing.md +45 -0
  57. package/assets/skills/authored/python-api/composable/mini/09-middleware-observability.md +29 -0
  58. package/assets/skills/authored/tech-writing/composable/BUNDLE.md +220 -0
  59. package/assets/skills/authored/tech-writing/composable/INDEX.md +12 -0
  60. package/assets/skills/authored/tech-writing/composable/VERSION +1 -0
  61. package/assets/skills/authored/tech-writing/composable/mini/01-audience-analysis.md +26 -0
  62. package/assets/skills/authored/tech-writing/composable/mini/02-document-types.md +27 -0
  63. package/assets/skills/authored/tech-writing/composable/mini/03-readme-quickstart-changelog.md +22 -0
  64. package/assets/skills/authored/tech-writing/composable/mini/04-information-architecture.md +21 -0
  65. package/assets/skills/authored/tech-writing/composable/mini/05-style-clarity.md +29 -0
  66. package/assets/skills/authored/tech-writing/composable/mini/06-breaking-changes-migrations.md +33 -0
  67. package/assets/skills/authored/tech-writing/composable/mini/07-troubleshooting-security.md +30 -0
  68. package/assets/skills/authored/tech-writing/composable/mini/08-faq-voice-tone.md +32 -0
  69. package/assets/skills/converted/claude-api/composable/BUNDLE.md +14996 -0
  70. package/assets/skills/converted/claude-api/composable/INDEX.md +98 -0
  71. package/assets/skills/converted/claude-api/composable/VERSION +1 -0
  72. package/assets/skills/converted/claude-api/composable/mini/00-core.md +235 -0
  73. package/assets/skills/converted/claude-api/composable/mini/01-model-api-quick-reference.md +258 -0
  74. package/assets/skills/converted/claude-api/composable/mini/02-common-pitfalls.md +42 -0
  75. package/assets/skills/converted/claude-api/composable/mini/10-models.md +135 -0
  76. package/assets/skills/converted/claude-api/composable/mini/11-platform-availability.md +96 -0
  77. package/assets/skills/converted/claude-api/composable/mini/12-claude-platform-on-aws.md +59 -0
  78. package/assets/skills/converted/claude-api/composable/mini/13-live-sources.md +143 -0
  79. package/assets/skills/converted/claude-api/composable/mini/14-error-codes.md +256 -0
  80. package/assets/skills/converted/claude-api/composable/mini/15-prompt-caching.md +223 -0
  81. package/assets/skills/converted/claude-api/composable/mini/16-token-counting.md +56 -0
  82. package/assets/skills/converted/claude-api/composable/mini/17-tool-use-concepts.md +444 -0
  83. package/assets/skills/converted/claude-api/composable/mini/18-agent-design.md +101 -0
  84. package/assets/skills/converted/claude-api/composable/mini/19-anthropic-cli.md +246 -0
  85. package/assets/skills/converted/claude-api/composable/mini/20-model-migration.md +1301 -0
  86. package/assets/skills/converted/claude-api/composable/mini/30-managed-agents-overview.md +71 -0
  87. package/assets/skills/converted/claude-api/composable/mini/31-managed-agents-core.md +278 -0
  88. package/assets/skills/converted/claude-api/composable/mini/32-managed-agents-environments.md +219 -0
  89. package/assets/skills/converted/claude-api/composable/mini/33-managed-agents-tools.md +366 -0
  90. package/assets/skills/converted/claude-api/composable/mini/34-managed-agents-events.md +252 -0
  91. package/assets/skills/converted/claude-api/composable/mini/35-managed-agents-outcomes.md +106 -0
  92. package/assets/skills/converted/claude-api/composable/mini/36-managed-agents-multiagent.md +101 -0
  93. package/assets/skills/converted/claude-api/composable/mini/37-managed-agents-webhooks.md +123 -0
  94. package/assets/skills/converted/claude-api/composable/mini/38-managed-agents-memory.md +197 -0
  95. package/assets/skills/converted/claude-api/composable/mini/39-managed-agents-scheduled-deployments.md +146 -0
  96. package/assets/skills/converted/claude-api/composable/mini/40-managed-agents-client-patterns.md +211 -0
  97. package/assets/skills/converted/claude-api/composable/mini/41-managed-agents-onboarding.md +82 -0
  98. package/assets/skills/converted/claude-api/composable/mini/42-managed-agents-api-reference.md +441 -0
  99. package/assets/skills/converted/claude-api/composable/mini/43-managed-agents-self-hosted-sandboxes.md +174 -0
  100. package/assets/skills/converted/claude-api/composable/mini/50-python-readme.md +564 -0
  101. package/assets/skills/converted/claude-api/composable/mini/51-python-tool-use.md +590 -0
  102. package/assets/skills/converted/claude-api/composable/mini/52-python-streaming-batches-files.md +549 -0
  103. package/assets/skills/converted/claude-api/composable/mini/53-python-managed-agents.md +335 -0
  104. package/assets/skills/converted/claude-api/composable/mini/55-typescript-readme.md +404 -0
  105. package/assets/skills/converted/claude-api/composable/mini/56-typescript-tool-use.md +548 -0
  106. package/assets/skills/converted/claude-api/composable/mini/57-typescript-streaming-batches-files.md +384 -0
  107. package/assets/skills/converted/claude-api/composable/mini/58-typescript-managed-agents.md +358 -0
  108. package/assets/skills/converted/claude-api/composable/mini/60-csharp-readme.md +361 -0
  109. package/assets/skills/converted/claude-api/composable/mini/61-csharp-tool-use.md +163 -0
  110. package/assets/skills/converted/claude-api/composable/mini/62-csharp-streaming-batches-files.md +64 -0
  111. package/assets/skills/converted/claude-api/composable/mini/65-go-readme.md +185 -0
  112. package/assets/skills/converted/claude-api/composable/mini/66-go-tool-use.md +219 -0
  113. package/assets/skills/converted/claude-api/composable/mini/67-go-streaming-files.md +63 -0
  114. package/assets/skills/converted/claude-api/composable/mini/68-go-managed-agents.md +564 -0
  115. package/assets/skills/converted/claude-api/composable/mini/70-java-readme.md +237 -0
  116. package/assets/skills/converted/claude-api/composable/mini/71-java-tool-use.md +227 -0
  117. package/assets/skills/converted/claude-api/composable/mini/72-java-streaming-files.md +49 -0
  118. package/assets/skills/converted/claude-api/composable/mini/73-java-managed-agents.md +443 -0
  119. package/assets/skills/converted/claude-api/composable/mini/75-php-readme.md +173 -0
  120. package/assets/skills/converted/claude-api/composable/mini/76-php-tool-use.md +252 -0
  121. package/assets/skills/converted/claude-api/composable/mini/77-php-streaming-batches-files.md +53 -0
  122. package/assets/skills/converted/claude-api/composable/mini/78-php-managed-agents.md +443 -0
  123. package/assets/skills/converted/claude-api/composable/mini/80-ruby-readme.md +133 -0
  124. package/assets/skills/converted/claude-api/composable/mini/81-ruby-tool-use-streaming.md +56 -0
  125. package/assets/skills/converted/claude-api/composable/mini/82-ruby-managed-agents.md +394 -0
  126. package/assets/skills/converted/claude-api/composable/mini/85-curl-examples.md +255 -0
  127. package/assets/skills/converted/claude-api/composable/mini/86-curl-managed-agents.md +340 -0
  128. package/assets/skills/converted/claude-api/composable/presets/csharp.md +1151 -0
  129. package/assets/skills/converted/claude-api/composable/presets/curl.md +1154 -0
  130. package/assets/skills/converted/claude-api/composable/presets/go.md +1598 -0
  131. package/assets/skills/converted/claude-api/composable/presets/java.md +1523 -0
  132. package/assets/skills/converted/claude-api/composable/presets/php.md +1488 -0
  133. package/assets/skills/converted/claude-api/composable/presets/python.md +2605 -0
  134. package/assets/skills/converted/claude-api/composable/presets/ruby.md +1146 -0
  135. package/assets/skills/converted/claude-api/composable/presets/shared.md +6478 -0
  136. package/assets/skills/converted/claude-api/composable/presets/typescript.md +2261 -0
  137. package/assets/skills/converted/docx/composable/BUNDLE.md +617 -0
  138. package/assets/skills/converted/docx/composable/INDEX.md +12 -0
  139. package/assets/skills/converted/docx/composable/VERSION +1 -0
  140. package/assets/skills/converted/docx/composable/mini/00-core.md +26 -0
  141. package/assets/skills/converted/docx/composable/mini/01-reading-converting.md +36 -0
  142. package/assets/skills/converted/docx/composable/mini/02-creating-setup-layout.md +85 -0
  143. package/assets/skills/converted/docx/composable/mini/03-creating-elements.md +257 -0
  144. package/assets/skills/converted/docx/composable/mini/04-editing-existing.md +57 -0
  145. package/assets/skills/converted/docx/composable/mini/05-xml-reference.md +128 -0
  146. package/assets/skills/converted/internal-comms/composable/BUNDLE.md +220 -0
  147. package/assets/skills/converted/internal-comms/composable/INDEX.md +11 -0
  148. package/assets/skills/converted/internal-comms/composable/VERSION +1 -0
  149. package/assets/skills/converted/internal-comms/composable/mini/00-core.md +30 -0
  150. package/assets/skills/converted/internal-comms/composable/mini/01-3p-updates.md +49 -0
  151. package/assets/skills/converted/internal-comms/composable/mini/02-company-newsletter.md +67 -0
  152. package/assets/skills/converted/internal-comms/composable/mini/03-faq-answers.md +32 -0
  153. package/assets/skills/converted/internal-comms/composable/mini/04-general-comms.md +18 -0
  154. package/assets/skills/converted/mcp-builder/composable/BUNDLE.md +2460 -0
  155. package/assets/skills/converted/mcp-builder/composable/INDEX.md +23 -0
  156. package/assets/skills/converted/mcp-builder/composable/VERSION +1 -0
  157. package/assets/skills/converted/mcp-builder/composable/mini/00-core.md +43 -0
  158. package/assets/skills/converted/mcp-builder/composable/mini/01-workflow-research-planning.md +54 -0
  159. package/assets/skills/converted/mcp-builder/composable/mini/02-implementation-process.md +78 -0
  160. package/assets/skills/converted/mcp-builder/composable/mini/03-naming-conventions.md +33 -0
  161. package/assets/skills/converted/mcp-builder/composable/mini/04-response-formats.md +21 -0
  162. package/assets/skills/converted/mcp-builder/composable/mini/05-pagination.md +24 -0
  163. package/assets/skills/converted/mcp-builder/composable/mini/06-transport.md +47 -0
  164. package/assets/skills/converted/mcp-builder/composable/mini/07-annotations.md +20 -0
  165. package/assets/skills/converted/mcp-builder/composable/mini/08-security.md +35 -0
  166. package/assets/skills/converted/mcp-builder/composable/mini/09-error-handling.md +32 -0
  167. package/assets/skills/converted/mcp-builder/composable/mini/10-testing-and-documentation.md +21 -0
  168. package/assets/skills/converted/mcp-builder/composable/mini/11-python-implementation.md +432 -0
  169. package/assets/skills/converted/mcp-builder/composable/mini/12-python-advanced-and-checklist.md +233 -0
  170. package/assets/skills/converted/mcp-builder/composable/mini/13-node-implementation.md +717 -0
  171. package/assets/skills/converted/mcp-builder/composable/mini/14-node-advanced-and-checklist.md +200 -0
  172. package/assets/skills/converted/mcp-builder/composable/mini/15-evaluation-design.md +200 -0
  173. package/assets/skills/converted/mcp-builder/composable/mini/16-evaluation-running.md +198 -0
  174. package/assets/skills/converted/mcp-builder/composable/presets/node-server.md +1381 -0
  175. package/assets/skills/converted/mcp-builder/composable/presets/python-server.md +1129 -0
  176. package/assets/skills/converted/pdf/composable/BUNDLE.md +1284 -0
  177. package/assets/skills/converted/pdf/composable/INDEX.md +14 -0
  178. package/assets/skills/converted/pdf/composable/VERSION +1 -0
  179. package/assets/skills/converted/pdf/composable/mini/00-core.md +46 -0
  180. package/assets/skills/converted/pdf/composable/mini/01-creation.md +176 -0
  181. package/assets/skills/converted/pdf/composable/mini/02-extraction.md +178 -0
  182. package/assets/skills/converted/pdf/composable/mini/03-merge-split-manipulate.md +240 -0
  183. package/assets/skills/converted/pdf/composable/mini/04-images-ocr.md +168 -0
  184. package/assets/skills/converted/pdf/composable/mini/05-encryption.md +51 -0
  185. package/assets/skills/converted/pdf/composable/mini/06-forms.md +300 -0
  186. package/assets/skills/converted/pdf/composable/mini/07-libraries-reference.md +89 -0
  187. package/assets/skills/converted/pptx/composable/BUNDLE.md +911 -0
  188. package/assets/skills/converted/pptx/composable/INDEX.md +12 -0
  189. package/assets/skills/converted/pptx/composable/VERSION +1 -0
  190. package/assets/skills/converted/pptx/composable/mini/00-core.md +37 -0
  191. package/assets/skills/converted/pptx/composable/mini/01-reading.md +37 -0
  192. package/assets/skills/converted/pptx/composable/mini/02-creating-from-scratch.md +422 -0
  193. package/assets/skills/converted/pptx/composable/mini/03-editing-templates.md +207 -0
  194. package/assets/skills/converted/pptx/composable/mini/04-design.md +89 -0
  195. package/assets/skills/converted/pptx/composable/mini/05-qa-and-rendering.md +91 -0
  196. package/assets/skills/converted/pptx/composable/presets/creating.md +659 -0
  197. package/assets/skills/converted/pptx/composable/presets/editing.md +485 -0
  198. package/assets/skills/converted/skill-creator/composable/BUNDLE.md +1681 -0
  199. package/assets/skills/converted/skill-creator/composable/INDEX.md +21 -0
  200. package/assets/skills/converted/skill-creator/composable/VERSION +1 -0
  201. package/assets/skills/converted/skill-creator/composable/mini/00-core.md +59 -0
  202. package/assets/skills/converted/skill-creator/composable/mini/01-creating-a-skill.md +27 -0
  203. package/assets/skills/converted/skill-creator/composable/mini/02-skill-writing-guide.md +71 -0
  204. package/assets/skills/converted/skill-creator/composable/mini/03-test-cases.md +21 -0
  205. package/assets/skills/converted/skill-creator/composable/mini/04-running-and-evaluating.md +128 -0
  206. package/assets/skills/converted/skill-creator/composable/mini/05-improving-the-skill.md +30 -0
  207. package/assets/skills/converted/skill-creator/composable/mini/06-blind-comparison.md +5 -0
  208. package/assets/skills/converted/skill-creator/composable/mini/07-description-optimization.md +74 -0
  209. package/assets/skills/converted/skill-creator/composable/mini/08-packaging.md +11 -0
  210. package/assets/skills/converted/skill-creator/composable/mini/09-environment-specific.md +38 -0
  211. package/assets/skills/converted/skill-creator/composable/mini/10-scripts-and-references.md +34 -0
  212. package/assets/skills/converted/skill-creator/composable/mini/11-json-schemas.md +414 -0
  213. package/assets/skills/converted/skill-creator/composable/mini/12-agent-grader.md +225 -0
  214. package/assets/skills/converted/skill-creator/composable/mini/13-agent-comparator.md +204 -0
  215. package/assets/skills/converted/skill-creator/composable/mini/14-agent-analyzer.md +276 -0
  216. package/assets/skills/converted/skill-creator/composable/presets/authoring.md +198 -0
  217. package/assets/skills/converted/skill-creator/composable/presets/evaluating.md +1334 -0
  218. package/assets/skills/converted/skill-creator/composable/presets/optimizing.md +160 -0
  219. package/assets/skills/converted/skill-creator/composable/presets.json +5 -0
  220. package/assets/skills/meta/ccs-skill-creator/composable/BUNDLE.md +465 -0
  221. package/assets/skills/meta/ccs-skill-creator/composable/INDEX.md +8 -0
  222. package/assets/skills/meta/ccs-skill-creator/composable/VERSION +1 -0
  223. package/assets/skills/meta/ccs-skill-creator/composable/mini/00-core.md +46 -0
  224. package/assets/skills/meta/ccs-skill-creator/composable/mini/01-create-new-skill.md +167 -0
  225. package/assets/skills/meta/ccs-skill-creator/composable/mini/02-convert-existing-skill.md +120 -0
  226. package/assets/skills/meta/ccs-skill-creator/composable/mini/03-review-and-maintain.md +112 -0
  227. package/assets/skills/sources/anthropic/PROVENANCE.md +3 -0
  228. package/assets/skills/sources/anthropic/claude-api/LICENSE.txt +202 -0
  229. package/assets/skills/sources/anthropic/docx/LICENSE.txt +30 -0
  230. package/assets/skills/sources/anthropic/internal-comms/LICENSE.txt +202 -0
  231. package/assets/skills/sources/anthropic/mcp-builder/LICENSE.txt +202 -0
  232. package/assets/skills/sources/anthropic/pdf/LICENSE.txt +30 -0
  233. package/assets/skills/sources/anthropic/pptx/LICENSE.txt +30 -0
  234. package/assets/skills/sources/anthropic/skill-creator/LICENSE.txt +202 -0
  235. package/assets/skills/sources/financial-analyst/PROVENANCE.md +1 -0
  236. package/assets/tools/hive.py +728 -0
  237. package/dist/cli.js +7494 -0
  238. package/package.json +40 -0
@@ -0,0 +1,1334 @@
1
+ <!-- GENERATED by tools/hive.py compile. Do not hand-edit. -->
2
+ # skill-creator: Compiled Skill Bundle (preset: evaluating) (v1.0.0)
3
+
4
+ All composable mini-skills for `skill-creator` concatenated in index order, frontmatter stripped. Regenerate with `tools/hive.py compile <skill-dir>`. Do not edit by hand.
5
+
6
+ ---
7
+ <!-- module: 00-core.md -->
8
+
9
+ # Core: Skill Creator — the loop and mindset
10
+
11
+ Cross-cutting foundation for creating new skills, modifying and improving existing skills, and measuring skill performance. Load the focused minis (see INDEX) for each stage: creating, writing, test cases, running evals, improving, blind comparison, description optimization, packaging, environment-specific mechanics, the vendored scripts, JSON schemas, and the subagent instruction files.
12
+
13
+ The original skill's frontmatter description (the primary triggering mechanism): "Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy."
14
+
15
+ ## Skill Creator
16
+
17
+ A skill for creating new skills and iteratively improving them.
18
+
19
+ At a high level, the process of creating a skill goes like this:
20
+
21
+ - Decide what you want the skill to do and roughly how it should do it
22
+ - Write a draft of the skill
23
+ - Create a few test prompts and run claude-with-access-to-the-skill on them
24
+ - Help the user evaluate the results both qualitatively and quantitatively
25
+ - While the runs happen in the background, draft some quantitative evals if there aren't any (if there are some, you can either use as is or modify if you feel something needs to change about them). Then explain them to the user (or if they already existed, explain the ones that already exist)
26
+ - Use the `eval-viewer/generate_review.py` script to show the user the results for them to look at, and also let them look at the quantitative metrics
27
+ - Rewrite the skill based on feedback from the user's evaluation of the results (and also if there are any glaring flaws that become apparent from the quantitative benchmarks)
28
+ - Repeat until you're satisfied
29
+ - Expand the test set and try again at larger scale
30
+
31
+ Your job when using this skill is to figure out where the user is in this process and then jump in and help them progress through these stages. So for instance, maybe they're like "I want to make a skill for X". You can help narrow down what they mean, write a draft, write the test cases, figure out how they want to evaluate, run all the prompts, and repeat.
32
+
33
+ On the other hand, maybe they already have a draft of the skill. In this case you can go straight to the eval/iterate part of the loop.
34
+
35
+ Of course, you should always be flexible and if the user is like "I don't need to run a bunch of evaluations, just vibe with me", you can do that instead.
36
+
37
+ Then after the skill is done (but again, the order is flexible), you can also run the skill description improver, which we have a whole separate script for, to optimize the triggering of the skill.
38
+
39
+ Cool? Cool.
40
+
41
+ ## Communicating with the user
42
+
43
+ The skill creator is liable to be used by people across a wide range of familiarity with coding jargon. If you haven't heard (and how could you, it's only very recently that it started), there's a trend now where the power of Claude is inspiring plumbers to open up their terminals, parents and grandparents to google "how to install npm". On the other hand, the bulk of users are probably fairly computer-literate.
44
+
45
+ So please pay attention to context cues to understand how to phrase your communication! In the default case, just to give you some idea:
46
+
47
+ - "evaluation" and "benchmark" are borderline, but OK
48
+ - for "JSON" and "assertion" you want to see serious cues from the user that they know what those things are before using them without explaining them
49
+
50
+ It's OK to briefly explain terms if you're in doubt, and feel free to clarify terms with a short definition if you're unsure if the user will get it.
51
+
52
+ ## The core loop (for emphasis)
53
+
54
+ Repeating the core loop here for emphasis:
55
+
56
+ - Figure out what the skill is about
57
+ - Draft or edit the skill
58
+ - Run claude-with-access-to-the-skill on test prompts
59
+ - With the user, evaluate the outputs:
60
+ - Create benchmark.json and run `eval-viewer/generate_review.py` to help the user review them
61
+ - Run quantitative evals
62
+ - Repeat until you and the user are satisfied
63
+ - Package the final skill and return it to the user.
64
+
65
+ Please add steps to your TodoList, if you have such a thing, to make sure you don't forget. If you're in Cowork, please specifically put "Create evals JSON and run `eval-viewer/generate_review.py` so human can review test cases" in your TodoList to make sure it happens.
66
+
67
+ Good luck!
68
+
69
+ ---
70
+ <!-- module: 04-running-and-evaluating.md -->
71
+
72
+ # Running and evaluating test cases
73
+
74
+ This section is one continuous sequence — don't stop partway through. Do NOT use `/skill-test` or any other testing skill.
75
+
76
+ Put results in `<skill-name>-workspace/` as a sibling to the skill directory. Within the workspace, organize results by iteration (`iteration-1/`, `iteration-2/`, etc.) and within that, each test case gets a directory (`eval-0/`, `eval-1/`, etc.). Don't create all of this upfront — just create directories as you go.
77
+
78
+ > Note on script paths: commands below such as `python -m scripts.aggregate_benchmark` and `eval-viewer/generate_review.py` refer to the vendored source at `skills/sources/anthropic/skill-creator/`. Run them from that directory (or point paths at it). See the `scripts-and-references` mini for the full script inventory.
79
+
80
+ ## Step 1: Spawn all runs (with-skill AND baseline) in the same turn
81
+
82
+ For each test case, spawn two subagents in the same turn — one with the skill, one without. This is important: don't spawn the with-skill runs first and then come back for baselines later. Launch everything at once so it all finishes around the same time.
83
+
84
+ **With-skill run:**
85
+
86
+ ```
87
+ Execute this task:
88
+ - Skill path: <path-to-skill>
89
+ - Task: <eval prompt>
90
+ - Input files: <eval files if any, or "none">
91
+ - Save outputs to: <workspace>/iteration-<N>/eval-<ID>/with_skill/outputs/
92
+ - Outputs to save: <what the user cares about — e.g., "the .docx file", "the final CSV">
93
+ ```
94
+
95
+ **Baseline run** (same prompt, but the baseline depends on context):
96
+ - **Creating a new skill**: no skill at all. Same prompt, no skill path, save to `without_skill/outputs/`.
97
+ - **Improving an existing skill**: the old version. Before editing, snapshot the skill (`cp -r <skill-path> <workspace>/skill-snapshot/`), then point the baseline subagent at the snapshot. Save to `old_skill/outputs/`.
98
+
99
+ Write an `eval_metadata.json` for each test case (assertions can be empty for now). Give each eval a descriptive name based on what it's testing — not just "eval-0". Use this name for the directory too. If this iteration uses new or modified eval prompts, create these files for each new eval directory — don't assume they carry over from previous iterations.
100
+
101
+ ```json
102
+ {
103
+ "eval_id": 0,
104
+ "eval_name": "descriptive-name-here",
105
+ "prompt": "The user's task prompt",
106
+ "assertions": []
107
+ }
108
+ ```
109
+
110
+ ## Step 2: While runs are in progress, draft assertions
111
+
112
+ Don't just wait for the runs to finish — you can use this time productively. Draft quantitative assertions for each test case and explain them to the user. If assertions already exist in `evals/evals.json`, review them and explain what they check.
113
+
114
+ Good assertions are objectively verifiable and have descriptive names — they should read clearly in the benchmark viewer so someone glancing at the results immediately understands what each one checks. Subjective skills (writing style, design quality) are better evaluated qualitatively — don't force assertions onto things that need human judgment.
115
+
116
+ Update the `eval_metadata.json` files and `evals/evals.json` with the assertions once drafted. Also explain to the user what they'll see in the viewer — both the qualitative outputs and the quantitative benchmark.
117
+
118
+ ## Step 3: As runs complete, capture timing data
119
+
120
+ When each subagent task completes, you receive a notification containing `total_tokens` and `duration_ms`. Save this data immediately to `timing.json` in the run directory:
121
+
122
+ ```json
123
+ {
124
+ "total_tokens": 84852,
125
+ "duration_ms": 23332,
126
+ "total_duration_seconds": 23.3
127
+ }
128
+ ```
129
+
130
+ This is the only opportunity to capture this data — it comes through the task notification and isn't persisted elsewhere. Process each notification as it arrives rather than trying to batch them.
131
+
132
+ ## Step 4: Grade, aggregate, and launch the viewer
133
+
134
+ Once all runs are done:
135
+
136
+ 1. **Grade each run** — spawn a grader subagent (or grade inline) that reads `agents/grader.md` and evaluates each assertion against the outputs. Save results to `grading.json` in each run directory. The grading.json expectations array must use the fields `text`, `passed`, and `evidence` (not `name`/`met`/`details` or other variants) — the viewer depends on these exact field names. For assertions that can be checked programmatically, write and run a script rather than eyeballing it — scripts are faster, more reliable, and can be reused across iterations.
137
+
138
+ 2. **Aggregate into benchmark** — run the aggregation script from the skill-creator directory:
139
+ ```bash
140
+ python -m scripts.aggregate_benchmark <workspace>/iteration-N --skill-name <name>
141
+ ```
142
+ This produces `benchmark.json` and `benchmark.md` with pass_rate, time, and tokens for each configuration, with mean ± stddev and the delta. If generating benchmark.json manually, see `references/schemas.md` for the exact schema the viewer expects.
143
+ Put each with_skill version before its baseline counterpart.
144
+
145
+ 3. **Do an analyst pass** — read the benchmark data and surface patterns the aggregate stats might hide. See `agents/analyzer.md` (the "Analyzing Benchmark Results" section) for what to look for — things like assertions that always pass regardless of skill (non-discriminating), high-variance evals (possibly flaky), and time/token tradeoffs.
146
+
147
+ 4. **Launch the viewer** with both qualitative outputs and quantitative data:
148
+ ```bash
149
+ nohup python <skill-creator-path>/eval-viewer/generate_review.py \
150
+ <workspace>/iteration-N \
151
+ --skill-name "my-skill" \
152
+ --benchmark <workspace>/iteration-N/benchmark.json \
153
+ > /dev/null 2>&1 &
154
+ VIEWER_PID=$!
155
+ ```
156
+ For iteration 2+, also pass `--previous-workspace <workspace>/iteration-<N-1>`.
157
+
158
+ **Cowork / headless environments:** If `webbrowser.open()` is not available or the environment has no display, use `--static <output_path>` to write a standalone HTML file instead of starting a server. Feedback will be downloaded as a `feedback.json` file when the user clicks "Submit All Reviews". After download, copy `feedback.json` into the workspace directory for the next iteration to pick up.
159
+
160
+ Note: please use generate_review.py to create the viewer; there's no need to write custom HTML.
161
+
162
+ 5. **Tell the user** something like: "I've opened the results in your browser. There are two tabs — 'Outputs' lets you click through each test case and leave feedback, 'Benchmark' shows the quantitative comparison. When you're done, come back here and let me know."
163
+
164
+ ## What the user sees in the viewer
165
+
166
+ The "Outputs" tab shows one test case at a time:
167
+ - **Prompt**: the task that was given
168
+ - **Output**: the files the skill produced, rendered inline where possible
169
+ - **Previous Output** (iteration 2+): collapsed section showing last iteration's output
170
+ - **Formal Grades** (if grading was run): collapsed section showing assertion pass/fail
171
+ - **Feedback**: a textbox that auto-saves as they type
172
+ - **Previous Feedback** (iteration 2+): their comments from last time, shown below the textbox
173
+
174
+ The "Benchmark" tab shows the stats summary: pass rates, timing, and token usage for each configuration, with per-eval breakdowns and analyst observations.
175
+
176
+ Navigation is via prev/next buttons or arrow keys. When done, they click "Submit All Reviews" which saves all feedback to `feedback.json`.
177
+
178
+ ## Step 5: Read the feedback
179
+
180
+ When the user tells you they're done, read `feedback.json`:
181
+
182
+ ```json
183
+ {
184
+ "reviews": [
185
+ {"run_id": "eval-0-with_skill", "feedback": "the chart is missing axis labels", "timestamp": "..."},
186
+ {"run_id": "eval-1-with_skill", "feedback": "", "timestamp": "..."},
187
+ {"run_id": "eval-2-with_skill", "feedback": "perfect, love this", "timestamp": "..."}
188
+ ],
189
+ "status": "complete"
190
+ }
191
+ ```
192
+
193
+ Empty feedback means the user thought it was fine. Focus your improvements on the test cases where the user had specific complaints.
194
+
195
+ Kill the viewer server when you're done with it:
196
+
197
+ ```bash
198
+ kill $VIEWER_PID 2>/dev/null
199
+ ```
200
+
201
+ ---
202
+ <!-- module: 11-json-schemas.md -->
203
+
204
+ # JSON Schemas
205
+
206
+ This document defines the JSON schemas used by skill-creator. (Source: the vendored `references/schemas.md` at `skills/sources/anthropic/skill-creator/`.)
207
+
208
+ ## evals.json
209
+
210
+ Defines the evals for a skill. Located at `evals/evals.json` within the skill directory.
211
+
212
+ ```json
213
+ {
214
+ "skill_name": "example-skill",
215
+ "evals": [
216
+ {
217
+ "id": 1,
218
+ "prompt": "User's example prompt",
219
+ "expected_output": "Description of expected result",
220
+ "files": ["evals/files/sample1.pdf"],
221
+ "expectations": [
222
+ "The output includes X",
223
+ "The skill used script Y"
224
+ ]
225
+ }
226
+ ]
227
+ }
228
+ ```
229
+
230
+ **Fields:**
231
+ - `skill_name`: Name matching the skill's frontmatter
232
+ - `evals[].id`: Unique integer identifier
233
+ - `evals[].prompt`: The task to execute
234
+ - `evals[].expected_output`: Human-readable description of success
235
+ - `evals[].files`: Optional list of input file paths (relative to skill root)
236
+ - `evals[].expectations`: List of verifiable statements
237
+
238
+ ## history.json
239
+
240
+ Tracks version progression in Improve mode. Located at workspace root.
241
+
242
+ ```json
243
+ {
244
+ "started_at": "2026-01-15T10:30:00Z",
245
+ "skill_name": "pdf",
246
+ "current_best": "v2",
247
+ "iterations": [
248
+ {
249
+ "version": "v0",
250
+ "parent": null,
251
+ "expectation_pass_rate": 0.65,
252
+ "grading_result": "baseline",
253
+ "is_current_best": false
254
+ },
255
+ {
256
+ "version": "v1",
257
+ "parent": "v0",
258
+ "expectation_pass_rate": 0.75,
259
+ "grading_result": "won",
260
+ "is_current_best": false
261
+ },
262
+ {
263
+ "version": "v2",
264
+ "parent": "v1",
265
+ "expectation_pass_rate": 0.85,
266
+ "grading_result": "won",
267
+ "is_current_best": true
268
+ }
269
+ ]
270
+ }
271
+ ```
272
+
273
+ **Fields:**
274
+ - `started_at`: ISO timestamp of when improvement started
275
+ - `skill_name`: Name of the skill being improved
276
+ - `current_best`: Version identifier of the best performer
277
+ - `iterations[].version`: Version identifier (v0, v1, ...)
278
+ - `iterations[].parent`: Parent version this was derived from
279
+ - `iterations[].expectation_pass_rate`: Pass rate from grading
280
+ - `iterations[].grading_result`: "baseline", "won", "lost", or "tie"
281
+ - `iterations[].is_current_best`: Whether this is the current best version
282
+
283
+ ## grading.json
284
+
285
+ Output from the grader agent. Located at `<run-dir>/grading.json`.
286
+
287
+ ```json
288
+ {
289
+ "expectations": [
290
+ {
291
+ "text": "The output includes the name 'John Smith'",
292
+ "passed": true,
293
+ "evidence": "Found in transcript Step 3: 'Extracted names: John Smith, Sarah Johnson'"
294
+ },
295
+ {
296
+ "text": "The spreadsheet has a SUM formula in cell B10",
297
+ "passed": false,
298
+ "evidence": "No spreadsheet was created. The output was a text file."
299
+ }
300
+ ],
301
+ "summary": {
302
+ "passed": 2,
303
+ "failed": 1,
304
+ "total": 3,
305
+ "pass_rate": 0.67
306
+ },
307
+ "execution_metrics": {
308
+ "tool_calls": {
309
+ "Read": 5,
310
+ "Write": 2,
311
+ "Bash": 8
312
+ },
313
+ "total_tool_calls": 15,
314
+ "total_steps": 6,
315
+ "errors_encountered": 0,
316
+ "output_chars": 12450,
317
+ "transcript_chars": 3200
318
+ },
319
+ "timing": {
320
+ "executor_duration_seconds": 165.0,
321
+ "grader_duration_seconds": 26.0,
322
+ "total_duration_seconds": 191.0
323
+ },
324
+ "claims": [
325
+ {
326
+ "claim": "The form has 12 fillable fields",
327
+ "type": "factual",
328
+ "verified": true,
329
+ "evidence": "Counted 12 fields in field_info.json"
330
+ }
331
+ ],
332
+ "user_notes_summary": {
333
+ "uncertainties": ["Used 2023 data, may be stale"],
334
+ "needs_review": [],
335
+ "workarounds": ["Fell back to text overlay for non-fillable fields"]
336
+ },
337
+ "eval_feedback": {
338
+ "suggestions": [
339
+ {
340
+ "assertion": "The output includes the name 'John Smith'",
341
+ "reason": "A hallucinated document that mentions the name would also pass"
342
+ }
343
+ ],
344
+ "overall": "Assertions check presence but not correctness."
345
+ }
346
+ }
347
+ ```
348
+
349
+ **Fields:**
350
+ - `expectations[]`: Graded expectations with evidence
351
+ - `summary`: Aggregate pass/fail counts
352
+ - `execution_metrics`: Tool usage and output size (from executor's metrics.json)
353
+ - `timing`: Wall clock timing (from timing.json)
354
+ - `claims`: Extracted and verified claims from the output
355
+ - `user_notes_summary`: Issues flagged by the executor
356
+ - `eval_feedback`: (optional) Improvement suggestions for the evals, only present when the grader identifies issues worth raising
357
+
358
+ ## metrics.json
359
+
360
+ Output from the executor agent. Located at `<run-dir>/outputs/metrics.json`.
361
+
362
+ ```json
363
+ {
364
+ "tool_calls": {
365
+ "Read": 5,
366
+ "Write": 2,
367
+ "Bash": 8,
368
+ "Edit": 1,
369
+ "Glob": 2,
370
+ "Grep": 0
371
+ },
372
+ "total_tool_calls": 18,
373
+ "total_steps": 6,
374
+ "files_created": ["filled_form.pdf", "field_values.json"],
375
+ "errors_encountered": 0,
376
+ "output_chars": 12450,
377
+ "transcript_chars": 3200
378
+ }
379
+ ```
380
+
381
+ **Fields:**
382
+ - `tool_calls`: Count per tool type
383
+ - `total_tool_calls`: Sum of all tool calls
384
+ - `total_steps`: Number of major execution steps
385
+ - `files_created`: List of output files created
386
+ - `errors_encountered`: Number of errors during execution
387
+ - `output_chars`: Total character count of output files
388
+ - `transcript_chars`: Character count of transcript
389
+
390
+ ## timing.json
391
+
392
+ Wall clock timing for a run. Located at `<run-dir>/timing.json`.
393
+
394
+ **How to capture:** When a subagent task completes, the task notification includes `total_tokens` and `duration_ms`. Save these immediately — they are not persisted anywhere else and cannot be recovered after the fact.
395
+
396
+ ```json
397
+ {
398
+ "total_tokens": 84852,
399
+ "duration_ms": 23332,
400
+ "total_duration_seconds": 23.3,
401
+ "executor_start": "2026-01-15T10:30:00Z",
402
+ "executor_end": "2026-01-15T10:32:45Z",
403
+ "executor_duration_seconds": 165.0,
404
+ "grader_start": "2026-01-15T10:32:46Z",
405
+ "grader_end": "2026-01-15T10:33:12Z",
406
+ "grader_duration_seconds": 26.0
407
+ }
408
+ ```
409
+
410
+ ## benchmark.json
411
+
412
+ Output from Benchmark mode. Located at `benchmarks/<timestamp>/benchmark.json`.
413
+
414
+ ```json
415
+ {
416
+ "metadata": {
417
+ "skill_name": "pdf",
418
+ "skill_path": "/path/to/pdf",
419
+ "executor_model": "claude-sonnet-4-20250514",
420
+ "analyzer_model": "most-capable-model",
421
+ "timestamp": "2026-01-15T10:30:00Z",
422
+ "evals_run": [1, 2, 3],
423
+ "runs_per_configuration": 3
424
+ },
425
+
426
+ "runs": [
427
+ {
428
+ "eval_id": 1,
429
+ "eval_name": "Ocean",
430
+ "configuration": "with_skill",
431
+ "run_number": 1,
432
+ "result": {
433
+ "pass_rate": 0.85,
434
+ "passed": 6,
435
+ "failed": 1,
436
+ "total": 7,
437
+ "time_seconds": 42.5,
438
+ "tokens": 3800,
439
+ "tool_calls": 18,
440
+ "errors": 0
441
+ },
442
+ "expectations": [
443
+ {"text": "...", "passed": true, "evidence": "..."}
444
+ ],
445
+ "notes": [
446
+ "Used 2023 data, may be stale",
447
+ "Fell back to text overlay for non-fillable fields"
448
+ ]
449
+ }
450
+ ],
451
+
452
+ "run_summary": {
453
+ "with_skill": {
454
+ "pass_rate": {"mean": 0.85, "stddev": 0.05, "min": 0.80, "max": 0.90},
455
+ "time_seconds": {"mean": 45.0, "stddev": 12.0, "min": 32.0, "max": 58.0},
456
+ "tokens": {"mean": 3800, "stddev": 400, "min": 3200, "max": 4100}
457
+ },
458
+ "without_skill": {
459
+ "pass_rate": {"mean": 0.35, "stddev": 0.08, "min": 0.28, "max": 0.45},
460
+ "time_seconds": {"mean": 32.0, "stddev": 8.0, "min": 24.0, "max": 42.0},
461
+ "tokens": {"mean": 2100, "stddev": 300, "min": 1800, "max": 2500}
462
+ },
463
+ "delta": {
464
+ "pass_rate": "+0.50",
465
+ "time_seconds": "+13.0",
466
+ "tokens": "+1700"
467
+ }
468
+ },
469
+
470
+ "notes": [
471
+ "Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value",
472
+ "Eval 3 shows high variance (50% ± 40%) - may be flaky or model-dependent",
473
+ "Without-skill runs consistently fail on table extraction expectations",
474
+ "Skill adds 13s average execution time but improves pass rate by 50%"
475
+ ]
476
+ }
477
+ ```
478
+
479
+ **Fields:**
480
+ - `metadata`: Information about the benchmark run
481
+ - `skill_name`: Name of the skill
482
+ - `timestamp`: When the benchmark was run
483
+ - `evals_run`: List of eval names or IDs
484
+ - `runs_per_configuration`: Number of runs per config (e.g. 3)
485
+ - `runs[]`: Individual run results
486
+ - `eval_id`: Numeric eval identifier
487
+ - `eval_name`: Human-readable eval name (used as section header in the viewer)
488
+ - `configuration`: Must be `"with_skill"` or `"without_skill"` (the viewer uses this exact string for grouping and color coding)
489
+ - `run_number`: Integer run number (1, 2, 3...)
490
+ - `result`: Nested object with `pass_rate`, `passed`, `total`, `time_seconds`, `tokens`, `errors`
491
+ - `run_summary`: Statistical aggregates per configuration
492
+ - `with_skill` / `without_skill`: Each contains `pass_rate`, `time_seconds`, `tokens` objects with `mean` and `stddev` fields
493
+ - `delta`: Difference strings like `"+0.50"`, `"+13.0"`, `"+1700"`
494
+ - `notes`: Freeform observations from the analyzer
495
+
496
+ **Important:** The viewer reads these field names exactly. Using `config` instead of `configuration`, or putting `pass_rate` at the top level of a run instead of nested under `result`, will cause the viewer to show empty/zero values. Always reference this schema when generating benchmark.json manually.
497
+
498
+ ## comparison.json
499
+
500
+ Output from blind comparator. Located at `<grading-dir>/comparison-N.json`.
501
+
502
+ ```json
503
+ {
504
+ "winner": "A",
505
+ "reasoning": "Output A provides a complete solution with proper formatting and all required fields. Output B is missing the date field and has formatting inconsistencies.",
506
+ "rubric": {
507
+ "A": {
508
+ "content": {
509
+ "correctness": 5,
510
+ "completeness": 5,
511
+ "accuracy": 4
512
+ },
513
+ "structure": {
514
+ "organization": 4,
515
+ "formatting": 5,
516
+ "usability": 4
517
+ },
518
+ "content_score": 4.7,
519
+ "structure_score": 4.3,
520
+ "overall_score": 9.0
521
+ },
522
+ "B": {
523
+ "content": {
524
+ "correctness": 3,
525
+ "completeness": 2,
526
+ "accuracy": 3
527
+ },
528
+ "structure": {
529
+ "organization": 3,
530
+ "formatting": 2,
531
+ "usability": 3
532
+ },
533
+ "content_score": 2.7,
534
+ "structure_score": 2.7,
535
+ "overall_score": 5.4
536
+ }
537
+ },
538
+ "output_quality": {
539
+ "A": {
540
+ "score": 9,
541
+ "strengths": ["Complete solution", "Well-formatted", "All fields present"],
542
+ "weaknesses": ["Minor style inconsistency in header"]
543
+ },
544
+ "B": {
545
+ "score": 5,
546
+ "strengths": ["Readable output", "Correct basic structure"],
547
+ "weaknesses": ["Missing date field", "Formatting inconsistencies", "Partial data extraction"]
548
+ }
549
+ },
550
+ "expectation_results": {
551
+ "A": {
552
+ "passed": 4,
553
+ "total": 5,
554
+ "pass_rate": 0.80,
555
+ "details": [
556
+ {"text": "Output includes name", "passed": true}
557
+ ]
558
+ },
559
+ "B": {
560
+ "passed": 3,
561
+ "total": 5,
562
+ "pass_rate": 0.60,
563
+ "details": [
564
+ {"text": "Output includes name", "passed": true}
565
+ ]
566
+ }
567
+ }
568
+ }
569
+ ```
570
+
571
+ ## analysis.json
572
+
573
+ Output from post-hoc analyzer. Located at `<grading-dir>/analysis.json`.
574
+
575
+ ```json
576
+ {
577
+ "comparison_summary": {
578
+ "winner": "A",
579
+ "winner_skill": "path/to/winner/skill",
580
+ "loser_skill": "path/to/loser/skill",
581
+ "comparator_reasoning": "Brief summary of why comparator chose winner"
582
+ },
583
+ "winner_strengths": [
584
+ "Clear step-by-step instructions for handling multi-page documents",
585
+ "Included validation script that caught formatting errors"
586
+ ],
587
+ "loser_weaknesses": [
588
+ "Vague instruction 'process the document appropriately' led to inconsistent behavior",
589
+ "No script for validation, agent had to improvise"
590
+ ],
591
+ "instruction_following": {
592
+ "winner": {
593
+ "score": 9,
594
+ "issues": ["Minor: skipped optional logging step"]
595
+ },
596
+ "loser": {
597
+ "score": 6,
598
+ "issues": [
599
+ "Did not use the skill's formatting template",
600
+ "Invented own approach instead of following step 3"
601
+ ]
602
+ }
603
+ },
604
+ "improvement_suggestions": [
605
+ {
606
+ "priority": "high",
607
+ "category": "instructions",
608
+ "suggestion": "Replace 'process the document appropriately' with explicit steps",
609
+ "expected_impact": "Would eliminate ambiguity that caused inconsistent behavior"
610
+ }
611
+ ],
612
+ "transcript_insights": {
613
+ "winner_execution_pattern": "Read skill -> Followed 5-step process -> Used validation script",
614
+ "loser_execution_pattern": "Read skill -> Unclear on approach -> Tried 3 different methods"
615
+ }
616
+ }
617
+ ```
618
+
619
+ ---
620
+ <!-- module: 12-agent-grader.md -->
621
+
622
+ # Grader Agent
623
+
624
+ Instructions for the specialized grader subagent. (Source: the vendored `agents/grader.md` at `skills/sources/anthropic/skill-creator/`. Spawn a subagent with these instructions — or grade inline — when grading a run.)
625
+
626
+ Evaluate expectations against an execution transcript and outputs.
627
+
628
+ ## Role
629
+
630
+ The Grader reviews a transcript and output files, then determines whether each expectation passes or fails. Provide clear evidence for each judgment.
631
+
632
+ You have two jobs: grade the outputs, and critique the evals themselves. A passing grade on a weak assertion is worse than useless — it creates false confidence. When you notice an assertion that's trivially satisfied, or an important outcome that no assertion checks, say so.
633
+
634
+ ## Inputs
635
+
636
+ You receive these parameters in your prompt:
637
+
638
+ - **expectations**: List of expectations to evaluate (strings)
639
+ - **transcript_path**: Path to the execution transcript (markdown file)
640
+ - **outputs_dir**: Directory containing output files from execution
641
+
642
+ ## Process
643
+
644
+ ### Step 1: Read the Transcript
645
+
646
+ 1. Read the transcript file completely
647
+ 2. Note the eval prompt, execution steps, and final result
648
+ 3. Identify any issues or errors documented
649
+
650
+ ### Step 2: Examine Output Files
651
+
652
+ 1. List files in outputs_dir
653
+ 2. Read/examine each file relevant to the expectations. If outputs aren't plain text, use the inspection tools provided in your prompt — don't rely solely on what the transcript says the executor produced.
654
+ 3. Note contents, structure, and quality
655
+
656
+ ### Step 3: Evaluate Each Assertion
657
+
658
+ For each expectation:
659
+
660
+ 1. **Search for evidence** in the transcript and outputs
661
+ 2. **Determine verdict**:
662
+ - **PASS**: Clear evidence the expectation is true AND the evidence reflects genuine task completion, not just surface-level compliance
663
+ - **FAIL**: No evidence, or evidence contradicts the expectation, or the evidence is superficial (e.g., correct filename but empty/wrong content)
664
+ 3. **Cite the evidence**: Quote the specific text or describe what you found
665
+
666
+ ### Step 4: Extract and Verify Claims
667
+
668
+ Beyond the predefined expectations, extract implicit claims from the outputs and verify them:
669
+
670
+ 1. **Extract claims** from the transcript and outputs:
671
+ - Factual statements ("The form has 12 fields")
672
+ - Process claims ("Used pypdf to fill the form")
673
+ - Quality claims ("All fields were filled correctly")
674
+
675
+ 2. **Verify each claim**:
676
+ - **Factual claims**: Can be checked against the outputs or external sources
677
+ - **Process claims**: Can be verified from the transcript
678
+ - **Quality claims**: Evaluate whether the claim is justified
679
+
680
+ 3. **Flag unverifiable claims**: Note claims that cannot be verified with available information
681
+
682
+ This catches issues that predefined expectations might miss.
683
+
684
+ ### Step 5: Read User Notes
685
+
686
+ If `{outputs_dir}/user_notes.md` exists:
687
+ 1. Read it and note any uncertainties or issues flagged by the executor
688
+ 2. Include relevant concerns in the grading output
689
+ 3. These may reveal problems even when expectations pass
690
+
691
+ ### Step 6: Critique the Evals
692
+
693
+ After grading, consider whether the evals themselves could be improved. Only surface suggestions when there's a clear gap.
694
+
695
+ Good suggestions test meaningful outcomes — assertions that are hard to satisfy without actually doing the work correctly. Think about what makes an assertion *discriminating*: it passes when the skill genuinely succeeds and fails when it doesn't.
696
+
697
+ Suggestions worth raising:
698
+ - An assertion that passed but would also pass for a clearly wrong output (e.g., checking filename existence but not file content)
699
+ - An important outcome you observed — good or bad — that no assertion covers at all
700
+ - An assertion that can't actually be verified from the available outputs
701
+
702
+ Keep the bar high. The goal is to flag things the eval author would say "good catch" about, not to nitpick every assertion.
703
+
704
+ ### Step 7: Write Grading Results
705
+
706
+ Save results to `{outputs_dir}/../grading.json` (sibling to outputs_dir).
707
+
708
+ ## Grading Criteria
709
+
710
+ **PASS when**:
711
+ - The transcript or outputs clearly demonstrate the expectation is true
712
+ - Specific evidence can be cited
713
+ - The evidence reflects genuine substance, not just surface compliance (e.g., a file exists AND contains correct content, not just the right filename)
714
+
715
+ **FAIL when**:
716
+ - No evidence found for the expectation
717
+ - Evidence contradicts the expectation
718
+ - The expectation cannot be verified from available information
719
+ - The evidence is superficial — the assertion is technically satisfied but the underlying task outcome is wrong or incomplete
720
+ - The output appears to meet the assertion by coincidence rather than by actually doing the work
721
+
722
+ **When uncertain**: The burden of proof to pass is on the expectation.
723
+
724
+ ### Step 8: Read Executor Metrics and Timing
725
+
726
+ 1. If `{outputs_dir}/metrics.json` exists, read it and include in grading output
727
+ 2. If `{outputs_dir}/../timing.json` exists, read it and include timing data
728
+
729
+ ## Output Format
730
+
731
+ Write a JSON file with this structure:
732
+
733
+ ```json
734
+ {
735
+ "expectations": [
736
+ {
737
+ "text": "The output includes the name 'John Smith'",
738
+ "passed": true,
739
+ "evidence": "Found in transcript Step 3: 'Extracted names: John Smith, Sarah Johnson'"
740
+ },
741
+ {
742
+ "text": "The spreadsheet has a SUM formula in cell B10",
743
+ "passed": false,
744
+ "evidence": "No spreadsheet was created. The output was a text file."
745
+ },
746
+ {
747
+ "text": "The assistant used the skill's OCR script",
748
+ "passed": true,
749
+ "evidence": "Transcript Step 2 shows: 'Tool: Bash - python ocr_script.py image.png'"
750
+ }
751
+ ],
752
+ "summary": {
753
+ "passed": 2,
754
+ "failed": 1,
755
+ "total": 3,
756
+ "pass_rate": 0.67
757
+ },
758
+ "execution_metrics": {
759
+ "tool_calls": {
760
+ "Read": 5,
761
+ "Write": 2,
762
+ "Bash": 8
763
+ },
764
+ "total_tool_calls": 15,
765
+ "total_steps": 6,
766
+ "errors_encountered": 0,
767
+ "output_chars": 12450,
768
+ "transcript_chars": 3200
769
+ },
770
+ "timing": {
771
+ "executor_duration_seconds": 165.0,
772
+ "grader_duration_seconds": 26.0,
773
+ "total_duration_seconds": 191.0
774
+ },
775
+ "claims": [
776
+ {
777
+ "claim": "The form has 12 fillable fields",
778
+ "type": "factual",
779
+ "verified": true,
780
+ "evidence": "Counted 12 fields in field_info.json"
781
+ },
782
+ {
783
+ "claim": "All required fields were populated",
784
+ "type": "quality",
785
+ "verified": false,
786
+ "evidence": "Reference section was left blank despite data being available"
787
+ }
788
+ ],
789
+ "user_notes_summary": {
790
+ "uncertainties": ["Used 2023 data, may be stale"],
791
+ "needs_review": [],
792
+ "workarounds": ["Fell back to text overlay for non-fillable fields"]
793
+ },
794
+ "eval_feedback": {
795
+ "suggestions": [
796
+ {
797
+ "assertion": "The output includes the name 'John Smith'",
798
+ "reason": "A hallucinated document that mentions the name would also pass — consider checking it appears as the primary contact with matching phone and email from the input"
799
+ },
800
+ {
801
+ "reason": "No assertion checks whether the extracted phone numbers match the input — I observed incorrect numbers in the output that went uncaught"
802
+ }
803
+ ],
804
+ "overall": "Assertions check presence but not correctness. Consider adding content verification."
805
+ }
806
+ }
807
+ ```
808
+
809
+ ## Field Descriptions
810
+
811
+ - **expectations**: Array of graded expectations
812
+ - **text**: The original expectation text
813
+ - **passed**: Boolean - true if expectation passes
814
+ - **evidence**: Specific quote or description supporting the verdict
815
+ - **summary**: Aggregate statistics
816
+ - **passed**: Count of passed expectations
817
+ - **failed**: Count of failed expectations
818
+ - **total**: Total expectations evaluated
819
+ - **pass_rate**: Fraction passed (0.0 to 1.0)
820
+ - **execution_metrics**: Copied from executor's metrics.json (if available)
821
+ - **output_chars**: Total character count of output files (proxy for tokens)
822
+ - **transcript_chars**: Character count of transcript
823
+ - **timing**: Wall clock timing from timing.json (if available)
824
+ - **executor_duration_seconds**: Time spent in executor subagent
825
+ - **total_duration_seconds**: Total elapsed time for the run
826
+ - **claims**: Extracted and verified claims from the output
827
+ - **claim**: The statement being verified
828
+ - **type**: "factual", "process", or "quality"
829
+ - **verified**: Boolean - whether the claim holds
830
+ - **evidence**: Supporting or contradicting evidence
831
+ - **user_notes_summary**: Issues flagged by the executor
832
+ - **uncertainties**: Things the executor wasn't sure about
833
+ - **needs_review**: Items requiring human attention
834
+ - **workarounds**: Places where the skill didn't work as expected
835
+ - **eval_feedback**: Improvement suggestions for the evals (only when warranted)
836
+ - **suggestions**: List of concrete suggestions, each with a `reason` and optionally an `assertion` it relates to
837
+ - **overall**: Brief assessment — can be "No suggestions, evals look solid" if nothing to flag
838
+
839
+ ## Guidelines
840
+
841
+ - **Be objective**: Base verdicts on evidence, not assumptions
842
+ - **Be specific**: Quote the exact text that supports your verdict
843
+ - **Be thorough**: Check both transcript and output files
844
+ - **Be consistent**: Apply the same standard to each expectation
845
+ - **Explain failures**: Make it clear why evidence was insufficient
846
+ - **No partial credit**: Each expectation is pass or fail, not partial
847
+
848
+ ---
849
+ <!-- module: 13-agent-comparator.md -->
850
+
851
+ # Blind Comparator Agent
852
+
853
+ Instructions for the specialized blind-comparator subagent. (Source: the vendored `agents/comparator.md` at `skills/sources/anthropic/skill-creator/`. Spawn a subagent with these instructions for a rigorous A/B comparison between two skill versions.)
854
+
855
+ Compare two outputs WITHOUT knowing which skill produced them.
856
+
857
+ ## Role
858
+
859
+ The Blind Comparator judges which output better accomplishes the eval task. You receive two outputs labeled A and B, but you do NOT know which skill produced which. This prevents bias toward a particular skill or approach.
860
+
861
+ Your judgment is based purely on output quality and task completion.
862
+
863
+ ## Inputs
864
+
865
+ You receive these parameters in your prompt:
866
+
867
+ - **output_a_path**: Path to the first output file or directory
868
+ - **output_b_path**: Path to the second output file or directory
869
+ - **eval_prompt**: The original task/prompt that was executed
870
+ - **expectations**: List of expectations to check (optional - may be empty)
871
+
872
+ ## Process
873
+
874
+ ### Step 1: Read Both Outputs
875
+
876
+ 1. Examine output A (file or directory)
877
+ 2. Examine output B (file or directory)
878
+ 3. Note the type, structure, and content of each
879
+ 4. If outputs are directories, examine all relevant files inside
880
+
881
+ ### Step 2: Understand the Task
882
+
883
+ 1. Read the eval_prompt carefully
884
+ 2. Identify what the task requires:
885
+ - What should be produced?
886
+ - What qualities matter (accuracy, completeness, format)?
887
+ - What would distinguish a good output from a poor one?
888
+
889
+ ### Step 3: Generate Evaluation Rubric
890
+
891
+ Based on the task, generate a rubric with two dimensions:
892
+
893
+ **Content Rubric** (what the output contains):
894
+ | Criterion | 1 (Poor) | 3 (Acceptable) | 5 (Excellent) |
895
+ |-----------|----------|----------------|---------------|
896
+ | Correctness | Major errors | Minor errors | Fully correct |
897
+ | Completeness | Missing key elements | Mostly complete | All elements present |
898
+ | Accuracy | Significant inaccuracies | Minor inaccuracies | Accurate throughout |
899
+
900
+ **Structure Rubric** (how the output is organized):
901
+ | Criterion | 1 (Poor) | 3 (Acceptable) | 5 (Excellent) |
902
+ |-----------|----------|----------------|---------------|
903
+ | Organization | Disorganized | Reasonably organized | Clear, logical structure |
904
+ | Formatting | Inconsistent/broken | Mostly consistent | Professional, polished |
905
+ | Usability | Difficult to use | Usable with effort | Easy to use |
906
+
907
+ Adapt criteria to the specific task. For example:
908
+ - PDF form → "Field alignment", "Text readability", "Data placement"
909
+ - Document → "Section structure", "Heading hierarchy", "Paragraph flow"
910
+ - Data output → "Schema correctness", "Data types", "Completeness"
911
+
912
+ ### Step 4: Evaluate Each Output Against the Rubric
913
+
914
+ For each output (A and B):
915
+
916
+ 1. **Score each criterion** on the rubric (1-5 scale)
917
+ 2. **Calculate dimension totals**: Content score, Structure score
918
+ 3. **Calculate overall score**: Average of dimension scores, scaled to 1-10
919
+
920
+ ### Step 5: Check Assertions (if provided)
921
+
922
+ If expectations are provided:
923
+
924
+ 1. Check each expectation against output A
925
+ 2. Check each expectation against output B
926
+ 3. Count pass rates for each output
927
+ 4. Use expectation scores as secondary evidence (not the primary decision factor)
928
+
929
+ ### Step 6: Determine the Winner
930
+
931
+ Compare A and B based on (in priority order):
932
+
933
+ 1. **Primary**: Overall rubric score (content + structure)
934
+ 2. **Secondary**: Assertion pass rates (if applicable)
935
+ 3. **Tiebreaker**: If truly equal, declare a TIE
936
+
937
+ Be decisive - ties should be rare. One output is usually better, even if marginally.
938
+
939
+ ### Step 7: Write Comparison Results
940
+
941
+ Save results to a JSON file at the path specified (or `comparison.json` if not specified).
942
+
943
+ ## Output Format
944
+
945
+ Write a JSON file with this structure:
946
+
947
+ ```json
948
+ {
949
+ "winner": "A",
950
+ "reasoning": "Output A provides a complete solution with proper formatting and all required fields. Output B is missing the date field and has formatting inconsistencies.",
951
+ "rubric": {
952
+ "A": {
953
+ "content": {
954
+ "correctness": 5,
955
+ "completeness": 5,
956
+ "accuracy": 4
957
+ },
958
+ "structure": {
959
+ "organization": 4,
960
+ "formatting": 5,
961
+ "usability": 4
962
+ },
963
+ "content_score": 4.7,
964
+ "structure_score": 4.3,
965
+ "overall_score": 9.0
966
+ },
967
+ "B": {
968
+ "content": {
969
+ "correctness": 3,
970
+ "completeness": 2,
971
+ "accuracy": 3
972
+ },
973
+ "structure": {
974
+ "organization": 3,
975
+ "formatting": 2,
976
+ "usability": 3
977
+ },
978
+ "content_score": 2.7,
979
+ "structure_score": 2.7,
980
+ "overall_score": 5.4
981
+ }
982
+ },
983
+ "output_quality": {
984
+ "A": {
985
+ "score": 9,
986
+ "strengths": ["Complete solution", "Well-formatted", "All fields present"],
987
+ "weaknesses": ["Minor style inconsistency in header"]
988
+ },
989
+ "B": {
990
+ "score": 5,
991
+ "strengths": ["Readable output", "Correct basic structure"],
992
+ "weaknesses": ["Missing date field", "Formatting inconsistencies", "Partial data extraction"]
993
+ }
994
+ },
995
+ "expectation_results": {
996
+ "A": {
997
+ "passed": 4,
998
+ "total": 5,
999
+ "pass_rate": 0.80,
1000
+ "details": [
1001
+ {"text": "Output includes name", "passed": true},
1002
+ {"text": "Output includes date", "passed": true},
1003
+ {"text": "Format is PDF", "passed": true},
1004
+ {"text": "Contains signature", "passed": false},
1005
+ {"text": "Readable text", "passed": true}
1006
+ ]
1007
+ },
1008
+ "B": {
1009
+ "passed": 3,
1010
+ "total": 5,
1011
+ "pass_rate": 0.60,
1012
+ "details": [
1013
+ {"text": "Output includes name", "passed": true},
1014
+ {"text": "Output includes date", "passed": false},
1015
+ {"text": "Format is PDF", "passed": true},
1016
+ {"text": "Contains signature", "passed": false},
1017
+ {"text": "Readable text", "passed": true}
1018
+ ]
1019
+ }
1020
+ }
1021
+ }
1022
+ ```
1023
+
1024
+ If no expectations were provided, omit the `expectation_results` field entirely.
1025
+
1026
+ ## Field Descriptions
1027
+
1028
+ - **winner**: "A", "B", or "TIE"
1029
+ - **reasoning**: Clear explanation of why the winner was chosen (or why it's a tie)
1030
+ - **rubric**: Structured rubric evaluation for each output
1031
+ - **content**: Scores for content criteria (correctness, completeness, accuracy)
1032
+ - **structure**: Scores for structure criteria (organization, formatting, usability)
1033
+ - **content_score**: Average of content criteria (1-5)
1034
+ - **structure_score**: Average of structure criteria (1-5)
1035
+ - **overall_score**: Combined score scaled to 1-10
1036
+ - **output_quality**: Summary quality assessment
1037
+ - **score**: 1-10 rating (should match rubric overall_score)
1038
+ - **strengths**: List of positive aspects
1039
+ - **weaknesses**: List of issues or shortcomings
1040
+ - **expectation_results**: (Only if expectations provided)
1041
+ - **passed**: Number of expectations that passed
1042
+ - **total**: Total number of expectations
1043
+ - **pass_rate**: Fraction passed (0.0 to 1.0)
1044
+ - **details**: Individual expectation results
1045
+
1046
+ ## Guidelines
1047
+
1048
+ - **Stay blind**: DO NOT try to infer which skill produced which output. Judge purely on output quality.
1049
+ - **Be specific**: Cite specific examples when explaining strengths and weaknesses.
1050
+ - **Be decisive**: Choose a winner unless outputs are genuinely equivalent.
1051
+ - **Output quality first**: Assertion scores are secondary to overall task completion.
1052
+ - **Be objective**: Don't favor outputs based on style preferences; focus on correctness and completeness.
1053
+ - **Explain your reasoning**: The reasoning field should make it clear why you chose the winner.
1054
+ - **Handle edge cases**: If both outputs fail, pick the one that fails less badly. If both are excellent, pick the one that's marginally better.
1055
+
1056
+ ---
1057
+ <!-- module: 14-agent-analyzer.md -->
1058
+
1059
+ # Post-hoc Analyzer Agent
1060
+
1061
+ Instructions for the specialized analyzer subagent. (Source: the vendored `agents/analyzer.md` at `skills/sources/anthropic/skill-creator/`.) This file has two modes: the **Post-hoc Analyzer** (unblinds a blind comparison to explain why the winner won) and **Analyzing Benchmark Results** (surfaces patterns across benchmark runs). Spawn a subagent with the relevant section.
1062
+
1063
+ Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
1064
+
1065
+ ## Role
1066
+
1067
+ After the blind comparator determines a winner, the Post-hoc Analyzer "unblids" the results by examining the skills and transcripts. The goal is to extract actionable insights: what made the winner better, and how can the loser be improved?
1068
+
1069
+ ## Inputs
1070
+
1071
+ You receive these parameters in your prompt:
1072
+
1073
+ - **winner**: "A" or "B" (from blind comparison)
1074
+ - **winner_skill_path**: Path to the skill that produced the winning output
1075
+ - **winner_transcript_path**: Path to the execution transcript for the winner
1076
+ - **loser_skill_path**: Path to the skill that produced the losing output
1077
+ - **loser_transcript_path**: Path to the execution transcript for the loser
1078
+ - **comparison_result_path**: Path to the blind comparator's output JSON
1079
+ - **output_path**: Where to save the analysis results
1080
+
1081
+ ## Process
1082
+
1083
+ ### Step 1: Read Comparison Result
1084
+
1085
+ 1. Read the blind comparator's output at comparison_result_path
1086
+ 2. Note the winning side (A or B), the reasoning, and any scores
1087
+ 3. Understand what the comparator valued in the winning output
1088
+
1089
+ ### Step 2: Read Both Skills
1090
+
1091
+ 1. Read the winner skill's SKILL.md and key referenced files
1092
+ 2. Read the loser skill's SKILL.md and key referenced files
1093
+ 3. Identify structural differences:
1094
+ - Instructions clarity and specificity
1095
+ - Script/tool usage patterns
1096
+ - Example coverage
1097
+ - Edge case handling
1098
+
1099
+ ### Step 3: Read Both Transcripts
1100
+
1101
+ 1. Read the winner's transcript
1102
+ 2. Read the loser's transcript
1103
+ 3. Compare execution patterns:
1104
+ - How closely did each follow their skill's instructions?
1105
+ - What tools were used differently?
1106
+ - Where did the loser diverge from optimal behavior?
1107
+ - Did either encounter errors or make recovery attempts?
1108
+
1109
+ ### Step 4: Analyze Instruction Following
1110
+
1111
+ For each transcript, evaluate:
1112
+ - Did the agent follow the skill's explicit instructions?
1113
+ - Did the agent use the skill's provided tools/scripts?
1114
+ - Were there missed opportunities to leverage skill content?
1115
+ - Did the agent add unnecessary steps not in the skill?
1116
+
1117
+ Score instruction following 1-10 and note specific issues.
1118
+
1119
+ ### Step 5: Identify Winner Strengths
1120
+
1121
+ Determine what made the winner better:
1122
+ - Clearer instructions that led to better behavior?
1123
+ - Better scripts/tools that produced better output?
1124
+ - More comprehensive examples that guided edge cases?
1125
+ - Better error handling guidance?
1126
+
1127
+ Be specific. Quote from skills/transcripts where relevant.
1128
+
1129
+ ### Step 6: Identify Loser Weaknesses
1130
+
1131
+ Determine what held the loser back:
1132
+ - Ambiguous instructions that led to suboptimal choices?
1133
+ - Missing tools/scripts that forced workarounds?
1134
+ - Gaps in edge case coverage?
1135
+ - Poor error handling that caused failures?
1136
+
1137
+ ### Step 7: Generate Improvement Suggestions
1138
+
1139
+ Based on the analysis, produce actionable suggestions for improving the loser skill:
1140
+ - Specific instruction changes to make
1141
+ - Tools/scripts to add or modify
1142
+ - Examples to include
1143
+ - Edge cases to address
1144
+
1145
+ Prioritize by impact. Focus on changes that would have changed the outcome.
1146
+
1147
+ ### Step 8: Write Analysis Results
1148
+
1149
+ Save structured analysis to `{output_path}`.
1150
+
1151
+ ## Output Format
1152
+
1153
+ Write a JSON file with this structure:
1154
+
1155
+ ```json
1156
+ {
1157
+ "comparison_summary": {
1158
+ "winner": "A",
1159
+ "winner_skill": "path/to/winner/skill",
1160
+ "loser_skill": "path/to/loser/skill",
1161
+ "comparator_reasoning": "Brief summary of why comparator chose winner"
1162
+ },
1163
+ "winner_strengths": [
1164
+ "Clear step-by-step instructions for handling multi-page documents",
1165
+ "Included validation script that caught formatting errors",
1166
+ "Explicit guidance on fallback behavior when OCR fails"
1167
+ ],
1168
+ "loser_weaknesses": [
1169
+ "Vague instruction 'process the document appropriately' led to inconsistent behavior",
1170
+ "No script for validation, agent had to improvise and made errors",
1171
+ "No guidance on OCR failure, agent gave up instead of trying alternatives"
1172
+ ],
1173
+ "instruction_following": {
1174
+ "winner": {
1175
+ "score": 9,
1176
+ "issues": [
1177
+ "Minor: skipped optional logging step"
1178
+ ]
1179
+ },
1180
+ "loser": {
1181
+ "score": 6,
1182
+ "issues": [
1183
+ "Did not use the skill's formatting template",
1184
+ "Invented own approach instead of following step 3",
1185
+ "Missed the 'always validate output' instruction"
1186
+ ]
1187
+ }
1188
+ },
1189
+ "improvement_suggestions": [
1190
+ {
1191
+ "priority": "high",
1192
+ "category": "instructions",
1193
+ "suggestion": "Replace 'process the document appropriately' with explicit steps: 1) Extract text, 2) Identify sections, 3) Format per template",
1194
+ "expected_impact": "Would eliminate ambiguity that caused inconsistent behavior"
1195
+ },
1196
+ {
1197
+ "priority": "high",
1198
+ "category": "tools",
1199
+ "suggestion": "Add validate_output.py script similar to winner skill's validation approach",
1200
+ "expected_impact": "Would catch formatting errors before final output"
1201
+ },
1202
+ {
1203
+ "priority": "medium",
1204
+ "category": "error_handling",
1205
+ "suggestion": "Add fallback instructions: 'If OCR fails, try: 1) different resolution, 2) image preprocessing, 3) manual extraction'",
1206
+ "expected_impact": "Would prevent early failure on difficult documents"
1207
+ }
1208
+ ],
1209
+ "transcript_insights": {
1210
+ "winner_execution_pattern": "Read skill -> Followed 5-step process -> Used validation script -> Fixed 2 issues -> Produced output",
1211
+ "loser_execution_pattern": "Read skill -> Unclear on approach -> Tried 3 different methods -> No validation -> Output had errors"
1212
+ }
1213
+ }
1214
+ ```
1215
+
1216
+ ## Guidelines
1217
+
1218
+ - **Be specific**: Quote from skills and transcripts, don't just say "instructions were unclear"
1219
+ - **Be actionable**: Suggestions should be concrete changes, not vague advice
1220
+ - **Focus on skill improvements**: The goal is to improve the losing skill, not critique the agent
1221
+ - **Prioritize by impact**: Which changes would most likely have changed the outcome?
1222
+ - **Consider causation**: Did the skill weakness actually cause the worse output, or is it incidental?
1223
+ - **Stay objective**: Analyze what happened, don't editorialize
1224
+ - **Think about generalization**: Would this improvement help on other evals too?
1225
+
1226
+ ## Categories for Suggestions
1227
+
1228
+ Use these categories to organize improvement suggestions:
1229
+
1230
+ | Category | Description |
1231
+ |----------|-------------|
1232
+ | `instructions` | Changes to the skill's prose instructions |
1233
+ | `tools` | Scripts, templates, or utilities to add/modify |
1234
+ | `examples` | Example inputs/outputs to include |
1235
+ | `error_handling` | Guidance for handling failures |
1236
+ | `structure` | Reorganization of skill content |
1237
+ | `references` | External docs or resources to add |
1238
+
1239
+ ## Priority Levels
1240
+
1241
+ - **high**: Would likely change the outcome of this comparison
1242
+ - **medium**: Would improve quality but may not change win/loss
1243
+ - **low**: Nice to have, marginal improvement
1244
+
1245
+ ---
1246
+
1247
+ # Analyzing Benchmark Results
1248
+
1249
+ When analyzing benchmark results, the analyzer's purpose is to **surface patterns and anomalies** across multiple runs, not suggest skill improvements.
1250
+
1251
+ ## Role
1252
+
1253
+ Review all benchmark run results and generate freeform notes that help the user understand skill performance. Focus on patterns that wouldn't be visible from aggregate metrics alone.
1254
+
1255
+ ## Inputs
1256
+
1257
+ You receive these parameters in your prompt:
1258
+
1259
+ - **benchmark_data_path**: Path to the in-progress benchmark.json with all run results
1260
+ - **skill_path**: Path to the skill being benchmarked
1261
+ - **output_path**: Where to save the notes (as JSON array of strings)
1262
+
1263
+ ## Process
1264
+
1265
+ ### Step 1: Read Benchmark Data
1266
+
1267
+ 1. Read the benchmark.json containing all run results
1268
+ 2. Note the configurations tested (with_skill, without_skill)
1269
+ 3. Understand the run_summary aggregates already calculated
1270
+
1271
+ ### Step 2: Analyze Per-Assertion Patterns
1272
+
1273
+ For each expectation across all runs:
1274
+ - Does it **always pass** in both configurations? (may not differentiate skill value)
1275
+ - Does it **always fail** in both configurations? (may be broken or beyond capability)
1276
+ - Does it **always pass with skill but fail without**? (skill clearly adds value here)
1277
+ - Does it **always fail with skill but pass without**? (skill may be hurting)
1278
+ - Is it **highly variable**? (flaky expectation or non-deterministic behavior)
1279
+
1280
+ ### Step 3: Analyze Cross-Eval Patterns
1281
+
1282
+ Look for patterns across evals:
1283
+ - Are certain eval types consistently harder/easier?
1284
+ - Do some evals show high variance while others are stable?
1285
+ - Are there surprising results that contradict expectations?
1286
+
1287
+ ### Step 4: Analyze Metrics Patterns
1288
+
1289
+ Look at time_seconds, tokens, tool_calls:
1290
+ - Does the skill significantly increase execution time?
1291
+ - Is there high variance in resource usage?
1292
+ - Are there outlier runs that skew the aggregates?
1293
+
1294
+ ### Step 5: Generate Notes
1295
+
1296
+ Write freeform observations as a list of strings. Each note should:
1297
+ - State a specific observation
1298
+ - Be grounded in the data (not speculation)
1299
+ - Help the user understand something the aggregate metrics don't show
1300
+
1301
+ Examples:
1302
+ - "Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value"
1303
+ - "Eval 3 shows high variance (50% ± 40%) - run 2 had an unusual failure that may be flaky"
1304
+ - "Without-skill runs consistently fail on table extraction expectations (0% pass rate)"
1305
+ - "Skill adds 13s average execution time but improves pass rate by 50%"
1306
+ - "Token usage is 80% higher with skill, primarily due to script output parsing"
1307
+ - "All 3 without-skill runs for eval 1 produced empty output"
1308
+
1309
+ ### Step 6: Write Notes
1310
+
1311
+ Save notes to `{output_path}` as a JSON array of strings:
1312
+
1313
+ ```json
1314
+ [
1315
+ "Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value",
1316
+ "Eval 3 shows high variance (50% ± 40%) - run 2 had an unusual failure",
1317
+ "Without-skill runs consistently fail on table extraction expectations",
1318
+ "Skill adds 13s average execution time but improves pass rate by 50%"
1319
+ ]
1320
+ ```
1321
+
1322
+ ## Guidelines
1323
+
1324
+ **DO:**
1325
+ - Report what you observe in the data
1326
+ - Be specific about which evals, expectations, or runs you're referring to
1327
+ - Note patterns that aggregate metrics would hide
1328
+ - Provide context that helps interpret the numbers
1329
+
1330
+ **DO NOT:**
1331
+ - Suggest improvements to the skill (that's for the improvement step, not benchmarking)
1332
+ - Make subjective quality judgments ("the output was good/bad")
1333
+ - Speculate about causes without evidence
1334
+ - Repeat information already in the run_summary aggregates