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,46 @@
1
+ # CCS Skill Creator: Core
2
+
3
+ ## What CCS is
4
+
5
+ Compiled Composable Skills (CCS) packages an agent skill as small
6
+ authored markdown **minis** (one subtopic each), a knowledge-free **INDEX** that
7
+ lists them with "load when" hints, an optional always-loaded **00-core** holding
8
+ cross-cutting traps, and a tool-compiled **BUNDLE.md** (the deterministic
9
+ concatenation of every mini) plus optional named **presets/**. The minis are the
10
+ only source of truth; INDEX, BUNDLE, and presets are derived artifacts. The
11
+ payoff: a task loads only the slice it needs, quality stays at least as high as a
12
+ monolith, and every packaging choice is auditable. You build and check skills
13
+ with one stdlib CLI, `tools/hive.py` (subcommands `compile`, `lint`, `parity`,
14
+ `report`). This skill is itself authored in CCS format: the layout you are
15
+ reading is the layout you produce.
16
+
17
+ ## Loading policy (how you consume any CCS skill, including this one)
18
+
19
+ Read the INDEX first. Load `00-core` if the index marks one. Estimate coverage
20
+ `k/N` = (minis relevant to the task) / (total minis). If `k/N` < ~0.6, load the
21
+ `k` relevant minis individually. If `k/N` ≥ ~0.6, load `BUNDLE.md` (or a matching
22
+ `presets/*.md`) in one read. Never both fan out to subagents and load the whole
23
+ bundle for the same task.
24
+
25
+ ## The two iron rules
26
+
27
+ 1. **The index is a menu, not a meal.** `INDEX.md` carries none of the
28
+ skill's content, only mini filenames, terse descriptors, and "load when"
29
+ conditions. Any knowledge a mini needs in order to be applied lives *in the
30
+ mini*, never in the index.
31
+ 2. **Conversion is repackaging, never summarization.** Moving a skill into CCS
32
+ moves content between containers; it must not shrink it. Every fact,
33
+ threshold, table, and worked example survives verbatim-equivalent in some
34
+ mini. Runtime tokens are saved only by *selection* (load fewer minis) and
35
+ *dedup* (preamble shared across minis factored once into `00-core`), never by
36
+ cutting content.
37
+
38
+ ## When NOT to use CCS
39
+
40
+ - **Under ~5k tokens of knowledge** → ship a single `SKILL.md`. The INDEX +
41
+ 00-core scaffolding costs more than selective loading can save.
42
+ - **Knowledge a frontier model already applies well** → write no skill at all.
43
+ Generic guidance adds tokens and steps without adding quality; a no-skill
44
+ baseline repeatedly tied or beat skills on tasks inside model competence.
45
+ - **Every task needs the entire skill** → it is one document; just ship the
46
+ bundle, no selective loading to do.
@@ -0,0 +1,167 @@
1
+ # Create a New CCS Skill From Scratch
2
+
3
+ Use this when authoring a brand-new skill (no existing source to convert; for
4
+ that see `02-convert-existing-skill.md`). Follow the steps in order. Each step
5
+ lists exact commands and an **Acceptance** bar you must clear before moving on.
6
+
7
+ ## Step 0: Decide whether to write a skill at all
8
+
9
+ Apply the "When NOT to use CCS" test from `00-core`: skip the skill if it would
10
+ carry under ~5k tokens of content (ship a single `SKILL.md` instead), or if a
11
+ frontier model already handles it well (write nothing). For each candidate piece
12
+ of guidance ask: *"would a strong model reliably do this unprompted?"* If yes,
13
+ cut it. What remains (the traps and non-obvious calls) is your skill.
14
+
15
+ **Acceptance:** you can name at least a few trap-dense, non-inferable pieces of
16
+ knowledge, and tasks that use it vary in which subtopics they need.
17
+
18
+ ## Step 1: Scope the domain
19
+
20
+ Define one coherent domain a practitioner would recognize ("code review",
21
+ "financial analysis"), broad enough to have several subtopics but narrow enough
22
+ that any single task touches only some of them. Write down, before slicing:
23
+
24
+ - the **subtopics** a practitioner distinguishes;
25
+ - the **cross-cutting traps** that apply regardless of subtopic (these become
26
+ `00-core`);
27
+ - a few **representative tasks** spanning narrow (one subtopic) to broad (most
28
+ subtopics), to sanity-check your slicing.
29
+
30
+ **Acceptance:** a written list of subtopics, cross-cutting traps, and 3–5
31
+ representative tasks.
32
+
33
+ ## Step 2: Create the directory layout
34
+
35
+ A CCS skill lives under `skills/<category>/<domain>/composable/` with exactly this shape:
36
+
37
+ ```
38
+ skills/<category>/<domain>/
39
+ └── composable/
40
+ ├── INDEX.md # the menu (you author this)
41
+ ├── mini/
42
+ │ ├── 00-core.md # optional always-load cross-cutting mini
43
+ │ └── NN-topic.md # the authored modules (source of truth)
44
+ ├── BUNDLE.md # generated by hive.py compile — never hand-write
45
+ └── presets/ # optional, generated named subsets
46
+ └── <name>.md
47
+ ```
48
+
49
+ Pick `<category>` by provenance: `authored/` for a skill written directly in CCS
50
+ form, `converted/` for one ported from an existing upstream skill, `meta/` for a
51
+ skill about the CCS framework itself. Create
52
+ `skills/<category>/<domain>/composable/mini/`. Name minis `NN-topic.md` with a
53
+ two-digit ordinal; the ordinal fixes index and bundle order. `00-core.md` MUST
54
+ use ordinal `00`.
55
+
56
+ **Acceptance:** `mini/` exists; planned filenames chosen.
57
+
58
+ ## Step 3: Slice the minis (one subtopic each)
59
+
60
+ Aim for roughly 6–12 minis. Rules:
61
+
62
+ - **One focused subtopic per mini.** If a mini covers two things a task might
63
+ want separately, split it. If two minis are never useful apart, merge them.
64
+ - **Order for loading.** Put the "start here" method mini first; group related
65
+ subtopics adjacently.
66
+
67
+ **Acceptance:** for each representative task from Step 1, you can list which minis
68
+ it should load. If a needed rule falls cleanly into no single mini, re-slice.
69
+
70
+ ## Step 4: Write each mini, self-contained and uncompressed
71
+
72
+ Every mini MUST be applicable from *its own text plus `00-core`*, never
73
+ "as covered in the performance mini…". Restate the little that is needed; this
74
+ deliberate redundancy is what makes selective loading safe. Each mini MUST start
75
+ with an H1 (`# Title`). Size follows content: typical minis run ~300–700 words,
76
+ longer when the subtopic demands it. **Never thin content to hit a size**: you
77
+ save tokens by *selection*, never by summarizing.
78
+
79
+ **Acceptance:** every mini has an H1 and reads correctly with only itself +
80
+ `00-core` in context.
81
+
82
+ ## Step 5: Write `00-core.md` (traps only, if warranted)
83
+
84
+ `00-core` carries *only* cross-cutting traps: guidance relevant more often than
85
+ a task-scoped reader would guess (data-quality/input-validation discipline,
86
+ "prove it before you claim it", "present ranges not points"). Keep it small. It
87
+ is paid on every load, like the index. It states the cross-cutting rule and
88
+ points to the focused mini for depth; it MUST NOT reproduce a subtopic's full
89
+ treatment. If the skill has no genuinely cross-cutting traps, omit `00-core` and
90
+ instead mark the "start here" method mini always-load in the index.
91
+
92
+ **Acceptance:** `00-core` (if present) is small and holds only cross-cutting
93
+ material, not a subtopic's depth.
94
+
95
+ ## Step 6: Write the INDEX (a knowledge-free menu)
96
+
97
+ `INDEX.md` is a menu, not a meal (iron rule 1). Under ~200 words. Structure:
98
+
99
+ 1. An H1 title.
100
+ 2. The standard loading-policy header (see below), verbatim, right after the H1.
101
+ 3. Exactly **one line per mini**, each carrying (a) the mini filename, (b) a
102
+ terse content descriptor (the nouns a task matches on), and (c) a **"load
103
+ when"** hint phrased as an *observable task condition*, not a topic
104
+ restatement.
105
+
106
+ If `00-core.md` exists, its line MUST be marked **always load** and the header
107
+ tells the reader to load it first.
108
+
109
+ Standard header (paste verbatim after the H1):
110
+
111
+ ```
112
+ Loading policy: read this menu, then load 00-core (if present) plus the minis relevant to your task. If you judge most of this skill relevant, load BUNDLE.md (or a matching presets/*.md) in one read instead.
113
+ ```
114
+
115
+ Good line: `` - `04-concurrency.md` — Races, shared state, deadlocks, async,
116
+ TOCTOU. Load when code is threaded, async, or shares state.``. Weak (avoid):
117
+ `` - `04-concurrency.md` — About concurrency.`` (no trigger).
118
+
119
+ **Acceptance:** one index line per mini and one mini per index line (no drift);
120
+ no line carries knowledge; `00-core` marked always-load if present.
121
+
122
+ ## Step 7: Compile and lint, then fix findings
123
+
124
+ Generate the bundle (and any presets) and check the structure. Run from the repo
125
+ root:
126
+
127
+ ```bash
128
+ python3 tools/hive.py compile skills/<category>/<domain>
129
+ python3 tools/hive.py lint skills/<category>/<domain>
130
+ ```
131
+
132
+ `compile` writes `BUNDLE.md`: the deterministic concatenation of every mini in
133
+ ordinal order, `00-core` first, each preceded by a `<!-- module: NN-name.md -->`
134
+ marker. Never hand-edit `BUNDLE.md`. Add a preset only for a real recurring
135
+ configuration: `--presets security-audit=00-core,02 quick=00-core,01`. Do not
136
+ generate a combinatorial family of presets speculatively.
137
+
138
+ `lint` checks: INDEX exists and references each mini exactly once; index word
139
+ budget; no index line reads like knowledge; `00-core` marked always-load; every
140
+ mini nonempty with an H1; frontmatter (if any) valid; `BUNDLE.md` not stale. Fix
141
+ every **FAIL**; resolve **WARN**s or justify them. Re-run `compile` after any
142
+ mini edit so `BUNDLE.md` is never stale.
143
+
144
+ **Acceptance:** `lint` exits 0 (`… 0 fail`).
145
+
146
+ ## Worked micro-example: a `sql-migrations` skill
147
+
148
+ 1. **Scope.** Domain = writing safe database schema migrations. Subtopics:
149
+ backward-compatible changes, destructive changes, index/lock behavior,
150
+ data backfills. Cross-cutting trap: "a migration runs against production data
151
+ under live traffic, never assume an empty table or a maintenance window."
152
+ 2. **Slice.** Four minis: `01-backward-compatible.md`,
153
+ `02-destructive-changes.md`, `03-locks-and-indexes.md`, `04-backfills.md`,
154
+ plus `00-core.md` for the live-traffic trap.
155
+ 3. **Minis.** `03-locks-and-indexes.md` restates the "add index concurrently to
156
+ avoid a table lock" rule even though `01` mentions locks in passing, because
157
+ a task that loads only `03` must not miss it (self-containment).
158
+ 4. **Core.** `00-core.md` (~120 words): live-traffic assumption, "expand then
159
+ contract" pattern, always ship a tested rollback; points to `02` for the
160
+ destructive-change detail. Marked always-load.
161
+ 5. **Index.** Five lines. `` - `03-locks-and-indexes.md` — CONCURRENTLY, lock
162
+ modes, long-held locks. Load when adding/dropping indexes or altering large
163
+ tables.``
164
+ 6. **Compile & lint.** `python3 tools/hive.py compile skills/sql-migrations`
165
+ then `lint` → 0 fail. Narrow task "add a nullable column" loads {00-core, 01}
166
+ (k/N = 0.4 < 0.6, load minis). Broad "review this whole migration set" →
167
+ k/N ≥ 0.6 → load `BUNDLE.md` in one read.
@@ -0,0 +1,120 @@
1
+ # Convert an Existing Skill to CCS
2
+
3
+ Use this to repackage an existing skill (a monolithic `SKILL.md`, a `SKILL.md`
4
+ plus a `reference/` tree, or a prompt library) into CCS. For a brand-new skill
5
+ with no source, see `01-create-new-skill.md`. The governing rule is iron rule 2:
6
+ **conversion is repackaging, never summarization** (see `00-core`).
7
+
8
+ ## The failure you are avoiding
9
+
10
+ The `financial-analyst` conversion once decomposed a ~7,000-word source against
11
+ word budgets (250–450 words × ≤11 minis), forcing ~30% compression; token savings
12
+ transferred as predicted but the compressed tail held the judges' deciding
13
+ details and the converted skill *measurably lost quality on both eval tasks*: a
14
+ content loss, not a packaging flaw. That is why the parity gate below is
15
+ mandatory, and why you carry content at **full fidelity with no size caps**.
16
+
17
+ ## Step 1: Inventory the source
18
+
19
+ Enumerate the source's substantive units: every section/heading, table,
20
+ threshold, worked example, and always-loaded preamble. This list is your parity
21
+ checklist: nothing on it may vanish. Note where the source keeps its knowledge
22
+ (monolith body, reference files, prompt entries) and any always-loaded preamble
23
+ that repeats across files (that repetition is your one legitimate dedup target).
24
+
25
+ **Acceptance:** a written list of every substantive unit in the source.
26
+
27
+ ## Step 2: Map source structure to CCS elements
28
+
29
+ | Source structure | Maps to |
30
+ |---|---|
31
+ | Monolith top matter / always-loaded preamble | `00-core` (cross-cutting only) + INDEX framing |
32
+ | Monolith section / heading | one mini (`NN-topic.md`) |
33
+ | `SKILL.md` router / purpose table | `INDEX.md` (add a "load when" hint per entry) |
34
+ | `SKILL.md` always-loaded body | split: cross-cutting → `00-core`; subtopic prose → its mini |
35
+ | `reference/<topic>.md` file | one or more minis (split if coarse) |
36
+ | Prompt-library entry / template | one mini per coherent procedure |
37
+ | Repeated preamble across references | factored once into `00-core` (dedup) |
38
+ | Scripts, fixtures, templates, data | left as-is; referenced from a mini by path |
39
+ | The whole source, recompiled | `BUNDLE.md` (the parity target) |
40
+
41
+ Two rules of thumb: a coarse reference file (say 2,500 tokens) usually becomes
42
+ **several** minis: one mini reproduces the lost-in-the-middle problem inside a
43
+ single file. And the source's purpose table becomes the INDEX, but you must
44
+ **add** the "load when" hints if the source lacked them; triggers drive expert
45
+ selection.
46
+
47
+ **Acceptance:** every inventory unit from Step 1 is assigned to a specific mini.
48
+
49
+ ## Step 3: Create the layout and carry content at full fidelity
50
+
51
+ Create `skills/<category>/<domain>/composable/mini/` (layout identical to a from-scratch
52
+ skill: `INDEX.md`, `mini/00-core.md` + `mini/NN-topic.md`, generated `BUNDLE.md`,
53
+ optional `presets/`). Copy each source unit into its assigned mini **verbatim or
54
+ verbatim-equivalent**. Split coarse references into focused minis (e.g. a DCF
55
+ reference → `04-dcf-projection.md` + `05-terminal-value-sensitivity.md`). Factor
56
+ preamble repeated across three or more source files once into `00-core`. Make
57
+ each mini self-contained (applicable from its own text + `00-core`) and give it
58
+ an H1.
59
+
60
+ **There are no size caps.** If faithful fidelity needs more room, add minis or
61
+ enlarge them: the fix for "too much content" is *more or larger minis*, never
62
+ tighter prose. Do not compress "to tidy up." Leave scripts/assets untouched and
63
+ reference them from a mini by path.
64
+
65
+ **Acceptance:** every mini has an H1; every inventory unit is present at full
66
+ fidelity in some mini; only genuine cross-file duplication was removed (and now
67
+ lives once in `00-core`).
68
+
69
+ ## Step 4: Write the INDEX
70
+
71
+ Turn the source's purpose table into `INDEX.md`: an H1, the standard
72
+ loading-policy header verbatim after it, then one knowledge-free line per mini
73
+ with a filename, terse descriptor, and a **"load when"** observable-condition
74
+ hint. Mark `00-core` **always load** if present. Keep under ~200 words (~300 if
75
+ more than 12 minis). Standard header, pasted verbatim after the H1:
76
+
77
+ ```
78
+ Loading policy: read this menu, then load 00-core (if present) plus the minis relevant to your task. If you judge most of this skill relevant, load BUNDLE.md (or a matching presets/*.md) in one read instead.
79
+ ```
80
+
81
+ ## Step 5: Compile, then run the parity gate and lint
82
+
83
+ Run from the repo root:
84
+
85
+ ```bash
86
+ python3 tools/hive.py compile skills/<category>/<domain>
87
+ python3 tools/hive.py parity skills/<category>/<domain> <source-dir>
88
+ python3 tools/hive.py lint skills/<category>/<domain>
89
+ ```
90
+
91
+ `parity` compares the union of your minis against the original source. It reports
92
+ a **token ratio** (mini tokens ÷ source tokens) and lists any source `##`/`###`
93
+ heading with no fuzzy match in the minis (possibly dropped). Acceptance bar:
94
+
95
+ - Ratio **≥ 85%** is the hard floor (below it, `parity` FAILs and summarization
96
+ is suspected). **Aim for 95%+**: a faithful conversion loses tokens only to
97
+ genuine dedup, so the union of minis should be nearly the whole source.
98
+ - The dropped-heading list must be **empty**, or every entry on it explained as
99
+ genuine duplication now living once in `00-core`. Treat each listed heading as
100
+ a real gap: open the source section, find where it should live, and restore it
101
+ into the right mini. Re-run `compile` then `parity` until clean.
102
+
103
+ `lint` must exit 0 (INDEX/mini/core structural rules, `00-core` marked
104
+ always-load, `BUNDLE.md` not stale). A conversion that cannot pass parity within
105
+ your current mini count needs **more or larger minis, not tighter prose**.
106
+
107
+ **Acceptance:** `parity` ratio ≥ 85% (target 95%+) with no unexplained dropped
108
+ heading, **and** `lint` exits 0. Only then is the conversion done.
109
+
110
+ ## Edge cases
111
+
112
+ - **No cross-cutting content in the source** → omit `00-core`; mark the "start
113
+ here" mini always-load instead. Don't invent core material.
114
+ - **Script-heavy skill** → convert only the knowledge markdown; leave
115
+ `scripts/`, `assets/`, fixtures exactly as they are and reference them by path.
116
+ - **Source already close to CCS** (fine-grained references with triggers) →
117
+ conversion is mostly mechanical: rename to `NN-topic.md`, write the INDEX with
118
+ "load when" hints, compile, parity-check. Still do not compress.
119
+ - **Very large source** that overflows your intended mini count at full
120
+ fidelity → raise the mini count. Parity outranks any target mini count.
@@ -0,0 +1,112 @@
1
+ # Review and Maintain a CCS Skill
2
+
3
+ Use this when changing a skill that already exists in CCS format: editing its
4
+ knowledge, adding a preset, or checking it still conforms. The governing
5
+ discipline is the source/artifact split: `mini/*.md` is the only source of
6
+ truth; `INDEX.md`, `BUNDLE.md`, and `presets/*.md` are derived.
7
+
8
+ ## The maintenance loop (edit minis, recompile, relint)
9
+
10
+ To change any knowledge:
11
+
12
+ 1. **Edit the mini**, never `BUNDLE.md` or `presets/*.md`. Those are generated;
13
+ hand-edits are overwritten on the next compile and break the parity guarantee.
14
+ 2. **Recompile** so the bundle (and presets) match the minis again:
15
+
16
+ ```bash
17
+ python3 tools/hive.py compile skills/<category>/<domain>
18
+ ```
19
+
20
+ 3. **Relint** and fix every FAIL:
21
+
22
+ ```bash
23
+ python3 tools/hive.py lint skills/<category>/<domain>
24
+ ```
25
+
26
+ `lint` flags a **stale BUNDLE.md** (`does not match mini/*.md — re-run
27
+ compile`) whenever a mini changed but the bundle was not regenerated. Note the
28
+ asymmetry: editing only `INDEX.md` does *not* stale the bundle (the bundle is
29
+ built from minis, not the index), but it can still break other lint rules
30
+ (drift, word budget, always-load marking), so relint after any edit.
31
+
32
+ **Acceptance:** `lint` exits 0 after every change.
33
+
34
+ ## Keep the INDEX in sync
35
+
36
+ Every mini file MUST have exactly one index line, and every index line exactly
37
+ one mini file: `lint` fails on drift. So:
38
+
39
+ - **Add a mini** → add its one knowledge-free index line (descriptor + "load
40
+ when" hint), keep it under the word budget, then recompile.
41
+ - **Remove a mini** → delete its file *and* its index line, then recompile.
42
+ - **Rename a mini** → rename the file and update the index line's filename, then
43
+ recompile (the bundle's `<!-- module: … -->` marker tracks the new name).
44
+
45
+ Keep edits within the "index is a menu, not a meal" rule: never migrate
46
+ knowledge into the index to "clarify" it. If a mini's trigger is unclear, sharpen
47
+ the "load when" condition, not by adding skill content.
48
+
49
+ **Acceptance:** one index line per mini and one mini per index line; index still
50
+ under ~200 words (~300 for >12 minis); no line reads like knowledge.
51
+
52
+ ## Editing content without regressing fidelity
53
+
54
+ When the skill was produced by *conversion*, re-run the parity gate after
55
+ substantive edits so you don't silently drop content:
56
+
57
+ ```bash
58
+ python3 tools/hive.py parity skills/<category>/<domain> <source-dir>
59
+ ```
60
+
61
+ Keep the ratio ≥ 85% (aim 95%+) with no unexplained dropped heading. When adding
62
+ new original knowledge (no external source), there is nothing to parity against:
63
+ just ensure the new mini is self-contained and the bundle recompiles clean.
64
+
65
+ ## Adding presets, especially for variant-split skills
66
+
67
+ A **preset** is a named compiled subset of minis for a recurring configuration,
68
+ built by the same concatenation rules as the bundle. Generate presets with the
69
+ `--presets NAME=IDS` flag on `compile` (ids may be ordinals like `01`, stems, or
70
+ filenames; comma-separated; order preserved):
71
+
72
+ ```bash
73
+ python3 tools/hive.py compile skills/<category>/<domain> \
74
+ --presets security-audit=00-core,02 python-server=00-core,01,02,11,12
75
+ ```
76
+
77
+ This writes `presets/security-audit.md` and `presets/python-server.md`. Presets
78
+ SHOULD be few and named for real recurring tasks. Do not generate a
79
+ combinatorial family speculatively.
80
+
81
+ **The variant-split case is where presets earn their keep.** When a skill
82
+ contains mutually-exclusive tracks, such as language variants (Python *vs* Node)
83
+ or platform variants (iOS *vs* Android), a broad task should never load the whole
84
+ bundle, because half of it is irrelevant to the chosen variant. Ship one preset
85
+ per variant: each is `00-core` + the shared minis + only that variant's minis, so
86
+ a "build the whole Python server" task loads `presets/python-server.md` in one
87
+ read with zero cross-variant waste. Reference these presets in the INDEX's
88
+ loading header or a note so the loader knows to prefer them for broad
89
+ variant-specific work.
90
+
91
+ **Acceptance:** each preset covers exactly one real recurring configuration;
92
+ `presets/*.md` are tool-generated (never hand-edited); `lint` exits 0.
93
+
94
+ ## Conformance re-check
95
+
96
+ Before considering maintenance done, confirm the skill still satisfies the spec:
97
+ knowledge-free INDEX under budget with one "load when" line per mini; focused,
98
+ self-contained, uncompressed minis each with an H1; a small `00-core` where
99
+ warranted, marked always-load; a tool-generated, boundary-marked, never-
100
+ hand-edited `BUNDLE.md` and any presets; passing parity (for converted skills);
101
+ untouched non-knowledge assets. A single command reports lint status across every
102
+ skill in the repo:
103
+
104
+ ```bash
105
+ python3 tools/hive.py report skills
106
+ ```
107
+
108
+ `report` prints a per-skill token/size table with a `lint (P/W/F)` column and
109
+ exits nonzero if any skill has a lint FAIL. Use it as the final green light.
110
+
111
+ **Acceptance:** `report skills` shows the maintained skill with `0F` (zero
112
+ fails).
@@ -0,0 +1,3 @@
1
+ Source: https://github.com/anthropics/skills (skills/mcp-builder, skills/internal-comms),
2
+ vendored unmodified for CCS packaging research and benchmarking. See upstream
3
+ repository for license terms; these copies retain all original content.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Anthropic, PBC.
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.