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,414 @@
1
+ # JSON Schemas
2
+
3
+ This document defines the JSON schemas used by skill-creator. (Source: the vendored `references/schemas.md` at `skills/sources/anthropic/skill-creator/`.)
4
+
5
+ ## evals.json
6
+
7
+ Defines the evals for a skill. Located at `evals/evals.json` within the skill directory.
8
+
9
+ ```json
10
+ {
11
+ "skill_name": "example-skill",
12
+ "evals": [
13
+ {
14
+ "id": 1,
15
+ "prompt": "User's example prompt",
16
+ "expected_output": "Description of expected result",
17
+ "files": ["evals/files/sample1.pdf"],
18
+ "expectations": [
19
+ "The output includes X",
20
+ "The skill used script Y"
21
+ ]
22
+ }
23
+ ]
24
+ }
25
+ ```
26
+
27
+ **Fields:**
28
+ - `skill_name`: Name matching the skill's frontmatter
29
+ - `evals[].id`: Unique integer identifier
30
+ - `evals[].prompt`: The task to execute
31
+ - `evals[].expected_output`: Human-readable description of success
32
+ - `evals[].files`: Optional list of input file paths (relative to skill root)
33
+ - `evals[].expectations`: List of verifiable statements
34
+
35
+ ## history.json
36
+
37
+ Tracks version progression in Improve mode. Located at workspace root.
38
+
39
+ ```json
40
+ {
41
+ "started_at": "2026-01-15T10:30:00Z",
42
+ "skill_name": "pdf",
43
+ "current_best": "v2",
44
+ "iterations": [
45
+ {
46
+ "version": "v0",
47
+ "parent": null,
48
+ "expectation_pass_rate": 0.65,
49
+ "grading_result": "baseline",
50
+ "is_current_best": false
51
+ },
52
+ {
53
+ "version": "v1",
54
+ "parent": "v0",
55
+ "expectation_pass_rate": 0.75,
56
+ "grading_result": "won",
57
+ "is_current_best": false
58
+ },
59
+ {
60
+ "version": "v2",
61
+ "parent": "v1",
62
+ "expectation_pass_rate": 0.85,
63
+ "grading_result": "won",
64
+ "is_current_best": true
65
+ }
66
+ ]
67
+ }
68
+ ```
69
+
70
+ **Fields:**
71
+ - `started_at`: ISO timestamp of when improvement started
72
+ - `skill_name`: Name of the skill being improved
73
+ - `current_best`: Version identifier of the best performer
74
+ - `iterations[].version`: Version identifier (v0, v1, ...)
75
+ - `iterations[].parent`: Parent version this was derived from
76
+ - `iterations[].expectation_pass_rate`: Pass rate from grading
77
+ - `iterations[].grading_result`: "baseline", "won", "lost", or "tie"
78
+ - `iterations[].is_current_best`: Whether this is the current best version
79
+
80
+ ## grading.json
81
+
82
+ Output from the grader agent. Located at `<run-dir>/grading.json`.
83
+
84
+ ```json
85
+ {
86
+ "expectations": [
87
+ {
88
+ "text": "The output includes the name 'John Smith'",
89
+ "passed": true,
90
+ "evidence": "Found in transcript Step 3: 'Extracted names: John Smith, Sarah Johnson'"
91
+ },
92
+ {
93
+ "text": "The spreadsheet has a SUM formula in cell B10",
94
+ "passed": false,
95
+ "evidence": "No spreadsheet was created. The output was a text file."
96
+ }
97
+ ],
98
+ "summary": {
99
+ "passed": 2,
100
+ "failed": 1,
101
+ "total": 3,
102
+ "pass_rate": 0.67
103
+ },
104
+ "execution_metrics": {
105
+ "tool_calls": {
106
+ "Read": 5,
107
+ "Write": 2,
108
+ "Bash": 8
109
+ },
110
+ "total_tool_calls": 15,
111
+ "total_steps": 6,
112
+ "errors_encountered": 0,
113
+ "output_chars": 12450,
114
+ "transcript_chars": 3200
115
+ },
116
+ "timing": {
117
+ "executor_duration_seconds": 165.0,
118
+ "grader_duration_seconds": 26.0,
119
+ "total_duration_seconds": 191.0
120
+ },
121
+ "claims": [
122
+ {
123
+ "claim": "The form has 12 fillable fields",
124
+ "type": "factual",
125
+ "verified": true,
126
+ "evidence": "Counted 12 fields in field_info.json"
127
+ }
128
+ ],
129
+ "user_notes_summary": {
130
+ "uncertainties": ["Used 2023 data, may be stale"],
131
+ "needs_review": [],
132
+ "workarounds": ["Fell back to text overlay for non-fillable fields"]
133
+ },
134
+ "eval_feedback": {
135
+ "suggestions": [
136
+ {
137
+ "assertion": "The output includes the name 'John Smith'",
138
+ "reason": "A hallucinated document that mentions the name would also pass"
139
+ }
140
+ ],
141
+ "overall": "Assertions check presence but not correctness."
142
+ }
143
+ }
144
+ ```
145
+
146
+ **Fields:**
147
+ - `expectations[]`: Graded expectations with evidence
148
+ - `summary`: Aggregate pass/fail counts
149
+ - `execution_metrics`: Tool usage and output size (from executor's metrics.json)
150
+ - `timing`: Wall clock timing (from timing.json)
151
+ - `claims`: Extracted and verified claims from the output
152
+ - `user_notes_summary`: Issues flagged by the executor
153
+ - `eval_feedback`: (optional) Improvement suggestions for the evals, only present when the grader identifies issues worth raising
154
+
155
+ ## metrics.json
156
+
157
+ Output from the executor agent. Located at `<run-dir>/outputs/metrics.json`.
158
+
159
+ ```json
160
+ {
161
+ "tool_calls": {
162
+ "Read": 5,
163
+ "Write": 2,
164
+ "Bash": 8,
165
+ "Edit": 1,
166
+ "Glob": 2,
167
+ "Grep": 0
168
+ },
169
+ "total_tool_calls": 18,
170
+ "total_steps": 6,
171
+ "files_created": ["filled_form.pdf", "field_values.json"],
172
+ "errors_encountered": 0,
173
+ "output_chars": 12450,
174
+ "transcript_chars": 3200
175
+ }
176
+ ```
177
+
178
+ **Fields:**
179
+ - `tool_calls`: Count per tool type
180
+ - `total_tool_calls`: Sum of all tool calls
181
+ - `total_steps`: Number of major execution steps
182
+ - `files_created`: List of output files created
183
+ - `errors_encountered`: Number of errors during execution
184
+ - `output_chars`: Total character count of output files
185
+ - `transcript_chars`: Character count of transcript
186
+
187
+ ## timing.json
188
+
189
+ Wall clock timing for a run. Located at `<run-dir>/timing.json`.
190
+
191
+ **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.
192
+
193
+ ```json
194
+ {
195
+ "total_tokens": 84852,
196
+ "duration_ms": 23332,
197
+ "total_duration_seconds": 23.3,
198
+ "executor_start": "2026-01-15T10:30:00Z",
199
+ "executor_end": "2026-01-15T10:32:45Z",
200
+ "executor_duration_seconds": 165.0,
201
+ "grader_start": "2026-01-15T10:32:46Z",
202
+ "grader_end": "2026-01-15T10:33:12Z",
203
+ "grader_duration_seconds": 26.0
204
+ }
205
+ ```
206
+
207
+ ## benchmark.json
208
+
209
+ Output from Benchmark mode. Located at `benchmarks/<timestamp>/benchmark.json`.
210
+
211
+ ```json
212
+ {
213
+ "metadata": {
214
+ "skill_name": "pdf",
215
+ "skill_path": "/path/to/pdf",
216
+ "executor_model": "claude-sonnet-4-20250514",
217
+ "analyzer_model": "most-capable-model",
218
+ "timestamp": "2026-01-15T10:30:00Z",
219
+ "evals_run": [1, 2, 3],
220
+ "runs_per_configuration": 3
221
+ },
222
+
223
+ "runs": [
224
+ {
225
+ "eval_id": 1,
226
+ "eval_name": "Ocean",
227
+ "configuration": "with_skill",
228
+ "run_number": 1,
229
+ "result": {
230
+ "pass_rate": 0.85,
231
+ "passed": 6,
232
+ "failed": 1,
233
+ "total": 7,
234
+ "time_seconds": 42.5,
235
+ "tokens": 3800,
236
+ "tool_calls": 18,
237
+ "errors": 0
238
+ },
239
+ "expectations": [
240
+ {"text": "...", "passed": true, "evidence": "..."}
241
+ ],
242
+ "notes": [
243
+ "Used 2023 data, may be stale",
244
+ "Fell back to text overlay for non-fillable fields"
245
+ ]
246
+ }
247
+ ],
248
+
249
+ "run_summary": {
250
+ "with_skill": {
251
+ "pass_rate": {"mean": 0.85, "stddev": 0.05, "min": 0.80, "max": 0.90},
252
+ "time_seconds": {"mean": 45.0, "stddev": 12.0, "min": 32.0, "max": 58.0},
253
+ "tokens": {"mean": 3800, "stddev": 400, "min": 3200, "max": 4100}
254
+ },
255
+ "without_skill": {
256
+ "pass_rate": {"mean": 0.35, "stddev": 0.08, "min": 0.28, "max": 0.45},
257
+ "time_seconds": {"mean": 32.0, "stddev": 8.0, "min": 24.0, "max": 42.0},
258
+ "tokens": {"mean": 2100, "stddev": 300, "min": 1800, "max": 2500}
259
+ },
260
+ "delta": {
261
+ "pass_rate": "+0.50",
262
+ "time_seconds": "+13.0",
263
+ "tokens": "+1700"
264
+ }
265
+ },
266
+
267
+ "notes": [
268
+ "Assertion 'Output is a PDF file' passes 100% in both configurations - may not differentiate skill value",
269
+ "Eval 3 shows high variance (50% ± 40%) - may be flaky or model-dependent",
270
+ "Without-skill runs consistently fail on table extraction expectations",
271
+ "Skill adds 13s average execution time but improves pass rate by 50%"
272
+ ]
273
+ }
274
+ ```
275
+
276
+ **Fields:**
277
+ - `metadata`: Information about the benchmark run
278
+ - `skill_name`: Name of the skill
279
+ - `timestamp`: When the benchmark was run
280
+ - `evals_run`: List of eval names or IDs
281
+ - `runs_per_configuration`: Number of runs per config (e.g. 3)
282
+ - `runs[]`: Individual run results
283
+ - `eval_id`: Numeric eval identifier
284
+ - `eval_name`: Human-readable eval name (used as section header in the viewer)
285
+ - `configuration`: Must be `"with_skill"` or `"without_skill"` (the viewer uses this exact string for grouping and color coding)
286
+ - `run_number`: Integer run number (1, 2, 3...)
287
+ - `result`: Nested object with `pass_rate`, `passed`, `total`, `time_seconds`, `tokens`, `errors`
288
+ - `run_summary`: Statistical aggregates per configuration
289
+ - `with_skill` / `without_skill`: Each contains `pass_rate`, `time_seconds`, `tokens` objects with `mean` and `stddev` fields
290
+ - `delta`: Difference strings like `"+0.50"`, `"+13.0"`, `"+1700"`
291
+ - `notes`: Freeform observations from the analyzer
292
+
293
+ **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.
294
+
295
+ ## comparison.json
296
+
297
+ Output from blind comparator. Located at `<grading-dir>/comparison-N.json`.
298
+
299
+ ```json
300
+ {
301
+ "winner": "A",
302
+ "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.",
303
+ "rubric": {
304
+ "A": {
305
+ "content": {
306
+ "correctness": 5,
307
+ "completeness": 5,
308
+ "accuracy": 4
309
+ },
310
+ "structure": {
311
+ "organization": 4,
312
+ "formatting": 5,
313
+ "usability": 4
314
+ },
315
+ "content_score": 4.7,
316
+ "structure_score": 4.3,
317
+ "overall_score": 9.0
318
+ },
319
+ "B": {
320
+ "content": {
321
+ "correctness": 3,
322
+ "completeness": 2,
323
+ "accuracy": 3
324
+ },
325
+ "structure": {
326
+ "organization": 3,
327
+ "formatting": 2,
328
+ "usability": 3
329
+ },
330
+ "content_score": 2.7,
331
+ "structure_score": 2.7,
332
+ "overall_score": 5.4
333
+ }
334
+ },
335
+ "output_quality": {
336
+ "A": {
337
+ "score": 9,
338
+ "strengths": ["Complete solution", "Well-formatted", "All fields present"],
339
+ "weaknesses": ["Minor style inconsistency in header"]
340
+ },
341
+ "B": {
342
+ "score": 5,
343
+ "strengths": ["Readable output", "Correct basic structure"],
344
+ "weaknesses": ["Missing date field", "Formatting inconsistencies", "Partial data extraction"]
345
+ }
346
+ },
347
+ "expectation_results": {
348
+ "A": {
349
+ "passed": 4,
350
+ "total": 5,
351
+ "pass_rate": 0.80,
352
+ "details": [
353
+ {"text": "Output includes name", "passed": true}
354
+ ]
355
+ },
356
+ "B": {
357
+ "passed": 3,
358
+ "total": 5,
359
+ "pass_rate": 0.60,
360
+ "details": [
361
+ {"text": "Output includes name", "passed": true}
362
+ ]
363
+ }
364
+ }
365
+ }
366
+ ```
367
+
368
+ ## analysis.json
369
+
370
+ Output from post-hoc analyzer. Located at `<grading-dir>/analysis.json`.
371
+
372
+ ```json
373
+ {
374
+ "comparison_summary": {
375
+ "winner": "A",
376
+ "winner_skill": "path/to/winner/skill",
377
+ "loser_skill": "path/to/loser/skill",
378
+ "comparator_reasoning": "Brief summary of why comparator chose winner"
379
+ },
380
+ "winner_strengths": [
381
+ "Clear step-by-step instructions for handling multi-page documents",
382
+ "Included validation script that caught formatting errors"
383
+ ],
384
+ "loser_weaknesses": [
385
+ "Vague instruction 'process the document appropriately' led to inconsistent behavior",
386
+ "No script for validation, agent had to improvise"
387
+ ],
388
+ "instruction_following": {
389
+ "winner": {
390
+ "score": 9,
391
+ "issues": ["Minor: skipped optional logging step"]
392
+ },
393
+ "loser": {
394
+ "score": 6,
395
+ "issues": [
396
+ "Did not use the skill's formatting template",
397
+ "Invented own approach instead of following step 3"
398
+ ]
399
+ }
400
+ },
401
+ "improvement_suggestions": [
402
+ {
403
+ "priority": "high",
404
+ "category": "instructions",
405
+ "suggestion": "Replace 'process the document appropriately' with explicit steps",
406
+ "expected_impact": "Would eliminate ambiguity that caused inconsistent behavior"
407
+ }
408
+ ],
409
+ "transcript_insights": {
410
+ "winner_execution_pattern": "Read skill -> Followed 5-step process -> Used validation script",
411
+ "loser_execution_pattern": "Read skill -> Unclear on approach -> Tried 3 different methods"
412
+ }
413
+ }
414
+ ```
@@ -0,0 +1,225 @@
1
+ # Grader Agent
2
+
3
+ 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.)
4
+
5
+ Evaluate expectations against an execution transcript and outputs.
6
+
7
+ ## Role
8
+
9
+ The Grader reviews a transcript and output files, then determines whether each expectation passes or fails. Provide clear evidence for each judgment.
10
+
11
+ 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.
12
+
13
+ ## Inputs
14
+
15
+ You receive these parameters in your prompt:
16
+
17
+ - **expectations**: List of expectations to evaluate (strings)
18
+ - **transcript_path**: Path to the execution transcript (markdown file)
19
+ - **outputs_dir**: Directory containing output files from execution
20
+
21
+ ## Process
22
+
23
+ ### Step 1: Read the Transcript
24
+
25
+ 1. Read the transcript file completely
26
+ 2. Note the eval prompt, execution steps, and final result
27
+ 3. Identify any issues or errors documented
28
+
29
+ ### Step 2: Examine Output Files
30
+
31
+ 1. List files in outputs_dir
32
+ 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.
33
+ 3. Note contents, structure, and quality
34
+
35
+ ### Step 3: Evaluate Each Assertion
36
+
37
+ For each expectation:
38
+
39
+ 1. **Search for evidence** in the transcript and outputs
40
+ 2. **Determine verdict**:
41
+ - **PASS**: Clear evidence the expectation is true AND the evidence reflects genuine task completion, not just surface-level compliance
42
+ - **FAIL**: No evidence, or evidence contradicts the expectation, or the evidence is superficial (e.g., correct filename but empty/wrong content)
43
+ 3. **Cite the evidence**: Quote the specific text or describe what you found
44
+
45
+ ### Step 4: Extract and Verify Claims
46
+
47
+ Beyond the predefined expectations, extract implicit claims from the outputs and verify them:
48
+
49
+ 1. **Extract claims** from the transcript and outputs:
50
+ - Factual statements ("The form has 12 fields")
51
+ - Process claims ("Used pypdf to fill the form")
52
+ - Quality claims ("All fields were filled correctly")
53
+
54
+ 2. **Verify each claim**:
55
+ - **Factual claims**: Can be checked against the outputs or external sources
56
+ - **Process claims**: Can be verified from the transcript
57
+ - **Quality claims**: Evaluate whether the claim is justified
58
+
59
+ 3. **Flag unverifiable claims**: Note claims that cannot be verified with available information
60
+
61
+ This catches issues that predefined expectations might miss.
62
+
63
+ ### Step 5: Read User Notes
64
+
65
+ If `{outputs_dir}/user_notes.md` exists:
66
+ 1. Read it and note any uncertainties or issues flagged by the executor
67
+ 2. Include relevant concerns in the grading output
68
+ 3. These may reveal problems even when expectations pass
69
+
70
+ ### Step 6: Critique the Evals
71
+
72
+ After grading, consider whether the evals themselves could be improved. Only surface suggestions when there's a clear gap.
73
+
74
+ 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.
75
+
76
+ Suggestions worth raising:
77
+ - An assertion that passed but would also pass for a clearly wrong output (e.g., checking filename existence but not file content)
78
+ - An important outcome you observed — good or bad — that no assertion covers at all
79
+ - An assertion that can't actually be verified from the available outputs
80
+
81
+ Keep the bar high. The goal is to flag things the eval author would say "good catch" about, not to nitpick every assertion.
82
+
83
+ ### Step 7: Write Grading Results
84
+
85
+ Save results to `{outputs_dir}/../grading.json` (sibling to outputs_dir).
86
+
87
+ ## Grading Criteria
88
+
89
+ **PASS when**:
90
+ - The transcript or outputs clearly demonstrate the expectation is true
91
+ - Specific evidence can be cited
92
+ - The evidence reflects genuine substance, not just surface compliance (e.g., a file exists AND contains correct content, not just the right filename)
93
+
94
+ **FAIL when**:
95
+ - No evidence found for the expectation
96
+ - Evidence contradicts the expectation
97
+ - The expectation cannot be verified from available information
98
+ - The evidence is superficial — the assertion is technically satisfied but the underlying task outcome is wrong or incomplete
99
+ - The output appears to meet the assertion by coincidence rather than by actually doing the work
100
+
101
+ **When uncertain**: The burden of proof to pass is on the expectation.
102
+
103
+ ### Step 8: Read Executor Metrics and Timing
104
+
105
+ 1. If `{outputs_dir}/metrics.json` exists, read it and include in grading output
106
+ 2. If `{outputs_dir}/../timing.json` exists, read it and include timing data
107
+
108
+ ## Output Format
109
+
110
+ Write a JSON file with this structure:
111
+
112
+ ```json
113
+ {
114
+ "expectations": [
115
+ {
116
+ "text": "The output includes the name 'John Smith'",
117
+ "passed": true,
118
+ "evidence": "Found in transcript Step 3: 'Extracted names: John Smith, Sarah Johnson'"
119
+ },
120
+ {
121
+ "text": "The spreadsheet has a SUM formula in cell B10",
122
+ "passed": false,
123
+ "evidence": "No spreadsheet was created. The output was a text file."
124
+ },
125
+ {
126
+ "text": "The assistant used the skill's OCR script",
127
+ "passed": true,
128
+ "evidence": "Transcript Step 2 shows: 'Tool: Bash - python ocr_script.py image.png'"
129
+ }
130
+ ],
131
+ "summary": {
132
+ "passed": 2,
133
+ "failed": 1,
134
+ "total": 3,
135
+ "pass_rate": 0.67
136
+ },
137
+ "execution_metrics": {
138
+ "tool_calls": {
139
+ "Read": 5,
140
+ "Write": 2,
141
+ "Bash": 8
142
+ },
143
+ "total_tool_calls": 15,
144
+ "total_steps": 6,
145
+ "errors_encountered": 0,
146
+ "output_chars": 12450,
147
+ "transcript_chars": 3200
148
+ },
149
+ "timing": {
150
+ "executor_duration_seconds": 165.0,
151
+ "grader_duration_seconds": 26.0,
152
+ "total_duration_seconds": 191.0
153
+ },
154
+ "claims": [
155
+ {
156
+ "claim": "The form has 12 fillable fields",
157
+ "type": "factual",
158
+ "verified": true,
159
+ "evidence": "Counted 12 fields in field_info.json"
160
+ },
161
+ {
162
+ "claim": "All required fields were populated",
163
+ "type": "quality",
164
+ "verified": false,
165
+ "evidence": "Reference section was left blank despite data being available"
166
+ }
167
+ ],
168
+ "user_notes_summary": {
169
+ "uncertainties": ["Used 2023 data, may be stale"],
170
+ "needs_review": [],
171
+ "workarounds": ["Fell back to text overlay for non-fillable fields"]
172
+ },
173
+ "eval_feedback": {
174
+ "suggestions": [
175
+ {
176
+ "assertion": "The output includes the name 'John Smith'",
177
+ "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"
178
+ },
179
+ {
180
+ "reason": "No assertion checks whether the extracted phone numbers match the input — I observed incorrect numbers in the output that went uncaught"
181
+ }
182
+ ],
183
+ "overall": "Assertions check presence but not correctness. Consider adding content verification."
184
+ }
185
+ }
186
+ ```
187
+
188
+ ## Field Descriptions
189
+
190
+ - **expectations**: Array of graded expectations
191
+ - **text**: The original expectation text
192
+ - **passed**: Boolean - true if expectation passes
193
+ - **evidence**: Specific quote or description supporting the verdict
194
+ - **summary**: Aggregate statistics
195
+ - **passed**: Count of passed expectations
196
+ - **failed**: Count of failed expectations
197
+ - **total**: Total expectations evaluated
198
+ - **pass_rate**: Fraction passed (0.0 to 1.0)
199
+ - **execution_metrics**: Copied from executor's metrics.json (if available)
200
+ - **output_chars**: Total character count of output files (proxy for tokens)
201
+ - **transcript_chars**: Character count of transcript
202
+ - **timing**: Wall clock timing from timing.json (if available)
203
+ - **executor_duration_seconds**: Time spent in executor subagent
204
+ - **total_duration_seconds**: Total elapsed time for the run
205
+ - **claims**: Extracted and verified claims from the output
206
+ - **claim**: The statement being verified
207
+ - **type**: "factual", "process", or "quality"
208
+ - **verified**: Boolean - whether the claim holds
209
+ - **evidence**: Supporting or contradicting evidence
210
+ - **user_notes_summary**: Issues flagged by the executor
211
+ - **uncertainties**: Things the executor wasn't sure about
212
+ - **needs_review**: Items requiring human attention
213
+ - **workarounds**: Places where the skill didn't work as expected
214
+ - **eval_feedback**: Improvement suggestions for the evals (only when warranted)
215
+ - **suggestions**: List of concrete suggestions, each with a `reason` and optionally an `assertion` it relates to
216
+ - **overall**: Brief assessment — can be "No suggestions, evals look solid" if nothing to flag
217
+
218
+ ## Guidelines
219
+
220
+ - **Be objective**: Base verdicts on evidence, not assumptions
221
+ - **Be specific**: Quote the exact text that supports your verdict
222
+ - **Be thorough**: Check both transcript and output files
223
+ - **Be consistent**: Apply the same standard to each expectation
224
+ - **Explain failures**: Make it clear why evidence was insufficient
225
+ - **No partial credit**: Each expectation is pass or fail, not partial