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,911 @@
1
+ <!-- GENERATED by tools/hive.py compile. Do not hand-edit. -->
2
+ # pptx: Compiled Skill Bundle (v1.0.0)
3
+
4
+ All composable mini-skills for `pptx` concatenated in index order, frontmatter stripped. Regenerate with `tools/hive.py compile <skill-dir>`. Do not edit by hand.
5
+
6
+ ---
7
+ <!-- module: 00-core.md -->
8
+
9
+ # Core: PPTX Skill
10
+
11
+ Always-loaded foundation for working with PowerPoint `.pptx` files. Load the focused minis (see INDEX) for reading, creating from scratch, editing templates, design, and QA.
12
+
13
+ ## When to use this skill
14
+
15
+ Use this skill any time a `.pptx` file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any `.pptx` file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a `.pptx` filename, regardless of what they plan to do with the content afterward. If a `.pptx` file needs to be opened, created, or touched, use this skill.
16
+
17
+ License: Proprietary. `skills/sources/anthropic/pptx/LICENSE.txt` has complete terms.
18
+
19
+ ## Quick Reference
20
+
21
+ | Task | Guide |
22
+ |------|-------|
23
+ | Read/analyze content | `python -m markitdown presentation.pptx` (see reading mini) |
24
+ | Edit or create from template | See editing-templates mini |
25
+ | Create from scratch | See creating-from-scratch mini |
26
+
27
+ ## Choosing an approach
28
+
29
+ - **Reading content**: extract text, get a visual overview, or inspect raw XML — see the reading mini.
30
+ - **Editing / creating from a template**: when using an existing presentation as a template — see the editing-templates mini.
31
+ - **Creating from scratch**: use when no template or reference presentation is available — see the creating-from-scratch mini.
32
+
33
+ Design guidance (palettes, layout, typography) and the required QA/verification process apply to both editing and creating — see the design and qa-and-rendering minis.
34
+
35
+ ## Scripts location
36
+
37
+ Helper scripts referenced throughout this skill (e.g. `scripts/thumbnail.py`, `scripts/office/unpack.py`, `scripts/add_slide.py`, `scripts/clean.py`, `scripts/office/pack.py`, `scripts/office/soffice.py`) are vendored in the source at `skills/sources/anthropic/pptx/scripts/`. Paths shown as `scripts/...` are relative to that vendored source directory.
38
+
39
+ ## Dependencies
40
+
41
+ - `pip install "markitdown[pptx]"` - text extraction
42
+ - `pip install Pillow` - thumbnail grids
43
+ - `npm install -g pptxgenjs` - creating from scratch
44
+ - LibreOffice (`soffice`) - PDF conversion (auto-configured for sandboxed environments via `scripts/office/soffice.py`)
45
+ - Poppler (`pdftoppm`) - PDF to images
46
+
47
+ ---
48
+ <!-- module: 01-reading.md -->
49
+
50
+ # Reading & Extracting Content
51
+
52
+ Reading, parsing, or extracting content from a `.pptx` file. Use for any task that needs the text or a visual overview of an existing presentation — even if the extracted content will be used elsewhere (email, summary, etc.).
53
+
54
+ ## Reading Content
55
+
56
+ ```bash
57
+ # Text extraction
58
+ python -m markitdown presentation.pptx
59
+
60
+ # Visual overview
61
+ python scripts/thumbnail.py presentation.pptx
62
+
63
+ # Raw XML
64
+ python scripts/office/unpack.py presentation.pptx unpacked/
65
+ ```
66
+
67
+ - `python -m markitdown presentation.pptx` — extract the text content of the deck.
68
+ - `python scripts/thumbnail.py presentation.pptx` — create a visual overview (grid of slide thumbnails).
69
+ - `python scripts/office/unpack.py presentation.pptx unpacked/` — extract and pretty-print the raw XML for inspection.
70
+
71
+ Script paths (`scripts/thumbnail.py`, `scripts/office/unpack.py`) refer to the vendored source at `skills/sources/anthropic/pptx/scripts/`.
72
+
73
+ ## thumbnail.py
74
+
75
+ ```bash
76
+ python scripts/thumbnail.py input.pptx [output_prefix] [--cols N]
77
+ ```
78
+
79
+ Creates `thumbnails.jpg` with slide filenames as labels. Default 3 columns, max 12 per grid.
80
+
81
+ **Use for template analysis only** (choosing layouts). For visual QA, use `soffice` + `pdftoppm` to create full-resolution individual slide images — see the qa-and-rendering mini.
82
+
83
+ ## Dependencies
84
+
85
+ - `pip install "markitdown[pptx]"` - text extraction
86
+ - `pip install Pillow` - thumbnail grids
87
+
88
+ ---
89
+ <!-- module: 02-creating-from-scratch.md -->
90
+
91
+ # Creating from Scratch (PptxGenJS)
92
+
93
+ Use when no template or reference presentation is available. This is the full PptxGenJS tutorial. Install: `npm install -g pptxgenjs`. Also read the design mini for palettes/layout and the qa-and-rendering mini for the required verification loop.
94
+
95
+ ## Setup & Basic Structure
96
+
97
+ ```javascript
98
+ const pptxgen = require("pptxgenjs");
99
+
100
+ let pres = new pptxgen();
101
+ pres.layout = 'LAYOUT_16x9'; // or 'LAYOUT_16x10', 'LAYOUT_4x3', 'LAYOUT_WIDE'
102
+ pres.author = 'Your Name';
103
+ pres.title = 'Presentation Title';
104
+
105
+ let slide = pres.addSlide();
106
+ slide.addText("Hello World!", { x: 0.5, y: 0.5, fontSize: 36, color: "363636" });
107
+
108
+ pres.writeFile({ fileName: "Presentation.pptx" });
109
+ ```
110
+
111
+ ## Layout Dimensions
112
+
113
+ Slide dimensions (coordinates in inches):
114
+ - `LAYOUT_16x9`: 10" × 5.625" (default)
115
+ - `LAYOUT_16x10`: 10" × 6.25"
116
+ - `LAYOUT_4x3`: 10" × 7.5"
117
+ - `LAYOUT_WIDE`: 13.3" × 7.5"
118
+
119
+ ---
120
+
121
+ ## Text & Formatting
122
+
123
+ ```javascript
124
+ // Basic text
125
+ slide.addText("Simple Text", {
126
+ x: 1, y: 1, w: 8, h: 2, fontSize: 24, fontFace: "Arial",
127
+ color: "363636", bold: true, align: "center", valign: "middle"
128
+ });
129
+
130
+ // Character spacing (use charSpacing, not letterSpacing which is silently ignored)
131
+ slide.addText("SPACED TEXT", { x: 1, y: 1, w: 8, h: 1, charSpacing: 6 });
132
+
133
+ // Rich text arrays
134
+ slide.addText([
135
+ { text: "Bold ", options: { bold: true } },
136
+ { text: "Italic ", options: { italic: true } }
137
+ ], { x: 1, y: 3, w: 8, h: 1 });
138
+
139
+ // Multi-line text (requires breakLine: true)
140
+ slide.addText([
141
+ { text: "Line 1", options: { breakLine: true } },
142
+ { text: "Line 2", options: { breakLine: true } },
143
+ { text: "Line 3" } // Last item doesn't need breakLine
144
+ ], { x: 0.5, y: 0.5, w: 8, h: 2 });
145
+
146
+ // Text box margin (internal padding)
147
+ slide.addText("Title", {
148
+ x: 0.5, y: 0.3, w: 9, h: 0.6,
149
+ margin: 0 // Use 0 when aligning text with other elements like shapes or icons
150
+ });
151
+ ```
152
+
153
+ **Tip:** Text boxes have internal margin by default. Set `margin: 0` when you need text to align precisely with shapes, lines, or icons at the same x-position.
154
+
155
+ ---
156
+
157
+ ## Lists & Bullets
158
+
159
+ ```javascript
160
+ // ✅ CORRECT: Multiple bullets
161
+ slide.addText([
162
+ { text: "First item", options: { bullet: true, breakLine: true } },
163
+ { text: "Second item", options: { bullet: true, breakLine: true } },
164
+ { text: "Third item", options: { bullet: true } }
165
+ ], { x: 0.5, y: 0.5, w: 8, h: 3 });
166
+
167
+ // ❌ WRONG: Never use unicode bullets
168
+ slide.addText("• First item", { ... }); // Creates double bullets
169
+
170
+ // Sub-items and numbered lists
171
+ { text: "Sub-item", options: { bullet: true, indentLevel: 1 } }
172
+ { text: "First", options: { bullet: { type: "number" }, breakLine: true } }
173
+ ```
174
+
175
+ ---
176
+
177
+ ## Shapes
178
+
179
+ ```javascript
180
+ slide.addShape(pres.shapes.RECTANGLE, {
181
+ x: 0.5, y: 0.8, w: 1.5, h: 3.0,
182
+ fill: { color: "FF0000" }, line: { color: "000000", width: 2 }
183
+ });
184
+
185
+ slide.addShape(pres.shapes.OVAL, { x: 4, y: 1, w: 2, h: 2, fill: { color: "0000FF" } });
186
+
187
+ slide.addShape(pres.shapes.LINE, {
188
+ x: 1, y: 3, w: 5, h: 0, line: { color: "FF0000", width: 3, dashType: "dash" }
189
+ });
190
+
191
+ // With transparency
192
+ slide.addShape(pres.shapes.RECTANGLE, {
193
+ x: 1, y: 1, w: 3, h: 2,
194
+ fill: { color: "0088CC", transparency: 50 }
195
+ });
196
+
197
+ // Rounded rectangle (rectRadius only works with ROUNDED_RECTANGLE, not RECTANGLE)
198
+ // ⚠️ Don't pair with rectangular accent overlays — they won't cover rounded corners. Use RECTANGLE instead.
199
+ slide.addShape(pres.shapes.ROUNDED_RECTANGLE, {
200
+ x: 1, y: 1, w: 3, h: 2,
201
+ fill: { color: "FFFFFF" }, rectRadius: 0.1
202
+ });
203
+
204
+ // With shadow
205
+ slide.addShape(pres.shapes.RECTANGLE, {
206
+ x: 1, y: 1, w: 3, h: 2,
207
+ fill: { color: "FFFFFF" },
208
+ shadow: { type: "outer", color: "000000", blur: 6, offset: 2, angle: 135, opacity: 0.15 }
209
+ });
210
+ ```
211
+
212
+ Shadow options:
213
+
214
+ | Property | Type | Range | Notes |
215
+ |----------|------|-------|-------|
216
+ | `type` | string | `"outer"`, `"inner"` | |
217
+ | `color` | string | 6-char hex (e.g. `"000000"`) | No `#` prefix, no 8-char hex — see Common Pitfalls |
218
+ | `blur` | number | 0-100 pt | |
219
+ | `offset` | number | 0-200 pt | **Must be non-negative** — negative values corrupt the file |
220
+ | `angle` | number | 0-359 degrees | Direction the shadow falls (135 = bottom-right, 270 = upward) |
221
+ | `opacity` | number | 0.0-1.0 | Use this for transparency, never encode in color string |
222
+
223
+ To cast a shadow upward (e.g. on a footer bar), use `angle: 270` with a positive offset — do **not** use a negative offset.
224
+
225
+ **Note**: Gradient fills are not natively supported. Use a gradient image as a background instead.
226
+
227
+ ---
228
+
229
+ ## Images
230
+
231
+ ### Image Sources
232
+
233
+ ```javascript
234
+ // From file path
235
+ slide.addImage({ path: "images/chart.png", x: 1, y: 1, w: 5, h: 3 });
236
+
237
+ // From URL
238
+ slide.addImage({ path: "https://example.com/image.jpg", x: 1, y: 1, w: 5, h: 3 });
239
+
240
+ // From base64 (faster, no file I/O)
241
+ slide.addImage({ data: "image/png;base64,iVBORw0KGgo...", x: 1, y: 1, w: 5, h: 3 });
242
+ ```
243
+
244
+ ### Image Options
245
+
246
+ ```javascript
247
+ slide.addImage({
248
+ path: "image.png",
249
+ x: 1, y: 1, w: 5, h: 3,
250
+ rotate: 45, // 0-359 degrees
251
+ rounding: true, // Circular crop
252
+ transparency: 50, // 0-100
253
+ flipH: true, // Horizontal flip
254
+ flipV: false, // Vertical flip
255
+ altText: "Description", // Accessibility
256
+ hyperlink: { url: "https://example.com" }
257
+ });
258
+ ```
259
+
260
+ ### Image Sizing Modes
261
+
262
+ ```javascript
263
+ // Contain - fit inside, preserve ratio
264
+ { sizing: { type: 'contain', w: 4, h: 3 } }
265
+
266
+ // Cover - fill area, preserve ratio (may crop)
267
+ { sizing: { type: 'cover', w: 4, h: 3 } }
268
+
269
+ // Crop - cut specific portion
270
+ { sizing: { type: 'crop', x: 0.5, y: 0.5, w: 2, h: 2 } }
271
+ ```
272
+
273
+ ### Calculate Dimensions (preserve aspect ratio)
274
+
275
+ ```javascript
276
+ const origWidth = 1978, origHeight = 923, maxHeight = 3.0;
277
+ const calcWidth = maxHeight * (origWidth / origHeight);
278
+ const centerX = (10 - calcWidth) / 2;
279
+
280
+ slide.addImage({ path: "image.png", x: centerX, y: 1.2, w: calcWidth, h: maxHeight });
281
+ ```
282
+
283
+ ### Supported Formats
284
+
285
+ - **Standard**: PNG, JPG, GIF (animated GIFs work in Microsoft 365)
286
+ - **SVG**: Works in modern PowerPoint/Microsoft 365
287
+
288
+ ---
289
+
290
+ ## Icons
291
+
292
+ Use react-icons to generate SVG icons, then rasterize to PNG for universal compatibility.
293
+
294
+ ### Setup
295
+
296
+ ```javascript
297
+ const React = require("react");
298
+ const ReactDOMServer = require("react-dom/server");
299
+ const sharp = require("sharp");
300
+ const { FaCheckCircle, FaChartLine } = require("react-icons/fa");
301
+
302
+ function renderIconSvg(IconComponent, color = "#000000", size = 256) {
303
+ return ReactDOMServer.renderToStaticMarkup(
304
+ React.createElement(IconComponent, { color, size: String(size) })
305
+ );
306
+ }
307
+
308
+ async function iconToBase64Png(IconComponent, color, size = 256) {
309
+ const svg = renderIconSvg(IconComponent, color, size);
310
+ const pngBuffer = await sharp(Buffer.from(svg)).png().toBuffer();
311
+ return "image/png;base64," + pngBuffer.toString("base64");
312
+ }
313
+ ```
314
+
315
+ ### Add Icon to Slide
316
+
317
+ ```javascript
318
+ const iconData = await iconToBase64Png(FaCheckCircle, "#4472C4", 256);
319
+
320
+ slide.addImage({
321
+ data: iconData,
322
+ x: 1, y: 1, w: 0.5, h: 0.5 // Size in inches
323
+ });
324
+ ```
325
+
326
+ **Note**: Use size 256 or higher for crisp icons. The size parameter controls the rasterization resolution, not the display size on the slide (which is set by `w` and `h` in inches).
327
+
328
+ ### Icon Libraries
329
+
330
+ Install: `npm install -g react-icons react react-dom sharp`
331
+
332
+ Popular icon sets in react-icons:
333
+ - `react-icons/fa` - Font Awesome
334
+ - `react-icons/md` - Material Design
335
+ - `react-icons/hi` - Heroicons
336
+ - `react-icons/bi` - Bootstrap Icons
337
+
338
+ ---
339
+
340
+ ## Slide Backgrounds
341
+
342
+ ```javascript
343
+ // Solid color
344
+ slide.background = { color: "F1F1F1" };
345
+
346
+ // Color with transparency
347
+ slide.background = { color: "FF3399", transparency: 50 };
348
+
349
+ // Image from URL
350
+ slide.background = { path: "https://example.com/bg.jpg" };
351
+
352
+ // Image from base64
353
+ slide.background = { data: "image/png;base64,iVBORw0KGgo..." };
354
+ ```
355
+
356
+ ---
357
+
358
+ ## Tables
359
+
360
+ ```javascript
361
+ slide.addTable([
362
+ ["Header 1", "Header 2"],
363
+ ["Cell 1", "Cell 2"]
364
+ ], {
365
+ x: 1, y: 1, w: 8, h: 2,
366
+ border: { pt: 1, color: "999999" }, fill: { color: "F1F1F1" }
367
+ });
368
+
369
+ // Advanced with merged cells
370
+ let tableData = [
371
+ [{ text: "Header", options: { fill: { color: "6699CC" }, color: "FFFFFF", bold: true } }, "Cell"],
372
+ [{ text: "Merged", options: { colspan: 2 } }]
373
+ ];
374
+ slide.addTable(tableData, { x: 1, y: 3.5, w: 8, colW: [4, 4] });
375
+ ```
376
+
377
+ ---
378
+
379
+ ## Charts
380
+
381
+ ```javascript
382
+ // Bar chart
383
+ slide.addChart(pres.charts.BAR, [{
384
+ name: "Sales", labels: ["Q1", "Q2", "Q3", "Q4"], values: [4500, 5500, 6200, 7100]
385
+ }], {
386
+ x: 0.5, y: 0.6, w: 6, h: 3, barDir: 'col',
387
+ showTitle: true, title: 'Quarterly Sales'
388
+ });
389
+
390
+ // Line chart
391
+ slide.addChart(pres.charts.LINE, [{
392
+ name: "Temp", labels: ["Jan", "Feb", "Mar"], values: [32, 35, 42]
393
+ }], { x: 0.5, y: 4, w: 6, h: 3, lineSize: 3, lineSmooth: true });
394
+
395
+ // Pie chart
396
+ slide.addChart(pres.charts.PIE, [{
397
+ name: "Share", labels: ["A", "B", "Other"], values: [35, 45, 20]
398
+ }], { x: 7, y: 1, w: 5, h: 4, showPercent: true });
399
+ ```
400
+
401
+ ### Better-Looking Charts
402
+
403
+ Default charts look dated. Apply these options for a modern, clean appearance:
404
+
405
+ ```javascript
406
+ slide.addChart(pres.charts.BAR, chartData, {
407
+ x: 0.5, y: 1, w: 9, h: 4, barDir: "col",
408
+
409
+ // Custom colors (match your presentation palette)
410
+ chartColors: ["0D9488", "14B8A6", "5EEAD4"],
411
+
412
+ // Clean background
413
+ chartArea: { fill: { color: "FFFFFF" }, roundedCorners: true },
414
+
415
+ // Muted axis labels
416
+ catAxisLabelColor: "64748B",
417
+ valAxisLabelColor: "64748B",
418
+
419
+ // Subtle grid (value axis only)
420
+ valGridLine: { color: "E2E8F0", size: 0.5 },
421
+ catGridLine: { style: "none" },
422
+
423
+ // Data labels on bars
424
+ showValue: true,
425
+ dataLabelPosition: "outEnd",
426
+ dataLabelColor: "1E293B",
427
+
428
+ // Hide legend for single series
429
+ showLegend: false,
430
+ });
431
+ ```
432
+
433
+ **Key styling options:**
434
+ - `chartColors: [...]` - hex colors for series/segments
435
+ - `chartArea: { fill, border, roundedCorners }` - chart background
436
+ - `catGridLine/valGridLine: { color, style, size }` - grid lines (`style: "none"` to hide)
437
+ - `lineSmooth: true` - curved lines (line charts)
438
+ - `legendPos: "r"` - legend position: "b", "t", "l", "r", "tr"
439
+
440
+ ---
441
+
442
+ ## Slide Masters
443
+
444
+ ```javascript
445
+ pres.defineSlideMaster({
446
+ title: 'TITLE_SLIDE', background: { color: '283A5E' },
447
+ objects: [{
448
+ placeholder: { options: { name: 'title', type: 'title', x: 1, y: 2, w: 8, h: 2 } }
449
+ }]
450
+ });
451
+
452
+ let titleSlide = pres.addSlide({ masterName: "TITLE_SLIDE" });
453
+ titleSlide.addText("My Title", { placeholder: "title" });
454
+ ```
455
+
456
+ ---
457
+
458
+ ## Common Pitfalls
459
+
460
+ ⚠️ These issues cause file corruption, visual bugs, or broken output. Avoid them.
461
+
462
+ 1. **NEVER use "#" with hex colors** - causes file corruption
463
+ ```javascript
464
+ color: "FF0000" // ✅ CORRECT
465
+ color: "#FF0000" // ❌ WRONG
466
+ ```
467
+
468
+ 2. **NEVER encode opacity in hex color strings** - 8-char colors (e.g., `"00000020"`) corrupt the file. Use the `opacity` property instead.
469
+ ```javascript
470
+ shadow: { type: "outer", blur: 6, offset: 2, color: "00000020" } // ❌ CORRUPTS FILE
471
+ shadow: { type: "outer", blur: 6, offset: 2, color: "000000", opacity: 0.12 } // ✅ CORRECT
472
+ ```
473
+
474
+ 3. **Use `bullet: true`** - NEVER unicode symbols like "•" (creates double bullets)
475
+
476
+ 4. **Use `breakLine: true`** between array items or text runs together
477
+
478
+ 5. **Avoid `lineSpacing` with bullets** - causes excessive gaps; use `paraSpaceAfter` instead
479
+
480
+ 6. **Each presentation needs fresh instance** - don't reuse `pptxgen()` objects
481
+
482
+ 7. **NEVER reuse option objects across calls** - PptxGenJS mutates objects in-place (e.g. converting shadow values to EMU). Sharing one object between multiple calls corrupts the second shape.
483
+ ```javascript
484
+ const shadow = { type: "outer", blur: 6, offset: 2, color: "000000", opacity: 0.15 };
485
+ slide.addShape(pres.shapes.RECTANGLE, { shadow, ... }); // ❌ second call gets already-converted values
486
+ slide.addShape(pres.shapes.RECTANGLE, { shadow, ... });
487
+
488
+ const makeShadow = () => ({ type: "outer", blur: 6, offset: 2, color: "000000", opacity: 0.15 });
489
+ slide.addShape(pres.shapes.RECTANGLE, { shadow: makeShadow(), ... }); // ✅ fresh object each time
490
+ slide.addShape(pres.shapes.RECTANGLE, { shadow: makeShadow(), ... });
491
+ ```
492
+
493
+ 8. **Don't use `ROUNDED_RECTANGLE` with accent borders** - rectangular overlay bars won't cover rounded corners. Use `RECTANGLE` instead.
494
+ ```javascript
495
+ // ❌ WRONG: Accent bar doesn't cover rounded corners
496
+ slide.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 1, y: 1, w: 3, h: 1.5, fill: { color: "FFFFFF" } });
497
+ slide.addShape(pres.shapes.RECTANGLE, { x: 1, y: 1, w: 0.08, h: 1.5, fill: { color: "0891B2" } });
498
+
499
+ // ✅ CORRECT: Use RECTANGLE for clean alignment
500
+ slide.addShape(pres.shapes.RECTANGLE, { x: 1, y: 1, w: 3, h: 1.5, fill: { color: "FFFFFF" } });
501
+ slide.addShape(pres.shapes.RECTANGLE, { x: 1, y: 1, w: 0.08, h: 1.5, fill: { color: "0891B2" } });
502
+ ```
503
+
504
+ ---
505
+
506
+ ## Quick Reference
507
+
508
+ - **Shapes**: RECTANGLE, OVAL, LINE, ROUNDED_RECTANGLE
509
+ - **Charts**: BAR, LINE, PIE, DOUGHNUT, SCATTER, BUBBLE, RADAR
510
+ - **Layouts**: LAYOUT_16x9 (10"×5.625"), LAYOUT_16x10, LAYOUT_4x3, LAYOUT_WIDE
511
+ - **Alignment**: "left", "center", "right"
512
+ - **Chart data labels**: "outEnd", "inEnd", "center"
513
+
514
+ ---
515
+ <!-- module: 03-editing-templates.md -->
516
+
517
+ # Editing Presentations & Templates
518
+
519
+ Editing, modifying, or updating existing presentations, and building a deck from an existing presentation used as a template. Also read the design mini for layout/palette guidance and the qa-and-rendering mini for the required verification loop. Script paths (`scripts/...`) refer to the vendored source at `skills/sources/anthropic/pptx/scripts/`.
520
+
521
+ ## Template-Based Workflow
522
+
523
+ When using an existing presentation as a template:
524
+
525
+ 1. **Analyze existing slides**:
526
+ ```bash
527
+ python scripts/thumbnail.py template.pptx
528
+ python -m markitdown template.pptx
529
+ ```
530
+ Review `thumbnails.jpg` to see layouts, and markitdown output to see placeholder text.
531
+
532
+ 2. **Plan slide mapping**: For each content section, choose a template slide.
533
+
534
+ ⚠️ **USE VARIED LAYOUTS** — monotonous presentations are a common failure mode. Don't default to basic title + bullet slides. Actively seek out:
535
+ - Multi-column layouts (2-column, 3-column)
536
+ - Image + text combinations
537
+ - Full-bleed images with text overlay
538
+ - Quote or callout slides
539
+ - Section dividers
540
+ - Stat/number callouts
541
+ - Icon grids or icon + text rows
542
+
543
+ **Avoid:** Repeating the same text-heavy layout for every slide.
544
+
545
+ Match content type to layout style (e.g., key points → bullet slide, team info → multi-column, testimonials → quote slide).
546
+
547
+ 3. **Unpack**: `python scripts/office/unpack.py template.pptx unpacked/`
548
+
549
+ 4. **Build presentation** (do this yourself, not with subagents):
550
+ - Delete unwanted slides (remove from `<p:sldIdLst>`)
551
+ - Duplicate slides you want to reuse (`add_slide.py`)
552
+ - Reorder slides in `<p:sldIdLst>`
553
+ - **Complete all structural changes before step 5**
554
+
555
+ 5. **Edit content**: Update text in each `slide{N}.xml`.
556
+ **Use subagents here if available** — slides are separate XML files, so subagents can edit in parallel.
557
+
558
+ 6. **Clean**: `python scripts/clean.py unpacked/`
559
+
560
+ 7. **Pack**: `python scripts/office/pack.py unpacked/ output.pptx --original template.pptx`
561
+
562
+ ---
563
+
564
+ ## Scripts
565
+
566
+ | Script | Purpose |
567
+ |--------|---------|
568
+ | `unpack.py` | Extract and pretty-print PPTX |
569
+ | `add_slide.py` | Duplicate slide or create from layout |
570
+ | `clean.py` | Remove orphaned files |
571
+ | `pack.py` | Repack with validation |
572
+ | `thumbnail.py` | Create visual grid of slides |
573
+
574
+ ### unpack.py
575
+
576
+ ```bash
577
+ python scripts/office/unpack.py input.pptx unpacked/
578
+ ```
579
+
580
+ Extracts PPTX, pretty-prints XML, escapes smart quotes.
581
+
582
+ ### add_slide.py
583
+
584
+ ```bash
585
+ python scripts/add_slide.py unpacked/ slide2.xml # Duplicate slide
586
+ python scripts/add_slide.py unpacked/ slideLayout2.xml # From layout
587
+ ```
588
+
589
+ Prints `<p:sldId>` to add to `<p:sldIdLst>` at desired position.
590
+
591
+ ### clean.py
592
+
593
+ ```bash
594
+ python scripts/clean.py unpacked/
595
+ ```
596
+
597
+ Removes slides not in `<p:sldIdLst>`, unreferenced media, orphaned rels.
598
+
599
+ ### pack.py
600
+
601
+ ```bash
602
+ python scripts/office/pack.py unpacked/ output.pptx --original input.pptx
603
+ ```
604
+
605
+ Validates, repairs, condenses XML, re-encodes smart quotes.
606
+
607
+ ### thumbnail.py
608
+
609
+ ```bash
610
+ python scripts/thumbnail.py input.pptx [output_prefix] [--cols N]
611
+ ```
612
+
613
+ Creates `thumbnails.jpg` with slide filenames as labels. Default 3 columns, max 12 per grid.
614
+
615
+ **Use for template analysis only** (choosing layouts). For visual QA, use `soffice` + `pdftoppm` to create full-resolution individual slide images — see the qa-and-rendering mini.
616
+
617
+ ---
618
+
619
+ ## Slide Operations
620
+
621
+ Slide order is in `ppt/presentation.xml` → `<p:sldIdLst>`.
622
+
623
+ **Reorder**: Rearrange `<p:sldId>` elements.
624
+
625
+ **Delete**: Remove `<p:sldId>`, then run `clean.py`.
626
+
627
+ **Add**: Use `add_slide.py`. Never manually copy slide files—the script handles notes references, Content_Types.xml, and relationship IDs that manual copying misses.
628
+
629
+ ---
630
+
631
+ ## Editing Content
632
+
633
+ **Subagents:** If available, use them here (after completing step 4). Each slide is a separate XML file, so subagents can edit in parallel. In your prompt to subagents, include:
634
+ - The slide file path(s) to edit
635
+ - **"Use the Edit tool for all changes"**
636
+ - The formatting rules and common pitfalls below
637
+
638
+ For each slide:
639
+ 1. Read the slide's XML
640
+ 2. Identify ALL placeholder content—text, images, charts, icons, captions
641
+ 3. Replace each placeholder with final content
642
+
643
+ **Use the Edit tool, not sed or Python scripts.** The Edit tool forces specificity about what to replace and where, yielding better reliability.
644
+
645
+ ### Formatting Rules
646
+
647
+ - **Bold all headers, subheadings, and inline labels**: Use `b="1"` on `<a:rPr>`. This includes:
648
+ - Slide titles
649
+ - Section headers within a slide
650
+ - Inline labels like (e.g.: "Status:", "Description:") at the start of a line
651
+ - **Never use unicode bullets (•)**: Use proper list formatting with `<a:buChar>` or `<a:buAutoNum>`
652
+ - **Bullet consistency**: Let bullets inherit from the layout. Only specify `<a:buChar>` or `<a:buNone>`.
653
+
654
+ ---
655
+
656
+ ## Common Pitfalls
657
+
658
+ ### Template Adaptation
659
+
660
+ When source content has fewer items than the template:
661
+ - **Remove excess elements entirely** (images, shapes, text boxes), don't just clear text
662
+ - Check for orphaned visuals after clearing text content
663
+ - Run visual QA to catch mismatched counts
664
+
665
+ When replacing text with different length content:
666
+ - **Shorter replacements**: Usually safe
667
+ - **Longer replacements**: May overflow or wrap unexpectedly
668
+ - Test with visual QA after text changes
669
+ - Consider truncating or splitting content to fit the template's design constraints
670
+
671
+ **Template slots ≠ Source items**: If template has 4 team members but source has 3 users, delete the 4th member's entire group (image + text boxes), not just the text.
672
+
673
+ ### Multi-Item Content
674
+
675
+ If source has multiple items (numbered lists, multiple sections), create separate `<a:p>` elements for each — **never concatenate into one string**.
676
+
677
+ **❌ WRONG** — all items in one paragraph:
678
+ ```xml
679
+ <a:p>
680
+ <a:r><a:rPr .../><a:t>Step 1: Do the first thing. Step 2: Do the second thing.</a:t></a:r>
681
+ </a:p>
682
+ ```
683
+
684
+ **✅ CORRECT** — separate paragraphs with bold headers:
685
+ ```xml
686
+ <a:p>
687
+ <a:pPr algn="l"><a:lnSpc><a:spcPts val="3919"/></a:lnSpc></a:pPr>
688
+ <a:r><a:rPr lang="en-US" sz="2799" b="1" .../><a:t>Step 1</a:t></a:r>
689
+ </a:p>
690
+ <a:p>
691
+ <a:pPr algn="l"><a:lnSpc><a:spcPts val="3919"/></a:lnSpc></a:pPr>
692
+ <a:r><a:rPr lang="en-US" sz="2799" .../><a:t>Do the first thing.</a:t></a:r>
693
+ </a:p>
694
+ <a:p>
695
+ <a:pPr algn="l"><a:lnSpc><a:spcPts val="3919"/></a:lnSpc></a:pPr>
696
+ <a:r><a:rPr lang="en-US" sz="2799" b="1" .../><a:t>Step 2</a:t></a:r>
697
+ </a:p>
698
+ <!-- continue pattern -->
699
+ ```
700
+
701
+ Copy `<a:pPr>` from the original paragraph to preserve line spacing. Use `b="1"` on headers.
702
+
703
+ ### Smart Quotes
704
+
705
+ Handled automatically by unpack/pack. But the Edit tool converts smart quotes to ASCII.
706
+
707
+ **When adding new text with quotes, use XML entities:**
708
+
709
+ ```xml
710
+ <a:t>the &#x201C;Agreement&#x201D;</a:t>
711
+ ```
712
+
713
+ | Character | Name | Unicode | XML Entity |
714
+ |-----------|------|---------|------------|
715
+ | `“` | Left double quote | U+201C | `&#x201C;` |
716
+ | `”` | Right double quote | U+201D | `&#x201D;` |
717
+ | `‘` | Left single quote | U+2018 | `&#x2018;` |
718
+ | `’` | Right single quote | U+2019 | `&#x2019;` |
719
+
720
+ ### Other
721
+
722
+ - **Whitespace**: Use `xml:space="preserve"` on `<a:t>` with leading/trailing spaces
723
+ - **XML parsing**: Use `defusedxml.minidom`, not `xml.etree.ElementTree` (corrupts namespaces)
724
+
725
+ ---
726
+ <!-- module: 04-design.md -->
727
+
728
+ # Design Ideas
729
+
730
+ Design guidance for making slides that look good. Applies to both creating from scratch and editing/templating. Consult before building each slide.
731
+
732
+ **Don't create boring slides.** Plain bullets on a white background won't impress anyone. Consider ideas from this list for each slide.
733
+
734
+ ## Before Starting
735
+
736
+ - **Pick a bold, content-informed color palette**: The palette should feel designed for THIS topic. If swapping your colors into a completely different presentation would still "work," you haven't made specific enough choices.
737
+ - **Dominance over equality**: One color should dominate (60-70% visual weight), with 1-2 supporting tones and one sharp accent. Never give all colors equal weight.
738
+ - **Dark/light contrast**: Dark backgrounds for title + conclusion slides, light for content ("sandwich" structure). Or commit to dark throughout for a premium feel.
739
+ - **Commit to a visual motif**: Pick ONE distinctive element and repeat it — rounded image frames, icons in colored circles, thick single-side borders. Carry it across every slide.
740
+
741
+ ## Color Palettes
742
+
743
+ Choose colors that match your topic — don't default to generic blue. Use these palettes as inspiration:
744
+
745
+ | Theme | Primary | Secondary | Accent |
746
+ |-------|---------|-----------|--------|
747
+ | **Midnight Executive** | `1E2761` (navy) | `CADCFC` (ice blue) | `FFFFFF` (white) |
748
+ | **Forest & Moss** | `2C5F2D` (forest) | `97BC62` (moss) | `F5F5F5` (cream) |
749
+ | **Coral Energy** | `F96167` (coral) | `F9E795` (gold) | `2F3C7E` (navy) |
750
+ | **Warm Terracotta** | `B85042` (terracotta) | `E7E8D1` (sand) | `A7BEAE` (sage) |
751
+ | **Ocean Gradient** | `065A82` (deep blue) | `1C7293` (teal) | `21295C` (midnight) |
752
+ | **Charcoal Minimal** | `36454F` (charcoal) | `F2F2F2` (off-white) | `212121` (black) |
753
+ | **Teal Trust** | `028090` (teal) | `00A896` (seafoam) | `02C39A` (mint) |
754
+ | **Berry & Cream** | `6D2E46` (berry) | `A26769` (dusty rose) | `ECE2D0` (cream) |
755
+ | **Sage Calm** | `84B59F` (sage) | `69A297` (eucalyptus) | `50808E` (slate) |
756
+ | **Cherry Bold** | `990011` (cherry) | `FCF6F5` (off-white) | `2F3C7E` (navy) |
757
+
758
+ ## For Each Slide
759
+
760
+ **Every slide needs a visual element** — image, chart, icon, or shape. Text-only slides are forgettable.
761
+
762
+ **Layout options:**
763
+ - Two-column (text left, illustration on right)
764
+ - Icon + text rows (icon in colored circle, bold header, description below)
765
+ - 2x2 or 2x3 grid (image on one side, grid of content blocks on other)
766
+ - Half-bleed image (full left or right side) with content overlay
767
+
768
+ **Data display:**
769
+ - Large stat callouts (big numbers 60-72pt with small labels below)
770
+ - Comparison columns (before/after, pros/cons, side-by-side options)
771
+ - Timeline or process flow (numbered steps, arrows)
772
+
773
+ **Visual polish:**
774
+ - Icons in small colored circles next to section headers
775
+ - Italic accent text for key stats or taglines
776
+
777
+ ## Typography
778
+
779
+ **Choose an interesting font pairing** — don't default to Arial. Pick a header font with personality and pair it with a clean body font.
780
+
781
+ | Header Font | Body Font |
782
+ |-------------|-----------|
783
+ | Georgia | Calibri |
784
+ | Arial Black | Arial |
785
+ | Calibri | Calibri Light |
786
+ | Cambria | Calibri |
787
+ | Trebuchet MS | Calibri |
788
+ | Impact | Arial |
789
+ | Palatino | Garamond |
790
+ | Consolas | Calibri |
791
+
792
+ | Element | Size |
793
+ |---------|------|
794
+ | Slide title | 36-44pt bold |
795
+ | Section header | 20-24pt bold |
796
+ | Body text | 14-16pt |
797
+ | Captions | 10-12pt muted |
798
+
799
+ ## Spacing
800
+
801
+ - 0.5" minimum margins
802
+ - 0.3-0.5" between content blocks
803
+ - Leave breathing room—don't fill every inch
804
+
805
+ ## Avoid (Common Mistakes)
806
+
807
+ - **Don't repeat the same layout** — vary columns, cards, and callouts across slides
808
+ - **Don't center body text** — left-align paragraphs and lists; center only titles
809
+ - **Don't skimp on size contrast** — titles need 36pt+ to stand out from 14-16pt body
810
+ - **Don't default to blue** — pick colors that reflect the specific topic
811
+ - **Don't mix spacing randomly** — choose 0.3" or 0.5" gaps and use consistently
812
+ - **Don't style one slide and leave the rest plain** — commit fully or keep it simple throughout
813
+ - **Don't create text-only slides** — add images, icons, charts, or visual elements; avoid plain title + bullets
814
+ - **Don't forget text box padding** — when aligning lines or shapes with text edges, set `margin: 0` on the text box or offset the shape to account for padding
815
+ - **Don't use low-contrast elements** — icons AND text need strong contrast against the background; avoid light text on light backgrounds or dark text on dark backgrounds
816
+ - **NEVER use accent lines under titles** — these are a hallmark of AI-generated slides; use whitespace or background color instead
817
+
818
+ ---
819
+ <!-- module: 05-qa-and-rendering.md -->
820
+
821
+ # QA & Rendering
822
+
823
+ The required verification process for any deck you create or edit, plus how to render slides to images for inspection. Do this before declaring any presentation done. Script paths (`scripts/...`) refer to the vendored source at `skills/sources/anthropic/pptx/scripts/`.
824
+
825
+ ## QA (Required)
826
+
827
+ **Assume there are problems. Your job is to find them.**
828
+
829
+ Your first render is almost never correct. Approach QA as a bug hunt, not a confirmation step. If you found zero issues on first inspection, you weren't looking hard enough.
830
+
831
+ ### Content QA
832
+
833
+ ```bash
834
+ python -m markitdown output.pptx
835
+ ```
836
+
837
+ Check for missing content, typos, wrong order.
838
+
839
+ **When using templates, check for leftover placeholder text:**
840
+
841
+ ```bash
842
+ python -m markitdown output.pptx | grep -iE "xxxx|lorem|ipsum|this.*(page|slide).*layout"
843
+ ```
844
+
845
+ If grep returns results, fix them before declaring success.
846
+
847
+ ### Visual QA
848
+
849
+ **⚠️ USE SUBAGENTS** — even for 2-3 slides. You've been staring at the code and will see what you expect, not what's there. Subagents have fresh eyes.
850
+
851
+ Convert slides to images (see Converting to Images below), then use this prompt:
852
+
853
+ ```
854
+ Visually inspect these slides. Assume there are issues — find them.
855
+
856
+ Look for:
857
+ - Overlapping elements (text through shapes, lines through words, stacked elements)
858
+ - Text overflow or cut off at edges/box boundaries
859
+ - Decorative lines positioned for single-line text but title wrapped to two lines
860
+ - Source citations or footers colliding with content above
861
+ - Elements too close (< 0.3" gaps) or cards/sections nearly touching
862
+ - Uneven gaps (large empty area in one place, cramped in another)
863
+ - Insufficient margin from slide edges (< 0.5")
864
+ - Columns or similar elements not aligned consistently
865
+ - Low-contrast text (e.g., light gray text on cream-colored background)
866
+ - Low-contrast icons (e.g., dark icons on dark backgrounds without a contrasting circle)
867
+ - Text boxes too narrow causing excessive wrapping
868
+ - Leftover placeholder content
869
+
870
+ For each slide, list issues or areas of concern, even if minor.
871
+
872
+ Read and analyze these images:
873
+ 1. /path/to/slide-01.jpg (Expected: [brief description])
874
+ 2. /path/to/slide-02.jpg (Expected: [brief description])
875
+
876
+ Report ALL issues found, including minor ones.
877
+ ```
878
+
879
+ ### Verification Loop
880
+
881
+ 1. Generate slides → Convert to images → Inspect
882
+ 2. **List issues found** (if none found, look again more critically)
883
+ 3. Fix issues
884
+ 4. **Re-verify affected slides** — one fix often creates another problem
885
+ 5. Repeat until a full pass reveals no new issues
886
+
887
+ **Do not declare success until you've completed at least one fix-and-verify cycle.**
888
+
889
+ ---
890
+
891
+ ## Converting to Images
892
+
893
+ Convert presentations to individual slide images for visual inspection:
894
+
895
+ ```bash
896
+ python scripts/office/soffice.py --headless --convert-to pdf output.pptx
897
+ pdftoppm -jpeg -r 150 output.pdf slide
898
+ ```
899
+
900
+ This creates `slide-01.jpg`, `slide-02.jpg`, etc.
901
+
902
+ To re-render specific slides after fixes:
903
+
904
+ ```bash
905
+ pdftoppm -jpeg -r 150 -f N -l N output.pdf slide-fixed
906
+ ```
907
+
908
+ ## Dependencies
909
+
910
+ - LibreOffice (`soffice`) - PDF conversion (auto-configured for sandboxed environments via `scripts/office/soffice.py`)
911
+ - Poppler (`pdftoppm`) - PDF to images