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
package/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sherif Kozman and the Hive contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ This license covers this installer package (`hive-skills`) itself. Skills
26
+ bundled under `assets/skills/sources/` are vendored third-party material with
27
+ their own license terms — see `assets/THIRD_PARTY_NOTICES.md` and the
28
+ `PROVENANCE.md`/`LICENSE*` files bundled alongside them.
package/README.md ADDED
@@ -0,0 +1,235 @@
1
+ # hive-skills
2
+
3
+ `hive-skills` is an interactive, offline installer for [Hive](https://github.com/sherifkozman/hive)
4
+ CCS (Compiled Composable Skills) skills across AI coding clients (Claude Code,
5
+ Codex, Cursor, Gemini CLI, Windsurf, and others). It scans your machine for
6
+ installed clients, installs bundled skills into them, proposes CCS conversions
7
+ of your existing client skills/rules, and can back up and restore client skill
8
+ state.
9
+
10
+ All 13 bundled Hive skills, the `tools/hive.py` CLI, and their
11
+ licenses/provenance ship inside this package — installs work fully offline, no
12
+ network calls at runtime.
13
+
14
+ ## Quickstart
15
+
16
+ ```
17
+ npx hive-skills
18
+ ```
19
+
20
+ runs with no arguments an interactive wizard: scan this machine for installed
21
+ AI coding clients, pick which clients and skills to install, review the exact
22
+ files that will be written, and confirm. Every mutating step is preceded by an
23
+ automatic backup (see [Safety model](#safety-model)).
24
+
25
+ Every subcommand also runs non-interactively, for scripting/CI:
26
+
27
+ ```
28
+ npx hive-skills install --client claude-code --all --yes
29
+ ```
30
+
31
+ ## Command reference
32
+
33
+ Global options (accepted by every subcommand):
34
+
35
+ | Flag | Meaning |
36
+ |---|---|
37
+ | `--home <dir>` | Override the resolved home directory (testing/CI seam; also settable via `HIVE_SKILLS_HOME`). |
38
+ | `--registry <jsonfile>` | A partial registry document, deep-merged over the built-in client registry (also settable via `HIVE_SKILLS_REGISTRY`). Lets you patch a client's detected paths/strategy without waiting for a release. |
39
+ | `--json` | Machine-readable JSON output, where the command produces data. |
40
+ | `--dry-run` | Preview writes without performing them (zero filesystem writes). |
41
+ | `--yes` | Required to perform any write in a non-interactive shell. |
42
+ | `--no-backup` | Skip the automatic pre-mutation backup (not recommended). |
43
+ | `--force` | Override a safety refusal (foreign directory, hash mismatch, or an `absent`-entry deletion) — only after you've confirmed it's safe. |
44
+ | `--project <dir>` | Project directory, for project-scoped clients (currently: Cursor's project rule file). |
45
+
46
+ Subcommands:
47
+
48
+ - **`scan`** — detect installed clients and scan their existing skills/rules,
49
+ with a chars÷4 token estimate per item found. `--json` emits
50
+ `{ clients: [{ id, name, detected, strategy, confidence, skills: [...] }] }`.
51
+ - **`list`** — the bundled skill catalog: name, category, version, mini count,
52
+ bundle token count, description.
53
+ - **`install [--client <id>...] [--skill <name>...] [--all] [--project <dir>] [--write-pointers]`**
54
+ — install bundled skills into clients. `--client`/`--skill` are repeatable;
55
+ `--all` fills in whichever of the two you didn't pass explicitly (e.g.
56
+ `install --client claude-code --all --yes` installs every bundled skill into
57
+ just `claude-code`). Requires `--yes` to actually write; without it, use
58
+ `--dry-run` to preview the plan. For a payload+pointer client (see below),
59
+ the pointer-file snippet is only written when both `--write-pointers` and
60
+ `--yes` are given — otherwise the write is skipped and the snippet is
61
+ printed for you to add by hand.
62
+ - **`propose [--client <id>...] [--out <file>]`** — scan a client's existing
63
+ skills/rules and write a conversion-candidate doc (default
64
+ `./hive-conversion-proposals.md`). Never executes a conversion itself — see
65
+ [Conversion workflow](#conversion-workflow).
66
+ - **`doctor`** — health-check: Node/Python versions, per-client readability
67
+ and writability, installed-skill integrity (tree hash, `VERSION`,
68
+ `BUNDLE.md`'s generated marker, staleness vs. the bundled catalog), dangling
69
+ pointer-file managed blocks, and the backups directory. Exits `1` only on a
70
+ `fail` finding; `warn` findings exit `0`.
71
+ - **`backup [--client <id>...]`** — snapshot a client's current skill/payload/
72
+ pointer state now, independent of installing anything.
73
+ - **`restore [--list | --backup <id>] [--force] [--dry-run]`** — `--list`
74
+ shows every backup (id, created-at, label, entry count); `--backup <id>`
75
+ verifies and applies one. Refuses on a payload hash mismatch or an
76
+ unsafe deletion without `--force` (see below).
77
+
78
+ With no subcommand: the interactive wizard on a TTY, or help text (exit `0`)
79
+ otherwise.
80
+
81
+ ## Safety model
82
+
83
+ - **Backups always.** Every mutating command snapshots exactly the paths it's
84
+ about to touch before touching them, into
85
+ `~/.hive-skills/backups/<timestamp>-<label>-<suffix>/`. Opt out only with
86
+ the explicit `--no-backup`. Backups are never pruned automatically —
87
+ `doctor` reports total count/size with a prune hint.
88
+ - **Consent-gated pointer writes.** For a `payload+pointer` client (rules-based,
89
+ no first-class skills directory — currently Gemini CLI and Windsurf) or
90
+ `payload+project-pointer` client (Cursor), the CCS skill tree is installed
91
+ to a payload directory this installer owns, but the short pointer snippet
92
+ into the client's own rules file (`GEMINI.md`, `global_rules.md`, a project
93
+ `.cursor/rules/*.mdc`) is never written without explicit consent: an
94
+ interactive per-file confirmation showing the diff, or `--write-pointers`
95
+ together with `--yes` non-interactively. The snippet lives inside marked
96
+ `# >>> hive-skills >>>` / `# <<< hive-skills <<<` comments, so re-installing
97
+ updates it in place and uninstalling removes exactly that block.
98
+ - **Path guard.** Every filesystem write passes through an allowlist check
99
+ (client skill/payload directories, the backups directory, or an explicitly
100
+ confirmed pointer file, or an explicitly-passed `propose --out` path) —
101
+ both the allowed roots and the write target are resolved through the real
102
+ filesystem path (symlinks included) before the check, so neither a
103
+ symlinked home directory nor a symlink placed inside an allowed root can
104
+ bypass it.
105
+ - **Dry-run means zero writes.** `--dry-run` performs no filesystem mutation
106
+ at all — verified directly (fixture-tree hash comparison before/after) in
107
+ this package's test suite.
108
+ - **Atomic, single-writer.** Each skill tree is staged into a temporary
109
+ sibling directory and atomically renamed into place; a single lockfile
110
+ under `~/.hive-skills/.lock` (stale-detected by pid + age) prevents two
111
+ concurrent runs from interleaving writes.
112
+ - **No git, no network.** The installer never touches the Hive repository
113
+ itself and never runs `git` or makes a network call at runtime.
114
+
115
+ ## Client support table
116
+
117
+ Generated from the installer's built-in client registry (kept in sync by a
118
+ test that asserts every registry id appears here). `strategy` is one of:
119
+ `native-skills` (a first-class skills directory — the full CCS tree plus a
120
+ `SKILL.md` shim is installed there directly), `payload-pointer` /
121
+ `payload-project-pointer` (rules-based client — the CCS tree goes to a payload
122
+ directory this installer owns; a pointer snippet into the client's rules file
123
+ is offered, never silently written), or `scan-only` (detected and scanned,
124
+ but not installed to, in this version). `confidence` is `verified` (observed
125
+ on a real machine this session and/or corroborated by fetched vendor docs),
126
+ `docs` (from vendor documentation, not independently observed this session),
127
+ or `assumed` (best-effort guess from naming conventions, not verified) — see
128
+ `doctor`'s per-client output for what it actually finds on your machine,
129
+ regardless of this table.
130
+
131
+ | id | name | strategy | provenance | confidence |
132
+ |---|---|---|---|---|
133
+ | `claude-code` | Claude Code | native-skills | observed-local | verified |
134
+ | `codex` | Codex | native-skills (payload-pointer fallback if `~/.codex/skills` can't be created) | observed-local | verified |
135
+ | `opencode` | OpenCode | native-skills | opencode.ai/docs/skills | docs |
136
+ | `vscode-copilot` | VS Code (GitHub Copilot) | native-skills | observed-local; code.visualstudio.com/docs/agent-customization/agent-skills | verified |
137
+ | `cline` | Cline | native-skills | docs.cline.bot/customization/skills | docs |
138
+ | `agents-dir` | Shared agents dir (~/.agents) | native-skills | observed-local | verified |
139
+ | `gemini` | Gemini CLI | payload-pointer | observed-local | verified |
140
+ | `windsurf` | Windsurf | payload-pointer | observed-local (payload dir); pointer-file path unverified | assumed |
141
+ | `cursor` | Cursor | payload-project-pointer (no home-relative pointer — Cursor's global rules live in app settings) | observed-local (payload dir); reported (Cursor global rules location) | docs |
142
+ | `roo` | Roo Code | scan-only | assumed from naming conventions | assumed |
143
+ | `zed` | Zed | scan-only (deferred pending further validation, even though zed.dev/docs/ai/skills now documents real skill support) | docs-tier | docs |
144
+ | `continue` | Continue | scan-only | assumed from naming conventions | assumed |
145
+ | `claude-desktop` | Claude Desktop | scan-only (skills managed in-app) | observed-local | verified |
146
+
147
+ `--registry <jsonfile>` (or `HIVE_SKILLS_REGISTRY`) lets you patch any of the
148
+ above — or add an entirely new client — without waiting for a release: pass a
149
+ JSON object keyed by client id, deep-merged onto the built-ins (or, for an
150
+ unrecognized id, a full new entry with at least `name`/`detect`/
151
+ `skillLocations`/`strategy`).
152
+
153
+ ## Conversion workflow
154
+
155
+ `propose` scans a client's existing skills/rules and classifies each as a CCS
156
+ conversion candidate by size (chars÷4 token estimate): **strong** (≥5,000
157
+ tokens), **borderline** (2,000–4,999 tokens — the CCS scope rule says small
158
+ skills should stay single-file; convert only if tasks genuinely vary in which
159
+ subtopics they need), or **keep-as-is** (<2,000 tokens). Every candidate
160
+ carries a caveat that token size alone doesn't confirm task-variance, which
161
+ can't be measured statically.
162
+
163
+ For each strong/borderline candidate, the generated doc lists a ready-to-run
164
+ conversion recipe and its dependencies:
165
+
166
+ - `python3` ≥ 3.11 (for `tools/hive.py`'s `lint`/`parity`/`compile`).
167
+ - The bundled `tools/hive.py` and the bundled `ccs-skill-creator` meta-skill
168
+ (both shipped inside this package's `assets/`, at the paths the generated
169
+ doc quotes).
170
+ - The exact agent prompt to run the conversion: point an agent at
171
+ `ccs-skill-creator`'s `composable/INDEX.md` and ask it to convert the
172
+ candidate source.
173
+
174
+ **`propose` never executes a conversion itself** — conversion is agentic work,
175
+ gated on:
176
+
177
+ - **Parity ≥ 85%** (`tools/hive.py parity <converted-dir> <source>`) — the
178
+ conversion must be repackaging, never summarization. This isn't a style
179
+ preference: converting a real third-party skill and letting the decomposer
180
+ compress content lost the quality edge entirely — the lossy conversion
181
+ scored worse than the original packaging on both tasks tested, while
182
+ content-parity conversions elsewhere matched or beat the monolith (Hive
183
+ `docs/BENCHMARKS.md`, Experiment 3).
184
+ - **Lint clean** (`tools/hive.py lint <converted-dir>`).
185
+
186
+ ## Backup, restore, and uninstall
187
+
188
+ - `hive-skills backup [--client <id>...]` snapshots a client's current state
189
+ on demand; every mutating command (`install`, a pointer write, `restore`
190
+ itself) also snapshots automatically first, unless `--no-backup`.
191
+ - `hive-skills restore --list` shows every backup (id, created-at, label,
192
+ entry count, newest first). `hive-skills restore --backup <id>` verifies
193
+ every backed-up file's hash before writing anything (fails fast rather than
194
+ applying a corrupt backup partway), then restores byte-identical content —
195
+ file contents, permission bits, and symlinks alike. `--dry-run` prints the
196
+ write/delete plan with zero writes; `--force` is required to restore over a
197
+ hash mismatch, or to delete a path that changed since it was installed
198
+ (restore refuses by default rather than silently discarding unrecognized
199
+ changes).
200
+ - **Uninstall** a skill by restoring the backup taken right before it was
201
+ installed (`hive-skills backup`'s automatic pre-install snapshot, or
202
+ `restore --list` to find it) — the skill tree is recorded as an `absent`
203
+ entry in that backup's manifest, so restoring it removes the tree. A
204
+ payload+pointer client's rules-file pointer snippet is a documented
205
+ exception: if the pointer file didn't already exist before that install, it
206
+ isn't captured by the pre-install backup (restoring it would otherwise
207
+ delete the *entire* file, destroying anything else in it), so restore
208
+ leaves the block behind — `doctor`'s dangling-pointer-block check flags
209
+ this so you know to remove it by hand or re-run install.
210
+
211
+ ## Limitations (v0.1)
212
+
213
+ - **Darwin-validated only.** Every command in this README has been exercised
214
+ on macOS. Paths are written platform-aware (`path` + resolved home
215
+ directory, and the registry has `win32` entries where a client's Windows
216
+ convention is documented), but Windows itself is not yet validated.
217
+ - **Several registry entries are `scan-only` in this version**: `roo`, `zed`,
218
+ `continue`, and `claude-desktop` are detected and scanned, but this
219
+ installer does not write to them yet (see the [client support
220
+ table](#client-support-table) above for why, per entry).
221
+ - **No npm publish, no auto-update, no telemetry** — this package installs
222
+ what's bundled in the tarball you have; nothing is fetched at runtime.
223
+ - **Single-run evidence.** The conversion-quality findings cited above
224
+ (Experiment 3) are a single-run case study, not a repeated-sampling study;
225
+ see Hive's `docs/BENCHMARKS.md` §12 for the full limitations of the
226
+ underlying benchmark suite this installer's evidence-cited claims draw on.
227
+
228
+ ## License
229
+
230
+ MIT — see `LICENSE`. Vendored third-party skill material carries its own
231
+ license: see `THIRD_PARTY_NOTICES.md` and each source's `PROVENANCE.md`.
232
+
233
+ See the [Hive repository](https://github.com/sherifkozman/hive) for the CCS
234
+ specification, the skills themselves in editable form, and the full benchmark
235
+ evidence base.
package/assets/LICENSE ADDED
@@ -0,0 +1,32 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sherif Kozman and the Hive contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ This license covers the Hive / CCS (Compiled Composable Skills) framework
26
+ itself: the specification in `docs/`, the `tools/hive.py` CLI, the skills
27
+ authored in this repository under `skills/*/composable/` and
28
+ `skills/*/monolithic/`, and the evaluation harness and research notes.
29
+
30
+ Third-party material vendored under `external/` retains its own upstream
31
+ license terms and is **not** covered by this license. See
32
+ `THIRD_PARTY_NOTICES.md` for details.
@@ -0,0 +1,72 @@
1
+ # Third-Party Notices
2
+
3
+ This repository is licensed under the MIT License (see `LICENSE`) for
4
+ everything authored in this project: the CCS specification, the
5
+ `tools/hive.py` CLI, the eight reference skills, and the evaluation harness.
6
+
7
+ The `skills/sources/` directory is an exception: it vendors third-party source
8
+ material, **unmodified**, that was used as input to the framework's
9
+ benchmarking and conversion experiments. That material is not relicensed by
10
+ this project. It is reproduced here, alongside its own `PROVENANCE.md`, so the
11
+ benchmark and conversion work in `docs/BENCHMARKS.md` and `docs/CONVERSION.md`
12
+ is reproducible. This file records what is vendored, where it came from, and
13
+ what license information is available for it.
14
+
15
+ ## `skills/sources/anthropic/`
16
+
17
+ - **Source:** [`github.com/anthropics/skills`](https://github.com/anthropics/skills),
18
+ the `skills/mcp-builder` and `skills/internal-comms` directories.
19
+ - **Used for:** Experiment 6 in `docs/BENCHMARKS.md`, a supplemental
20
+ validation of the CCS conversion process against two official Anthropic
21
+ Agent Skills, one large (`mcp-builder`) and one small (`internal-comms`).
22
+ - **Modification:** none. The files under `skills/sources/anthropic/` are vendored
23
+ copies of the upstream `SKILL.md` and accompanying files, byte-for-byte.
24
+ This project's CCS *conversions* of these skills (the composable
25
+ mini/INDEX/BUNDLE decompositions) live under `skills/mcp-builder/` and
26
+ `skills/internal-comms/` and are derived works produced by this project,
27
+ distinct from the vendored originals.
28
+ - **License:** Each vendored skill directory carries its own `LICENSE.txt`,
29
+ copied unmodified from upstream: both `skills/sources/anthropic/internal-comms/LICENSE.txt`
30
+ and `skills/sources/anthropic/mcp-builder/LICENSE.txt` are the Apache License,
31
+ Version 2.0, copyright Anthropic, PBC. That license, not this project's MIT
32
+ license, governs the vendored files in those two directories. See the
33
+ `LICENSE.txt` in each directory and the upstream repository for the
34
+ authoritative terms.
35
+
36
+ ## `skills/sources/financial-analyst/`
37
+
38
+ - **Source:** [`github.com/alirezarezvani/claude-skills`](https://github.com/alirezarezvani/claude-skills),
39
+ the `finance/skills/financial-analyst` directory.
40
+ - **Used for:** Experiment 3 in `docs/BENCHMARKS.md`, a market-skill
41
+ conversion case study that measured the token and quality cost of a lossy
42
+ CCS conversion of a third-party skill, motivating the parity gate
43
+ (`docs/SPEC.md` §8, `docs/CONVERSION.md` §2).
44
+ - **Scope vendored:** markdown knowledge files only (`SKILL.md` and the
45
+ `references/*.md` guides). Scripts and other assets from the upstream
46
+ project were excluded from the experiment and are not vendored here.
47
+ - **Modification:** none. The vendored files are unmodified copies of the
48
+ markdown consulted for the conversion experiment. This project's CCS
49
+ conversion, `skills/financial-analysis/`, is a derived work produced by
50
+ this project.
51
+ - **License:** no `LICENSE` file or in-file license header was found in the
52
+ vendored material or accompanying it upstream at the time it was vendored.
53
+ **See the upstream repository (`alirezarezvani/claude-skills`) for license
54
+ terms** before reusing this material outside the scope of this project's
55
+ benchmarking and conversion demonstration. Do not assume MIT or any other
56
+ permissive license applies merely because it sits in this MIT-licensed
57
+ repository: this directory is carved out precisely because its license
58
+ status is unclear.
59
+
60
+ ## Summary
61
+
62
+ | Directory | Upstream | License found in this repo | Modified? |
63
+ |---|---|---|---|
64
+ | `skills/sources/anthropic/internal-comms/` | anthropics/skills | Apache-2.0 (`LICENSE.txt`, present) | No |
65
+ | `skills/sources/anthropic/mcp-builder/` | anthropics/skills | Apache-2.0 (`LICENSE.txt`, present) | No |
66
+ | `skills/sources/financial-analyst/` | alirezarezvani/claude-skills | Not found: see upstream repository for license terms | No |
67
+
68
+ If you are redistributing this repository, or extracting `skills/sources/` content
69
+ for use outside of reading the CCS benchmark writeups, treat each directory
70
+ according to the license row above rather than the project-wide MIT license.
71
+ If you are a rights holder for any of the above and believe this notice is
72
+ inaccurate or that vendoring should be adjusted, please open an issue.