@litfamily/litclaude 1.0.49 → 1.0.51

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 (1025) hide show
  1. package/CHANGELOG.md +132 -0
  2. package/README.md +8 -8
  3. package/README_ko-KR.md +8 -8
  4. package/bin/extensions.mjs +602 -0
  5. package/bin/install-ownership.mjs +38 -2
  6. package/bin/litclaude-ai.js +43 -78
  7. package/docs/assets/readme/badge-version.svg +1 -1
  8. package/docs/hooks.md +46 -49
  9. package/docs/migration.md +7 -0
  10. package/docs/workflow-compatibility-audit.md +8 -10
  11. package/package.json +4 -3
  12. package/plugins/litclaude/.claude-plugin/plugin.json +1 -1
  13. package/plugins/litclaude/agents/lit-verifier.md +1 -0
  14. package/plugins/litclaude/agents/quality-reviewer.md +1 -0
  15. package/plugins/litclaude/bin/litclaude-ai +0 -1
  16. package/plugins/litclaude/bin/litclaude-hook.js +58 -137
  17. package/plugins/litclaude/bin/litclaude-mcp.js +1 -1
  18. package/plugins/litclaude/commands/lit-scientific-visualization.md +23 -26
  19. package/plugins/litclaude/hooks/lit-mod.mjs +1 -1
  20. package/plugins/litclaude/lib/bundled-skills-integrity.mjs +2 -32
  21. package/plugins/litclaude/lib/canonical-skill-resources.mjs +8 -800
  22. package/plugins/litclaude/lib/extensions-notice.mjs +210 -0
  23. package/plugins/litclaude/lib/mod/state.mjs +2 -9
  24. package/plugins/litclaude/lib/mod/view.mjs +0 -5
  25. package/plugins/litclaude/skills/frontend-ui-ux/SKILL.md +106 -112
  26. package/plugins/litclaude/skills/lit-diagram-drawer/SKILL.md +83 -88
  27. package/plugins/litclaude/skills/lit-docx/SKILL.md +84 -156
  28. package/plugins/litclaude/skills/lit-pptx/SKILL.md +82 -234
  29. package/plugins/litclaude/skills/lit-schematic/SKILL.md +84 -75
  30. package/plugins/litclaude/skills/lit-scientific-visualization/SKILL.md +92 -62
  31. package/plugins/litclaude/skills/lit-typographic-motion/SKILL.md +99 -102
  32. package/plugins/litclaude/skills/readme-studio/SKILL.md +93 -49
  33. package/plugins/litclaude/skills/visual-qa/SKILL.md +94 -29
  34. package/plugins/litclaude/vendor/NOTICE.md +6 -4
  35. package/scripts/doctor.mjs +7 -19
  36. package/scripts/postinstall.mjs +0 -1
  37. package/scripts/qa-installed-tamper-repair.mjs +1 -2
  38. package/scripts/qa-negative-gate-matrix.mjs +9 -310
  39. package/scripts/qa-real-surface-behaviors.mjs +3 -3
  40. package/scripts/qa-real-surface-lib.mjs +3 -399
  41. package/scripts/validate-plugin.mjs +0 -33
  42. package/plugins/litclaude/bin/litclaude-scientific-visualization-doctor.js +0 -135
  43. package/plugins/litclaude/lib/canonical-frontend-commitments.mjs +0 -37
  44. package/plugins/litclaude/lib/canonical-frontend-corpus.mjs +0 -377
  45. package/plugins/litclaude/lib/motion-render-gate.mjs +0 -187
  46. package/plugins/litclaude/lib/office-runtime-lock/package-lock.json +0 -793
  47. package/plugins/litclaude/lib/office-runtime-lock/package.json +0 -12
  48. package/plugins/litclaude/lib/office-runtime-lock/requirements.lock +0 -15
  49. package/plugins/litclaude/lib/office-runtime.mjs +0 -301
  50. package/plugins/litclaude/lib/office_data.py +0 -493
  51. package/plugins/litclaude/lib/office_runtime_bootstrap.py +0 -73
  52. package/plugins/litclaude/lib/ooxml_integrity.py +0 -199
  53. package/plugins/litclaude/lib/render_pages.py +0 -149
  54. package/plugins/litclaude/skills/frontend-ui-ux/LICENSE +0 -21
  55. package/plugins/litclaude/skills/frontend-ui-ux/PROVENANCE.json +0 -38
  56. package/plugins/litclaude/skills/frontend-ui-ux/SOURCE-MANIFEST.json +0 -1060
  57. package/plugins/litclaude/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +0 -14
  58. package/plugins/litclaude/skills/frontend-ui-ux/data/design-intelligence.json +0 -1
  59. package/plugins/litclaude/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +0 -9
  60. package/plugins/litclaude/skills/frontend-ui-ux/kit/components.css +0 -414
  61. package/plugins/litclaude/skills/frontend-ui-ux/kit/fonts.json +0 -22
  62. package/plugins/litclaude/skills/frontend-ui-ux/kit/layouts/landing.html +0 -164
  63. package/plugins/litclaude/skills/frontend-ui-ux/kit/layouts/settings.html +0 -114
  64. package/plugins/litclaude/skills/frontend-ui-ux/kit/layouts/workspace.html +0 -115
  65. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/computational-brutalism.json +0 -227
  66. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/field-notes.json +0 -205
  67. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/graphite.json +0 -200
  68. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/meadow.json +0 -199
  69. package/plugins/litclaude/skills/frontend-ui-ux/kit/styles/neo-brutalism.json +0 -222
  70. package/plugins/litclaude/skills/frontend-ui-ux/kit/ui.js +0 -226
  71. package/plugins/litclaude/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-ATTRIBUTION.md +0 -217
  72. package/plugins/litclaude/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-LICENSE-Apache-2.0.txt +0 -201
  73. package/plugins/litclaude/skills/frontend-ui-ux/references/_canonical-corpus/legal/root-LICENSE +0 -21
  74. package/plugins/litclaude/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +0 -873
  75. package/plugins/litclaude/skills/frontend-ui-ux/references/adaptive-layout.md +0 -92
  76. package/plugins/litclaude/skills/frontend-ui-ux/references/brand-and-imagery.md +0 -93
  77. package/plugins/litclaude/skills/frontend-ui-ux/references/complete-contract.md +0 -609
  78. package/plugins/litclaude/skills/frontend-ui-ux/references/composition.md +0 -85
  79. package/plugins/litclaude/skills/frontend-ui-ux/references/craft-floor.md +0 -262
  80. package/plugins/litclaude/skills/frontend-ui-ux/references/creative-directions.md +0 -80
  81. package/plugins/litclaude/skills/frontend-ui-ux/references/default-editorial-pixel.json +0 -28
  82. package/plugins/litclaude/skills/frontend-ui-ux/references/design/README.md +0 -248
  83. package/plugins/litclaude/skills/frontend-ui-ux/references/design/_INDEX.md +0 -191
  84. package/plugins/litclaude/skills/frontend-ui-ux/references/design/airbnb.md +0 -393
  85. package/plugins/litclaude/skills/frontend-ui-ux/references/design/airtable.md +0 -92
  86. package/plugins/litclaude/skills/frontend-ui-ux/references/design/apple.md +0 -250
  87. package/plugins/litclaude/skills/frontend-ui-ux/references/design/aside.md +0 -209
  88. package/plugins/litclaude/skills/frontend-ui-ux/references/design/binance.md +0 -348
  89. package/plugins/litclaude/skills/frontend-ui-ux/references/design/bmw.md +0 -183
  90. package/plugins/litclaude/skills/frontend-ui-ux/references/design/brutalist-skill.md +0 -92
  91. package/plugins/litclaude/skills/frontend-ui-ux/references/design/bugatti.md +0 -271
  92. package/plugins/litclaude/skills/frontend-ui-ux/references/design/cal.md +0 -262
  93. package/plugins/litclaude/skills/frontend-ui-ux/references/design/claude.md +0 -315
  94. package/plugins/litclaude/skills/frontend-ui-ux/references/design/clay.md +0 -307
  95. package/plugins/litclaude/skills/frontend-ui-ux/references/design/clickhouse.md +0 -284
  96. package/plugins/litclaude/skills/frontend-ui-ux/references/design/clone-from-url.md +0 -65
  97. package/plugins/litclaude/skills/frontend-ui-ux/references/design/cohere.md +0 -269
  98. package/plugins/litclaude/skills/frontend-ui-ux/references/design/coinbase.md +0 -132
  99. package/plugins/litclaude/skills/frontend-ui-ux/references/design/composio.md +0 -310
  100. package/plugins/litclaude/skills/frontend-ui-ux/references/design/cursor.md +0 -312
  101. package/plugins/litclaude/skills/frontend-ui-ux/references/design/design-system-architecture.md +0 -244
  102. package/plugins/litclaude/skills/frontend-ui-ux/references/design/elevenlabs.md +0 -268
  103. package/plugins/litclaude/skills/frontend-ui-ux/references/design/expo.md +0 -284
  104. package/plugins/litclaude/skills/frontend-ui-ux/references/design/ferrari.md +0 -317
  105. package/plugins/litclaude/skills/frontend-ui-ux/references/design/figma.md +0 -223
  106. package/plugins/litclaude/skills/frontend-ui-ux/references/design/framer.md +0 -249
  107. package/plugins/litclaude/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +0 -74
  108. package/plugins/litclaude/skills/frontend-ui-ux/references/design/hashicorp.md +0 -281
  109. package/plugins/litclaude/skills/frontend-ui-ux/references/design/ibm.md +0 -335
  110. package/plugins/litclaude/skills/frontend-ui-ux/references/design/image-to-code-skill.md +0 -1228
  111. package/plugins/litclaude/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +0 -798
  112. package/plugins/litclaude/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +0 -1465
  113. package/plugins/litclaude/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +0 -987
  114. package/plugins/litclaude/skills/frontend-ui-ux/references/design/intercom.md +0 -149
  115. package/plugins/litclaude/skills/frontend-ui-ux/references/design/kraken.md +0 -128
  116. package/plugins/litclaude/skills/frontend-ui-ux/references/design/lamborghini.md +0 -291
  117. package/plugins/litclaude/skills/frontend-ui-ux/references/design/layout-skill.md +0 -107
  118. package/plugins/litclaude/skills/frontend-ui-ux/references/design/lazyweb.md +0 -77
  119. package/plugins/litclaude/skills/frontend-ui-ux/references/design/linear.app.md +0 -370
  120. package/plugins/litclaude/skills/frontend-ui-ux/references/design/lovable.md +0 -301
  121. package/plugins/litclaude/skills/frontend-ui-ux/references/design/mastercard.md +0 -368
  122. package/plugins/litclaude/skills/frontend-ui-ux/references/design/meta.md +0 -369
  123. package/plugins/litclaude/skills/frontend-ui-ux/references/design/minimalist-skill.md +0 -85
  124. package/plugins/litclaude/skills/frontend-ui-ux/references/design/minimax.md +0 -260
  125. package/plugins/litclaude/skills/frontend-ui-ux/references/design/mintlify.md +0 -329
  126. package/plugins/litclaude/skills/frontend-ui-ux/references/design/miro.md +0 -111
  127. package/plugins/litclaude/skills/frontend-ui-ux/references/design/mistral.ai.md +0 -264
  128. package/plugins/litclaude/skills/frontend-ui-ux/references/design/mongodb.md +0 -269
  129. package/plugins/litclaude/skills/frontend-ui-ux/references/design/nike.md +0 -366
  130. package/plugins/litclaude/skills/frontend-ui-ux/references/design/notion.md +0 -312
  131. package/plugins/litclaude/skills/frontend-ui-ux/references/design/nvidia.md +0 -296
  132. package/plugins/litclaude/skills/frontend-ui-ux/references/design/ollama.md +0 -270
  133. package/plugins/litclaude/skills/frontend-ui-ux/references/design/opencode.ai.md +0 -284
  134. package/plugins/litclaude/skills/frontend-ui-ux/references/design/output-skill.md +0 -49
  135. package/plugins/litclaude/skills/frontend-ui-ux/references/design/pinterest.md +0 -233
  136. package/plugins/litclaude/skills/frontend-ui-ux/references/design/playstation.md +0 -367
  137. package/plugins/litclaude/skills/frontend-ui-ux/references/design/posthog.md +0 -259
  138. package/plugins/litclaude/skills/frontend-ui-ux/references/design/raycast.md +0 -271
  139. package/plugins/litclaude/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +0 -230
  140. package/plugins/litclaude/skills/frontend-ui-ux/references/design/redesign-skill.md +0 -178
  141. package/plugins/litclaude/skills/frontend-ui-ux/references/design/renault.md +0 -314
  142. package/plugins/litclaude/skills/frontend-ui-ux/references/design/replicate.md +0 -264
  143. package/plugins/litclaude/skills/frontend-ui-ux/references/design/resend.md +0 -306
  144. package/plugins/litclaude/skills/frontend-ui-ux/references/design/revolut.md +0 -188
  145. package/plugins/litclaude/skills/frontend-ui-ux/references/design/runwayml.md +0 -247
  146. package/plugins/litclaude/skills/frontend-ui-ux/references/design/sanity.md +0 -360
  147. package/plugins/litclaude/skills/frontend-ui-ux/references/design/sentry.md +0 -265
  148. package/plugins/litclaude/skills/frontend-ui-ux/references/design/shopify.md +0 -353
  149. package/plugins/litclaude/skills/frontend-ui-ux/references/design/soft-skill.md +0 -98
  150. package/plugins/litclaude/skills/frontend-ui-ux/references/design/spacex.md +0 -197
  151. package/plugins/litclaude/skills/frontend-ui-ux/references/design/spotify.md +0 -249
  152. package/plugins/litclaude/skills/frontend-ui-ux/references/design/starbucks.md +0 -583
  153. package/plugins/litclaude/skills/frontend-ui-ux/references/design/stitch-design-example.md +0 -121
  154. package/plugins/litclaude/skills/frontend-ui-ux/references/design/stitch-skill.md +0 -184
  155. package/plugins/litclaude/skills/frontend-ui-ux/references/design/stripe.md +0 -325
  156. package/plugins/litclaude/skills/frontend-ui-ux/references/design/supabase.md +0 -258
  157. package/plugins/litclaude/skills/frontend-ui-ux/references/design/superhuman.md +0 -255
  158. package/plugins/litclaude/skills/frontend-ui-ux/references/design/taste-skill.md +0 -1206
  159. package/plugins/litclaude/skills/frontend-ui-ux/references/design/tesla.md +0 -289
  160. package/plugins/litclaude/skills/frontend-ui-ux/references/design/theverge.md +0 -342
  161. package/plugins/litclaude/skills/frontend-ui-ux/references/design/together.ai.md +0 -266
  162. package/plugins/litclaude/skills/frontend-ui-ux/references/design/uber.md +0 -298
  163. package/plugins/litclaude/skills/frontend-ui-ux/references/design/vercel.md +0 -313
  164. package/plugins/litclaude/skills/frontend-ui-ux/references/design/vodafone.md +0 -426
  165. package/plugins/litclaude/skills/frontend-ui-ux/references/design/voltagent.md +0 -326
  166. package/plugins/litclaude/skills/frontend-ui-ux/references/design/warp.md +0 -256
  167. package/plugins/litclaude/skills/frontend-ui-ux/references/design/webflow.md +0 -95
  168. package/plugins/litclaude/skills/frontend-ui-ux/references/design/wired.md +0 -281
  169. package/plugins/litclaude/skills/frontend-ui-ux/references/design/wise.md +0 -176
  170. package/plugins/litclaude/skills/frontend-ui-ux/references/design/x.ai.md +0 -260
  171. package/plugins/litclaude/skills/frontend-ui-ux/references/design/zapier.md +0 -331
  172. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +0 -97
  173. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/README.md +0 -48
  174. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +0 -80
  175. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +0 -64
  176. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +0 -65
  177. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +0 -65
  178. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +0 -83
  179. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/orchestration.md +0 -80
  180. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/routing.md +0 -79
  181. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +0 -21
  182. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +0 -83
  183. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +0 -132
  184. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +0 -109
  185. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +0 -89
  186. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +0 -113
  187. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +0 -78
  188. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +0 -121
  189. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +0 -268
  190. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +0 -107
  191. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +0 -120
  192. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +0 -101
  193. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +0 -109
  194. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +0 -107
  195. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +0 -199
  196. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +0 -174
  197. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +0 -125
  198. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +0 -106
  199. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +0 -266
  200. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +0 -123
  201. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +0 -120
  202. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +0 -164
  203. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +0 -85
  204. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +0 -98
  205. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +0 -165
  206. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +0 -122
  207. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +0 -81
  208. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +0 -96
  209. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +0 -77
  210. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +0 -192
  211. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +0 -165
  212. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +0 -78
  213. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +0 -75
  214. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +0 -117
  215. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +0 -78
  216. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +0 -125
  217. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +0 -79
  218. package/plugins/litclaude/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +0 -119
  219. package/plugins/litclaude/skills/frontend-ui-ux/references/evidence-review.md +0 -126
  220. package/plugins/litclaude/skills/frontend-ui-ux/references/house-styles.md +0 -234
  221. package/plugins/litclaude/skills/frontend-ui-ux/references/implementation-platforms.md +0 -109
  222. package/plugins/litclaude/skills/frontend-ui-ux/references/inclusive-interface.md +0 -92
  223. package/plugins/litclaude/skills/frontend-ui-ux/references/interaction-motion.md +0 -47
  224. package/plugins/litclaude/skills/frontend-ui-ux/references/motion-guide.md +0 -130
  225. package/plugins/litclaude/skills/frontend-ui-ux/references/operating-lanes.md +0 -92
  226. package/plugins/litclaude/skills/frontend-ui-ux/references/perfection/README.md +0 -160
  227. package/plugins/litclaude/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +0 -127
  228. package/plugins/litclaude/skills/frontend-ui-ux/references/performance-delivery.md +0 -93
  229. package/plugins/litclaude/skills/frontend-ui-ux/references/product-direction.md +0 -84
  230. package/plugins/litclaude/skills/frontend-ui-ux/references/production-interview.md +0 -17
  231. package/plugins/litclaude/skills/frontend-ui-ux/references/redesign-playbook.md +0 -97
  232. package/plugins/litclaude/skills/frontend-ui-ux/references/slop-register.md +0 -150
  233. package/plugins/litclaude/skills/frontend-ui-ux/references/system-foundations.md +0 -84
  234. package/plugins/litclaude/skills/frontend-ui-ux/references/taste-direction.md +0 -86
  235. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/README.md +0 -659
  236. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +0 -26
  237. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +0 -162
  238. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +0 -106
  239. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +0 -35
  240. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +0 -162
  241. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +0 -45
  242. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +0 -54
  243. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +0 -53
  244. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +0 -56
  245. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +0 -53
  246. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +0 -53
  247. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +0 -51
  248. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +0 -59
  249. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +0 -52
  250. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +0 -54
  251. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +0 -61
  252. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +0 -54
  253. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +0 -51
  254. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +0 -50
  255. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +0 -85
  256. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +0 -74
  257. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +0 -162
  258. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +0 -100
  259. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +0 -31
  260. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +0 -262
  261. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +0 -1148
  262. package/plugins/litclaude/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +0 -114
  263. package/plugins/litclaude/skills/frontend-ui-ux/references/visual-language.md +0 -84
  264. package/plugins/litclaude/skills/frontend-ui-ux/references/visual-reconstruction.md +0 -51
  265. package/plugins/litclaude/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.schema.json +0 -306
  266. package/plugins/litclaude/skills/frontend-ui-ux/schemas/design-contract-v1beta1.schema.json +0 -291
  267. package/plugins/litclaude/skills/frontend-ui-ux/schemas/design-contract-v1beta2.schema.json +0 -311
  268. package/plugins/litclaude/skills/frontend-ui-ux/scripts/design-contract-format.mjs +0 -286
  269. package/plugins/litclaude/skills/frontend-ui-ux/scripts/design-contract-inventory-rules.mjs +0 -354
  270. package/plugins/litclaude/skills/frontend-ui-ux/scripts/design-contract-rules.mjs +0 -361
  271. package/plugins/litclaude/skills/frontend-ui-ux/scripts/design-contract-surface-rules.mjs +0 -313
  272. package/plugins/litclaude/skills/frontend-ui-ux/scripts/design-data.mjs +0 -68
  273. package/plugins/litclaude/skills/frontend-ui-ux/scripts/design-lock.mjs +0 -400
  274. package/plugins/litclaude/skills/frontend-ui-ux/scripts/errors.mjs +0 -12
  275. package/plugins/litclaude/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +0 -124
  276. package/plugins/litclaude/skills/frontend-ui-ux/scripts/json-boundary.mjs +0 -63
  277. package/plugins/litclaude/skills/frontend-ui-ux/scripts/pixel-art.mjs +0 -60
  278. package/plugins/litclaude/skills/frontend-ui-ux/scripts/query-design-intelligence.mjs +0 -106
  279. package/plugins/litclaude/skills/frontend-ui-ux/scripts/search.mjs +0 -43
  280. package/plugins/litclaude/skills/frontend-ui-ux/scripts/source-replay.mjs +0 -153
  281. package/plugins/litclaude/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +0 -52
  282. package/plugins/litclaude/skills/lit-diagram-drawer/NOTICE +0 -33
  283. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +0 -1
  284. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +0 -1
  285. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +0 -1
  286. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +0 -1
  287. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +0 -1
  288. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +0 -1
  289. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +0 -1
  290. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +0 -1
  291. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +0 -1
  292. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +0 -1
  293. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +0 -1
  294. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +0 -1
  295. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +0 -1
  296. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +0 -1
  297. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +0 -1
  298. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +0 -1
  299. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +0 -1
  300. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +0 -1
  301. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +0 -1
  302. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +0 -1
  303. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +0 -1
  304. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +0 -1
  305. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +0 -1
  306. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +0 -1
  307. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +0 -1
  308. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +0 -1
  309. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +0 -1
  310. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +0 -1
  311. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +0 -1
  312. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +0 -1
  313. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +0 -1
  314. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +0 -1
  315. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +0 -1
  316. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +0 -1
  317. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +0 -1
  318. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +0 -1
  319. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +0 -1
  320. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-er-full.html +0 -1
  321. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-er-light.html +0 -1
  322. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +0 -1
  323. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +0 -1
  324. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +0 -1
  325. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +0 -1
  326. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +0 -1
  327. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +0 -1
  328. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +0 -1
  329. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +0 -1
  330. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +0 -1
  331. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +0 -1
  332. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +0 -1
  333. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +0 -1
  334. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +0 -1
  335. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +0 -1
  336. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +0 -1
  337. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +0 -1
  338. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +0 -1
  339. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +0 -1
  340. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +0 -1
  341. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +0 -1
  342. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +0 -1
  343. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +0 -1
  344. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +0 -1
  345. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +0 -1
  346. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +0 -1
  347. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +0 -1
  348. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +0 -1
  349. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +0 -1
  350. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +0 -1
  351. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +0 -1
  352. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +0 -1
  353. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +0 -1
  354. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +0 -1
  355. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +0 -1
  356. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +0 -1
  357. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +0 -1
  358. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +0 -1
  359. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +0 -1
  360. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +0 -1
  361. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +0 -1
  362. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-line-full.html +0 -1
  363. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-line-light.html +0 -1
  364. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +0 -1
  365. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +0 -1
  366. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +0 -1
  367. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +0 -1
  368. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +0 -1
  369. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +0 -1
  370. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +0 -1
  371. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +0 -1
  372. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +0 -1
  373. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +0 -1
  374. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +0 -1
  375. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +0 -1
  376. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +0 -1
  377. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +0 -1
  378. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +0 -1
  379. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +0 -1
  380. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +0 -1
  381. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +0 -1
  382. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +0 -1
  383. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +0 -1
  384. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +0 -1
  385. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +0 -1
  386. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +0 -1
  387. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +0 -1
  388. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +0 -1
  389. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +0 -1
  390. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +0 -1
  391. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +0 -1
  392. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-process-full.html +0 -1
  393. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-process-light.html +0 -1
  394. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +0 -1
  395. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +0 -1
  396. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +0 -1
  397. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +0 -1
  398. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +0 -1
  399. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +0 -1
  400. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +0 -1
  401. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +0 -1
  402. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +0 -1
  403. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +0 -1
  404. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +0 -1
  405. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +0 -1
  406. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +0 -1
  407. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +0 -1
  408. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +0 -1
  409. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +0 -1
  410. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +0 -1
  411. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +0 -1
  412. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +0 -1
  413. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +0 -1
  414. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +0 -1
  415. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +0 -1
  416. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +0 -1
  417. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +0 -1
  418. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +0 -1
  419. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +0 -1
  420. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +0 -1
  421. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +0 -1
  422. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +0 -1
  423. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +0 -1
  424. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +0 -1
  425. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +0 -1
  426. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +0 -1
  427. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +0 -1
  428. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-full.html +0 -1
  429. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +0 -1
  430. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +0 -1
  431. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +0 -1
  432. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-state-light.html +0 -1
  433. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +0 -1
  434. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +0 -1
  435. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +0 -1
  436. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +0 -1
  437. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +0 -1
  438. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +0 -1
  439. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +0 -1
  440. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +0 -1
  441. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +0 -1
  442. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +0 -1
  443. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +0 -1
  444. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +0 -1
  445. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +0 -1
  446. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +0 -1
  447. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +0 -1
  448. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +0 -1
  449. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +0 -1
  450. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +0 -1
  451. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +0 -1
  452. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +0 -1
  453. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +0 -1
  454. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +0 -1
  455. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +0 -1
  456. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +0 -1
  457. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +0 -1
  458. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +0 -1
  459. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +0 -1
  460. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +0 -1
  461. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +0 -1
  462. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +0 -1
  463. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +0 -1
  464. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +0 -1
  465. package/plugins/litclaude/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +0 -1
  466. package/plugins/litclaude/skills/lit-diagram-drawer/assets/fonts/OFL.txt +0 -94
  467. package/plugins/litclaude/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
  468. package/plugins/litclaude/skills/lit-diagram-drawer/assets/fonts/provenance.json +0 -22
  469. package/plugins/litclaude/skills/lit-diagram-drawer/assets/icons.html +0 -231
  470. package/plugins/litclaude/skills/lit-diagram-drawer/assets/index.html +0 -1
  471. package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +0 -20
  472. package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +0 -21
  473. package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +0 -21
  474. package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +0 -30
  475. package/plugins/litclaude/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +0 -21
  476. package/plugins/litclaude/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +0 -1
  477. package/plugins/litclaude/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +0 -33
  478. package/plugins/litclaude/skills/lit-diagram-drawer/examples/02-release-decision/after.html +0 -1
  479. package/plugins/litclaude/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +0 -18
  480. package/plugins/litclaude/skills/lit-diagram-drawer/examples/03-data-retention/after.html +0 -1
  481. package/plugins/litclaude/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +0 -19
  482. package/plugins/litclaude/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +0 -1
  483. package/plugins/litclaude/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +0 -17
  484. package/plugins/litclaude/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +0 -1
  485. package/plugins/litclaude/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +0 -17
  486. package/plugins/litclaude/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +0 -1
  487. package/plugins/litclaude/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +0 -17
  488. package/plugins/litclaude/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +0 -1
  489. package/plugins/litclaude/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +0 -19
  490. package/plugins/litclaude/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +0 -1
  491. package/plugins/litclaude/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +0 -20
  492. package/plugins/litclaude/skills/lit-diagram-drawer/references/accessibility.md +0 -37
  493. package/plugins/litclaude/skills/lit-diagram-drawer/references/export.md +0 -29
  494. package/plugins/litclaude/skills/lit-diagram-drawer/references/import-drawio.md +0 -21
  495. package/plugins/litclaude/skills/lit-diagram-drawer/references/import-excalidraw.md +0 -14
  496. package/plugins/litclaude/skills/lit-diagram-drawer/references/import-mermaid.md +0 -18
  497. package/plugins/litclaude/skills/lit-diagram-drawer/references/import-schema.md +0 -28
  498. package/plugins/litclaude/skills/lit-diagram-drawer/references/korean-typography.md +0 -34
  499. package/plugins/litclaude/skills/lit-diagram-drawer/references/motion.md +0 -29
  500. package/plugins/litclaude/skills/lit-diagram-drawer/references/office-pptx-docx.md +0 -42
  501. package/plugins/litclaude/skills/lit-diagram-drawer/references/output-spec.md +0 -48
  502. package/plugins/litclaude/skills/lit-diagram-drawer/references/primitive-annotation.md +0 -12
  503. package/plugins/litclaude/skills/lit-diagram-drawer/references/primitive-icons.md +0 -21
  504. package/plugins/litclaude/skills/lit-diagram-drawer/references/primitive-sketchy.md +0 -11
  505. package/plugins/litclaude/skills/lit-diagram-drawer/references/primitive-terminal.md +0 -11
  506. package/plugins/litclaude/skills/lit-diagram-drawer/references/profiles.md +0 -24
  507. package/plugins/litclaude/skills/lit-diagram-drawer/references/semantic-patterns.md +0 -27
  508. package/plugins/litclaude/skills/lit-diagram-drawer/references/style-guide.md +0 -76
  509. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-architecture.md +0 -51
  510. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-bar.md +0 -51
  511. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-beeswarm.md +0 -49
  512. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-bubble.md +0 -49
  513. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-bump.md +0 -49
  514. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-catalog.json +0 -1433
  515. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-data-flow.md +0 -51
  516. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-datalake.md +0 -49
  517. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-db-schema.md +0 -49
  518. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-dependency.md +0 -49
  519. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-deployment.md +0 -49
  520. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-dp-integration.md +0 -49
  521. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +0 -49
  522. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-er.md +0 -49
  523. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-fishbone.md +0 -49
  524. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-flowchart.md +0 -49
  525. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-gantt.md +0 -49
  526. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-heatmap.md +0 -53
  527. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-high-level-vertical.md +0 -53
  528. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-high-level.md +0 -53
  529. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-import-drawio.md +0 -53
  530. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-import-excalidraw.md +0 -53
  531. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-import-mermaid.md +0 -53
  532. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-it-state.md +0 -54
  533. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-journey.md +0 -54
  534. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-kanban.md +0 -54
  535. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-layers.md +0 -54
  536. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-line.md +0 -54
  537. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-loop-terminal.md +0 -53
  538. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-loop.md +0 -54
  539. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-marimekko.md +0 -54
  540. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-medallion.md +0 -54
  541. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-nested.md +0 -59
  542. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-org-chart.md +0 -58
  543. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-paved-road-animated.md +0 -72
  544. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-polar.md +0 -67
  545. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +0 -69
  546. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-process.md +0 -58
  547. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-pyramid.md +0 -59
  548. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +0 -60
  549. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-quadrant.md +0 -57
  550. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-queue-animated.md +0 -63
  551. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-radar.md +0 -57
  552. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-ridgeline.md +0 -63
  553. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-sankey.md +0 -68
  554. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-scatter.md +0 -60
  555. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-sequence-oauth.md +0 -66
  556. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-sequence.md +0 -63
  557. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-slopegraph.md +0 -65
  558. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-state-lifecycle.md +0 -53
  559. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-state.md +0 -59
  560. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-story-map.md +0 -52
  561. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-streamgraph.md +0 -53
  562. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-swimlane.md +0 -52
  563. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-timeline.md +0 -52
  564. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +0 -57
  565. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-tree.md +0 -54
  566. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-treemap.md +0 -54
  567. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-uml-class.md +0 -52
  568. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-venn.md +0 -51
  569. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-wardley.md +0 -52
  570. package/plugins/litclaude/skills/lit-diagram-drawer/references/type-waterfall.md +0 -54
  571. package/plugins/litclaude/skills/lit-diagram-drawer/references/verifier-guide.md +0 -66
  572. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/block-registry.mjs +0 -43
  573. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/brief-contract.mjs +0 -94
  574. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +0 -15
  575. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +0 -223
  576. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/doctor.mjs +0 -35
  577. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/drawio-extract.mjs +0 -635
  578. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/excalidraw-extract.mjs +0 -319
  579. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/export.mjs +0 -149
  580. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/mermaid-extract.mjs +0 -438
  581. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/office-safety.mjs +0 -54
  582. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/renderer.mjs +0 -41
  583. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-all.mjs +0 -58
  584. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-brief.mjs +0 -22
  585. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-coverage.mjs +0 -56
  586. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +0 -27
  587. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-motion.mjs +0 -12
  588. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/verify-type.mjs +0 -48
  589. package/plugins/litclaude/skills/lit-diagram-drawer/scripts/visual-quality.mjs +0 -376
  590. package/plugins/litclaude/skills/lit-docx/NOTICE +0 -33
  591. package/plugins/litclaude/skills/lit-docx/references/components.md +0 -207
  592. package/plugins/litclaude/skills/lit-docx/references/direction-step.md +0 -281
  593. package/plugins/litclaude/skills/lit-docx/references/examples/01-report-ko.md +0 -166
  594. package/plugins/litclaude/skills/lit-docx/references/examples/02-brief-ko.md +0 -105
  595. package/plugins/litclaude/skills/lit-docx/references/examples/03-manual-ko.md +0 -164
  596. package/plugins/litclaude/skills/lit-docx/references/examples/04-proposal-ko.md +0 -138
  597. package/plugins/litclaude/skills/lit-docx/references/examples/05-memo-en.md +0 -55
  598. package/plugins/litclaude/skills/lit-docx/references/examples/06-journal-en.md +0 -130
  599. package/plugins/litclaude/skills/lit-docx/references/examples/07-report-en.md +0 -123
  600. package/plugins/litclaude/skills/lit-docx/references/examples/08-proposal-en.md +0 -123
  601. package/plugins/litclaude/skills/lit-docx/references/examples/09-memo-ko.md +0 -45
  602. package/plugins/litclaude/skills/lit-docx/references/frontmatter_schema.md +0 -42
  603. package/plugins/litclaude/skills/lit-docx/references/journal_style_spec.md +0 -17
  604. package/plugins/litclaude/skills/lit-docx/references/markdown_quality_checklist.md +0 -37
  605. package/plugins/litclaude/skills/lit-docx/references/page-composition.md +0 -221
  606. package/plugins/litclaude/skills/lit-docx/references/slop_phrase_list.yaml +0 -58
  607. package/plugins/litclaude/skills/lit-docx/references/slop_rules.md +0 -35
  608. package/plugins/litclaude/skills/lit-docx/references/tonalities/brief.md +0 -143
  609. package/plugins/litclaude/skills/lit-docx/references/tonalities/journal.md +0 -142
  610. package/plugins/litclaude/skills/lit-docx/references/tonalities/manual.md +0 -148
  611. package/plugins/litclaude/skills/lit-docx/references/tonalities/memo.md +0 -137
  612. package/plugins/litclaude/skills/lit-docx/references/tonalities/proposal.md +0 -140
  613. package/plugins/litclaude/skills/lit-docx/references/tonalities/report.md +0 -156
  614. package/plugins/litclaude/skills/lit-docx/scripts/clean_markdown.py +0 -95
  615. package/plugins/litclaude/skills/lit-docx/scripts/convert_md_to_docx.py +0 -1398
  616. package/plugins/litclaude/skills/lit-docx/scripts/convert_md_to_pdf.py +0 -315
  617. package/plugins/litclaude/skills/lit-docx/scripts/convert_pdf.py +0 -139
  618. package/plugins/litclaude/skills/lit-docx/scripts/docx_design.py +0 -2449
  619. package/plugins/litclaude/skills/lit-docx/scripts/docx_layout.py +0 -959
  620. package/plugins/litclaude/skills/lit-docx/scripts/edit_docx.py +0 -306
  621. package/plugins/litclaude/skills/lit-docx/scripts/embed_images.py +0 -78
  622. package/plugins/litclaude/skills/lit-docx/scripts/generate_docx_templates.py +0 -500
  623. package/plugins/litclaude/skills/lit-docx/scripts/qa_docx.py +0 -234
  624. package/plugins/litclaude/skills/lit-docx/scripts/slop_lint.py +0 -573
  625. package/plugins/litclaude/skills/lit-docx/scripts/visual_audit.py +0 -48
  626. package/plugins/litclaude/skills/lit-docx/templates/docx/acs.docx +0 -0
  627. package/plugins/litclaude/skills/lit-docx/templates/docx/elsevier.docx +0 -0
  628. package/plugins/litclaude/skills/lit-docx/templates/docx/ieee.docx +0 -0
  629. package/plugins/litclaude/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
  630. package/plugins/litclaude/skills/lit-docx/templates/docx/nature.docx +0 -0
  631. package/plugins/litclaude/skills/lit-docx/templates/latex/acs/README.md +0 -5
  632. package/plugins/litclaude/skills/lit-docx/templates/latex/acs/template.tex +0 -51
  633. package/plugins/litclaude/skills/lit-docx/templates/latex/elsevier/README.md +0 -5
  634. package/plugins/litclaude/skills/lit-docx/templates/latex/elsevier/template.tex +0 -52
  635. package/plugins/litclaude/skills/lit-docx/templates/latex/ieee/README.md +0 -5
  636. package/plugins/litclaude/skills/lit-docx/templates/latex/ieee/template.tex +0 -51
  637. package/plugins/litclaude/skills/lit-docx/templates/latex/korean-generic/README.md +0 -5
  638. package/plugins/litclaude/skills/lit-docx/templates/latex/korean-generic/template.tex +0 -51
  639. package/plugins/litclaude/skills/lit-docx/templates/latex/nature/README.md +0 -5
  640. package/plugins/litclaude/skills/lit-docx/templates/latex/nature/template.tex +0 -51
  641. package/plugins/litclaude/skills/lit-docx/templates/registry.yaml +0 -1366
  642. package/plugins/litclaude/skills/lit-docx/templates/tonalities/brief.yaml +0 -28
  643. package/plugins/litclaude/skills/lit-docx/templates/tonalities/journal.yaml +0 -25
  644. package/plugins/litclaude/skills/lit-docx/templates/tonalities/manual.yaml +0 -26
  645. package/plugins/litclaude/skills/lit-docx/templates/tonalities/memo.yaml +0 -26
  646. package/plugins/litclaude/skills/lit-docx/templates/tonalities/proposal.yaml +0 -26
  647. package/plugins/litclaude/skills/lit-docx/templates/tonalities/report.yaml +0 -26
  648. package/plugins/litclaude/skills/lit-pptx/NOTICE +0 -38
  649. package/plugins/litclaude/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
  650. package/plugins/litclaude/skills/lit-pptx/assets/azure/circle-md.png +0 -0
  651. package/plugins/litclaude/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
  652. package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Black.otf +0 -0
  653. package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Bold.otf +0 -0
  654. package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Light.otf +0 -0
  655. package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Medium.otf +0 -0
  656. package/plugins/litclaude/skills/lit-pptx/fonts/a2z/A2Z-Regular.otf +0 -0
  657. package/plugins/litclaude/skills/lit-pptx/fonts/a2z/OFL.txt +0 -94
  658. package/plugins/litclaude/skills/lit-pptx/fonts/a2z/SOURCE.md +0 -29
  659. package/plugins/litclaude/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Bold.ttf +0 -0
  660. package/plugins/litclaude/skills/lit-pptx/fonts/jetbrains-mono/JetBrainsMono-Regular.ttf +0 -0
  661. package/plugins/litclaude/skills/lit-pptx/fonts/jetbrains-mono/OFL.txt +0 -93
  662. package/plugins/litclaude/skills/lit-pptx/fonts/pretendard/OFL.txt +0 -94
  663. package/plugins/litclaude/skills/lit-pptx/fonts/pretendard/Pretendard-Bold.otf +0 -0
  664. package/plugins/litclaude/skills/lit-pptx/fonts/pretendard/Pretendard-Regular.otf +0 -0
  665. package/plugins/litclaude/skills/lit-pptx/fonts/provenance.json +0 -109
  666. package/plugins/litclaude/skills/lit-pptx/references/agents/analyst.md +0 -49
  667. package/plugins/litclaude/skills/lit-pptx/references/agents/antithesis.md +0 -59
  668. package/plugins/litclaude/skills/lit-pptx/references/agents/architect.md +0 -44
  669. package/plugins/litclaude/skills/lit-pptx/references/agents/critic.md +0 -42
  670. package/plugins/litclaude/skills/lit-pptx/references/agents/synthesizer.md +0 -47
  671. package/plugins/litclaude/skills/lit-pptx/references/agents/thesis.md +0 -33
  672. package/plugins/litclaude/skills/lit-pptx/references/anti-slop-checklist.md +0 -131
  673. package/plugins/litclaude/skills/lit-pptx/references/authoring-guide.md +0 -250
  674. package/plugins/litclaude/skills/lit-pptx/references/consensus-protocol.md +0 -125
  675. package/plugins/litclaude/skills/lit-pptx/references/data-display-cookbook.md +0 -52
  676. package/plugins/litclaude/skills/lit-pptx/references/density-and-fill.md +0 -163
  677. package/plugins/litclaude/skills/lit-pptx/references/design-system-azure.md +0 -61
  678. package/plugins/litclaude/skills/lit-pptx/references/direction-step.md +0 -205
  679. package/plugins/litclaude/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +0 -210
  680. package/plugins/litclaude/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +0 -147
  681. package/plugins/litclaude/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +0 -199
  682. package/plugins/litclaude/skills/lit-pptx/references/examples/04-business-review-night-en.md +0 -203
  683. package/plugins/litclaude/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +0 -178
  684. package/plugins/litclaude/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +0 -199
  685. package/plugins/litclaude/skills/lit-pptx/references/examples/07-data-review-night-en.md +0 -194
  686. package/plugins/litclaude/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +0 -175
  687. package/plugins/litclaude/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +0 -204
  688. package/plugins/litclaude/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +0 -179
  689. package/plugins/litclaude/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +0 -164
  690. package/plugins/litclaude/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +0 -174
  691. package/plugins/litclaude/skills/lit-pptx/references/examples/13-engineering-review-computational-brutalism-ko.md +0 -173
  692. package/plugins/litclaude/skills/lit-pptx/references/examples/14-launch-pitch-neo-brutalism-ko.md +0 -154
  693. package/plugins/litclaude/skills/lit-pptx/references/examples/15-design-lecture-bauhaus-ko.md +0 -139
  694. package/plugins/litclaude/skills/lit-pptx/references/examples/16-community-programme-riso-ko.md +0 -158
  695. package/plugins/litclaude/skills/lit-pptx/references/examples/17-public-data-briefing-newsroom-ko.md +0 -179
  696. package/plugins/litclaude/skills/lit-pptx/references/interview-protocol.md +0 -113
  697. package/plugins/litclaude/skills/lit-pptx/references/layout-families.md +0 -194
  698. package/plugins/litclaude/skills/lit-pptx/references/stages/autopilot.md +0 -48
  699. package/plugins/litclaude/skills/lit-pptx/references/stages/interview.md +0 -52
  700. package/plugins/litclaude/skills/lit-pptx/references/stages/plan.md +0 -42
  701. package/plugins/litclaude/skills/lit-pptx/references/title-treatments.md +0 -113
  702. package/plugins/litclaude/skills/lit-pptx/references/tonalities/atlas.md +0 -139
  703. package/plugins/litclaude/skills/lit-pptx/references/tonalities/bauhaus.md +0 -140
  704. package/plugins/litclaude/skills/lit-pptx/references/tonalities/chalk.md +0 -148
  705. package/plugins/litclaude/skills/lit-pptx/references/tonalities/computational-brutalism.md +0 -150
  706. package/plugins/litclaude/skills/lit-pptx/references/tonalities/gazette.md +0 -149
  707. package/plugins/litclaude/skills/lit-pptx/references/tonalities/ledger.md +0 -149
  708. package/plugins/litclaude/skills/lit-pptx/references/tonalities/neo-brutalism.md +0 -161
  709. package/plugins/litclaude/skills/lit-pptx/references/tonalities/newsroom.md +0 -144
  710. package/plugins/litclaude/skills/lit-pptx/references/tonalities/night.md +0 -147
  711. package/plugins/litclaude/skills/lit-pptx/references/tonalities/paper.md +0 -151
  712. package/plugins/litclaude/skills/lit-pptx/references/tonalities/riso.md +0 -137
  713. package/plugins/litclaude/skills/lit-pptx/references/tonalities/signal.md +0 -150
  714. package/plugins/litclaude/skills/lit-pptx/references/tonalities/studio.md +0 -131
  715. package/plugins/litclaude/skills/lit-pptx/scripts/compile-deck.js +0 -462
  716. package/plugins/litclaude/skills/lit-pptx/scripts/craft_extras.py +0 -1078
  717. package/plugins/litclaude/skills/lit-pptx/scripts/deck_craft.py +0 -363
  718. package/plugins/litclaude/skills/lit-pptx/scripts/embed_fonts.py +0 -227
  719. package/plugins/litclaude/skills/lit-pptx/scripts/forbidden-terms.json +0 -55
  720. package/plugins/litclaude/skills/lit-pptx/scripts/layout_inventory.py +0 -418
  721. package/plugins/litclaude/skills/lit-pptx/scripts/learn_template.py +0 -446
  722. package/plugins/litclaude/skills/lit-pptx/scripts/lib/derive-palette.js +0 -176
  723. package/plugins/litclaude/skills/lit-pptx/scripts/lib/directive-parser.js +0 -244
  724. package/plugins/litclaude/skills/lit-pptx/scripts/lib/font-map.js +0 -79
  725. package/plugins/litclaude/skills/lit-pptx/scripts/lib/gen-bg.js +0 -86
  726. package/plugins/litclaude/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +0 -37
  727. package/plugins/litclaude/skills/lit-pptx/scripts/lib/grid-resolver.js +0 -512
  728. package/plugins/litclaude/skills/lit-pptx/scripts/lib/layout-resolver.js +0 -1113
  729. package/plugins/litclaude/skills/lit-pptx/scripts/lib/markdown-loader.js +0 -138
  730. package/plugins/litclaude/skills/lit-pptx/scripts/lib/render-adapter-html.js +0 -356
  731. package/plugins/litclaude/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +0 -2245
  732. package/plugins/litclaude/skills/lit-pptx/scripts/lib/render-pack.js +0 -3366
  733. package/plugins/litclaude/skills/lit-pptx/scripts/lib/runtime-require.js +0 -28
  734. package/plugins/litclaude/skills/lit-pptx/scripts/lib/slide-ast.js +0 -565
  735. package/plugins/litclaude/skills/lit-pptx/scripts/lib/slide-grid.js +0 -104
  736. package/plugins/litclaude/skills/lit-pptx/scripts/lib/spec-validator.js +0 -94
  737. package/plugins/litclaude/skills/lit-pptx/scripts/lib/template-registry.js +0 -730
  738. package/plugins/litclaude/skills/lit-pptx/scripts/package.json +0 -4
  739. package/plugins/litclaude/skills/lit-pptx/scripts/qa_deck.py +0 -795
  740. package/plugins/litclaude/skills/lit-pptx/scripts/validate_pptx.py +0 -230
  741. package/plugins/litclaude/skills/lit-pptx/specs/markdown-slide-spec-v1.md +0 -251
  742. package/plugins/litclaude/skills/lit-pptx/specs/markdown-slide-spec-v2.md +0 -214
  743. package/plugins/litclaude/skills/lit-pptx/specs/slide-ast-v1.schema.json +0 -229
  744. package/plugins/litclaude/skills/lit-pptx/specs/slide-ast-v2.schema.json +0 -144
  745. package/plugins/litclaude/skills/lit-pptx/specs/template-enrollment-contract.md +0 -382
  746. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +0 -146
  747. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +0 -454
  748. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +0 -40
  749. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +0 -154
  750. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +0 -475
  751. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +0 -40
  752. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +0 -179
  753. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +0 -299
  754. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +0 -45
  755. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +0 -181
  756. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +0 -299
  757. package/plugins/litclaude/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +0 -44
  758. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +0 -92
  759. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/bauhaus/pack.yaml +0 -98
  760. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +0 -97
  761. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/computational-brutalism/pack.yaml +0 -99
  762. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +0 -93
  763. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +0 -94
  764. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/neo-brutalism/pack.yaml +0 -107
  765. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/newsroom/pack.yaml +0 -99
  766. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/night/pack.yaml +0 -93
  767. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/paper/pack.yaml +0 -98
  768. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/riso/pack.yaml +0 -99
  769. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/signal/pack.yaml +0 -94
  770. package/plugins/litclaude/skills/lit-pptx/templates/tonalities/studio/pack.yaml +0 -92
  771. package/plugins/litclaude/skills/lit-schematic/examples/iso-heat-exchanger/build.mjs +0 -38
  772. package/plugins/litclaude/skills/lit-schematic/examples/iso-heat-exchanger/scene.mjs +0 -133
  773. package/plugins/litclaude/skills/lit-schematic/examples/journal-adsorption-rig/build.mjs +0 -87
  774. package/plugins/litclaude/skills/lit-schematic/examples/pid-dosing-skid/build.mjs +0 -85
  775. package/plugins/litclaude/skills/lit-schematic/references/cutaway-outputs.md +0 -70
  776. package/plugins/litclaude/skills/lit-schematic/references/isometric-craft.md +0 -101
  777. package/plugins/litclaude/skills/lit-schematic/references/journal-figures.md +0 -72
  778. package/plugins/litclaude/skills/lit-schematic/references/kit-api.md +0 -134
  779. package/plugins/litclaude/skills/lit-schematic/references/pfd-and-layout.md +0 -53
  780. package/plugins/litclaude/skills/lit-schematic/references/pid-drafting.md +0 -103
  781. package/plugins/litclaude/skills/lit-schematic/references/pid-symbols.md +0 -163
  782. package/plugins/litclaude/skills/lit-schematic/references/verification.md +0 -100
  783. package/plugins/litclaude/skills/lit-schematic/scripts/doctor.mjs +0 -57
  784. package/plugins/litclaude/skills/lit-schematic/scripts/lib/figure.mjs +0 -81
  785. package/plugins/litclaude/skills/lit-schematic/scripts/lib/fonts.mjs +0 -27
  786. package/plugins/litclaude/skills/lit-schematic/scripts/lib/geom.mjs +0 -113
  787. package/plugins/litclaude/skills/lit-schematic/scripts/lib/interactive.mjs +0 -292
  788. package/plugins/litclaude/skills/lit-schematic/scripts/lib/isa.mjs +0 -115
  789. package/plugins/litclaude/skills/lit-schematic/scripts/lib/iso.mjs +0 -719
  790. package/plugins/litclaude/skills/lit-schematic/scripts/lib/legend-sheet.mjs +0 -162
  791. package/plugins/litclaude/skills/lit-schematic/scripts/lib/pid.mjs +0 -937
  792. package/plugins/litclaude/skills/lit-schematic/scripts/lib/png.mjs +0 -132
  793. package/plugins/litclaude/skills/lit-schematic/scripts/lib/qa-core.mjs +0 -658
  794. package/plugins/litclaude/skills/lit-schematic/scripts/lib/route.mjs +0 -218
  795. package/plugins/litclaude/skills/lit-schematic/scripts/lib/sheet.mjs +0 -900
  796. package/plugins/litclaude/skills/lit-schematic/scripts/lib/svg.mjs +0 -86
  797. package/plugins/litclaude/skills/lit-schematic/scripts/lib/theme.mjs +0 -115
  798. package/plugins/litclaude/skills/lit-schematic/scripts/motion.mjs +0 -132
  799. package/plugins/litclaude/skills/lit-schematic/scripts/qa.mjs +0 -92
  800. package/plugins/litclaude/skills/lit-schematic/scripts/render.mjs +0 -251
  801. package/plugins/litclaude/skills/lit-schematic/scripts/scaffold.mjs +0 -60
  802. package/plugins/litclaude/skills/lit-typographic-motion/engine/NOTICE +0 -23
  803. package/plugins/litclaude/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +0 -73
  804. package/plugins/litclaude/skills/lit-typographic-motion/engine/audio/beat_grid.py +0 -56
  805. package/plugins/litclaude/skills/lit-typographic-motion/engine/audio/requirements.lock +0 -1084
  806. package/plugins/litclaude/skills/lit-typographic-motion/engine/blender/runner.py +0 -218
  807. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/constants.mjs +0 -246
  808. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/contrast.mjs +0 -90
  809. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/events.mjs +0 -46
  810. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/flash.mjs +0 -211
  811. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/gate-rules.mjs +0 -550
  812. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/presets.mjs +0 -123
  813. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/text.mjs +0 -100
  814. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/timeline.mjs +0 -142
  815. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/util.mjs +0 -167
  816. package/plugins/litclaude/skills/lit-typographic-motion/engine/core/voices.mjs +0 -19
  817. package/plugins/litclaude/skills/lit-typographic-motion/engine/models/word-timing.json +0 -198
  818. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/analysis.mjs +0 -172
  819. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/assets.mjs +0 -303
  820. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/blender.mjs +0 -143
  821. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/board.mjs +0 -136
  822. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/brief.mjs +0 -164
  823. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/chrome.mjs +0 -349
  824. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-assets.mjs +0 -104
  825. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-capture.mjs +0 -223
  826. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-gate.mjs +0 -346
  827. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-image.mjs +0 -141
  828. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-sheet.mjs +0 -76
  829. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +0 -139
  830. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover-worker.mjs +0 -32
  831. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/cover.mjs +0 -431
  832. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/coverage.mjs +0 -83
  833. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/done.mjs +0 -209
  834. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/encode.mjs +0 -109
  835. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/end-card.mjs +0 -128
  836. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/frame-worker.mjs +0 -38
  837. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/gallery.mjs +0 -121
  838. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/host.mjs +0 -31
  839. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/house.mjs +0 -44
  840. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/look.mjs +0 -178
  841. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/pipeline.mjs +0 -648
  842. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/png.mjs +0 -112
  843. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/report.mjs +0 -66
  844. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/runtime.mjs +0 -373
  845. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/scaffold.mjs +0 -210
  846. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/score.mjs +0 -639
  847. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/session.mjs +0 -145
  848. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/sound-cli.mjs +0 -77
  849. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/sound.mjs +0 -740
  850. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-capture.mjs +0 -180
  851. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-gate.mjs +0 -180
  852. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-qa.mjs +0 -427
  853. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage-serve.mjs +0 -438
  854. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stage.mjs +0 -597
  855. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/stills.mjs +0 -100
  856. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/styles.mjs +0 -213
  857. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/treatment.mjs +0 -645
  858. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/webp.mjs +0 -145
  859. package/plugins/litclaude/skills/lit-typographic-motion/engine/node/ws-server.mjs +0 -132
  860. package/plugins/litclaude/skills/lit-typographic-motion/engine/package-lock.json +0 -25
  861. package/plugins/litclaude/skills/lit-typographic-motion/engine/package.json +0 -10
  862. package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/cover-init.js +0 -49
  863. package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/init.js +0 -311
  864. package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/loop-kit.js +0 -106
  865. package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/qa.js +0 -162
  866. package/plugins/litclaude/skills/lit-typographic-motion/engine/stage/stage-kit.js +0 -823
  867. package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/LICENSE +0 -21
  868. package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/addons/environments/RoomEnvironment.js +0 -144
  869. package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/addons/geometries/RoundedBoxGeometry.js +0 -155
  870. package/plugins/litclaude/skills/lit-typographic-motion/engine/vendor/three/three.module.js +0 -54571
  871. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/boot.mjs +0 -123
  872. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/engine.mjs +0 -281
  873. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/gl.mjs +0 -319
  874. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/glsl-common.mjs +0 -78
  875. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/index.html +0 -6
  876. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/lines.mjs +0 -112
  877. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/crt.mjs +0 -98
  878. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/dither.mjs +0 -49
  879. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/glitch.mjs +0 -77
  880. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/swiss-grid.mjs +0 -61
  881. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/terminal-ui.mjs +0 -88
  882. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/passes/tidal-gradient.mjs +0 -86
  883. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/post.mjs +0 -165
  884. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scale.mjs +0 -15
  885. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scene.mjs +0 -82
  886. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/end-card.mjs +0 -30
  887. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/index.mjs +0 -16
  888. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/karaoke-line.mjs +0 -47
  889. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/kinetic-list.mjs +0 -45
  890. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/number-counter.mjs +0 -29
  891. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/signature.mjs +0 -73
  892. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/scenes/title-slam.mjs +0 -73
  893. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/stroke.mjs +0 -236
  894. package/plugins/litclaude/skills/lit-typographic-motion/engine/web/type.mjs +0 -180
  895. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-400.ttf +0 -0
  896. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-700.ttf +0 -0
  897. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-900.ttf +0 -0
  898. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-400.ttf +0 -0
  899. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-700.ttf +0 -0
  900. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-900.ttf +0 -0
  901. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-400.ttf +0 -0
  902. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-700.ttf +0 -0
  903. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-900.ttf +0 -0
  904. package/plugins/litclaude/skills/lit-typographic-motion/fonts/archivo/OFL.txt +0 -93
  905. package/plugins/litclaude/skills/lit-typographic-motion/fonts/jetbrains-mono/JetBrainsMono-wght-latin.woff2 +0 -0
  906. package/plugins/litclaude/skills/lit-typographic-motion/fonts/jetbrains-mono/OFL.txt +0 -93
  907. package/plugins/litclaude/skills/lit-typographic-motion/fonts/manifest.json +0 -455
  908. package/plugins/litclaude/skills/lit-typographic-motion/fonts/silkscreen/OFL.txt +0 -93
  909. package/plugins/litclaude/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Bold.ttf +0 -0
  910. package/plugins/litclaude/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Regular.ttf +0 -0
  911. package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/CREDITS +0 -42
  912. package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +0 -216
  913. package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +0 -216
  914. package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +0 -216
  915. package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +0 -216
  916. package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +0 -217
  917. package/plugins/litclaude/skills/lit-typographic-motion/fonts/stroke/OFL.txt +0 -91
  918. package/plugins/litclaude/skills/lit-typographic-motion/fonts/vt323/OFL.txt +0 -93
  919. package/plugins/litclaude/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
  920. package/plugins/litclaude/skills/lit-typographic-motion/recipes/hero-3d/expected.json +0 -69
  921. package/plugins/litclaude/skills/lit-typographic-motion/recipes/hero-3d/index.html +0 -139
  922. package/plugins/litclaude/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +0 -16
  923. package/plugins/litclaude/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +0 -27
  924. package/plugins/litclaude/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +0 -16
  925. package/plugins/litclaude/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +0 -17
  926. package/plugins/litclaude/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +0 -17
  927. package/plugins/litclaude/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +0 -18
  928. package/plugins/litclaude/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +0 -17
  929. package/plugins/litclaude/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +0 -30
  930. package/plugins/litclaude/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +0 -69
  931. package/plugins/litclaude/skills/lit-typographic-motion/recipes/orbit-loop/index.html +0 -152
  932. package/plugins/litclaude/skills/lit-typographic-motion/recipes/painted-light/expected.json +0 -97
  933. package/plugins/litclaude/skills/lit-typographic-motion/recipes/painted-light/index.html +0 -202
  934. package/plugins/litclaude/skills/lit-typographic-motion/recipes/weight-tide/expected.json +0 -69
  935. package/plugins/litclaude/skills/lit-typographic-motion/recipes/weight-tide/index.html +0 -100
  936. package/plugins/litclaude/skills/lit-typographic-motion/references/brief-schema.md +0 -91
  937. package/plugins/litclaude/skills/lit-typographic-motion/references/cover.md +0 -424
  938. package/plugins/litclaude/skills/lit-typographic-motion/references/craft-loop.md +0 -70
  939. package/plugins/litclaude/skills/lit-typographic-motion/references/depth.md +0 -122
  940. package/plugins/litclaude/skills/lit-typographic-motion/references/engine-contract.md +0 -104
  941. package/plugins/litclaude/skills/lit-typographic-motion/references/look.md +0 -122
  942. package/plugins/litclaude/skills/lit-typographic-motion/references/runtime.md +0 -67
  943. package/plugins/litclaude/skills/lit-typographic-motion/references/sound.md +0 -152
  944. package/plugins/litclaude/skills/lit-typographic-motion/references/stage.md +0 -255
  945. package/plugins/litclaude/skills/lit-typographic-motion/references/studio.md +0 -256
  946. package/plugins/litclaude/skills/lit-typographic-motion/references/style-bibles.md +0 -141
  947. package/plugins/litclaude/skills/lit-typographic-motion/references/treatment.md +0 -215
  948. package/plugins/litclaude/skills/lit-typographic-motion/references/type-craft.md +0 -79
  949. package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion-doctor.mjs +0 -111
  950. package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion-runtime.mjs +0 -74
  951. package/plugins/litclaude/skills/lit-typographic-motion/scripts/motion.mjs +0 -205
  952. package/plugins/litclaude/skills/lit-typographic-motion/styles/paper.json +0 -41
  953. package/plugins/litclaude/skills/lit-typographic-motion/styles/swiss-signal.json +0 -41
  954. package/plugins/litclaude/skills/lit-typographic-motion/styles/terminalcore.json +0 -42
  955. package/plugins/litclaude/skills/lit-typographic-motion/styles/tidal.json +0 -41
  956. package/plugins/litclaude/skills/readme-studio/references/decoration-and-navigation.md +0 -55
  957. package/plugins/litclaude/skills/readme-studio/references/facts-and-assembly.md +0 -19
  958. package/plugins/litclaude/skills/readme-studio/references/production-interview.md +0 -13
  959. package/plugins/litclaude/skills/readme-studio/references/render-and-deliver.md +0 -44
  960. package/plugins/litclaude/skills/readme-studio/references/type-and-background.md +0 -23
  961. package/plugins/litclaude/skills/readme-studio/scripts/validate-readme-facts.mjs +0 -28
  962. package/plugins/litclaude/skills/readme-studio/templates/cover-source.json +0 -22
  963. package/plugins/litclaude/skills/readme-studio/templates/hyperframes-cover/index.html +0 -31
  964. package/plugins/litclaude/skills/readme-studio/templates/hyperframes-cover/index.motion.json +0 -1
  965. package/plugins/litclaude/skills/readme-studio/templates/hyperframes-cover/package-lock.json +0 -2017
  966. package/plugins/litclaude/skills/readme-studio/templates/hyperframes-cover/package.json +0 -8
  967. package/plugins/litclaude/skills/readme-studio/templates/readme-cover-section.md +0 -75
  968. package/plugins/litclaude/skills/readme-studio/templates/readme-facts.json +0 -4
  969. package/plugins/litclaude/skills/readme-studio/templates/remotion-cover/package-lock.json +0 -3783
  970. package/plugins/litclaude/skills/readme-studio/templates/remotion-cover/package.json +0 -8
  971. package/plugins/litclaude/skills/readme-studio/templates/remotion-cover/src/index.tsx +0 -37
  972. package/plugins/litclaude/skills/readme-studio/templates/typography/package-lock.json +0 -133
  973. package/plugins/litclaude/skills/readme-studio/templates/typography/package.json +0 -6
  974. package/plugins/litclaude/skills/readme-studio/templates/typography/safe-files.mjs +0 -57
  975. package/plugins/litclaude/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +0 -47
  976. package/plugins/litclaude/skills/visual-qa/references/capture-playbook.md +0 -126
  977. package/plugins/litclaude/skills/visual-qa/references/complete-contract.md +0 -711
  978. package/plugins/litclaude/skills/visual-qa/schemas/design-contract-v1alpha1.schema.json +0 -305
  979. package/plugins/litclaude/skills/visual-qa/schemas/design-contract-v1beta1.schema.json +0 -291
  980. package/plugins/litclaude/skills/visual-qa/schemas/design-contract-v1beta2.schema.json +0 -311
  981. package/plugins/litclaude/skills/visual-qa/schemas/evidence-manifest-v1alpha1.schema.json +0 -235
  982. package/plugins/litclaude/skills/visual-qa/schemas/evidence-manifest-v1beta1.schema.json +0 -208
  983. package/plugins/litclaude/skills/visual-qa/schemas/review-receipt-v1alpha1.schema.json +0 -66
  984. package/plugins/litclaude/skills/visual-qa/scripts/ansi.ts +0 -17
  985. package/plugins/litclaude/skills/visual-qa/scripts/cli.mjs +0 -101
  986. package/plugins/litclaude/skills/visual-qa/scripts/cli.ts +0 -96
  987. package/plugins/litclaude/skills/visual-qa/scripts/design-contract-shape.mjs +0 -448
  988. package/plugins/litclaude/skills/visual-qa/scripts/east-asian-width.ts +0 -72
  989. package/plugins/litclaude/skills/visual-qa/scripts/errors.mjs +0 -12
  990. package/plugins/litclaude/skills/visual-qa/scripts/evidence-io.mjs +0 -184
  991. package/plugins/litclaude/skills/visual-qa/scripts/evidence-semantic.mjs +0 -95
  992. package/plugins/litclaude/skills/visual-qa/scripts/evidence-shape.mjs +0 -163
  993. package/plugins/litclaude/skills/visual-qa/scripts/evidence.mjs +0 -421
  994. package/plugins/litclaude/skills/visual-qa/scripts/image-diff.mjs +0 -89
  995. package/plugins/litclaude/skills/visual-qa/scripts/image-diff.ts +0 -109
  996. package/plugins/litclaude/skills/visual-qa/scripts/png-chunks.mjs +0 -107
  997. package/plugins/litclaude/skills/visual-qa/scripts/png-crc.ts +0 -27
  998. package/plugins/litclaude/skills/visual-qa/scripts/png-decode.mjs +0 -143
  999. package/plugins/litclaude/skills/visual-qa/scripts/png-decode.ts +0 -206
  1000. package/plugins/litclaude/skills/visual-qa/scripts/png-synth.ts +0 -57
  1001. package/plugins/litclaude/skills/visual-qa/scripts/review-rules.mjs +0 -137
  1002. package/plugins/litclaude/skills/visual-qa/scripts/terminal-text.mjs +0 -117
  1003. package/plugins/litclaude/skills/visual-qa/scripts/tui-check.mjs +0 -74
  1004. package/plugins/litclaude/skills/visual-qa/scripts/tui-grid.ts +0 -88
  1005. package/plugins/litclaude/skills/visual-qa/scripts/types.ts +0 -54
  1006. package/plugins/litclaude/vendor/licenses/045_scientific-visualization-MIT.txt +0 -21
  1007. package/plugins/litclaude/vendor/provenance/045_scientific-visualization.md +0 -34
  1008. package/plugins/litclaude/vendor/scientific-visualization/SKILL.md +0 -283
  1009. package/plugins/litclaude/vendor/scientific-visualization/assets/color_palettes.py +0 -197
  1010. package/plugins/litclaude/vendor/scientific-visualization/assets/nature.mplstyle +0 -75
  1011. package/plugins/litclaude/vendor/scientific-visualization/assets/presentation.mplstyle +0 -74
  1012. package/plugins/litclaude/vendor/scientific-visualization/assets/publication.mplstyle +0 -78
  1013. package/plugins/litclaude/vendor/scientific-visualization/evals/evals.json +0 -158
  1014. package/plugins/litclaude/vendor/scientific-visualization/references/color_palettes.md +0 -380
  1015. package/plugins/litclaude/vendor/scientific-visualization/references/journal_requirements.md +0 -359
  1016. package/plugins/litclaude/vendor/scientific-visualization/references/matplotlib_examples.md +0 -608
  1017. package/plugins/litclaude/vendor/scientific-visualization/references/mdanalysis_martini_visualization.md +0 -85
  1018. package/plugins/litclaude/vendor/scientific-visualization/references/publication_guidelines.md +0 -217
  1019. package/plugins/litclaude/vendor/scientific-visualization/references/seaborn_for_publications.md +0 -293
  1020. package/plugins/litclaude/vendor/scientific-visualization/scripts/figure_export.py +0 -238
  1021. package/plugins/litclaude/vendor/scientific-visualization/scripts/style_presets.py +0 -467
  1022. package/plugins/litclaude/vendor/scientific-visualization/tests/test_figure_export.py +0 -51
  1023. package/plugins/litclaude/vendor/scientific-visualization/tests/test_style_presets.py +0 -114
  1024. package/scripts/qa-cover-recipes.mjs +0 -172
  1025. package/scripts/qa-uiux-visual-qa-scenarios.mjs +0 -185
@@ -1,1078 +0,0 @@
1
- #!/usr/bin/env python3
2
- """craft_extras.py — the office subset of the family craft floor, for the lit-pptx QA gate.
3
-
4
- deck_craft.py answers "does the deck look finished"; these checks answer "does it carry the
5
- reflex defaults a designer would flag", each as a number a gate can hold:
6
-
7
- OF-101 at most four accent hue families per slide (among solid shape fills); five fail
8
- OF-102 body text-box measure (characters per wrapped line, CJK or Latin)
9
- OF-103 numeric table columns aligned right
10
- OF-104 concentric radius on a nested rounded frame
11
- OF-105 gap between cards at least twice the gap between shapes inside a card
12
- OF-106 no gradient-filled text
13
- OF-107 no glow effect
14
- OF-108 no emoji bullets
15
- OF-109 no tall empty band below the last content block, on the slide or in a card
16
- OF-110 a deck of 8+ slides mixes at least three title treatments; each drawn as it is named
17
- OF-111 content slides vary their composition (title zone x body partition x dominant content)
18
- OF-112 the median empty band under the body's last block stays at or under 0.20
19
- OF-113 every content title sits on the shared title frame, every display title on the display frame
20
- OF-114 titles and the cover subtitle are topic labels, not declarative sentences
21
- OF-115 no region left empty: a takeaway column as long as the visual beside it (its values table
22
- included), a title panel as tall as its text and no plate under an empty page
23
- OF-116 (with --sibling) another tonality of the same source sets its titles and bodies in the same places
24
- OF-117 no light figure card on a dark ground
25
- OF-118 a bold run-in label is followed by its separator ("요약: …", "Summary: …")
26
- OF-119 an agenda's title carries no count numeral beside it (its rows are numbered)
27
- OF-120 a hard offset shadow (no blur) only in a pack that allows one, and there every shadow is hard
28
-
29
- A tonality pack may widen two of these limits through its own `qa:` block (listed in
30
- references/anti-slop-checklist.md): `accent-families` and `display-accent-families` (how many accent
31
- hue families a content or display slide may carry before OF-101 fails, five or six; the default is
32
- four), and `offset-shadow` (OF-120).
33
- The gate finds the pack through the deck's tonality stamp; a deck without a stamp keeps the defaults.
34
-
35
- Every threshold lives in THRESHOLDS. A HIGH finding fails the gate; a MEDIUM finding is
36
- advisory and is reported, not blocking. `tier` is "measured" when read off the OOXML and
37
- "derived" when it rests on an inherited value (a table style's alignment).
38
-
39
- Usage:
40
- python3 craft_extras.py deck.pptx # JSON report; exit 0 always
41
- """
42
-
43
- from __future__ import annotations
44
-
45
- import os as _os
46
- import sys as _sys
47
-
48
- _sys.dont_write_bytecode = True # the installed skill directory stays read-only
49
- _HERE = _os.path.dirname(_os.path.abspath(__file__))
50
- _sys.path.insert(0, _os.path.join(_HERE, "..", "..", "..", "lib"))
51
- _sys.path.insert(0, _HERE)
52
- from office_runtime_bootstrap import ensure_runtime # noqa: E402
53
-
54
- ensure_runtime(["pptx"])
55
-
56
- import colorsys # noqa: E402
57
- import json # noqa: E402
58
- import re # noqa: E402
59
- from pathlib import Path # noqa: E402
60
-
61
- from pptx import Presentation # noqa: E402
62
- from pptx.enum.dml import MSO_FILL # noqa: E402
63
- from pptx.enum.shapes import MSO_SHAPE_TYPE # noqa: E402
64
- from pptx.enum.text import PP_ALIGN # noqa: E402
65
- from pptx.oxml.ns import qn # noqa: E402
66
-
67
- import deck_craft # noqa: E402
68
- from layout_inventory import DEFAULT_INSETS, EMU_PER_IN, PT_PER_IN, _attr_int, paragraph_runs, wrap_segment # noqa: E402
69
-
70
- THRESHOLDS = {
71
- "accent": {"min_lightness": 0.12, "max_lightness": 0.93, "min_saturation": 0.12, "family_deg": 20.0,
72
- "content_high": 5, "content_medium": 5, "display_high": 5, "display_medium": 5},
73
- "measure": {"latin_max": 90, "cjk_max": 38, "cjk_share": 0.5, "narrow_min": 10, "narrow_lines": 3},
74
- "numeric": {"share": 0.7, "min_rows": 2},
75
- "radius": {"inset_spread_in": 0.06, "tolerance_in": 0.02, "min_outer_in": 0.04, "default_adj": 16667},
76
- # MEDIUM until the family's read-only re-run on its calibration decks promotes it.
77
- "grouping": {"ratio": 2.0, "severity": "MEDIUM"},
78
- "band": {"high": 0.35, "medium": 0.25, "row_tolerance_in": 0.05},
79
- }
80
- EMOJI = re.compile("[\U0001F000-\U0001FAFF☀-➿]")
81
- NUMERIC_STRIP = re.compile(r"[\s,.%▲▼+\-−±()$€£¥₩]")
82
-
83
-
84
- def _finding(check, severity, slide, shape, detail, hint, tier="measured"):
85
- return {"check": check, "severity": severity, "tier": tier, "slide": slide, "shape": shape, "detail": detail, "hint": hint}
86
-
87
-
88
- def _hsl(rgb):
89
- r, g, b = (int(str(rgb)[i:i + 2], 16) / 255 for i in (0, 2, 4))
90
- h, lightness, s = colorsys.rgb_to_hls(r, g, b)
91
- return h * 360.0, s, lightness
92
-
93
-
94
- def _families(hues, width):
95
- """Greedy hue clustering: a hue within `width` degrees of a family joins it."""
96
- families = []
97
- for hue in sorted(hues):
98
- for family in families:
99
- if min(abs(hue - family), 360 - abs(hue - family)) <= width:
100
- break
101
- else:
102
- families.append(hue)
103
- return families
104
-
105
-
106
- def _solid_fill(shape):
107
- try:
108
- if shape.fill.type == MSO_FILL.SOLID:
109
- return shape.fill.fore_color.rgb
110
- except (AttributeError, TypeError, ValueError, NotImplementedError):
111
- return None
112
- return None
113
-
114
-
115
- QA_KEY = re.compile(r"^ ([a-z-]+):\s*(\S+)\s*$")
116
-
117
-
118
- def pack_allowances(prs) -> dict:
119
- """The stamped tonality pack's `qa:` block as {key: int or bool}; empty without a stamp or a block."""
120
- stamp = STAMP.search(prs.core_properties.subject or "")
121
- if not stamp or not re.fullmatch(r"[a-z][a-z0-9-]*", stamp.group(1)):
122
- return {}
123
- path = Path(_HERE).parent / "templates" / "tonalities" / stamp.group(1) / "pack.yaml"
124
- if not path.is_file():
125
- return {}
126
- allowed, inside = {}, False
127
- for line in path.read_text(encoding="utf-8").splitlines():
128
- if not line.strip() or line.lstrip().startswith("#"):
129
- continue
130
- if not line.startswith(" "):
131
- inside = line.rstrip() == "qa:"
132
- continue
133
- match = QA_KEY.match(line) if inside else None
134
- if match:
135
- value = match.group(2)
136
- allowed[match.group(1)] = value == "true" if value in ("true", "false") else int(value) if value.isdigit() else value
137
- return allowed
138
-
139
-
140
- def check_shadows(number, slide, allowed):
141
- """OF-120: a hard offset shadow (blur 0) is a pack's look or nothing; a pack that has it keeps every shadow hard."""
142
- found = []
143
- for shape in slide.shapes:
144
- for shadow in shape._element.iter(qn("a:outerShdw")):
145
- hard = int(shadow.get("blurRad") or 0) == 0
146
- if hard and not allowed.get("offset-shadow"):
147
- found.append(_finding("OF-120", "HIGH", number, shape.name, "hard offset shadow in a pack that does not draw one",
148
- "Remove the shadow; only a pack whose qa block allows offset-shadow draws one."))
149
- elif not hard and allowed.get("offset-shadow"):
150
- found.append(_finding("OF-120", "HIGH", number, shape.name, "soft shadow beside the pack's hard offset shadows",
151
- "Draw the shadow with no blur at the pack's offset, or remove it."))
152
- return found
153
-
154
-
155
- def check_accents(slide, number, shapes, page_area, display, allowed=None):
156
- t = dict(THRESHOLDS["accent"])
157
- # A pack's own limit only widens the default: N families pass, N + 1 fail, with no advisory step between.
158
- for key, high, medium in (("accent-families", "content_high", "content_medium"), ("display-accent-families", "display_high", "display_medium")):
159
- if isinstance((allowed or {}).get(key), int) and not isinstance(allowed[key], bool):
160
- t[high] = t[medium] = max(t[high], allowed[key] + 1)
161
- hues = []
162
- for shape in shapes:
163
- box = deck_craft._box(shape)
164
- if box is None or box[2] * box[3] >= deck_craft.FULL_BLEED * page_area:
165
- continue
166
- if shape.shape_type == MSO_SHAPE_TYPE.PICTURE:
167
- continue
168
- rgb = _solid_fill(shape)
169
- if rgb is None:
170
- continue
171
- hue, saturation, lightness = _hsl(rgb)
172
- if t["min_lightness"] <= lightness <= t["max_lightness"] and saturation >= t["min_saturation"]:
173
- hues.append(hue)
174
- count = len(_families(hues, t["family_deg"]))
175
- high, medium = (t["display_high"], t["display_medium"]) if display else (t["content_high"], t["content_medium"])
176
- if count >= high:
177
- return [_finding("OF-101", "HIGH", number, None, f"{count} accent hue families", f"Hold a slide to {high - 1} accent hue families; fold the extra fills into a family the slide already uses.")]
178
- if count >= medium:
179
- return [_finding("OF-101", "MEDIUM", number, None, f"{count} accent hue families", "Close to the accent limit: fold an extra fill into a family the slide already uses.")]
180
- return []
181
-
182
-
183
- def _hangul_share(text):
184
- letters = [c for c in text if not c.isspace()]
185
- return sum(1 for c in letters if "가" <= c <= "힣") / max(1, len(letters))
186
-
187
-
188
- def _wrapped_lines(shape):
189
- body_pr = shape.text_frame._txBody.find(qn("a:bodyPr"))
190
- insets = {k: _attr_int(body_pr, k, v) for k, v in DEFAULT_INSETS.items()}
191
- wrap = body_pr.get("wrap", "square") if body_pr is not None else "square"
192
- inner = (shape.width - insets["lIns"] - insets["rIns"]) / EMU_PER_IN * PT_PER_IN
193
- lines = 0
194
- for paragraph in shape.text_frame.paragraphs:
195
- if not paragraph.text.strip():
196
- continue
197
- for segment in paragraph_runs(paragraph, 18.0):
198
- lines += wrap_segment(segment, max(inner, 1.0), wrap)[0]
199
- return lines
200
-
201
-
202
- def check_measure(number, shapes, title):
203
- t = THRESHOLDS["measure"]
204
- found = []
205
- for shape in shapes:
206
- if shape is title or not getattr(shape, "has_text_frame", False) or not shape.has_text_frame or shape.name.startswith("lit-notice"):
207
- continue
208
- size = deck_craft._max_pt(shape)
209
- if not deck_craft.CAPTION_PT < size < deck_craft.DISPLAY_PT:
210
- continue
211
- text = "".join(p.text for p in shape.text_frame.paragraphs)
212
- lines = _wrapped_lines(shape)
213
- if lines < 2 or not text.strip():
214
- continue
215
- per_line = len(text) / lines
216
- cjk = _hangul_share(text) >= t["cjk_share"]
217
- ceiling = t["cjk_max"] if cjk else t["latin_max"]
218
- if per_line > ceiling:
219
- found.append(_finding("OF-102", "HIGH", number, shape.name, f"{per_line:.0f} chars per line over {lines} lines{' (Korean)' if cjk else ''}",
220
- f"Narrow the text box or split the text; keep body lines at or under {ceiling} characters."))
221
- elif per_line < t["narrow_min"] and lines >= t["narrow_lines"]:
222
- found.append(_finding("OF-102", "MEDIUM", number, shape.name, f"{per_line:.0f} chars per line over {lines} lines",
223
- "Widen the column; very short lines read as broken wrapping."))
224
- return found
225
-
226
-
227
- def _numeric(text):
228
- stripped = NUMERIC_STRIP.sub("", text)
229
- return bool(stripped) and stripped.isdigit()
230
-
231
-
232
- def check_numeric_columns(number, shapes):
233
- t = THRESHOLDS["numeric"]
234
- found = []
235
- for shape in shapes:
236
- if not getattr(shape, "has_table", False) or not shape.has_table:
237
- continue
238
- rows = list(shape.table.rows)
239
- data = rows[1:]
240
- if len(data) < t["min_rows"]:
241
- continue
242
- # A second header-like row (no number in it) above numeric rows is out of scope for now.
243
- if data and not any(_numeric(cell.text) for cell in data[0].cells) and any(_numeric(cell.text) for row in data[1:] for cell in row.cells):
244
- continue
245
- for column in range(len(shape.table.columns)):
246
- cells = [row.cells[column] for row in data]
247
- filled = [cell for cell in cells if cell.text.strip()]
248
- numbers = [cell for cell in filled if _numeric(cell.text)]
249
- if len(numbers) < t["min_rows"] or len(numbers) / max(1, len(filled)) < t["share"]:
250
- continue
251
- explicit = [cell for cell in numbers if any(p.alignment not in (None, PP_ALIGN.RIGHT) for p in cell.text_frame.paragraphs if p.text.strip())]
252
- inherited = [cell for cell in numbers if all(p.alignment is None for p in cell.text_frame.paragraphs if p.text.strip())]
253
- if explicit:
254
- found.append(_finding("OF-103", "HIGH", number, shape.name, f"column {column + 1}: {len(explicit)} number cell(s) not right-aligned",
255
- "Right-align numeric columns so the digits line up."))
256
- elif inherited:
257
- found.append(_finding("OF-103", "MEDIUM", number, shape.name, f"column {column + 1}: alignment inherited, not verified",
258
- "Set right alignment on numeric cells explicitly.", tier="derived"))
259
- return found
260
-
261
-
262
- def _radius_in(shape):
263
- geometry = shape._element.find(".//" + qn("a:prstGeom"))
264
- if geometry is None or geometry.get("prst") != "roundRect":
265
- return None
266
- adj = THRESHOLDS["radius"]["default_adj"]
267
- guide = geometry.find(".//" + qn("a:gd"))
268
- if guide is not None and (guide.get("fmla") or "").startswith("val "):
269
- adj = int(guide.get("fmla").split()[1])
270
- return adj / 100000.0 * min(shape.width, shape.height) / EMU_PER_IN
271
-
272
-
273
- def check_concentric(number, shapes):
274
- t = THRESHOLDS["radius"]
275
- rounded = [(shape, deck_craft._box(shape), _radius_in(shape)) for shape in shapes]
276
- rounded = [(s, b, r) for s, b, r in rounded if b is not None and r is not None]
277
- found = []
278
- for inner, ibox, iradius in rounded:
279
- for outer, obox, oradius in rounded:
280
- if inner is outer or not deck_craft._contains(obox, ibox, tol=0.0):
281
- continue
282
- pads = [ibox[0] - obox[0], ibox[1] - obox[1], obox[0] + obox[2] - ibox[0] - ibox[2], obox[1] + obox[3] - ibox[1] - ibox[3]]
283
- if max(pads) - min(pads) > t["inset_spread_in"] or oradius <= t["min_outer_in"]:
284
- continue
285
- expected = max(0.0, oradius - sum(pads) / 4)
286
- if abs(iradius - expected) > t["tolerance_in"]:
287
- found.append(_finding("OF-104", "HIGH", number, inner.name, f"inner radius {iradius:.2f}in, expected {expected:.2f}in",
288
- "Set the inner radius to the outer radius minus the frame's padding."))
289
- return found
290
-
291
-
292
- def _gap(a, b):
293
- """Clear distance between two boxes; 0 when they overlap."""
294
- dx = max(0.0, b[0] - (a[0] + a[2]), a[0] - (b[0] + b[2]))
295
- dy = max(0.0, b[1] - (a[1] + a[3]), a[1] - (b[1] + b[3]))
296
- return max(dx, dy)
297
-
298
-
299
- def check_grouping(number, shapes, page_area):
300
- """Cards are filled or outlined rectangles holding other shapes; compare their spacing.
301
-
302
- The gap inside a card is the smallest clear gap between two shapes it encloses; a shape's
303
- inset to the card's own edge is padding and never counts.
304
- """
305
- ratio = THRESHOLDS["grouping"]["ratio"]
306
- severity = THRESHOLDS["grouping"]["severity"]
307
- boxes = [(shape, deck_craft._box(shape)) for shape in shapes]
308
- cards = [(s, b) for s, b in boxes if b and s.shape_type == MSO_SHAPE_TYPE.AUTO_SHAPE and not deck_craft._text(s)
309
- and (deck_craft._filled(s) or deck_craft._outlined(s)) and 0.5 <= b[2] * b[3] < deck_craft.FULL_BLEED * page_area]
310
- members = {}
311
- for card, cbox in cards:
312
- inside = [b for s, b in boxes if b and s is not card and deck_craft._contains(cbox, b, tol=0.02) and b != cbox]
313
- if inside:
314
- members[id(card)] = (card, cbox, inside)
315
- within = {}
316
- for key, (card, cbox, inside) in members.items():
317
- gaps = [_gap(a, b) for i, a in enumerate(inside) for b in inside[i + 1:]]
318
- gaps = [gap for gap in gaps if gap > 0]
319
- if gaps:
320
- within[key] = min(gaps)
321
- found = []
322
- ordered = list(members.values())
323
- for i, (a, abox, _) in enumerate(ordered):
324
- for b, bbox, _ in ordered[i + 1:]:
325
- inner = max([within[k] for k in (id(a), id(b)) if k in within], default=None)
326
- between = _gap(abox, bbox)
327
- if inner is not None and 0 < between < ratio * inner:
328
- found.append(_finding("OF-105", severity, number, f"{a.name} / {b.name}", f"{between:.2f}in between cards, {inner:.2f}in between shapes inside",
329
- "Space the cards at least twice the gap between their contents apart, or tighten the contents."))
330
- return found
331
-
332
-
333
- def check_run_effects(number, slide):
334
- found = []
335
- for shape in slide.shapes:
336
- element = shape._element
337
- if element.findall(".//" + qn("a:rPr") + "/" + qn("a:gradFill")):
338
- found.append(_finding("OF-106", "HIGH", number, shape.name, "gradient-filled text", "Use a solid text colour; emphasise with weight or size."))
339
- if element.findall(".//" + qn("a:glow")):
340
- found.append(_finding("OF-107", "HIGH", number, shape.name, "glow effect", "Remove the glow; use a solid fill or a thin neutral shadow."))
341
- for bullet in element.iter(qn("a:buChar")):
342
- if EMOJI.search(bullet.get("char") or ""):
343
- found.append(_finding("OF-108", "HIGH", number, shape.name, f"emoji bullet {bullet.get('char')}", "Use the template's bullet or a plain symbol."))
344
- return found
345
-
346
-
347
- def _band(top, bottom, boxes):
348
- """(largest gap before the trailing one, trailing gap) as fractions of the height."""
349
- height = bottom - top
350
- if height <= 0:
351
- return 0.0, 0.0
352
- edges = [top]
353
- cursor = top
354
- for box in sorted(boxes, key=lambda b: b[1]):
355
- edges.append(max(cursor, box[1]))
356
- cursor = max(cursor, box[1] + box[3])
357
- edges.append(cursor)
358
- edges.append(bottom)
359
- gaps = [edges[i + 1] - edges[i] for i in range(0, len(edges) - 1, 2)]
360
- return max(gaps[:-1], default=0.0) / height, gaps[-1] / height
361
-
362
-
363
- def check_bands(number, shapes, area, boxes, page_area, W, H):
364
- t = THRESHOLDS["band"]
365
- found = []
366
- regions = [("slide", area, boxes)]
367
- for shape in shapes:
368
- box = deck_craft._box(shape)
369
- if not box or shape.shape_type != MSO_SHAPE_TYPE.AUTO_SHAPE or deck_craft._text(shape) or not deck_craft._filled(shape):
370
- continue
371
- if not 0.5 <= box[2] * box[3] < deck_craft.FULL_BLEED * page_area:
372
- continue
373
- if deck_craft._bleeds(box, W, H):
374
- continue
375
- inside = [(s, b) for s in shapes for b in [deck_craft._box(s)] if b and s is not shape and deck_craft._contains(box, b, tol=0.02) and b != box]
376
- if not inside:
377
- continue
378
- # A card that is itself display-style (one or two large lines, no visual) is exempt.
379
- large = [s for s, _ in inside if deck_craft._text(s) and deck_craft._max_pt(s) >= deck_craft.DISPLAY_PT]
380
- if large and len(large) <= 2 and not any(deck_craft._is_table(s) or deck_craft._is_chart(s) for s, _ in inside):
381
- continue
382
- regions.append((shape.name, box, [b for _, b in inside]))
383
- bands = {}
384
- for name, region, contents in regions:
385
- if contents:
386
- bands[name] = _band(region[1], region[1] + region[3], [b for b in contents if b[1] < region[1] + region[3]])
387
- # Cards sharing a top edge and height form a row; the row's height imposes a trailing band on
388
- # the card with the least text, so the row counts its smallest trailing band.
389
- tol = t["row_tolerance_in"]
390
- cards = [(name, region) for name, region, _ in regions if name != "slide" and name in bands]
391
- for name, region in cards:
392
- row = [other for other, box in cards if abs(box[1] - region[1]) <= tol and abs(box[3] - region[3]) <= tol]
393
- if len(row) > 1:
394
- bands[name] = (bands[name][0], min(bands[other][1] for other in row))
395
- for name, region, contents in regions:
396
- if name not in bands:
397
- continue
398
- fraction = max(bands[name])
399
- if fraction > t["high"]:
400
- found.append(_finding("OF-109", "HIGH", number, None if name == "slide" else name, f"{fraction:.0%} of the {'content area' if name == 'slide' else 'card'} is one empty band",
401
- "Fill the band with the message's visual, shrink the region to its content, or merge slides."))
402
- elif fraction > t["medium"]:
403
- found.append(_finding("OF-109", "MEDIUM", number, None if name == "slide" else name, f"{fraction:.0%} empty band",
404
- "Tighten the region around its content."))
405
- return found
406
-
407
-
408
- # ── Deck output checks (OF-110..OF-113) ─────────────────────────────────────
409
- #
410
- # These read the compiled deck as a whole: which title treatment each slide really got, how the
411
- # body is partitioned, and how much of the body is left empty. The treatment comes from the title
412
- # frame's geometry and its companions; the name the engine writes (`title@<treatment>`) is only
413
- # compared with it, never trusted on its own. A deck the engine did not build (no `title@` name)
414
- # is out of scope. Decks on a legacy template report the variety checks and the deck median band
415
- # as MEDIUM: whoever names a legacy template has asked for its single look. All geometry is in points.
416
-
417
- TREATMENTS = ("top-rule", "top-plain-large", "side-rail", "band", "statement", "overlay", "kicker-numeral", "bottom-anchor")
418
- # Every content treatment styles the one shared title frame (slide-grid.js), so a slide's title "zone" in the
419
- # composition signature is its treatment: the look varies, the place does not.
420
- ZONE_OF = {t: t for t in TREATMENTS}
421
- OUTPUT = {
422
- "tol": 2.0, "size_tol": 0.5,
423
- "min_slides": 8, "min_treatments": 3,
424
- "variety_cap": 5, "max_share": 0.40,
425
- "band_floor": 486.0, "footer_top": 492.0, "band_deck_max": 0.20,
426
- # Per-slide band caps by density (1-2, 3-4, 5-6, 7-8, 9-10); a slide over its cap is MEDIUM.
427
- "band_caps": ((2, 0.28), (4, 0.24), (6, 0.20), (8, 0.16), (10, 0.12)),
428
- "anchor_tol": 1.0,
429
- }
430
- DIGITS = re.compile(r"\d+(?:[.:/-]\d+)?\.?")
431
- STAMP = re.compile(r"\blit-pptx tonality=(\S+) density=(\d+) grid=(\w+) variance=(\d+)")
432
- MARGIN = {960: {"airy": 60.0, "standard": 48.0, "dense": 36.0, "compact": 24.0}, 720: {"airy": 54.0, "standard": 42.0, "dense": 30.0, "compact": 24.0}}
433
-
434
-
435
- def _pt_box(shape):
436
- try:
437
- if shape.left is None or shape.width is None:
438
- return None
439
- return (shape.left / 12700.0, shape.top / 12700.0, shape.width / 12700.0, shape.height / 12700.0)
440
- except (TypeError, ValueError):
441
- return None
442
-
443
-
444
- def _run_sizes(shape):
445
- sizes = []
446
- if getattr(shape, "has_text_frame", False) and shape.has_text_frame:
447
- for paragraph in shape.text_frame.paragraphs:
448
- sizes += [run.font.size.pt for run in paragraph.runs if run.text.strip() and run.font.size is not None]
449
- return sizes
450
-
451
-
452
- def _elements(slide, W, H):
453
- """Every drawn shape as a dict in points, with its kind and its role (content, card, decoration)."""
454
- out = []
455
- for shape in slide.shapes:
456
- box = _pt_box(shape)
457
- # The engine names the first shape it draws `family@<id>`: a band or a rule keeps its role;
458
- # only an empty marker (no width and no height) is skipped. The notice tag and a pack's grid marks
459
- # in the top margin are page chrome, not composition.
460
- if box is None or box[2] + box[3] <= 0 or shape.name.startswith(("lit-notice", "grid-mark")):
461
- continue
462
- text = deck_craft._text(shape) if getattr(shape, "has_text_frame", False) and shape.has_text_frame else ""
463
- kind = ("picture" if shape.shape_type == MSO_SHAPE_TYPE.PICTURE else "table" if deck_craft._is_table(shape)
464
- else "chart" if deck_craft._is_chart(shape) else "text" if text else "shape")
465
- if kind == "table":
466
- box = (box[0], box[1], box[2], max(box[3], sum(row.height for row in shape.table.rows) / 12700.0))
467
- out.append({"shape": shape, "name": shape.name, "kind": kind, "x": box[0], "y": box[1], "w": box[2], "h": box[3],
468
- "text": text, "sizes": _run_sizes(shape), "filled": kind == "shape" and deck_craft._filled(shape)})
469
- for e in out:
470
- if e["kind"] != "shape":
471
- e["role"] = "content"
472
- continue
473
- bleeds = deck_craft._bleeds((e["x"] / 72, e["y"] / 72, e["w"] / 72, e["h"] / 72), W / 72, H / 72)
474
- holds = any(o["kind"] != "shape" and _centre_in(o, e) for o in out if o is not e)
475
- card = e["filled"] and holds and not bleeds and e["w"] >= 100 and e["h"] >= 40 and e["w"] * e["h"] < 0.5 * W * H
476
- e["role"] = "card" if card else "decoration"
477
- return out
478
-
479
-
480
- def _centre_in(e, box, tol=1.0):
481
- cx, cy = e["x"] + e["w"] / 2, e["y"] + e["h"] / 2
482
- return box["x"] - tol <= cx <= box["x"] + box["w"] + tol and box["y"] - tol <= cy <= box["y"] + box["h"] + tol
483
-
484
-
485
- def _footer(e):
486
- return e["y"] >= OUTPUT["footer_top"]
487
-
488
-
489
- def classify_title(title, els, W, H):
490
- """The title treatment a slide shows, by the tests of the design spec in order; first match wins."""
491
- tol, st = OUTPUT["tol"], OUTPUT["size_tol"]
492
- size = max(title["sizes"] or [0.0])
493
- bottom = title["y"] + title["h"]
494
- others = [e for e in els if e is not title]
495
- body = [e for e in others if not _footer(e) and e["role"] != "decoration"]
496
-
497
- def behind(e):
498
- return (e["x"] - tol <= title["x"] and title["x"] + title["w"] <= e["x"] + e["w"] + tol
499
- and e["y"] - tol <= title["y"] and bottom <= e["y"] + e["h"] + tol)
500
-
501
- if (any(e["kind"] == "picture" and e["w"] * e["h"] >= 0.8 * W * H for e in others) and title["y"] >= 300 - tol
502
- and any(e["kind"] == "shape" and e["filled"] and behind(e) for e in others)):
503
- return "overlay"
504
- if any(e["kind"] == "shape" and e["filled"] and e["y"] <= 2 + tol and 96 - tol <= e["h"] <= 120 + tol
505
- and e["w"] >= 0.9 * W and _centre_in(title, e, tol) for e in others):
506
- return "band"
507
- if (size >= 36 - st and 220 - tol <= title["y"] + title["h"] / 2 <= 380 + tol
508
- and not any(e["kind"] in ("table", "chart", "picture") or e["role"] == "card" for e in body)
509
- and sum(1 for e in body if e["kind"] == "text") <= 1):
510
- return "statement"
511
- bottom_frame = title["y"] + title["h"]
512
- content_w = W - 2 * title["x"]
513
- shapes = [e for e in others if e["kind"] == "shape" and e["filled"]]
514
- # A heavy rule across the columns closing the title frame.
515
- if any(2 - st <= e["h"] <= 4 + st and e["w"] >= 0.9 * content_w and bottom_frame - tol <= e["y"] <= bottom_frame + 8 for e in shapes):
516
- return "bottom-anchor"
517
- # A bar in the left margin, at least as tall as the title frame.
518
- if any(e["x"] <= 1 and e["w"] <= 14 and e["h"] >= title["h"] - tol and e["y"] <= title["y"] + tol and e["y"] + e["h"] >= bottom_frame - tol
519
- for e in shapes):
520
- return "side-rail"
521
- for e in others:
522
- if (e["kind"] == "text" and e["sizes"] and DIGITS.fullmatch(e["text"]) and max(e["sizes"]) >= 40 - st
523
- and e["x"] >= title["x"] + title["w"] - tol and e["y"] >= title["y"] - tol and e["y"] + e["h"] <= bottom_frame + tol):
524
- return "kicker-numeral"
525
- if title["y"] <= 48 + tol:
526
- # A rule is a line (wider than 16 pt and four times its height), never a list-marker dot.
527
- rule = any(e["kind"] == "shape" and e["h"] <= 8 and e["w"] >= max(16, 4 * e["h"]) and title["y"] < e["y"] <= bottom + 24
528
- and e["x"] < title["x"] + title["w"] and e["x"] + e["w"] > title["x"] for e in others)
529
- if size >= 36 - st and not rule:
530
- return "top-plain-large"
531
- if size <= 32 + st and rule:
532
- return "top-rule"
533
- return "unclassified"
534
-
535
-
536
- def _is_number(e):
537
- """A text run of 44 pt or more that is mostly digits is a number, not text."""
538
- compact = re.sub(r"\s+", "", e["text"])
539
- digits = len(re.findall(r"\d", compact))
540
- return e["kind"] == "text" and bool(e["sizes"]) and max(e["sizes"]) >= 44 - OUTPUT["size_tol"] and digits / max(1, len(compact)) >= 0.5
541
-
542
-
543
- def composition(title, treatment, els, W, H, margin):
544
- """(title zone, body partition, dominant content) of one slide.
545
-
546
- Body boxes are clustered by their x-extent: two boxes overlapping by half the narrower one share
547
- a column. A box wider than 70 % of the body (a takeaway under two columns) never merges columns.
548
- """
549
- zone = ZONE_OF.get(treatment, "none")
550
- if treatment == "statement":
551
- return (zone, "one", "text")
552
- body = []
553
- for e in els:
554
- if e is title or _footer(e) or e["role"] == "decoration":
555
- continue
556
- if e["kind"] == "shape" and title is not None and _centre_in(title, e, 0):
557
- continue # the panel that carries the title
558
- if e["name"].startswith(("numeral@", "header@")):
559
- continue
560
- if e["kind"] == "text" and e["h"] <= 16 and e["y"] + e["h"] >= OUTPUT["band_floor"] - 2:
561
- continue # a one-line caption or source on the body floor is the slide's foot, not a column
562
- body.append(e)
563
- cards = [e for e in body if e["role"] == "card"]
564
- blocks = [e for e in body if not any(c is not e and _centre_in(e, c) for c in cards)]
565
- if any(e["kind"] == "picture" and e["w"] * e["h"] >= 0.8 * W * H for e in els):
566
- partition = "full-bleed"
567
- elif not blocks:
568
- partition = "one"
569
- else:
570
- narrow = [e for e in blocks if e["w"] < 0.7 * (W - 2 * margin)] or blocks
571
- columns = []
572
- for e in sorted(narrow, key=lambda e: e["x"]):
573
- hits = [c for c in columns if min(c["r"], e["x"] + e["w"]) - max(c["l"], e["x"]) >= 0.5 * min(c["r"] - c["l"], e["w"])]
574
- if hits:
575
- keep = hits[0]
576
- for other in hits[1:]:
577
- keep["l"], keep["r"] = min(keep["l"], other["l"]), max(keep["r"], other["r"])
578
- keep["items"] += other["items"]
579
- columns.remove(other)
580
- keep["l"], keep["r"] = min(keep["l"], e["x"]), max(keep["r"], e["x"] + e["w"])
581
- keep["items"].append(e)
582
- else:
583
- columns.append({"l": e["x"], "r": e["x"] + e["w"], "items": [e]})
584
- column_of = {id(item): n for n, c in enumerate(columns) for item in c["items"]}
585
- rows = []
586
- for e in sorted(narrow, key=lambda e: e["y"]):
587
- if rows and e["y"] < rows[-1]["bottom"] - 2:
588
- rows[-1]["bottom"] = max(rows[-1]["bottom"], e["y"] + e["h"])
589
- rows[-1]["items"].append(e)
590
- else:
591
- rows.append({"bottom": e["y"] + e["h"], "items": [e]})
592
- grid_rows = sum(1 for r in rows if len({column_of[id(i)] for i in r["items"]}) >= 2)
593
- k = len(columns)
594
- if k >= 4 or (k >= 2 and grid_rows >= 2):
595
- partition = "grid"
596
- elif k == 3:
597
- partition = "three"
598
- elif k == 2:
599
- a, b = (c["r"] - c["l"] for c in columns)
600
- partition = "two-even" if min(a, b) / max(a, b) >= 0.85 else "two-asym"
601
- else:
602
- partition = "one"
603
- area = {}
604
- kinds = {"picture": "image", "table": "table", "chart": "chart"}
605
- for e in blocks:
606
- if e["kind"] in kinds:
607
- key = kinds[e["kind"]]
608
- elif e["kind"] == "text":
609
- key = "number" if _is_number(e) else "text"
610
- else:
611
- continue
612
- area[key] = area.get(key, 0.0) + e["w"] * e["h"]
613
- for c in cards:
614
- inner = [e for e in body if e is not c and _centre_in(e, c)]
615
- key = "number" if any(_is_number(e) for e in inner) else "text"
616
- area[key] = area.get(key, 0.0) + c["w"] * c["h"]
617
- dominant = max(area, key=area.get) if area else "text"
618
- return (zone, partition, dominant)
619
-
620
-
621
- def bottom_band(title, els, top_margin=36.0):
622
- """Share of the body zone left empty under its lowest content, from the title bottom (or the top
623
- margin when the title sits low) to the body floor; decoration, footer and notice excluded."""
624
- floor = OUTPUT["band_floor"]
625
- top = title["y"] + title["h"] if title is not None and title["y"] + title["h"] < floor * 0.6 else top_margin
626
- if floor - top < 10:
627
- return None
628
- ink = [e for e in els if e["role"] != "decoration" and not _footer(e) and e["y"] < floor and e["y"] + e["h"] > top]
629
- lowest = max((min(floor, e["y"] + e["h"]) for e in ink), default=top)
630
- return max(0.0, (floor - lowest) / (floor - top))
631
-
632
-
633
- def _slide_kind(family):
634
- for kind in ("cover", "section", "closing"):
635
- if family == kind or family.startswith(kind + "-"):
636
- return kind
637
- return "content"
638
-
639
-
640
- def _variance_max(variance):
641
- return 2 if variance <= 3 else 3 if variance == 4 else 4 if variance <= 6 else 5
642
-
643
-
644
- def read_deck(prs) -> dict:
645
- """Every slide's elements, family, kind, written and drawn title treatment, and the deck's dials."""
646
- W, H = prs.slide_width / 12700.0, prs.slide_height / 12700.0
647
- stamp = STAMP.search(prs.core_properties.subject or "")
648
- density, variance = (int(stamp.group(2)), int(stamp.group(4))) if stamp else (5, 5)
649
- margin = MARGIN[960 if round(W) == 960 else 720].get(stamp.group(3) if stamp else "standard", 48.0)
650
- slides = []
651
- for number, slide in enumerate(prs.slides, start=1):
652
- els = _elements(slide, W, H)
653
- family = next((s.name.split("@", 1)[1] for s in slide.shapes if s.name.startswith("family@")), "")
654
- title = next((e for e in els if e["name"].startswith("title@")), None)
655
- written = title["name"].split("@", 1)[1] if title else None
656
- treatment = classify_title(title, els, W, H) if title and title["sizes"] else None
657
- s = {"n": number, "W": W, "H": H, "slide": slide, "els": els, "family": family, "kind": _slide_kind(family), "title": title,
658
- "written": written, "treatment": treatment}
659
- if s["kind"] == "content":
660
- s["signature"] = composition(title, treatment, els, W, H, margin)
661
- slides.append(s)
662
- return {"W": W, "H": H, "stamp": stamp, "density": density, "variance": variance, "margin": margin, "slides": slides,
663
- "legacy": any(s["written"] == "legacy" for s in slides), "engine": any(s["written"] for s in slides)}
664
-
665
-
666
- def analyse_output(prs) -> list:
667
- """OF-110..OF-113 and OF-115 over the whole deck."""
668
- deck = read_deck(prs)
669
- W, H, stamp, density, variance, slides = deck["W"], deck["H"], deck["stamp"], deck["density"], deck["variance"], deck["slides"]
670
- if not deck["engine"]:
671
- return [] # not built by this engine: nothing to compare against
672
- variety = "MEDIUM" if deck["legacy"] else "HIGH"
673
- found = []
674
- for s in slides:
675
- if s["written"] in TREATMENTS and s["treatment"] not in (None, s["written"]):
676
- found.append(_finding("OF-110", "HIGH", s["n"], s["title"]["name"], f"the title is drawn as {s['treatment']}, named {s['written']}",
677
- "Use the treatment's own geometry and companions; the written name must match what is drawn."))
678
- # OF-110: distinct title treatments over the slides that carry one. Cover and section titles
679
- # are variants of their own (a section keeps the statement frame), so they are not counted.
680
- titled = [s for s in slides if s["kind"] not in ("cover", "section") and s["treatment"]]
681
- used = sorted({s["treatment"] for s in titled} - {"unclassified"})
682
- unclassified = [s["n"] for s in titled if s["treatment"] == "unclassified"]
683
- if len(slides) >= OUTPUT["min_slides"]:
684
- if variance <= 3 and len(used) < OUTPUT["min_treatments"]:
685
- found.append(_finding("OF-110", "MEDIUM", None, None, f"{len(used)} title treatment(s); variety lowered by the user (variance {variance})",
686
- "Variance below 4 is set only on the user's request; say so in the reply."))
687
- elif len(used) < OUTPUT["min_treatments"]:
688
- found.append(_finding("OF-110", variety, None, None, f"{len(used)} title treatment(s) ({', '.join(used) or 'none'}) on {len(slides)} slides",
689
- "Map slide roles to the pack's treatments: data under a side rail or a bottom title, sequences under a numeral, claims as statements."))
690
- elif stamp and len(used) > _variance_max(variance):
691
- found.append(_finding("OF-110", variety, None, None, f"{len(used)} title treatments, variance {variance} allows {_variance_max(variance)}",
692
- "Lower the number of treatments or raise variance (by at most 2 without asking)."))
693
- if unclassified:
694
- found.append(_finding("OF-110", variety, unclassified[0], None, f"no treatment recognised on slide(s) {', '.join(map(str, unclassified))}",
695
- "Place the title on one of the eight treatment frames; never position a title by hand."))
696
- # OF-111: composition signatures over content slides (cover, section and closing excluded).
697
- content = [s for s in slides if s["kind"] == "content"]
698
- if content:
699
- need = min(OUTPUT["variety_cap"], -(-len(content) * 3 // 5))
700
- problems = []
701
- for label, key in (("signature", lambda s: s["signature"]), ("layout", lambda s: s["signature"][:2])):
702
- counts = {}
703
- for s in content:
704
- counts[key(s)] = counts.get(key(s), 0) + 1
705
- top, top_n = max(counts.items(), key=lambda kv: kv[1])
706
- if len(counts) < need:
707
- problems.append(f"{label}: {len(counts)} distinct, needs {need}")
708
- if top_n / len(content) > OUTPUT["max_share"]:
709
- slides_hit = [s["n"] for s in content if key(s) == top]
710
- problems.append(f"{label}: {'/'.join(top)} on {top_n} of {len(content)} content slides ({', '.join(map(str, slides_hit))})")
711
- if problems and len(content) >= 3:
712
- found.append(_finding("OF-111", variety, None, None, "; ".join(problems),
713
- "Change the family or the title treatment on the repeated slides; let each slide's job pick its shape."))
714
- # OF-112: the body is used; per slide against the density cap, the deck median against 0.20.
715
- cap = next(c for upto, c in OUTPUT["band_caps"] if density <= upto)
716
- bands = []
717
- for s in slides:
718
- if s["kind"] in ("cover", "section") or s["family"] in ("statement", "quote", "closing-statement") or s["treatment"] == "statement":
719
- continue
720
- band = bottom_band(s["title"], s["els"])
721
- if band is None:
722
- continue
723
- bands.append(band)
724
- if band > cap:
725
- found.append(_finding("OF-112", "MEDIUM", s["n"], None, f"{band:.0%} of the body is empty under the last block (cap {cap:.0%} at density {density})",
726
- "Apply the pack's fill order: larger type, a grown visual, wider gaps, or a family that fits the content."))
727
- if bands:
728
- bands.sort()
729
- mid = len(bands) // 2
730
- median = bands[mid] if len(bands) % 2 else (bands[mid - 1] + bands[mid]) / 2
731
- if median > OUTPUT["band_deck_max"]:
732
- # A legacy template has no fill policies: its sparse pages could only be "fixed" with
733
- # padding, so the median is advisory there and OF-109 still blocks a hollow slide.
734
- found.append(_finding("OF-112", variety, None, None, f"median empty band {median:.2f} over {len(bands)} slides (limit {OUTPUT['band_deck_max']:.2f})",
735
- "Give the content slides content that reaches the floor: a takeaway under a table, the next step under an ask, a supporting fact under a claim."))
736
- # OF-113: every content title on one frame and every display title (a statement, a quote, a closing
737
- # statement) on another, whatever its treatment: a treatment changes the look, never the place. A title
738
- # over a full-bleed picture (overlay) keeps its own panel. Slides are grouped by the treatment they name,
739
- # so a title moved so far that it no longer reads as any treatment is still measured.
740
- groups = {}
741
- for s in titled:
742
- if s["written"] in TREATMENTS and s["written"] != "overlay":
743
- groups.setdefault("display" if s["written"] == "statement" else "content", []).append(s)
744
- for frame, group in groups.items():
745
- modes = {}
746
- for k in ("x", "y", "w", "h"):
747
- values = [round(s["title"][k]) for s in group]
748
- modes[k] = max(set(values), key=values.count)
749
- for s in group:
750
- off = [f"{k} {s['title'][k]:.0f} vs {modes[k]}" for k in modes if abs(s["title"][k] - modes[k]) > OUTPUT["anchor_tol"]]
751
- if off:
752
- found.append(_finding("OF-113", "HIGH", s["n"], s["title"]["name"], f"{s['treatment']} title off the shared {frame} title frame: {', '.join(off)}",
753
- "Every title sits on the slide grid's title zone; fix the source, never nudge a title."))
754
- found += empty_regions(deck)
755
- found += agenda_numerals(deck)
756
- return found
757
-
758
-
759
- # ── OF-115: no region left empty ────────────────────────────────────────────
760
- #
761
- # The bottom band (OF-112) reads the body as one page. A region can still stand empty beside a full one:
762
- # the takeaway column beside a chart that runs to the floor, the panel that carries a title over a picture,
763
- # and the open page above a plate. Each reading is a share of its own region (40 %).
764
- REGION = {"share": 0.40}
765
-
766
-
767
- def _largest_gap(top, bottom, spans):
768
- """The tallest stretch of [top, bottom] that no (y0, y1) span covers."""
769
- gap, cursor = 0.0, top
770
- for y0, y1 in sorted(spans):
771
- if y1 <= cursor:
772
- continue
773
- gap = max(gap, max(0.0, min(y0, bottom) - cursor))
774
- cursor = max(cursor, y1)
775
- return max(gap, bottom - cursor)
776
-
777
-
778
- def _short_column(s, content, title, body_floor):
779
- """A column of a two-column body that stops short of its neighbour: the largest empty band inside it, from
780
- the body's top down to where the neighbour ends, is over 40 % of the body. A source or note strip that
781
- closes the column does not hide the band above it (spec-v2 Amendments 8). Beside the figures of a kpi-row or
782
- big-number slide the column is measured to the body floor (Amendments 9)."""
783
- tol = OUTPUT["tol"]
784
- top_of_title = title["y"] + title["h"]
785
- W, H = s["W"], s["H"]
786
- fields = [e for e in s["els"] if e["kind"] == "shape" and e["filled"] and e["w"] * e["h"] >= 0.1 * W * H]
787
- body = [e for e in content if e["y"] >= top_of_title - tol and e["y"] < body_floor and e["w"] > 0 and e["h"] > 0
788
- and not any(_centre_in(e, f) for f in fields)]
789
- if len(body) < 2:
790
- return None
791
- left_edge, right_edge = min(e["x"] for e in body), max(e["x"] + e["w"] for e in body)
792
- for cut in sorted({e["x"] + e["w"] for e in body}):
793
- a = [e for e in body if e["x"] + e["w"] <= cut + tol]
794
- b = [e for e in body if e["x"] >= cut - tol]
795
- # A block across most of the body (a note under both columns) belongs to neither column; a narrower block
796
- # across the cut means there is no column line here.
797
- across = [e for e in body if e not in a and e not in b]
798
- if not a or not b or any(e["w"] < 0.7 * (right_edge - left_edge) for e in across):
799
- continue
800
- top = min(e["y"] for e in a + b)
801
- for column, other in ((a, b), (b, a)):
802
- # A takeaway column beside a chart that closes with the chart's values: the table is read at its drawn extent.
803
- values = any(e["kind"] == "chart" for e in other) and any(e["kind"] == "text" for e in column) \
804
- and not any(e["kind"] in ("chart", "picture") for e in column)
805
- # A text column, or a picture drawn smaller than its column, beside a column that runs on.
806
- if not any(e["kind"] in ("text", "picture") for e in column) or (any(e["kind"] in ("chart", "table") for e in column) and not values):
807
- continue
808
- # Row heads (a matrix's or a comparison's short labels, each level with its row) are not a column to fill.
809
- if all(e["kind"] == "text" and e["h"] <= 56 and len(re.sub(r"\s+", "", e["text"])) <= 16 for e in column):
810
- continue
811
- # Measured whatever the neighbour's length: a neighbour that stops short still marks how far the column should run.
812
- reach = min(body_floor, max(e["y"] + e["h"] for e in other))
813
- # A takeaway column beside the figures of a kpi-row or big-number slide runs to the body floor: the figure
814
- # rows stop where their spacing ends, not where the slide's content does (spec-v2 Amendments 9).
815
- # The figures' own labels stand exactly level with figures below the first row; they are part of the stack.
816
- size = lambda side: max([max(e["sizes"]) for e in side if e["kind"] == "text" and e["sizes"]] or [0.0])
817
- figures = [e for e in other if e["kind"] == "text" and e["sizes"] and max(e["sizes"]) > size(column) + 4]
818
- labels = any(abs(e["y"] - f["y"]) <= 0.5 and f["y"] > top + tol for e in column for f in figures)
819
- if s["family"] in ("kpi-row", "big-number") and figures and not labels:
820
- reach = body_floor
821
- gap = _largest_gap(top, reach, [(e["y"], e["y"] + e["h"]) for e in column])
822
- share = gap / max(1.0, body_floor - top)
823
- if share > REGION["share"]:
824
- return _finding("OF-115", "HIGH", s["n"], column[0]["name"],
825
- f"the {'picture' if any(e['kind'] == 'picture' for e in column) else 'text'} column beside a longer one leaves {share:.0%} of the body empty inside it",
826
- "Fill the column by layout: lead size, the source and values in the column, a narrower column with a wider visual, or the points under the visual.")
827
- return None
828
-
829
-
830
- def empty_regions(deck) -> list:
831
- W, H = deck["W"], deck["H"]
832
- floor = OUTPUT["band_floor"]
833
- tol = OUTPUT["tol"]
834
- found = []
835
- for s in deck["slides"]:
836
- title, treatment = s["title"], s["treatment"]
837
- content = [e for e in s["els"] if e is not title and e["role"] != "decoration" and not _footer(e)
838
- and not (e["kind"] == "picture" and e["w"] * e["h"] >= 0.8 * W * H)]
839
- if s["kind"] in ("content", "closing") and title is not None and title["sizes"]:
840
- # A takeaway column beside a chart, table or picture that runs on below it.
841
- body_floor = floor
842
- short = _short_column(s, content, title, body_floor)
843
- if short:
844
- found.append(short)
845
- for v in ([] if short else [e for e in content if e["kind"] in ("chart", "table", "picture")]):
846
- beside = [e for e in content if e["kind"] == "text" and e["y"] < v["y"] + v["h"] and e["y"] + e["h"] > v["y"]
847
- and (e["x"] >= v["x"] + v["w"] - tol or e["x"] + e["w"] <= v["x"] + tol)]
848
- # Text set on a colour field (a closing's ask field) stands on its own ground, not in a column.
849
- fields = [e for e in s["els"] if e["kind"] == "shape" and e["filled"] and e["w"] * e["h"] >= 0.1 * W * H]
850
- beside = [e for e in beside if not any(_centre_in(e, f) for f in fields)]
851
- if not beside:
852
- continue
853
- left, right = min(e["x"] for e in beside), max(e["x"] + e["w"] for e in beside)
854
- in_column = lambda e, l=left, r=right: l - tol <= e["x"] + e["w"] / 2 <= r + tol
855
- in_visual = lambda e, vv=v: vv["x"] - tol <= e["x"] + e["w"] / 2 <= vv["x"] + vv["w"] + tol
856
- top = min([v["y"]] + [e["y"] for e in beside])
857
- column = max(e["y"] + e["h"] for e in content if in_column(e))
858
- visual = min(body_floor, max(e["y"] + e["h"] for e in content if in_visual(e)))
859
- share = (visual - column) / max(1.0, body_floor - top)
860
- if share > REGION["share"]:
861
- found.append(_finding("OF-115", "HIGH", s["n"], v["name"], f"the column beside the {v['kind']} leaves {share:.0%} of the body empty under its last block",
862
- "Close the column with the source and note lines, the chart's values or the takeaways; never stretch the visual alone."))
863
- break
864
- if s["kind"] in ("cover", "section") or treatment in ("statement", "overlay"):
865
- if title is None:
866
- continue
867
- # A title panel over a picture, and a plate under a statement or quote; a typographic cover's
868
- # plate is a display device of the cover, not a region its text must fill.
869
- pictured = any(e["kind"] == "picture" and e["w"] * e["h"] >= 0.8 * W * H for e in s["els"])
870
- for p in [e for e in s["els"] if e["kind"] == "shape" and e["filled"] and _centre_in(title, e) and e["w"] * e["h"] < 0.9 * W * H]:
871
- inside = [e for e in content + [title] if e is not p and _centre_in(e, p)]
872
- if p["y"] > tol and pictured:
873
- region_floor = min(p["y"] + p["h"], floor)
874
- share = _largest_gap(p["y"], region_floor, [(e["y"], e["y"] + e["h"]) for e in inside]) / max(1.0, region_floor - p["y"])
875
- if share > REGION["share"]:
876
- found.append(_finding("OF-115", "HIGH", s["n"], p["name"], f"{share:.0%} of the panel that carries the title is empty",
877
- "Make the panel as tall as the title and its lines, standing on the page foot."))
878
- if p["y"] > tol and treatment == "statement" and p["w"] >= 0.9 * W and not any(e["y"] + e["h"] <= p["y"] + tol for e in content):
879
- found.append(_finding("OF-115", "HIGH", s["n"], p["name"], "a plate under part of the page leaves the open page above it empty",
880
- "Set the sentence on the whole-page field or on the open page; a plate needs content above it."))
881
- return found
882
-
883
-
884
- # ── OF-116: another tonality of the same source sets everything in the same places ─────
885
- #
886
- # Titles, headers and the body sit on the shared slide grid (slide-grid.js), so two tonalities of one source
887
- # may differ in every look but never in where a slide's title frame and its body's top-left corner stand.
888
- # Slides are compared in order; a slide the other deck lacks is not compared.
889
-
890
-
891
- def placement(prs) -> list:
892
- """Per slide: the title frame and the top-left corner of what stands under it, in points."""
893
- out = []
894
- for s in read_deck(prs)["slides"]:
895
- t = s["title"]
896
- if t is None:
897
- out.append(None)
898
- continue
899
- under = [e for e in s["els"] if e is not t and e["role"] != "decoration" and not _footer(e) and e["y"] >= t["y"] + t["h"] - OUTPUT["tol"]
900
- and not e["name"].startswith(("header@", "numeral@", "subtitle@"))]
901
- corner = (min(e["x"] for e in under), min(e["y"] for e in under)) if under and s["kind"] == "content" else None
902
- out.append({"n": s["n"], "title": (t["x"], t["y"], t["w"], t["h"]), "body": corner})
903
- return out
904
-
905
-
906
- def compare_placement(path: Path, sibling: Path) -> list:
907
- a, b = placement(Presentation(str(path))), placement(Presentation(str(sibling)))
908
- tol = OUTPUT["anchor_tol"]
909
- moved = []
910
- for x, y in zip(a, b):
911
- if x is None or y is None:
912
- continue
913
- if any(abs(p - q) > tol for p, q in zip(x["title"], y["title"])):
914
- moved.append(f"slide {x['n']} title at {[round(v) for v in x['title']]} vs {[round(v) for v in y['title']]}")
915
- elif x["body"] and y["body"] and any(abs(p - q) > tol for p, q in zip(x["body"], y["body"])):
916
- moved.append(f"slide {x['n']} body from {tuple(round(v) for v in x['body'])} vs {tuple(round(v) for v in y['body'])}")
917
- if not moved:
918
- return []
919
- return [_finding("OF-116", "HIGH", None, None, f"{len(moved)} slide(s) placed differently from {Path(sibling).name}: {'; '.join(moved[:4])}",
920
- "A tonality changes the look of a zone, never its place: draw the title and the body on the slide grid's zones.")]
921
-
922
-
923
- # ── OF-117: no light figure card on a dark ground ───────────────────────────
924
- #
925
- # A chart or diagram exported on white, placed on a dark ground, reads as a white card with small grey
926
- # labels. A figure is a picture of mostly near-white pixels; a photograph rarely is.
927
- FIGURE = {"ground_max": 0.25, "near_white": 235, "share": 0.5, "min_area": 0.03}
928
-
929
-
930
- def light_figures(number, slide, W, H) -> list:
931
- try:
932
- rgb = slide.background.fill.fore_color.rgb if slide.background.fill.type == 1 else None
933
- except (AttributeError, TypeError, ValueError):
934
- rgb = None
935
- if rgb is None:
936
- return []
937
- r, g, b = (int(str(rgb)[i:i + 2], 16) / 255 for i in (0, 2, 4))
938
- if 0.2126 * r + 0.7152 * g + 0.0722 * b > FIGURE["ground_max"]:
939
- return []
940
- try:
941
- import io
942
- from PIL import Image
943
- except ImportError:
944
- return []
945
- found = []
946
- for shape in slide.shapes:
947
- if shape.shape_type != MSO_SHAPE_TYPE.PICTURE:
948
- continue
949
- box = _pt_box(shape)
950
- if not box or not FIGURE["min_area"] * W * H <= box[2] * box[3] < 0.8 * W * H:
951
- continue
952
- with Image.open(io.BytesIO(shape.image.blob)) as im:
953
- raw = im.convert("RGB").resize((64, 64)).tobytes()
954
- share = sum(1 for i in range(0, len(raw), 3) if min(raw[i:i + 3]) >= FIGURE["near_white"]) / (len(raw) / 3)
955
- if share > FIGURE["share"]:
956
- found.append(_finding("OF-117", "HIGH", number, shape.name, f"a light figure ({share:.0%} near-white) on a dark ground",
957
- "Supply the figure's dark variant beside it (name.dark.png) or draw it as a native chart."))
958
- return found
959
-
960
-
961
- # ── OF-118: a run-in label keeps its separator ─────────────────────────────
962
- #
963
- # A point that opens with a bold label and runs on in regular weight reads as one sentence when nothing
964
- # separates the two ("요약 앱에서 …"): the label takes a colon unless it ends in its own separator.
965
- RUN_IN_SEPARATOR = re.compile(r"[::.)\]?!–—\-]$")
966
-
967
-
968
- def check_run_ins(number, slide) -> list:
969
- found = []
970
- for shape in slide.shapes:
971
- if not getattr(shape, "has_text_frame", False) or not shape.has_text_frame or shape.name.startswith(("title@", "lit-notice")):
972
- continue
973
- for paragraph in shape.text_frame.paragraphs:
974
- runs = [r for r in paragraph.runs if r.text]
975
- if len(runs) < 2 or not runs[0].font.bold or runs[1].font.bold:
976
- continue
977
- label, rest = runs[0].text, runs[1].text
978
- if not label.strip() or not re.search(r"\w", rest) or RUN_IN_SEPARATOR.search(label.strip()) or rest.lstrip()[:1] in "::":
979
- continue
980
- found.append(_finding("OF-118", "HIGH", number, shape.name, f"bold run-in label without a separator: {(label + rest)[:40]}",
981
- "Write the label with its colon (**요약:** …), or let the engine set it; never run a bold label into the sentence."))
982
- return found
983
-
984
-
985
- # ── OF-119: no count numeral beside an agenda title ────────────────────────
986
-
987
-
988
- def agenda_numerals(deck) -> list:
989
- return [_finding("OF-119", "HIGH", s["n"], s["title"]["name"], "a numeral beside the agenda title repeats the count of its numbered rows",
990
- "An agenda takes a title without a numeral; its rows carry the numbers.")
991
- for s in deck["slides"] if s["family"] == "agenda" and s["treatment"] == "kicker-numeral"]
992
-
993
-
994
- # ── OF-114: titles are labels ───────────────────────────────────────────────
995
- #
996
- # A title names what the slide covers; the claim goes in the body. Korean is read on its last word
997
- # (어절): a sentence ending or a nominalised claim makes the title a sentence. English is read for a
998
- # final period or a finite verb (an auxiliary, or a report verb in the past or third person). A
999
- # trailing parenthesis is set aside first ("… 요청 (18개월)"). A question is not a claim.
1000
-
1001
- KO_SENTENCE = re.compile(r"(?:니다|[어아해세에예네지군래게]요|죠|[었았였했겠됐](?:다|음)|[가-힣]다|[가-힣](?:함|됨)|(?:있|없)음)$")
1002
- KO_NOT_SENTENCE = {"바다", "판다", "소다", "람다", "캐나다", "어젠다", "아젠다", "포함", "보다", "함", "다"}
1003
- EN_AUX = re.compile(r"\b(?:is|are|was|were|has|have|had|will|would|can|could|should|must|does|did|won't|isn't|aren't|wasn't|doesn't|didn't)\b", re.I)
1004
- EN_VERBS = {
1005
- "grew", "grows", "rose", "rises", "fell", "falls", "doubled", "doubles", "tripled", "triples", "halved", "halves",
1006
- "increased", "increases", "decreased", "decreases", "declined", "declines", "improved", "improves", "dropped", "drops",
1007
- "climbed", "climbs", "beats", "outperforms", "outperformed", "leads", "drives", "drove", "shows", "showed", "needs",
1008
- "makes", "reached", "reaches", "exceeded", "exceeds", "missed", "misses", "stays", "stayed", "remains", "remained",
1009
- "comes", "came", "takes", "took", "works", "worked", "pays", "paid", "saves", "saved", "explains", "explained",
1010
- "matters", "wins", "won", "lost", "loses", "cuts", "lifts", "lifted", "slowed", "slows", "fails", "failed",
1011
- }
1012
-
1013
-
1014
- def declarative_title(text: str) -> bool:
1015
- """True when a title or subtitle states a claim as a sentence instead of naming a topic."""
1016
- t = re.sub(r"\s+", " ", str(text or "")).strip()
1017
- t = re.sub(r"\s*\([^()]*\)$", "", t).strip().rstrip("\"'”’")
1018
- if not t or t.endswith("?") or t[0] in "“\"「『‘'":
1019
- return False # a question, or a quotation set as the slide's statement
1020
- if re.search(r"[가-힣]", t):
1021
- last = re.sub(r"[.!…]+$", "", t.split(" ")[-1])
1022
- return last not in KO_NOT_SENTENCE and bool(KO_SENTENCE.search(last))
1023
- if t.endswith(".") or t.endswith("!"):
1024
- return True
1025
- words = re.findall(r"[A-Za-z']+", t)
1026
- return bool(EN_AUX.search(t)) or any(w.lower() in EN_VERBS for w in words[1:])
1027
-
1028
-
1029
- def check_labels(prs) -> list:
1030
- """OF-114 over every engine-drawn title and the cover subtitle."""
1031
- found = []
1032
- named = [(number, shape) for number, slide in enumerate(prs.slides, start=1) for shape in slide.shapes
1033
- if shape.name.startswith(("title@", "subtitle@")) and getattr(shape, "has_text_frame", False) and shape.has_text_frame]
1034
- legacy = any(shape.name == "title@legacy" for _, shape in named)
1035
- for number, shape in named:
1036
- text = re.sub(r"\s+", " ", shape.text_frame.text).strip()
1037
- if declarative_title(text):
1038
- what = "subtitle" if shape.name.startswith("subtitle@") else "title"
1039
- found.append(_finding("OF-114", "MEDIUM" if legacy else "HIGH", number, shape.name,
1040
- f"the {what} is a sentence: {text[:60]}",
1041
- "Name the topic as a label (분기별 매출 추이; Conversion by feed rate) and move the claim into the body: the first takeaway, point or caption."))
1042
- return found
1043
-
1044
-
1045
- def analyse(path: Path) -> dict:
1046
- prs = Presentation(str(path))
1047
- W, H = prs.slide_width / EMU_PER_IN, prs.slide_height / EMU_PER_IN
1048
- page_area = W * H
1049
- findings = analyse_output(prs) + check_labels(prs)
1050
- allowed = pack_allowances(prs)
1051
- for number, slide in enumerate(prs.slides, start=1):
1052
- shapes = [s for s in slide.shapes if not s.name.startswith("lit-notice")]
1053
- layout = deck_craft.slide_layout(shapes, W, H, page_area)
1054
- findings += check_run_effects(number, slide)
1055
- findings += check_run_ins(number, slide)
1056
- findings += light_figures(number, slide, W * PT_PER_IN, H * PT_PER_IN)
1057
- findings += check_accents(slide, number, shapes, page_area, layout["display"], allowed)
1058
- findings += check_shadows(number, slide, allowed)
1059
- findings += check_numeric_columns(number, shapes)
1060
- findings += check_concentric(number, shapes)
1061
- if layout["display"]:
1062
- continue
1063
- findings += check_measure(number, shapes, layout["title"])
1064
- findings += check_grouping(number, shapes, page_area)
1065
- findings += check_bands(number, shapes, layout["area"], layout["boxes"], page_area, W, H)
1066
- return {"file": str(path), "pass": not any(f["severity"] == "HIGH" for f in findings), "findings": findings}
1067
-
1068
-
1069
- def main(argv):
1070
- if not argv:
1071
- print(__doc__)
1072
- return 2
1073
- print(json.dumps(analyse(Path(argv[0])), ensure_ascii=False, indent=2))
1074
- return 0
1075
-
1076
-
1077
- if __name__ == "__main__":
1078
- raise SystemExit(main(_sys.argv[1:]))