shmakk 1.1.0 → 1.2.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 (450) hide show
  1. package/README.md +16 -1
  2. package/package.json +6 -3
  3. package/scripts/import-skills.js +536 -0
  4. package/scripts/install-skills.js +64 -0
  5. package/skills/ai-elements.md +482 -0
  6. package/skills/architecture.md +151 -0
  7. package/skills/backend-adapter-aws-lambda.md +204 -0
  8. package/skills/backend-adapter-express.md +177 -0
  9. package/skills/backend-adapter-fastify.md +222 -0
  10. package/skills/backend-adapter-fetch.md +200 -0
  11. package/skills/backend-api-docs.md +22 -0
  12. package/skills/backend-aspire.md +232 -0
  13. package/skills/backend-aspnet-core.md +62 -0
  14. package/skills/backend-build-chatgpt-app.md +321 -0
  15. package/skills/backend-build-mcp-app.md +393 -0
  16. package/skills/backend-build-mcp-server.md +222 -0
  17. package/skills/backend-build-mcpb.md +200 -0
  18. package/skills/backend-building-ai-agent-on-cloudflare.md +401 -0
  19. package/skills/backend-caching.md +206 -0
  20. package/skills/backend-chatgpt-app-submission.md +157 -0
  21. package/skills/backend-chatgpt-apps.md +321 -0
  22. package/skills/backend-client-setup.md +318 -0
  23. package/skills/backend-containerize-aspnet-framework.md +455 -0
  24. package/skills/backend-create-spring-boot-java-project.md +164 -0
  25. package/skills/backend-create-spring-boot-kotlin-project.md +148 -0
  26. package/skills/backend-csharp-async.md +50 -0
  27. package/skills/backend-csharp-docs.md +63 -0
  28. package/skills/backend-csharp-mcp-server-generator.md +60 -0
  29. package/skills/backend-dotenv.md +201 -0
  30. package/skills/backend-dotenvx.md +119 -0
  31. package/skills/backend-env-vars.md +259 -0
  32. package/skills/backend-error-handling.md +254 -0
  33. package/skills/backend-fastapi.md +437 -0
  34. package/skills/backend-go-mcp-server-generator.md +335 -0
  35. package/skills/backend-java-mcp-server-generator.md +757 -0
  36. package/skills/backend-kotlin-mcp-server-generator.md +450 -0
  37. package/skills/backend-middlewares.md +243 -0
  38. package/skills/backend-multi-stage-dockerfile.md +47 -0
  39. package/skills/backend-nestjs.md +192 -0
  40. package/skills/backend-next-forge.md +375 -0
  41. package/skills/backend-nextjs.md +746 -0
  42. package/skills/backend-openapi-to-application-code.md +113 -0
  43. package/skills/backend-php-mcp-server-generator.md +523 -0
  44. package/skills/backend-python-mcp-server-generator.md +106 -0
  45. package/skills/backend-routing-middleware.md +251 -0
  46. package/skills/backend-ruby-mcp-server-generator.md +661 -0
  47. package/skills/backend-rust-mcp-server-generator.md +578 -0
  48. package/skills/backend-semantic-kernel.md +57 -0
  49. package/skills/backend-server-setup.md +379 -0
  50. package/skills/backend-server-side-calls.md +250 -0
  51. package/skills/backend-subscriptions.md +407 -0
  52. package/skills/backend-swift-mcp-server-generator.md +670 -0
  53. package/skills/backend-trpc-router.md +152 -0
  54. package/skills/backend-typescript-mcp-server-generator.md +91 -0
  55. package/skills/backend-validators.md +229 -0
  56. package/skills/backend.md +76 -0
  57. package/skills/backup.md +165 -0
  58. package/skills/budget.md +140 -0
  59. package/skills/business-gtm-0-to-1-launch.md +322 -0
  60. package/skills/business-gtm-operating-cadence.md +421 -0
  61. package/skills/business-gtm-positioning-strategy.md +439 -0
  62. package/skills/business-gtm-product-led-growth.md +340 -0
  63. package/skills/calendar.md +95 -0
  64. package/skills/code-review.md +130 -0
  65. package/skills/compliance.md +168 -0
  66. package/skills/contracts.md +130 -0
  67. package/skills/daily-job-run.md +46 -0
  68. package/skills/daily-webdesign.md +187 -0
  69. package/skills/database-bigquery-pipeline-audit.md +130 -0
  70. package/skills/database-cosmosdb-datamodeling.md +1046 -0
  71. package/skills/database-durable-objects.md +187 -0
  72. package/skills/database-ef-core.md +76 -0
  73. package/skills/database-fabric-lakehouse.md +107 -0
  74. package/skills/database-neon-postgres-egress-optimizer.md +213 -0
  75. package/skills/database-neon-postgres.md +218 -0
  76. package/skills/database-postgresql-code-review.md +213 -0
  77. package/skills/database-postgresql-optimization.md +405 -0
  78. package/skills/database-sql-code-review.md +302 -0
  79. package/skills/database-sql-optimization.md +297 -0
  80. package/skills/dependency-audit.md +165 -0
  81. package/skills/design-kami-landing.md +234 -0
  82. package/skills/design.md +221 -0
  83. package/skills/dev-acquire-codebase-knowledge.md +175 -0
  84. package/skills/dev-add-educational-comments.md +129 -0
  85. package/skills/dev-add-model-descriptions.md +74 -0
  86. package/skills/dev-adr-review.md +56 -0
  87. package/skills/dev-boost-prompt.md +26 -0
  88. package/skills/dev-build-run-debug.md +130 -0
  89. package/skills/dev-chunk.md +49 -0
  90. package/skills/dev-claude-md-improver.md +180 -0
  91. package/skills/dev-code-exemplars-blueprint-generator.md +127 -0
  92. package/skills/dev-code-tour.md +434 -0
  93. package/skills/dev-comment-code-generate-a-tutorial.md +27 -0
  94. package/skills/dev-commit.md +81 -0
  95. package/skills/dev-context-map.md +53 -0
  96. package/skills/dev-conventional-commit.md +73 -0
  97. package/skills/dev-create-architectural-decision-record.md +98 -0
  98. package/skills/dev-create-draft-pr.md +17 -0
  99. package/skills/dev-create-pr.md +17 -0
  100. package/skills/dev-create-readme.md +22 -0
  101. package/skills/dev-csharp-mstest.md +479 -0
  102. package/skills/dev-csharp-nunit.md +72 -0
  103. package/skills/dev-csharp-tunit.md +101 -0
  104. package/skills/dev-csharp-xunit.md +69 -0
  105. package/skills/dev-debug-failing-test.md +90 -0
  106. package/skills/dev-diff-analyze.md +32 -0
  107. package/skills/dev-diffs.md +24 -0
  108. package/skills/dev-dotnet-best-practices.md +86 -0
  109. package/skills/dev-dotnet-design-pattern-review.md +43 -0
  110. package/skills/dev-dotnet-timezone.md +110 -0
  111. package/skills/dev-dotnet-upgrade.md +117 -0
  112. package/skills/dev-doublecheck.md +278 -0
  113. package/skills/dev-explain-error.md +15 -0
  114. package/skills/dev-finding-discovery.md +164 -0
  115. package/skills/dev-fix-finding.md +111 -0
  116. package/skills/dev-full-file-edit.md +25 -0
  117. package/skills/dev-git-commit.md +125 -0
  118. package/skills/dev-git-flow-branch-creator.md +293 -0
  119. package/skills/dev-git-workflow.md +46 -0
  120. package/skills/dev-github-automation.md +64 -0
  121. package/skills/dev-github-code-review.md +1140 -0
  122. package/skills/dev-github-issues.md +202 -0
  123. package/skills/dev-gpt-5-4-prompting.md +55 -0
  124. package/skills/dev-investigation-mode.md +277 -0
  125. package/skills/dev-java-add-graalvm-native-image-support.md +450 -0
  126. package/skills/dev-java-docs.md +24 -0
  127. package/skills/dev-java-refactoring-extract-method.md +105 -0
  128. package/skills/dev-java-refactoring-remove-parameter.md +85 -0
  129. package/skills/dev-merge.md +73 -0
  130. package/skills/dev-migrate-create.md +36 -0
  131. package/skills/dev-migrate-validate.md +36 -0
  132. package/skills/dev-my-issues.md +9 -0
  133. package/skills/dev-my-pull-requests.md +15 -0
  134. package/skills/dev-planning-oracle-to-postgres-migration-integration-testing.md +45 -0
  135. package/skills/dev-playwright-generate-test.md +18 -0
  136. package/skills/dev-playwright.md +148 -0
  137. package/skills/dev-prompt-builder.md +142 -0
  138. package/skills/dev-pytest-coverage.md +29 -0
  139. package/skills/dev-python-manager-discovery.md +330 -0
  140. package/skills/dev-python-pypi-package-builder.md +445 -0
  141. package/skills/dev-readme-blueprint-generator.md +79 -0
  142. package/skills/dev-refactor-method-complexity-reduce.md +99 -0
  143. package/skills/dev-refactor-plan.md +66 -0
  144. package/skills/dev-refactor.md +646 -0
  145. package/skills/dev-review-and-refactor.md +16 -0
  146. package/skills/dev-reviewing-oracle-to-postgres-migration.md +68 -0
  147. package/skills/dev-ruff-recursive-fix.md +201 -0
  148. package/skills/dev-run-e2e-tests.md +126 -0
  149. package/skills/dev-run-pre-commit-checks.md +133 -0
  150. package/skills/dev-run-smoke-tests.md +127 -0
  151. package/skills/dev-scaffolding-oracle-to-postgres-migration-test-project.md +55 -0
  152. package/skills/dev-spring-boot-testing.md +190 -0
  153. package/skills/dev-sync-upstream.md +32 -0
  154. package/skills/dev-sync.md +74 -0
  155. package/skills/dev-tdd-workflow.md +23 -0
  156. package/skills/dev-terraform-azurerm-set-diff-analyzer.md +49 -0
  157. package/skills/dev-test-driven-development.md +372 -0
  158. package/skills/dev-test-gaps.md +18 -0
  159. package/skills/dev-test-triage.md +55 -0
  160. package/skills/dev-typer.md +267 -0
  161. package/skills/dev-typescript-setup.md +25 -0
  162. package/skills/dev-unified-diff-edit.md +16 -0
  163. package/skills/dev-unit-test-vue-pinia.md +198 -0
  164. package/skills/dev-using-git-worktrees.md +216 -0
  165. package/skills/dev-validation.md +99 -0
  166. package/skills/dev-verification.md +168 -0
  167. package/skills/dev-webapp-testing.md +134 -0
  168. package/skills/dev-write-coding-standards-from-file.md +317 -0
  169. package/skills/dev-write-tests.md +16 -0
  170. package/skills/devops-appinsights-instrumentation.md +49 -0
  171. package/skills/devops-az-cost-optimize.md +306 -0
  172. package/skills/devops-chronicle.md +154 -0
  173. package/skills/devops-deployments-cicd.md +331 -0
  174. package/skills/devops-devops-rollout-plan.md +118 -0
  175. package/skills/devops-geistdocs.md +276 -0
  176. package/skills/devops-observability.md +774 -0
  177. package/skills/devops-observe-metrics.md +35 -0
  178. package/skills/devops-observe-trace.md +30 -0
  179. package/skills/devops-phoenix-cli.md +163 -0
  180. package/skills/devops-phoenix-tracing.md +140 -0
  181. package/skills/devops-publish-to-pages.md +108 -0
  182. package/skills/devops-telemetry.md +87 -0
  183. package/skills/devops-update-avm-modules-in-bicep.md +61 -0
  184. package/skills/devops.md +81 -0
  185. package/skills/diagrams-canvas.md +204 -0
  186. package/skills/diagrams-draw-io-diagram-generator.md +463 -0
  187. package/skills/diagrams-excalidraw-diagram-generator.md +614 -0
  188. package/skills/diagrams-graphify.md +1277 -0
  189. package/skills/docs-bear-notes.md +108 -0
  190. package/skills/docs-create-llms.md +211 -0
  191. package/skills/docs-doc-gen.md +20 -0
  192. package/skills/docs-documentation-writer.md +46 -0
  193. package/skills/docs-llm-config.md +33 -0
  194. package/skills/docs-mkdocs-translations.md +109 -0
  195. package/skills/docs-obsidian-vault-maintainer.md +14 -0
  196. package/skills/docs-obsidian.md +82 -0
  197. package/skills/docs-prose.md +324 -0
  198. package/skills/docs-update-llms.md +217 -0
  199. package/skills/docs-update-markdown-file-index.md +77 -0
  200. package/skills/docs-wiki-maintainer.md +20 -0
  201. package/skills/documents.md +120 -0
  202. package/skills/email.md +113 -0
  203. package/skills/expenses.md +140 -0
  204. package/skills/file-ops.md +149 -0
  205. package/skills/files-convert-plaintext-to-md.md +363 -0
  206. package/skills/files-doc.md +81 -0
  207. package/skills/files-docx.md +594 -0
  208. package/skills/files-markdown-to-html.md +917 -0
  209. package/skills/files-nano-pdf.md +39 -0
  210. package/skills/files-pdf.md +315 -0
  211. package/skills/files-pdftk-server.md +163 -0
  212. package/skills/files-pptx-html-fidelity-audit.md +255 -0
  213. package/skills/files-pptx.md +231 -0
  214. package/skills/files-xlsx.md +301 -0
  215. package/skills/find-jobs.md +78 -0
  216. package/skills/format-conversion.md +157 -0
  217. package/skills/frontend-ai-elements.md +483 -0
  218. package/skills/frontend-ai-gateway.md +563 -0
  219. package/skills/frontend-ai-generation-persistence.md +242 -0
  220. package/skills/frontend-ai-sdk.md +799 -0
  221. package/skills/frontend-ai-visibility.md +127 -0
  222. package/skills/frontend-angular-developer.md +130 -0
  223. package/skills/frontend-aspnet-minimal-api-openapi.md +42 -0
  224. package/skills/frontend-bencium-innovative-ux-designer.md +719 -0
  225. package/skills/frontend-chat-sdk.md +666 -0
  226. package/skills/frontend-chrome-devtools.md +98 -0
  227. package/skills/frontend-frontend-app-builder.md +186 -0
  228. package/skills/frontend-frontend-design.md +43 -0
  229. package/skills/frontend-frontend-testing-debugging.md +143 -0
  230. package/skills/frontend-gsap-framer-scroll-animation.md +152 -0
  231. package/skills/frontend-internal-linking.md +109 -0
  232. package/skills/frontend-json-render.md +335 -0
  233. package/skills/frontend-keyword-clustering.md +118 -0
  234. package/skills/frontend-next-intl-add-language.md +20 -0
  235. package/skills/frontend-on-page-seo.md +112 -0
  236. package/skills/frontend-premium-frontend-ui.md +114 -0
  237. package/skills/frontend-react-best-practices.md +143 -0
  238. package/skills/frontend-schema-markup.md +160 -0
  239. package/skills/frontend-seo-audit.md +110 -0
  240. package/skills/frontend-swr.md +215 -0
  241. package/skills/frontend-technical-seo.md +162 -0
  242. package/skills/frontend-use-dom.md +418 -0
  243. package/skills/frontend-web-coder.md +564 -0
  244. package/skills/frontend-web-design-reviewer.md +369 -0
  245. package/skills/frontend-web-perf.md +202 -0
  246. package/skills/frontend.md +125 -0
  247. package/skills/general-adapter-standalone.md +199 -0
  248. package/skills/general-auth.md +356 -0
  249. package/skills/general-containerize-aspnetcore.md +393 -0
  250. package/skills/general-create-technical-spike.md +231 -0
  251. package/skills/general-cron-jobs.md +72 -0
  252. package/skills/general-ddd-aggregate.md +52 -0
  253. package/skills/general-ddd-context.md +46 -0
  254. package/skills/general-ddd-validate.md +51 -0
  255. package/skills/general-dependency-check.md +26 -0
  256. package/skills/general-email-marketing.md +86 -0
  257. package/skills/general-healthcheck.md +246 -0
  258. package/skills/general-import-infrastructure-as-code.md +368 -0
  259. package/skills/general-init.md +49 -0
  260. package/skills/general-java-junit.md +64 -0
  261. package/skills/general-java-springboot.md +66 -0
  262. package/skills/general-javascript-typescript-jest.md +45 -0
  263. package/skills/general-kotlin-springboot.md +71 -0
  264. package/skills/general-make-repo-contribution.md +91 -0
  265. package/skills/general-market-research.md +78 -0
  266. package/skills/general-marketplace.md +468 -0
  267. package/skills/general-model-recommendation.md +673 -0
  268. package/skills/general-payments.md +352 -0
  269. package/skills/general-quality-playbook.md +480 -0
  270. package/skills/general-run-integration-tests.md +113 -0
  271. package/skills/general-superjson.md +274 -0
  272. package/skills/general-swiftpm-macos.md +51 -0
  273. package/skills/general-threat-model.md +61 -0
  274. package/skills/invoices.md +167 -0
  275. package/skills/licenses.md +159 -0
  276. package/skills/logs.md +156 -0
  277. package/skills/marketing.md +139 -0
  278. package/skills/media-image-manipulation-image-magick.md +253 -0
  279. package/skills/media-imagegen.md +357 -0
  280. package/skills/media-openai-whisper-api.md +63 -0
  281. package/skills/media-openai-whisper.md +39 -0
  282. package/skills/media-peekaboo.md +191 -0
  283. package/skills/media-screenshot.md +268 -0
  284. package/skills/media-speech.md +145 -0
  285. package/skills/media-transcribe.md +82 -0
  286. package/skills/media-video-frames.md +47 -0
  287. package/skills/mobile-android-emulator-qa.md +81 -0
  288. package/skills/mobile-android-performance.md +280 -0
  289. package/skills/mobile-building-mcp-server-on-cloudflare.md +267 -0
  290. package/skills/mobile-building-native-ui.md +322 -0
  291. package/skills/mobile-expo-api-routes.md +369 -0
  292. package/skills/mobile-expo-cicd-workflows.md +92 -0
  293. package/skills/mobile-expo-deployment.md +191 -0
  294. package/skills/mobile-expo-dev-client.md +165 -0
  295. package/skills/mobile-expo-module.md +177 -0
  296. package/skills/mobile-expo-tailwind-setup.md +481 -0
  297. package/skills/mobile-expo-ui-jetpack-compose.md +41 -0
  298. package/skills/mobile-expo-ui-swift-ui.md +40 -0
  299. package/skills/mobile-ios-app-intents.md +78 -0
  300. package/skills/mobile-ios-debugger-agent.md +52 -0
  301. package/skills/mobile-ios-ettrace-performance.md +198 -0
  302. package/skills/mobile-ios-memgraph-leaks.md +77 -0
  303. package/skills/mobile-native-data-fetching.md +508 -0
  304. package/skills/mobile-packaging-notarization.md +48 -0
  305. package/skills/mobile-react-native-architecture.md +672 -0
  306. package/skills/mobile-react-native-mobile-design.md +438 -0
  307. package/skills/mobile-signing-entitlements.md +59 -0
  308. package/skills/mobile-swiftui-liquid-glass.md +91 -0
  309. package/skills/mobile-swiftui-patterns.md +210 -0
  310. package/skills/mobile-swiftui-performance-audit.md +108 -0
  311. package/skills/mobile-swiftui-ui-patterns.md +97 -0
  312. package/skills/mobile-swiftui-view-refactor.md +204 -0
  313. package/skills/mobile-upgrading-expo.md +134 -0
  314. package/skills/mobile.md +183 -0
  315. package/skills/notes.md +106 -0
  316. package/skills/planning-adr-create.md +62 -0
  317. package/skills/planning-adr-index.md +67 -0
  318. package/skills/planning-architecture-blueprint-generator.md +323 -0
  319. package/skills/planning-brainstorming.md +165 -0
  320. package/skills/planning-breakdown-epic-arch.md +67 -0
  321. package/skills/planning-breakdown-epic-pm.md +59 -0
  322. package/skills/planning-breakdown-feature-implementation.md +129 -0
  323. package/skills/planning-breakdown-feature-prd.md +62 -0
  324. package/skills/planning-breakdown-plan.md +510 -0
  325. package/skills/planning-breakdown-test.md +366 -0
  326. package/skills/planning-cloud-design-patterns.md +63 -0
  327. package/skills/planning-content-brief.md +128 -0
  328. package/skills/planning-content-strategy.md +138 -0
  329. package/skills/planning-content-translation.md +143 -0
  330. package/skills/planning-create-github-action-workflow-specification.md +277 -0
  331. package/skills/planning-create-github-issues-feature-from-implementation-plan.md +29 -0
  332. package/skills/planning-create-github-issues-for-unmet-specification-requirements.md +36 -0
  333. package/skills/planning-create-github-pull-request-from-specification.md +25 -0
  334. package/skills/planning-create-implementation-plan.md +158 -0
  335. package/skills/planning-create-specification.md +128 -0
  336. package/skills/planning-first-ask.md +31 -0
  337. package/skills/planning-folder-structure-blueprint-generator.md +406 -0
  338. package/skills/planning-gen-specs-as-issues.md +166 -0
  339. package/skills/planning-generate-snapshot.md +144 -0
  340. package/skills/planning-generate-status-report.md +336 -0
  341. package/skills/planning-metric-pack-designer.md +27 -0
  342. package/skills/planning-pm-spec.md +53 -0
  343. package/skills/planning-prd.md +144 -0
  344. package/skills/planning-project-assessment.md +182 -0
  345. package/skills/planning-project-setup-info-local.md +128 -0
  346. package/skills/planning-project-workflow-analysis-blueprint-generator.md +294 -0
  347. package/skills/planning-service-oriented-architecture.md +248 -0
  348. package/skills/planning-spec-to-backlog.md +544 -0
  349. package/skills/planning-technology-stack-blueprint-generator.md +243 -0
  350. package/skills/planning-update-implementation-plan.md +158 -0
  351. package/skills/planning-update-specification.md +128 -0
  352. package/skills/planning-what-context-needed.md +40 -0
  353. package/skills/planning-writing-plans.md +153 -0
  354. package/skills/prepare-application.md +81 -0
  355. package/skills/productivity-apple-notes.md +78 -0
  356. package/skills/productivity-apple-reminders.md +119 -0
  357. package/skills/productivity-capture-tasks-from-meeting-notes.md +680 -0
  358. package/skills/productivity-daily-prep.md +156 -0
  359. package/skills/productivity-email-drafter.md +101 -0
  360. package/skills/productivity-hr-onboarding.md +53 -0
  361. package/skills/productivity-things-mac.md +87 -0
  362. package/skills/productivity-update.md +169 -0
  363. package/skills/reminders.md +109 -0
  364. package/skills/research-dossier-collect.md +71 -0
  365. package/skills/research-kg-extract.md +37 -0
  366. package/skills/research-openai-docs.md +89 -0
  367. package/skills/research-research-add-items.md +31 -0
  368. package/skills/research-research-report.md +94 -0
  369. package/skills/research-research-synthesize.md +63 -0
  370. package/skills/research-summarize.md +88 -0
  371. package/skills/research-transformers-js.md +635 -0
  372. package/skills/research.md +119 -0
  373. package/skills/security-ai-prompt-engineering-safety-review.md +231 -0
  374. package/skills/security-attack-path-analysis.md +182 -0
  375. package/skills/security-gdpr-compliant.md +284 -0
  376. package/skills/security-mcp-security-audit.md +279 -0
  377. package/skills/security-pii-detect.md +31 -0
  378. package/skills/security-secret-scanning.md +243 -0
  379. package/skills/security-security-best-practices.md +87 -0
  380. package/skills/security-security-ownership-map.md +207 -0
  381. package/skills/security-security-review.md +169 -0
  382. package/skills/security-security-scan.md +138 -0
  383. package/skills/security-security-threat-model.md +82 -0
  384. package/skills/security-threat-model-analyst.md +76 -0
  385. package/skills/sysmon.md +181 -0
  386. package/skills/system-arch-linux-triage.md +32 -0
  387. package/skills/system-centos-linux-triage.md +32 -0
  388. package/skills/system-debian-linux-triage.md +32 -0
  389. package/skills/system-fedora-linux-triage.md +32 -0
  390. package/skills/system-geofeed-tuner.md +865 -0
  391. package/skills/system-iot-anomalies.md +15 -0
  392. package/skills/system-iot-firmware.md +16 -0
  393. package/skills/system-iot-fleet.md +14 -0
  394. package/skills/system-iot-register.md +19 -0
  395. package/skills/system-iot-witness-verify.md +15 -0
  396. package/skills/system-tmux.md +171 -0
  397. package/skills/system-window-management.md +228 -0
  398. package/skills/task-management.md +90 -0
  399. package/skills/tasks.md +102 -0
  400. package/skills/test-coverage.md +188 -0
  401. package/skills/ux-ui.md +128 -0
  402. package/skills/web.md +186 -0
  403. package/skills/workflow-act-on-feedback.md +15 -0
  404. package/skills/workflow-automate-this.md +245 -0
  405. package/skills/workflow-autoresearch.md +276 -0
  406. package/skills/workflow-coding-agent.md +317 -0
  407. package/skills/workflow-deep-research.md +44 -0
  408. package/skills/workflow-dispatching-parallel-agents.md +183 -0
  409. package/skills/workflow-eval-driven-dev.md +148 -0
  410. package/skills/workflow-executing-plans.md +71 -0
  411. package/skills/workflow-mentoring-juniors.md +311 -0
  412. package/skills/workflow-receiving-code-review.md +214 -0
  413. package/skills/workflow-repo-story-time.md +155 -0
  414. package/skills/workflow-requesting-code-review.md +104 -0
  415. package/skills/workflow-session-report.md +43 -0
  416. package/skills/workflow-structured-autonomy-generate.md +126 -0
  417. package/skills/workflow-subagent-driven-development.md +280 -0
  418. package/skills/writing.md +106 -0
  419. package/src/agent.js +0 -0
  420. package/src/browser.js +297 -0
  421. package/src/cli.js +25 -4
  422. package/src/code-reviewer.js +119 -0
  423. package/src/completions.js +1 -1
  424. package/src/control.js +222 -30
  425. package/src/coordinator.js +303 -0
  426. package/src/correction.js +29 -8
  427. package/src/edit-tracker.js +21 -0
  428. package/src/edit-viewer.js +414 -0
  429. package/src/endpoints.js +64 -15
  430. package/src/index.js +45 -11
  431. package/src/llm.js +86 -2
  432. package/src/mcp-client.js +416 -0
  433. package/src/memory.js +182 -0
  434. package/src/planner.js +216 -0
  435. package/src/rules.js +90 -0
  436. package/src/self-commands.js +757 -0
  437. package/src/services/voice.js +10 -7
  438. package/src/session-search.js +427 -0
  439. package/src/session.js +487 -99
  440. package/src/shmakk-server.js +91 -0
  441. package/src/skills.js +410 -3
  442. package/src/subagent.js +4 -1
  443. package/src/system-prompt.js +13 -5
  444. package/src/task-file.js +114 -0
  445. package/src/taskClassifier.js +246 -0
  446. package/src/team.js +752 -0
  447. package/src/tools.js +142 -21
  448. package/src/web.js +35 -5
  449. package/src/workflows.js +261 -0
  450. package/src/workspace-index.js +25 -6
@@ -0,0 +1,594 @@
1
+ ---
2
+ name: docx
3
+ description: "Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation."
4
+ license: Proprietary. LICENSE.txt has complete terms
5
+ category: files
6
+ ---
7
+
8
+ # DOCX creation, editing, and analysis
9
+
10
+ ## Overview
11
+
12
+ A .docx file is a ZIP archive containing XML files.
13
+
14
+ ## Quick Reference
15
+
16
+ | Task | Approach |
17
+ |------|----------|
18
+ | Read/analyze content | `extract-text`, or unpack for raw XML |
19
+ | Create new document | Use `docx-js` - see Creating New Documents below |
20
+ | Edit existing document | Unpack → edit XML → repack - see Editing Existing Documents below |
21
+
22
+ ### Converting .doc to .docx
23
+
24
+ Legacy `.doc` files must be converted before editing:
25
+
26
+ ```bash
27
+ python scripts/office/soffice.py --headless --convert-to docx document.doc
28
+ ```
29
+
30
+ ### Reading Content
31
+
32
+ ```bash
33
+ # Text extraction as markdown
34
+ extract-text document.docx
35
+
36
+ # Show tracked changes instead of accepting them
37
+ pandoc --track-changes=all document.docx -o output.md
38
+
39
+ # Raw XML access
40
+ python scripts/office/unpack.py document.docx unpacked/
41
+ ```
42
+
43
+ ### Converting to Images
44
+
45
+ ```bash
46
+ python scripts/office/soffice.py --headless --convert-to pdf document.docx
47
+ pdftoppm -jpeg -r 150 document.pdf page
48
+ ```
49
+
50
+ ### Accepting Tracked Changes
51
+
52
+ To produce a clean document with all tracked changes accepted (requires LibreOffice):
53
+
54
+ ```bash
55
+ python scripts/accept_changes.py input.docx output.docx
56
+ ```
57
+
58
+ ---
59
+
60
+ ## Creating New Documents
61
+
62
+ Generate .docx files with JavaScript, then validate. Install: `npm install -g docx`
63
+
64
+ ### Setup
65
+ ```javascript
66
+ const { Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell, ImageRun,
67
+ Header, Footer, AlignmentType, PageOrientation, LevelFormat, ExternalHyperlink,
68
+ InternalHyperlink, Bookmark, FootnoteReferenceRun, PositionalTab,
69
+ PositionalTabAlignment, PositionalTabRelativeTo, PositionalTabLeader,
70
+ TabStopType, TabStopPosition, Column, SectionType,
71
+ TableOfContents, HeadingLevel, BorderStyle, WidthType, ShadingType,
72
+ VerticalAlign, PageNumber, PageBreak } = require('docx');
73
+
74
+ const doc = new Document({ sections: [{ children: [/* content */] }] });
75
+ Packer.toBuffer(doc).then(buffer => fs.writeFileSync("doc.docx", buffer));
76
+ ```
77
+
78
+ ### Validation
79
+ After creating the file, validate it. If validation fails, unpack, fix the XML, and repack.
80
+ ```bash
81
+ python scripts/office/validate.py doc.docx
82
+ ```
83
+
84
+ ### Page Size
85
+
86
+ ```javascript
87
+ // CRITICAL: docx-js defaults to A4, not US Letter
88
+ // Always set page size explicitly for consistent results
89
+ sections: [{
90
+ properties: {
91
+ page: {
92
+ size: {
93
+ width: 12240, // 8.5 inches in DXA
94
+ height: 15840 // 11 inches in DXA
95
+ },
96
+ margin: { top: 1440, right: 1440, bottom: 1440, left: 1440 } // 1 inch margins
97
+ }
98
+ },
99
+ children: [/* content */]
100
+ }]
101
+ ```
102
+
103
+ **Common page sizes (DXA units, 1440 DXA = 1 inch):**
104
+
105
+ | Paper | Width | Height | Content Width (1" margins) |
106
+ |-------|-------|--------|---------------------------|
107
+ | US Letter | 12,240 | 15,840 | 9,360 |
108
+ | A4 (default) | 11,906 | 16,838 | 9,026 |
109
+
110
+ **Landscape orientation:** docx-js swaps width/height internally, so pass portrait dimensions and let it handle the swap:
111
+ ```javascript
112
+ size: {
113
+ width: 12240, // Pass SHORT edge as width
114
+ height: 15840, // Pass LONG edge as height
115
+ orientation: PageOrientation.LANDSCAPE // docx-js swaps them in the XML
116
+ },
117
+ // Content width = 15840 - left margin - right margin (uses the long edge)
118
+ ```
119
+
120
+ ### Styles (Override Built-in Headings)
121
+
122
+ Use Arial as the default font (universally supported). Keep titles black for readability.
123
+
124
+ ```javascript
125
+ const doc = new Document({
126
+ styles: {
127
+ default: { document: { run: { font: "Arial", size: 24 } } }, // 12pt default
128
+ paragraphStyles: [
129
+ // IMPORTANT: Use exact IDs to override built-in styles
130
+ { id: "Heading1", name: "Heading 1", basedOn: "Normal", next: "Normal", quickFormat: true,
131
+ run: { size: 32, bold: true, font: "Arial" },
132
+ paragraph: { spacing: { before: 240, after: 240 }, outlineLevel: 0 } }, // outlineLevel required for TOC
133
+ { id: "Heading2", name: "Heading 2", basedOn: "Normal", next: "Normal", quickFormat: true,
134
+ run: { size: 28, bold: true, font: "Arial" },
135
+ paragraph: { spacing: { before: 180, after: 180 }, outlineLevel: 1 } },
136
+ ]
137
+ },
138
+ sections: [{
139
+ children: [
140
+ new Paragraph({ heading: HeadingLevel.HEADING_1, children: [new TextRun("Title")] }),
141
+ ]
142
+ }]
143
+ });
144
+ ```
145
+
146
+ ### Lists (NEVER use unicode bullets)
147
+
148
+ ```javascript
149
+ // ❌ WRONG - never manually insert bullet characters
150
+ new Paragraph({ children: [new TextRun("• Item")] }) // BAD
151
+ new Paragraph({ children: [new TextRun("\u2022 Item")] }) // BAD
152
+
153
+ // ✅ CORRECT - use numbering config with LevelFormat.BULLET
154
+ const doc = new Document({
155
+ numbering: {
156
+ config: [
157
+ { reference: "bullets",
158
+ levels: [{ level: 0, format: LevelFormat.BULLET, text: "•", alignment: AlignmentType.LEFT,
159
+ style: { paragraph: { indent: { left: 720, hanging: 360 } } } }] },
160
+ { reference: "numbers",
161
+ levels: [{ level: 0, format: LevelFormat.DECIMAL, text: "%1.", alignment: AlignmentType.LEFT,
162
+ style: { paragraph: { indent: { left: 720, hanging: 360 } } } }] },
163
+ ]
164
+ },
165
+ sections: [{
166
+ children: [
167
+ new Paragraph({ numbering: { reference: "bullets", level: 0 },
168
+ children: [new TextRun("Bullet item")] }),
169
+ new Paragraph({ numbering: { reference: "numbers", level: 0 },
170
+ children: [new TextRun("Numbered item")] }),
171
+ ]
172
+ }]
173
+ });
174
+
175
+ // ⚠️ Each reference creates INDEPENDENT numbering
176
+ // Same reference = continues (1,2,3 then 4,5,6)
177
+ // Different reference = restarts (1,2,3 then 1,2,3)
178
+ ```
179
+
180
+ ### Tables
181
+
182
+ **CRITICAL: Tables need dual widths** - set both `columnWidths` on the table AND `width` on each cell. Without both, tables render incorrectly on some platforms.
183
+
184
+ ```javascript
185
+ // CRITICAL: Always set table width for consistent rendering
186
+ // CRITICAL: Use ShadingType.CLEAR (not SOLID) to prevent black backgrounds
187
+ const border = { style: BorderStyle.SINGLE, size: 1, color: "CCCCCC" };
188
+ const borders = { top: border, bottom: border, left: border, right: border };
189
+
190
+ new Table({
191
+ width: { size: 9360, type: WidthType.DXA }, // Always use DXA (percentages break in Google Docs)
192
+ columnWidths: [4680, 4680], // Must sum to table width (DXA: 1440 = 1 inch)
193
+ rows: [
194
+ new TableRow({
195
+ children: [
196
+ new TableCell({
197
+ borders,
198
+ width: { size: 4680, type: WidthType.DXA }, // Also set on each cell
199
+ shading: { fill: "D5E8F0", type: ShadingType.CLEAR }, // CLEAR not SOLID
200
+ margins: { top: 80, bottom: 80, left: 120, right: 120 }, // Cell padding (internal, not added to width)
201
+ children: [new Paragraph({ children: [new TextRun("Cell")] })]
202
+ })
203
+ ]
204
+ })
205
+ ]
206
+ })
207
+ ```
208
+
209
+ **Table width calculation:**
210
+
211
+ Always use `WidthType.DXA` — `WidthType.PERCENTAGE` breaks in Google Docs.
212
+
213
+ ```javascript
214
+ // Table width = sum of columnWidths = content width
215
+ // US Letter with 1" margins: 12240 - 2880 = 9360 DXA
216
+ width: { size: 9360, type: WidthType.DXA },
217
+ columnWidths: [7000, 2360] // Must sum to table width
218
+ ```
219
+
220
+ **Width rules:**
221
+ - **Always use `WidthType.DXA`** — never `WidthType.PERCENTAGE` (incompatible with Google Docs)
222
+ - Table width must equal the sum of `columnWidths`
223
+ - Cell `width` must match corresponding `columnWidth`
224
+ - Cell `margins` are internal padding - they reduce content area, not add to cell width
225
+ - For full-width tables: use content width (page width minus left and right margins)
226
+
227
+ ### Images
228
+
229
+ ```javascript
230
+ // CRITICAL: type parameter is REQUIRED
231
+ new Paragraph({
232
+ children: [new ImageRun({
233
+ type: "png", // Required: png, jpg, jpeg, gif, bmp, svg
234
+ data: fs.readFileSync("image.png"),
235
+ transformation: { width: 200, height: 150 },
236
+ altText: { title: "Title", description: "Desc", name: "Name" } // All three required
237
+ })]
238
+ })
239
+ ```
240
+
241
+ ### Page Breaks
242
+
243
+ ```javascript
244
+ // CRITICAL: PageBreak must be inside a Paragraph
245
+ new Paragraph({ children: [new PageBreak()] })
246
+
247
+ // Or use pageBreakBefore
248
+ new Paragraph({ pageBreakBefore: true, children: [new TextRun("New page")] })
249
+ ```
250
+
251
+ ### Hyperlinks
252
+
253
+ ```javascript
254
+ // External link
255
+ new Paragraph({
256
+ children: [new ExternalHyperlink({
257
+ children: [new TextRun({ text: "Click here", style: "Hyperlink" })],
258
+ link: "https://example.com",
259
+ })]
260
+ })
261
+
262
+ // Internal link (bookmark + reference)
263
+ // 1. Create bookmark at destination
264
+ new Paragraph({ heading: HeadingLevel.HEADING_1, children: [
265
+ new Bookmark({ id: "chapter1", children: [new TextRun("Chapter 1")] }),
266
+ ]})
267
+ // 2. Link to it
268
+ new Paragraph({ children: [new InternalHyperlink({
269
+ children: [new TextRun({ text: "See Chapter 1", style: "Hyperlink" })],
270
+ anchor: "chapter1",
271
+ })]})
272
+ ```
273
+
274
+ ### Footnotes
275
+
276
+ ```javascript
277
+ const doc = new Document({
278
+ footnotes: {
279
+ 1: { children: [new Paragraph("Source: Annual Report 2024")] },
280
+ 2: { children: [new Paragraph("See appendix for methodology")] },
281
+ },
282
+ sections: [{
283
+ children: [new Paragraph({
284
+ children: [
285
+ new TextRun("Revenue grew 15%"),
286
+ new FootnoteReferenceRun(1),
287
+ new TextRun(" using adjusted metrics"),
288
+ new FootnoteReferenceRun(2),
289
+ ],
290
+ })]
291
+ }]
292
+ });
293
+ ```
294
+
295
+ ### Tab Stops
296
+
297
+ ```javascript
298
+ // Right-align text on same line (e.g., date opposite a title)
299
+ new Paragraph({
300
+ children: [
301
+ new TextRun("Company Name"),
302
+ new TextRun("\tJanuary 2025"),
303
+ ],
304
+ tabStops: [{ type: TabStopType.RIGHT, position: TabStopPosition.MAX }],
305
+ })
306
+
307
+ // Dot leader (e.g., TOC-style)
308
+ new Paragraph({
309
+ children: [
310
+ new TextRun("Introduction"),
311
+ new TextRun({ children: [
312
+ new PositionalTab({
313
+ alignment: PositionalTabAlignment.RIGHT,
314
+ relativeTo: PositionalTabRelativeTo.MARGIN,
315
+ leader: PositionalTabLeader.DOT,
316
+ }),
317
+ "3",
318
+ ]}),
319
+ ],
320
+ })
321
+ ```
322
+
323
+ ### Multi-Column Layouts
324
+
325
+ ```javascript
326
+ // Equal-width columns
327
+ sections: [{
328
+ properties: {
329
+ column: {
330
+ count: 2, // number of columns
331
+ space: 720, // gap between columns in DXA (720 = 0.5 inch)
332
+ equalWidth: true,
333
+ separate: true, // vertical line between columns
334
+ },
335
+ },
336
+ children: [/* content flows naturally across columns */]
337
+ }]
338
+
339
+ // Custom-width columns (equalWidth must be false)
340
+ sections: [{
341
+ properties: {
342
+ column: {
343
+ equalWidth: false,
344
+ children: [
345
+ new Column({ width: 5400, space: 720 }),
346
+ new Column({ width: 3240 }),
347
+ ],
348
+ },
349
+ },
350
+ children: [/* content */]
351
+ }]
352
+ ```
353
+
354
+ Force a column break with a new section using `type: SectionType.NEXT_COLUMN`.
355
+
356
+ ### Table of Contents
357
+
358
+ ```javascript
359
+ // CRITICAL: Headings must use HeadingLevel ONLY - no custom styles
360
+ new TableOfContents("Table of Contents", { hyperlink: true, headingStyleRange: "1-3" })
361
+ ```
362
+
363
+ ### Headers/Footers
364
+
365
+ ```javascript
366
+ sections: [{
367
+ properties: {
368
+ page: { margin: { top: 1440, right: 1440, bottom: 1440, left: 1440 } } // 1440 = 1 inch
369
+ },
370
+ headers: {
371
+ default: new Header({ children: [new Paragraph({ children: [new TextRun("Header")] })] })
372
+ },
373
+ footers: {
374
+ default: new Footer({ children: [new Paragraph({
375
+ children: [new TextRun("Page "), new TextRun({ children: [PageNumber.CURRENT] })]
376
+ })] })
377
+ },
378
+ children: [/* content */]
379
+ }]
380
+ ```
381
+
382
+ ### Critical Rules for docx-js
383
+
384
+ - **Set page size explicitly** - docx-js defaults to A4; use US Letter (12240 x 15840 DXA) for US documents
385
+ - **Landscape: pass portrait dimensions** - docx-js swaps width/height internally; pass short edge as `width`, long edge as `height`, and set `orientation: PageOrientation.LANDSCAPE`
386
+ - **Never use `\n`** - use separate Paragraph elements
387
+ - **Never use unicode bullets** - use `LevelFormat.BULLET` with numbering config
388
+ - **PageBreak must be in Paragraph** - standalone creates invalid XML
389
+ - **ImageRun requires `type`** - always specify png/jpg/etc
390
+ - **Always set table `width` with DXA** - never use `WidthType.PERCENTAGE` (breaks in Google Docs)
391
+ - **Tables need dual widths** - `columnWidths` array AND cell `width`, both must match
392
+ - **Table width = sum of columnWidths** - for DXA, ensure they add up exactly
393
+ - **Always add cell margins** - use `margins: { top: 80, bottom: 80, left: 120, right: 120 }` for readable padding
394
+ - **Use `ShadingType.CLEAR`** - never SOLID for table shading
395
+ - **Never use tables as dividers/rules** - cells have minimum height and render as empty boxes (including in headers/footers); use `border: { bottom: { style: BorderStyle.SINGLE, size: 6, color: "2E75B6", space: 1 } }` on a Paragraph instead. For two-column footers, use tab stops (see Tab Stops section), not tables
396
+ - **TOC requires HeadingLevel only** - no custom styles on heading paragraphs
397
+ - **Override built-in styles** - use exact IDs: "Heading1", "Heading2", etc.
398
+ - **Include `outlineLevel`** - required for TOC (0 for H1, 1 for H2, etc.)
399
+
400
+ ---
401
+
402
+ ## Editing Existing Documents
403
+
404
+ **Follow all 3 steps in order.**
405
+
406
+ ### Step 1: Unpack
407
+ ```bash
408
+ python scripts/office/unpack.py document.docx unpacked/
409
+ ```
410
+ Extracts XML, pretty-prints, merges adjacent runs, and converts smart quotes to XML entities (`“` etc.) so they survive editing. Use `--merge-runs false` to skip run merging.
411
+
412
+ ### Step 2: Edit XML
413
+
414
+ Edit files in `unpacked/word/`. See XML Reference below for patterns.
415
+
416
+ **Use "Claude" as the author** for tracked changes and comments, unless the user explicitly requests use of a different name.
417
+
418
+ **Use the Edit tool directly for string replacement. Do not write Python scripts.** Scripts introduce unnecessary complexity. The Edit tool shows exactly what is being replaced.
419
+
420
+ **CRITICAL: Use smart quotes for new content.** When adding text with apostrophes or quotes, use XML entities to produce smart quotes:
421
+ ```xml
422
+ <!-- Use these entities for professional typography -->
423
+ <w:t>Here&#x2019;s a quote: &#x201C;Hello&#x201D;</w:t>
424
+ ```
425
+ | Entity | Character |
426
+ |--------|-----------|
427
+ | `&#x2018;` | ‘ (left single) |
428
+ | `&#x2019;` | ’ (right single / apostrophe) |
429
+ | `&#x201C;` | “ (left double) |
430
+ | `&#x201D;` | ” (right double) |
431
+
432
+ **Adding comments:** Use `comment.py` to handle boilerplate across multiple XML files (text must be pre-escaped XML):
433
+ ```bash
434
+ python scripts/comment.py unpacked/ 0 "Comment text with &amp; and &#x2019;"
435
+ python scripts/comment.py unpacked/ 1 "Reply text" --parent 0 # reply to comment 0
436
+ python scripts/comment.py unpacked/ 0 "Text" --author "Custom Author" # custom author name
437
+ ```
438
+ Then add markers to document.xml (see Comments in XML Reference).
439
+
440
+ ### Step 3: Pack
441
+ ```bash
442
+ python scripts/office/pack.py unpacked/ output.docx --original document.docx
443
+ ```
444
+ Validates with auto-repair, condenses XML, and creates DOCX. Use `--validate false` to skip.
445
+
446
+ **Auto-repair will fix:**
447
+ - `durableId` >= 0x7FFFFFFF (regenerates valid ID)
448
+ - Missing `xml:space="preserve"` on `<w:t>` with whitespace
449
+
450
+ **Auto-repair won't fix:**
451
+ - Malformed XML, invalid element nesting, missing relationships, schema violations
452
+
453
+ ### Common Pitfalls
454
+
455
+ - **Replace entire `<w:r>` elements**: When adding tracked changes, replace the whole `<w:r>...</w:r>` block with `<w:del>...<w:ins>...` as siblings. Don't inject tracked change tags inside a run.
456
+ - **Preserve `<w:rPr>` formatting**: Copy the original run's `<w:rPr>` block into your tracked change runs to maintain bold, font size, etc.
457
+
458
+ ---
459
+
460
+ ## XML Reference
461
+
462
+ ### Schema Compliance
463
+
464
+ - **Element order in `<w:pPr>`**: `<w:pStyle>`, `<w:numPr>`, `<w:spacing>`, `<w:ind>`, `<w:jc>`, `<w:rPr>` last
465
+ - **Whitespace**: Add `xml:space="preserve"` to `<w:t>` with leading/trailing spaces
466
+ - **RSIDs**: Must be 8-digit hex (e.g., `00AB1234`)
467
+
468
+ ### Tracked Changes
469
+
470
+ **Insertion:**
471
+ ```xml
472
+ <w:ins w:id="1" w:author="Claude" w:date="2025-01-01T00:00:00Z">
473
+ <w:r><w:t>inserted text</w:t></w:r>
474
+ </w:ins>
475
+ ```
476
+
477
+ **Deletion:**
478
+ ```xml
479
+ <w:del w:id="2" w:author="Claude" w:date="2025-01-01T00:00:00Z">
480
+ <w:r><w:delText>deleted text</w:delText></w:r>
481
+ </w:del>
482
+ ```
483
+
484
+ **Inside `<w:del>`**: Use `<w:delText>` instead of `<w:t>`, and `<w:delInstrText>` instead of `<w:instrText>`.
485
+
486
+ **Minimal edits** - only mark what changes:
487
+ ```xml
488
+ <!-- Change "30 days" to "60 days" -->
489
+ <w:r><w:t>The term is </w:t></w:r>
490
+ <w:del w:id="1" w:author="Claude" w:date="...">
491
+ <w:r><w:delText>30</w:delText></w:r>
492
+ </w:del>
493
+ <w:ins w:id="2" w:author="Claude" w:date="...">
494
+ <w:r><w:t>60</w:t></w:r>
495
+ </w:ins>
496
+ <w:r><w:t> days.</w:t></w:r>
497
+ ```
498
+
499
+ **Deleting entire paragraphs/list items** - when removing ALL content from a paragraph, also mark the paragraph mark as deleted so it merges with the next paragraph. Add `<w:del/>` inside `<w:pPr><w:rPr>`:
500
+ ```xml
501
+ <w:p>
502
+ <w:pPr>
503
+ <w:numPr>...</w:numPr> <!-- list numbering if present -->
504
+ <w:rPr>
505
+ <w:del w:id="1" w:author="Claude" w:date="2025-01-01T00:00:00Z"/>
506
+ </w:rPr>
507
+ </w:pPr>
508
+ <w:del w:id="2" w:author="Claude" w:date="2025-01-01T00:00:00Z">
509
+ <w:r><w:delText>Entire paragraph content being deleted...</w:delText></w:r>
510
+ </w:del>
511
+ </w:p>
512
+ ```
513
+ Without the `<w:del/>` in `<w:pPr><w:rPr>`, accepting changes leaves an empty paragraph/list item.
514
+
515
+ **Rejecting another author's insertion** - nest deletion inside their insertion:
516
+ ```xml
517
+ <w:ins w:author="Jane" w:id="5">
518
+ <w:del w:author="Claude" w:id="10">
519
+ <w:r><w:delText>their inserted text</w:delText></w:r>
520
+ </w:del>
521
+ </w:ins>
522
+ ```
523
+
524
+ **Restoring another author's deletion** - add insertion after (don't modify their deletion):
525
+ ```xml
526
+ <w:del w:author="Jane" w:id="5">
527
+ <w:r><w:delText>deleted text</w:delText></w:r>
528
+ </w:del>
529
+ <w:ins w:author="Claude" w:id="10">
530
+ <w:r><w:t>deleted text</w:t></w:r>
531
+ </w:ins>
532
+ ```
533
+
534
+ ### Comments
535
+
536
+ After running `comment.py` (see Step 2), add markers to document.xml. For replies, use `--parent` flag and nest markers inside the parent's.
537
+
538
+ **CRITICAL: `<w:commentRangeStart>` and `<w:commentRangeEnd>` are siblings of `<w:r>`, never inside `<w:r>`.**
539
+
540
+ ```xml
541
+ <!-- Comment markers are direct children of w:p, never inside w:r -->
542
+ <w:commentRangeStart w:id="0"/>
543
+ <w:del w:id="1" w:author="Claude" w:date="2025-01-01T00:00:00Z">
544
+ <w:r><w:delText>deleted</w:delText></w:r>
545
+ </w:del>
546
+ <w:r><w:t> more text</w:t></w:r>
547
+ <w:commentRangeEnd w:id="0"/>
548
+ <w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:commentReference w:id="0"/></w:r>
549
+
550
+ <!-- Comment 0 with reply 1 nested inside -->
551
+ <w:commentRangeStart w:id="0"/>
552
+ <w:commentRangeStart w:id="1"/>
553
+ <w:r><w:t>text</w:t></w:r>
554
+ <w:commentRangeEnd w:id="1"/>
555
+ <w:commentRangeEnd w:id="0"/>
556
+ <w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:commentReference w:id="0"/></w:r>
557
+ <w:r><w:rPr><w:rStyle w:val="CommentReference"/></w:rPr><w:commentReference w:id="1"/></w:r>
558
+ ```
559
+
560
+ ### Images
561
+
562
+ 1. Add image file to `word/media/`
563
+ 2. Add relationship to `word/_rels/document.xml.rels`:
564
+ ```xml
565
+ <Relationship Id="rId5" Type=".../image" Target="media/image1.png"/>
566
+ ```
567
+ 3. Add content type to `[Content_Types].xml`:
568
+ ```xml
569
+ <Default Extension="png" ContentType="image/png"/>
570
+ ```
571
+ 4. Reference in document.xml:
572
+ ```xml
573
+ <w:drawing>
574
+ <wp:inline>
575
+ <wp:extent cx="914400" cy="914400"/> <!-- EMUs: 914400 = 1 inch -->
576
+ <a:graphic>
577
+ <a:graphicData uri=".../picture">
578
+ <pic:pic>
579
+ <pic:blipFill><a:blip r:embed="rId5"/></pic:blipFill>
580
+ </pic:pic>
581
+ </a:graphicData>
582
+ </a:graphic>
583
+ </wp:inline>
584
+ </w:drawing>
585
+ ```
586
+
587
+ ---
588
+
589
+ ## Dependencies
590
+
591
+ - **pandoc**: Text extraction
592
+ - **docx**: `npm install -g docx` (new documents)
593
+ - **LibreOffice**: PDF conversion (auto-configured for sandboxed environments via `scripts/office/soffice.py`)
594
+ - **Poppler**: `pdftoppm` for images