@litfamily/litgravity 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1434) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/LICENSE +22 -0
  3. package/README.md +146 -2
  4. package/README_ko-KR.md +147 -0
  5. package/bin/litgravity.mjs +123 -0
  6. package/lib/agy.mjs +54 -0
  7. package/lib/bundle.mjs +141 -0
  8. package/lib/doctor.mjs +184 -0
  9. package/lib/guard.mjs +12 -0
  10. package/lib/host-tools.mjs +69 -0
  11. package/lib/install.mjs +130 -0
  12. package/lib/list.mjs +39 -0
  13. package/lib/models.mjs +36 -0
  14. package/lib/paths.mjs +28 -0
  15. package/lib/runtime.mjs +81 -0
  16. package/lib/safe-write.mjs +55 -0
  17. package/lib/statusline.mjs +99 -0
  18. package/lib/uninstall.mjs +60 -0
  19. package/lib/update-check.mjs +28 -0
  20. package/package.json +51 -4
  21. package/plugin/agents/.gitkeep +0 -0
  22. package/plugin/agents/korean-prose-editor.md +62 -0
  23. package/plugin/agents/korean-style-analyzer.md +59 -0
  24. package/plugin/agents/librarian-researcher.md +60 -0
  25. package/plugin/agents/lit-executor.md +61 -0
  26. package/plugin/agents/lit-planner.md +68 -0
  27. package/plugin/agents/lit-verifier.md +58 -0
  28. package/plugin/agents/meaning-preservation-auditor.md +57 -0
  29. package/plugin/agents/native-flow-reviewer.md +56 -0
  30. package/plugin/agents/polish-orchestrator.md +60 -0
  31. package/plugin/agents/qa-runner.md +53 -0
  32. package/plugin/agents/quality-reviewer.md +58 -0
  33. package/plugin/hooks/lib/boundary.mjs +106 -0
  34. package/plugin/hooks/lib/common.mjs +208 -0
  35. package/plugin/hooks/lib/continuation.mjs +157 -0
  36. package/plugin/hooks/lib/motion.mjs +142 -0
  37. package/plugin/hooks/lib/policy.mjs +149 -0
  38. package/plugin/hooks/lib/prose.mjs +79 -0
  39. package/plugin/hooks/lib/redact.mjs +23 -0
  40. package/plugin/hooks/lib/reentry.mjs +93 -0
  41. package/plugin/hooks/lib/routes.mjs +173 -0
  42. package/plugin/hooks/lib/transcript.mjs +48 -0
  43. package/plugin/hooks/post-invocation.mjs +18 -0
  44. package/plugin/hooks/post-tool-use.mjs +30 -0
  45. package/plugin/hooks/pre-invocation.mjs +62 -0
  46. package/plugin/hooks/pre-tool-use.mjs +112 -0
  47. package/plugin/hooks/session-start.mjs +31 -0
  48. package/plugin/hooks/stop.mjs +44 -0
  49. package/plugin/hooks.json +56 -0
  50. package/plugin/hud/render.mjs +602 -0
  51. package/plugin/hud/statusline.mjs +20 -0
  52. package/plugin/lib/host-exec.mjs +133 -0
  53. package/plugin/lib/python-pick.mjs +63 -0
  54. package/plugin/plugin.json +6 -0
  55. package/plugin/rules/AGENTS.md +30 -0
  56. package/plugin/skills/autoconference/LICENSE +21 -0
  57. package/plugin/skills/autoconference/PROVENANCE.md +26 -0
  58. package/plugin/skills/autoconference/SKILL.md +137 -0
  59. package/plugin/skills/autoconference/assets/conference_template.md +93 -0
  60. package/plugin/skills/autoconference/assets/report_template.md +59 -0
  61. package/plugin/skills/autoconference/assets/synthesis_template.md +52 -0
  62. package/plugin/skills/autoconference/modes/analyze.md +181 -0
  63. package/plugin/skills/autoconference/modes/core.md +244 -0
  64. package/plugin/skills/autoconference/modes/debate.md +240 -0
  65. package/plugin/skills/autoconference/modes/plan.md +220 -0
  66. package/plugin/skills/autoconference/modes/resume.md +172 -0
  67. package/plugin/skills/autoconference/modes/ship.md +247 -0
  68. package/plugin/skills/autoconference/modes/survey.md +218 -0
  69. package/plugin/skills/autoconference/references/agent-prompts.md +488 -0
  70. package/plugin/skills/autoconference/references/conference-protocol.md +332 -0
  71. package/plugin/skills/autoconference/references/convergence-guide.md +157 -0
  72. package/plugin/skills/autoconference/references/core-principles.md +93 -0
  73. package/plugin/skills/autoconference/references/crash-recovery.md +137 -0
  74. package/plugin/skills/autoconference/references/results-logging.md +200 -0
  75. package/plugin/skills/autoconference/references/visualization-guide.md +83 -0
  76. package/plugin/skills/autoconference/scripts/check_conference.sh +184 -0
  77. package/plugin/skills/autoconference/scripts/init_conference.py +392 -0
  78. package/plugin/skills/autoconference/scripts/style_presets.py +142 -0
  79. package/plugin/skills/autoconference/templates/code-performance.md +82 -0
  80. package/plugin/skills/autoconference/templates/debate-mode.md +58 -0
  81. package/plugin/skills/autoconference/templates/prompt-optimization.md +81 -0
  82. package/plugin/skills/autoconference/templates/quick-conference.md +70 -0
  83. package/plugin/skills/autoconference/templates/research-synthesis.md +76 -0
  84. package/plugin/skills/autoconference/templates/survey-mode.md +70 -0
  85. package/plugin/skills/autoresearch/LICENSE +21 -0
  86. package/plugin/skills/autoresearch/PROVENANCE.md +22 -0
  87. package/plugin/skills/autoresearch/SKILL.md +204 -0
  88. package/plugin/skills/autoresearch/assets/report_template.md +58 -0
  89. package/plugin/skills/autoresearch/assets/research_template.md +46 -0
  90. package/plugin/skills/autoresearch/assets/results_template.tsv +1 -0
  91. package/plugin/skills/autoresearch/modes/core.md +148 -0
  92. package/plugin/skills/autoresearch/modes/debug.md +175 -0
  93. package/plugin/skills/autoresearch/modes/fix.md +126 -0
  94. package/plugin/skills/autoresearch/modes/learn.md +77 -0
  95. package/plugin/skills/autoresearch/modes/plan.md +177 -0
  96. package/plugin/skills/autoresearch/modes/predict.md +170 -0
  97. package/plugin/skills/autoresearch/modes/reason.md +131 -0
  98. package/plugin/skills/autoresearch/modes/scenario.md +118 -0
  99. package/plugin/skills/autoresearch/modes/security.md +206 -0
  100. package/plugin/skills/autoresearch/modes/ship.md +39 -0
  101. package/plugin/skills/autoresearch/references/core-principles.md +91 -0
  102. package/plugin/skills/autoresearch/references/evaluator-contract.md +134 -0
  103. package/plugin/skills/autoresearch/references/investigation-techniques.md +149 -0
  104. package/plugin/skills/autoresearch/references/owasp-checklist.md +175 -0
  105. package/plugin/skills/autoresearch/references/persona-templates.md +171 -0
  106. package/plugin/skills/autoresearch/references/results-logging.md +100 -0
  107. package/plugin/skills/autoresearch/references/scenario-dimensions.md +186 -0
  108. package/plugin/skills/autoresearch/references/stride-model.md +192 -0
  109. package/plugin/skills/autoresearch/references/stuck-detection.md +105 -0
  110. package/plugin/skills/autoresearch/references/type-checklists.md +156 -0
  111. package/plugin/skills/autoresearch/references/upstream-family-contract.md +120 -0
  112. package/plugin/skills/autoresearch/references/visualization-guide.md +84 -0
  113. package/plugin/skills/autoresearch/scripts/check_progress.sh +293 -0
  114. package/plugin/skills/autoresearch/scripts/init_research.py +380 -0
  115. package/plugin/skills/autoresearch/scripts/run_with_deadline.py +207 -0
  116. package/plugin/skills/autoresearch/scripts/style_presets.py +156 -0
  117. package/plugin/skills/browser-drive/SKILL.md +138 -0
  118. package/plugin/skills/browser-drive/references/blocker-codes.md +31 -0
  119. package/plugin/skills/browser-drive/references/cleanup-receipts.md +52 -0
  120. package/plugin/skills/browser-drive/references/credential-and-approval-boundaries.md +49 -0
  121. package/plugin/skills/browser-drive/references/playwright-recipes.md +75 -0
  122. package/plugin/skills/browser-drive/references/snapshot-act-loop.md +65 -0
  123. package/plugin/skills/browser-drive/scripts/capability-probe.mjs +483 -0
  124. package/plugin/skills/browser-drive/scripts/secret-shapes.mjs +56 -0
  125. package/plugin/skills/browser-drive/templates/drive.cjs +52 -0
  126. package/plugin/skills/comment-checker/SKILL.md +144 -0
  127. package/plugin/skills/comment-checker/references/comment-policy.md +109 -0
  128. package/plugin/skills/debugging/SKILL.md +187 -0
  129. package/plugin/skills/debugging/references/methodology/00-setup.md +115 -0
  130. package/plugin/skills/debugging/references/methodology/02-investigate.md +107 -0
  131. package/plugin/skills/debugging/references/methodology/04-oracle-triple.md +116 -0
  132. package/plugin/skills/debugging/references/methodology/05-escalate.md +73 -0
  133. package/plugin/skills/debugging/references/methodology/06-fix.md +111 -0
  134. package/plugin/skills/debugging/references/methodology/08-qa.md +87 -0
  135. package/plugin/skills/debugging/references/methodology/09-cleanup.md +162 -0
  136. package/plugin/skills/debugging/references/methodology/partial-runtime-evidence.md +186 -0
  137. package/plugin/skills/debugging/references/runtimes/bundled-js-binary.md +359 -0
  138. package/plugin/skills/debugging/references/runtimes/go.md +204 -0
  139. package/plugin/skills/debugging/references/runtimes/native-binary.md +406 -0
  140. package/plugin/skills/debugging/references/runtimes/node.md +227 -0
  141. package/plugin/skills/debugging/references/runtimes/python.md +215 -0
  142. package/plugin/skills/debugging/references/runtimes/rust.md +205 -0
  143. package/plugin/skills/debugging/references/tools/ghidra.md +150 -0
  144. package/plugin/skills/debugging/references/tools/playwright-cli.md +179 -0
  145. package/plugin/skills/debugging/references/tools/pwndbg.md +223 -0
  146. package/plugin/skills/debugging/references/tools/pwntools.md +217 -0
  147. package/plugin/skills/deep-interview/SKILL.md +305 -0
  148. package/plugin/skills/deep-interview/references/headless-and-resume.md +35 -0
  149. package/plugin/skills/deep-interview/references/question-craft.md +76 -0
  150. package/plugin/skills/deep-interview/references/scoring-and-gates.md +69 -0
  151. package/plugin/skills/deep-interview/scripts/render-progress.mjs +165 -0
  152. package/plugin/skills/deep-interview/templates/context.md +38 -0
  153. package/plugin/skills/deep-interview/templates/spec.md +68 -0
  154. package/plugin/skills/deep-interview/templates/state.json +35 -0
  155. package/plugin/skills/frontend-ui-ux/ATTRIBUTION.md +23 -0
  156. package/plugin/skills/frontend-ui-ux/LICENSE +21 -0
  157. package/plugin/skills/frontend-ui-ux/PROVENANCE.json +38 -0
  158. package/plugin/skills/frontend-ui-ux/SKILL.md +153 -0
  159. package/plugin/skills/frontend-ui-ux/SOURCE-MANIFEST.json +1060 -0
  160. package/plugin/skills/frontend-ui-ux/THIRD-PARTY-NOTICE.txt +14 -0
  161. package/plugin/skills/frontend-ui-ux/data/design-intelligence.json +1 -0
  162. package/plugin/skills/frontend-ui-ux/examples/design-contract.example.json +186 -0
  163. package/plugin/skills/frontend-ui-ux/examples/phase-3-readme-ab/README.md +9 -0
  164. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-ATTRIBUTION.md +217 -0
  165. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/frontend-LICENSE-Apache-2.0.txt +201 -0
  166. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/legal/root-LICENSE +21 -0
  167. package/plugin/skills/frontend-ui-ux/references/_canonical-corpus/manifest.json +873 -0
  168. package/plugin/skills/frontend-ui-ux/references/adaptive-layout.md +103 -0
  169. package/plugin/skills/frontend-ui-ux/references/brand-and-imagery.md +96 -0
  170. package/plugin/skills/frontend-ui-ux/references/complete-contract.md +415 -0
  171. package/plugin/skills/frontend-ui-ux/references/composition.md +93 -0
  172. package/plugin/skills/frontend-ui-ux/references/craft-floor.md +203 -0
  173. package/plugin/skills/frontend-ui-ux/references/creative-directions.md +96 -0
  174. package/plugin/skills/frontend-ui-ux/references/default-editorial-pixel.json +27 -0
  175. package/plugin/skills/frontend-ui-ux/references/design/README.md +248 -0
  176. package/plugin/skills/frontend-ui-ux/references/design/_INDEX.md +191 -0
  177. package/plugin/skills/frontend-ui-ux/references/design/airbnb.md +393 -0
  178. package/plugin/skills/frontend-ui-ux/references/design/airtable.md +92 -0
  179. package/plugin/skills/frontend-ui-ux/references/design/apple.md +250 -0
  180. package/plugin/skills/frontend-ui-ux/references/design/aside.md +209 -0
  181. package/plugin/skills/frontend-ui-ux/references/design/binance.md +348 -0
  182. package/plugin/skills/frontend-ui-ux/references/design/bmw.md +183 -0
  183. package/plugin/skills/frontend-ui-ux/references/design/brutalist-skill.md +92 -0
  184. package/plugin/skills/frontend-ui-ux/references/design/bugatti.md +271 -0
  185. package/plugin/skills/frontend-ui-ux/references/design/cal.md +262 -0
  186. package/plugin/skills/frontend-ui-ux/references/design/claude.md +315 -0
  187. package/plugin/skills/frontend-ui-ux/references/design/clay.md +307 -0
  188. package/plugin/skills/frontend-ui-ux/references/design/clickhouse.md +284 -0
  189. package/plugin/skills/frontend-ui-ux/references/design/clone-from-url.md +65 -0
  190. package/plugin/skills/frontend-ui-ux/references/design/cohere.md +269 -0
  191. package/plugin/skills/frontend-ui-ux/references/design/coinbase.md +132 -0
  192. package/plugin/skills/frontend-ui-ux/references/design/composio.md +310 -0
  193. package/plugin/skills/frontend-ui-ux/references/design/cursor.md +312 -0
  194. package/plugin/skills/frontend-ui-ux/references/design/design-system-architecture.md +244 -0
  195. package/plugin/skills/frontend-ui-ux/references/design/elevenlabs.md +268 -0
  196. package/plugin/skills/frontend-ui-ux/references/design/expo.md +284 -0
  197. package/plugin/skills/frontend-ui-ux/references/design/ferrari.md +317 -0
  198. package/plugin/skills/frontend-ui-ux/references/design/figma.md +223 -0
  199. package/plugin/skills/frontend-ui-ux/references/design/framer.md +249 -0
  200. package/plugin/skills/frontend-ui-ux/references/design/gpt-tasteskill.md +74 -0
  201. package/plugin/skills/frontend-ui-ux/references/design/hashicorp.md +281 -0
  202. package/plugin/skills/frontend-ui-ux/references/design/ibm.md +335 -0
  203. package/plugin/skills/frontend-ui-ux/references/design/image-to-code-skill.md +1228 -0
  204. package/plugin/skills/frontend-ui-ux/references/design/imagegen-brandkit.md +798 -0
  205. package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-mobile.md +1465 -0
  206. package/plugin/skills/frontend-ui-ux/references/design/imagegen-frontend-web.md +987 -0
  207. package/plugin/skills/frontend-ui-ux/references/design/intercom.md +149 -0
  208. package/plugin/skills/frontend-ui-ux/references/design/kraken.md +128 -0
  209. package/plugin/skills/frontend-ui-ux/references/design/lamborghini.md +291 -0
  210. package/plugin/skills/frontend-ui-ux/references/design/layout-skill.md +107 -0
  211. package/plugin/skills/frontend-ui-ux/references/design/lazyweb.md +77 -0
  212. package/plugin/skills/frontend-ui-ux/references/design/linear.app.md +370 -0
  213. package/plugin/skills/frontend-ui-ux/references/design/lovable.md +301 -0
  214. package/plugin/skills/frontend-ui-ux/references/design/mastercard.md +368 -0
  215. package/plugin/skills/frontend-ui-ux/references/design/meta.md +369 -0
  216. package/plugin/skills/frontend-ui-ux/references/design/minimalist-skill.md +85 -0
  217. package/plugin/skills/frontend-ui-ux/references/design/minimax.md +260 -0
  218. package/plugin/skills/frontend-ui-ux/references/design/mintlify.md +329 -0
  219. package/plugin/skills/frontend-ui-ux/references/design/miro.md +111 -0
  220. package/plugin/skills/frontend-ui-ux/references/design/mistral.ai.md +264 -0
  221. package/plugin/skills/frontend-ui-ux/references/design/mongodb.md +269 -0
  222. package/plugin/skills/frontend-ui-ux/references/design/nike.md +366 -0
  223. package/plugin/skills/frontend-ui-ux/references/design/notion.md +312 -0
  224. package/plugin/skills/frontend-ui-ux/references/design/nvidia.md +296 -0
  225. package/plugin/skills/frontend-ui-ux/references/design/ollama.md +270 -0
  226. package/plugin/skills/frontend-ui-ux/references/design/opencode.ai.md +284 -0
  227. package/plugin/skills/frontend-ui-ux/references/design/output-skill.md +49 -0
  228. package/plugin/skills/frontend-ui-ux/references/design/pinterest.md +233 -0
  229. package/plugin/skills/frontend-ui-ux/references/design/playstation.md +367 -0
  230. package/plugin/skills/frontend-ui-ux/references/design/posthog.md +259 -0
  231. package/plugin/skills/frontend-ui-ux/references/design/raycast.md +271 -0
  232. package/plugin/skills/frontend-ui-ux/references/design/react-dev-tooling-skill.md +230 -0
  233. package/plugin/skills/frontend-ui-ux/references/design/redesign-skill.md +178 -0
  234. package/plugin/skills/frontend-ui-ux/references/design/renault.md +314 -0
  235. package/plugin/skills/frontend-ui-ux/references/design/replicate.md +264 -0
  236. package/plugin/skills/frontend-ui-ux/references/design/resend.md +306 -0
  237. package/plugin/skills/frontend-ui-ux/references/design/revolut.md +188 -0
  238. package/plugin/skills/frontend-ui-ux/references/design/runwayml.md +247 -0
  239. package/plugin/skills/frontend-ui-ux/references/design/sanity.md +360 -0
  240. package/plugin/skills/frontend-ui-ux/references/design/sentry.md +265 -0
  241. package/plugin/skills/frontend-ui-ux/references/design/shopify.md +353 -0
  242. package/plugin/skills/frontend-ui-ux/references/design/soft-skill.md +98 -0
  243. package/plugin/skills/frontend-ui-ux/references/design/spacex.md +197 -0
  244. package/plugin/skills/frontend-ui-ux/references/design/spotify.md +249 -0
  245. package/plugin/skills/frontend-ui-ux/references/design/starbucks.md +583 -0
  246. package/plugin/skills/frontend-ui-ux/references/design/stitch-design-example.md +121 -0
  247. package/plugin/skills/frontend-ui-ux/references/design/stitch-skill.md +184 -0
  248. package/plugin/skills/frontend-ui-ux/references/design/stripe.md +325 -0
  249. package/plugin/skills/frontend-ui-ux/references/design/supabase.md +258 -0
  250. package/plugin/skills/frontend-ui-ux/references/design/superhuman.md +255 -0
  251. package/plugin/skills/frontend-ui-ux/references/design/taste-skill.md +1206 -0
  252. package/plugin/skills/frontend-ui-ux/references/design/tesla.md +289 -0
  253. package/plugin/skills/frontend-ui-ux/references/design/theverge.md +342 -0
  254. package/plugin/skills/frontend-ui-ux/references/design/together.ai.md +266 -0
  255. package/plugin/skills/frontend-ui-ux/references/design/uber.md +298 -0
  256. package/plugin/skills/frontend-ui-ux/references/design/vercel.md +313 -0
  257. package/plugin/skills/frontend-ui-ux/references/design/vodafone.md +426 -0
  258. package/plugin/skills/frontend-ui-ux/references/design/voltagent.md +326 -0
  259. package/plugin/skills/frontend-ui-ux/references/design/warp.md +256 -0
  260. package/plugin/skills/frontend-ui-ux/references/design/webflow.md +95 -0
  261. package/plugin/skills/frontend-ui-ux/references/design/wired.md +281 -0
  262. package/plugin/skills/frontend-ui-ux/references/design/wise.md +176 -0
  263. package/plugin/skills/frontend-ui-ux/references/design/x.ai.md +260 -0
  264. package/plugin/skills/frontend-ui-ux/references/design/zapier.md +331 -0
  265. package/plugin/skills/frontend-ui-ux/references/designpowers/EVIDENCE.md +97 -0
  266. package/plugin/skills/frontend-ui-ux/references/designpowers/README.md +48 -0
  267. package/plugin/skills/frontend-ui-ux/references/designpowers/UPSTREAM.md +80 -0
  268. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-a-direction.md +64 -0
  269. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-b-execution.md +65 -0
  270. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-c-review.md +65 -0
  271. package/plugin/skills/frontend-ui-ux/references/designpowers/lane-d-memory.md +83 -0
  272. package/plugin/skills/frontend-ui-ux/references/designpowers/orchestration.md +80 -0
  273. package/plugin/skills/frontend-ui-ux/references/designpowers/routing.md +79 -0
  274. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/LICENSE +21 -0
  275. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/accessibility-reviewer.md +83 -0
  276. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/content-writer.md +132 -0
  277. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-builder.md +109 -0
  278. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-critic.md +89 -0
  279. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-lead.md +113 -0
  280. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-scout.md +78 -0
  281. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/design-strategist.md +121 -0
  282. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/heuristic-evaluator.md +268 -0
  283. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/inspiration-scout.md +107 -0
  284. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/agents/motion-designer.md +120 -0
  285. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/accessible-content/reference.md +101 -0
  286. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/adaptive-interfaces/reference.md +109 -0
  287. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/cognitive-accessibility/reference.md +107 -0
  288. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debate/reference.md +199 -0
  289. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-debt-tracker/reference.md +174 -0
  290. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-handoff/reference.md +125 -0
  291. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-md/reference.md +106 -0
  292. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-retrospective/reference.md +266 -0
  293. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-review/reference.md +123 -0
  294. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/design-system-alignment/reference.md +120 -0
  295. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/designpowers-critique/reference.md +164 -0
  296. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/heuristic-evaluation/reference.md +85 -0
  297. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inclusive-personas/reference.md +98 -0
  298. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/inspiration-scouting/reference.md +165 -0
  299. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/interaction-design/reference.md +122 -0
  300. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/motion-choreography/reference.md +81 -0
  301. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/research-planning/reference.md +96 -0
  302. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/responsive-patterns/reference.md +77 -0
  303. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/synthetic-user-testing/reference.md +192 -0
  304. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-feedback/reference.md +165 -0
  305. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/taste-report/reference.md +78 -0
  306. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/token-architecture/reference.md +75 -0
  307. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/ui-composition/reference.md +117 -0
  308. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/usability-testing/reference.md +78 -0
  309. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/verification-before-shipping/reference.md +125 -0
  310. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/voice-and-tone/reference.md +79 -0
  311. package/plugin/skills/frontend-ui-ux/references/designpowers/vendor/skills/writing-design-plans/reference.md +119 -0
  312. package/plugin/skills/frontend-ui-ux/references/evidence-review.md +119 -0
  313. package/plugin/skills/frontend-ui-ux/references/implementation-platforms.md +115 -0
  314. package/plugin/skills/frontend-ui-ux/references/inclusive-interface.md +98 -0
  315. package/plugin/skills/frontend-ui-ux/references/interaction-motion.md +48 -0
  316. package/plugin/skills/frontend-ui-ux/references/motion-guide.md +153 -0
  317. package/plugin/skills/frontend-ui-ux/references/operating-lanes.md +101 -0
  318. package/plugin/skills/frontend-ui-ux/references/perfection/README.md +160 -0
  319. package/plugin/skills/frontend-ui-ux/references/perfection/react-perf-tooling.md +127 -0
  320. package/plugin/skills/frontend-ui-ux/references/performance-delivery.md +91 -0
  321. package/plugin/skills/frontend-ui-ux/references/product-direction.md +92 -0
  322. package/plugin/skills/frontend-ui-ux/references/production-interview.md +71 -0
  323. package/plugin/skills/frontend-ui-ux/references/redesign-playbook.md +103 -0
  324. package/plugin/skills/frontend-ui-ux/references/slop-register.md +139 -0
  325. package/plugin/skills/frontend-ui-ux/references/system-foundations.md +90 -0
  326. package/plugin/skills/frontend-ui-ux/references/taste-direction.md +79 -0
  327. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/README.md +659 -0
  328. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/charts.csv +26 -0
  329. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/colors.csv +162 -0
  330. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/icons.csv +106 -0
  331. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/landing.csv +35 -0
  332. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/products.csv +162 -0
  333. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/react-performance.csv +45 -0
  334. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/astro.csv +54 -0
  335. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/flutter.csv +53 -0
  336. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
  337. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
  338. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
  339. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
  340. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
  341. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react-native.csv +52 -0
  342. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/react.csv +54 -0
  343. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
  344. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/svelte.csv +54 -0
  345. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
  346. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/stacks/vue.csv +50 -0
  347. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/styles.csv +85 -0
  348. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/typography.csv +74 -0
  349. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ui-reasoning.csv +162 -0
  350. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/ux-guidelines.csv +100 -0
  351. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/data/web-interface.csv +31 -0
  352. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/core.py +262 -0
  353. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/design_system.py +1148 -0
  354. package/plugin/skills/frontend-ui-ux/references/ui-ux-db/scripts/search.py +114 -0
  355. package/plugin/skills/frontend-ui-ux/references/visual-language.md +90 -0
  356. package/plugin/skills/frontend-ui-ux/references/visual-reconstruction.md +55 -0
  357. package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1alpha1.schema.json +306 -0
  358. package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta1.schema.json +291 -0
  359. package/plugin/skills/frontend-ui-ux/schemas/design-contract-v1beta2.schema.json +311 -0
  360. package/plugin/skills/frontend-ui-ux/scripts/chrome-driver.mjs +216 -0
  361. package/plugin/skills/frontend-ui-ux/scripts/design-contract-format.mjs +286 -0
  362. package/plugin/skills/frontend-ui-ux/scripts/design-contract-inventory-rules.mjs +354 -0
  363. package/plugin/skills/frontend-ui-ux/scripts/design-contract-rules.mjs +361 -0
  364. package/plugin/skills/frontend-ui-ux/scripts/design-contract-surface-rules.mjs +313 -0
  365. package/plugin/skills/frontend-ui-ux/scripts/design-data.mjs +68 -0
  366. package/plugin/skills/frontend-ui-ux/scripts/errors.mjs +12 -0
  367. package/plugin/skills/frontend-ui-ux/scripts/import-design-intelligence.mjs +124 -0
  368. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-page.mjs +1534 -0
  369. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-rules.mjs +141 -0
  370. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-server.mjs +57 -0
  371. package/plugin/skills/frontend-ui-ux/scripts/interface-probe-static.mjs +129 -0
  372. package/plugin/skills/frontend-ui-ux/scripts/interface-probe.mjs +289 -0
  373. package/plugin/skills/frontend-ui-ux/scripts/json-boundary.mjs +63 -0
  374. package/plugin/skills/frontend-ui-ux/scripts/query-design-intelligence.mjs +106 -0
  375. package/plugin/skills/frontend-ui-ux/scripts/search.mjs +43 -0
  376. package/plugin/skills/frontend-ui-ux/scripts/source-replay.mjs +153 -0
  377. package/plugin/skills/frontend-ui-ux/scripts/strict-json.mjs +143 -0
  378. package/plugin/skills/frontend-ui-ux/scripts/validate-design-contract.mjs +52 -0
  379. package/plugin/skills/frontend-ui-ux/scripts/verify-corpus.mjs +90 -0
  380. package/plugin/skills/lit-brainstorm/SKILL.md +228 -0
  381. package/plugin/skills/lit-brainstorm/references/convergence-matrices.md +39 -0
  382. package/plugin/skills/lit-brainstorm/references/idea-lenses.md +71 -0
  383. package/plugin/skills/lit-brainstorm/references/lane-prompts.md +35 -0
  384. package/plugin/skills/lit-brainstorm/references/scoring-rubric.md +33 -0
  385. package/plugin/skills/lit-brainstorm/references/session-walkthrough.md +58 -0
  386. package/plugin/skills/lit-brainstorm/references/technique-catalog.md +41 -0
  387. package/plugin/skills/lit-brainstorm/references/techniques-generate.md +50 -0
  388. package/plugin/skills/lit-brainstorm/references/techniques-reframe.md +30 -0
  389. package/plugin/skills/lit-brainstorm/references/techniques-structure.md +36 -0
  390. package/plugin/skills/lit-brainstorm/templates/handoff-packet.md +23 -0
  391. package/plugin/skills/lit-brainstorm/templates/session-board.md +45 -0
  392. package/plugin/skills/lit-brainstorm/templates/shortlist.md +31 -0
  393. package/plugin/skills/lit-burnoff/SKILL.md +222 -0
  394. package/plugin/skills/lit-burnoff/references/behavior-preserving-cleanup.md +75 -0
  395. package/plugin/skills/lit-burnoff/references/prose-and-docs.md +31 -0
  396. package/plugin/skills/lit-burnoff/references/slop-categories.md +75 -0
  397. package/plugin/skills/lit-burnoff/templates/report.md +17 -0
  398. package/plugin/skills/lit-burnoff-file/SKILL.md +177 -0
  399. package/plugin/skills/lit-burnoff-file/references/triage-examples.md +76 -0
  400. package/plugin/skills/lit-burnoff-file/templates/report.md +17 -0
  401. package/plugin/skills/lit-code/SKILL.md +239 -0
  402. package/plugin/skills/lit-code/references/core/agy-surfaces-and-verification.md +95 -0
  403. package/plugin/skills/lit-code/references/core/cross-language-stack.md +74 -0
  404. package/plugin/skills/lit-code/references/core/file-size-ceiling.md +133 -0
  405. package/plugin/skills/lit-code/references/core/language-jump-table.md +143 -0
  406. package/plugin/skills/lit-code/references/core/post-write-review.md +77 -0
  407. package/plugin/skills/lit-code/references/core/shared-rules.md +92 -0
  408. package/plugin/skills/lit-code/references/core/tdd-discipline.md +82 -0
  409. package/plugin/skills/lit-code/references/engineering-risk-signals.md +123 -0
  410. package/plugin/skills/lit-code/references/go/README.md +104 -0
  411. package/plugin/skills/lit-code/references/go/backend-stack.md +717 -0
  412. package/plugin/skills/lit-code/references/go/bootstrap.md +350 -0
  413. package/plugin/skills/lit-code/references/go/bubbletea-v2.md +356 -0
  414. package/plugin/skills/lit-code/references/go/cobra-stack.md +446 -0
  415. package/plugin/skills/lit-code/references/go/concurrency.md +443 -0
  416. package/plugin/skills/lit-code/references/go/data-modeling.md +372 -0
  417. package/plugin/skills/lit-code/references/go/error-handling.md +379 -0
  418. package/plugin/skills/lit-code/references/go/golangci-strict.md +285 -0
  419. package/plugin/skills/lit-code/references/go/grpc-connect.md +458 -0
  420. package/plugin/skills/lit-code/references/go/libraries.md +327 -0
  421. package/plugin/skills/lit-code/references/go/one-liners.md +223 -0
  422. package/plugin/skills/lit-code/references/go/sqlc-pgx.md +517 -0
  423. package/plugin/skills/lit-code/references/go/testing.md +453 -0
  424. package/plugin/skills/lit-code/references/go/type-patterns.md +347 -0
  425. package/plugin/skills/lit-code/references/observability-contracts.md +106 -0
  426. package/plugin/skills/lit-code/references/python/README.md +313 -0
  427. package/plugin/skills/lit-code/references/python/async-anyio.md +487 -0
  428. package/plugin/skills/lit-code/references/python/data-modeling.md +264 -0
  429. package/plugin/skills/lit-code/references/python/data-processing.md +156 -0
  430. package/plugin/skills/lit-code/references/python/error-handling.md +300 -0
  431. package/plugin/skills/lit-code/references/python/fastapi-stack.md +368 -0
  432. package/plugin/skills/lit-code/references/python/httpx2-optimization.md +445 -0
  433. package/plugin/skills/lit-code/references/python/libraries.md +342 -0
  434. package/plugin/skills/lit-code/references/python/one-liners.md +290 -0
  435. package/plugin/skills/lit-code/references/python/orjson-stack.md +389 -0
  436. package/plugin/skills/lit-code/references/python/pydantic-ai.md +335 -0
  437. package/plugin/skills/lit-code/references/python/pyproject-strict.md +265 -0
  438. package/plugin/skills/lit-code/references/python/textual-tui.md +243 -0
  439. package/plugin/skills/lit-code/references/python/type-patterns.md +258 -0
  440. package/plugin/skills/lit-code/references/rust/README.md +338 -0
  441. package/plugin/skills/lit-code/references/rust/async-tokio.md +324 -0
  442. package/plugin/skills/lit-code/references/rust/axum-stack.md +563 -0
  443. package/plugin/skills/lit-code/references/rust/cargo-strict.md +357 -0
  444. package/plugin/skills/lit-code/references/rust/clap-stack.md +482 -0
  445. package/plugin/skills/lit-code/references/rust/concurrency.md +396 -0
  446. package/plugin/skills/lit-code/references/rust/libraries.md +467 -0
  447. package/plugin/skills/lit-code/references/rust/one-liners.md +294 -0
  448. package/plugin/skills/lit-code/references/rust/proptest-insta.md +418 -0
  449. package/plugin/skills/lit-code/references/rust/type-state.md +496 -0
  450. package/plugin/skills/lit-code/references/rust/unsafe-discipline.md +282 -0
  451. package/plugin/skills/lit-code/references/rust/zero-cost-safety.md +546 -0
  452. package/plugin/skills/lit-code/references/rust-ub/README.md +294 -0
  453. package/plugin/skills/lit-code/references/rust-ub/miri-sanitizers-loom.md +477 -0
  454. package/plugin/skills/lit-code/references/rust-ub/ub-taxonomy.md +302 -0
  455. package/plugin/skills/lit-code/references/typescript/README.md +191 -0
  456. package/plugin/skills/lit-code/references/typescript/backend-hono.md +703 -0
  457. package/plugin/skills/lit-code/references/typescript/bootstrap.md +185 -0
  458. package/plugin/skills/lit-code/references/typescript/data-modeling.md +244 -0
  459. package/plugin/skills/lit-code/references/typescript/error-handling.md +219 -0
  460. package/plugin/skills/lit-code/references/typescript/tsconfig-strict.md +193 -0
  461. package/plugin/skills/lit-code/references/typescript/type-patterns.md +290 -0
  462. package/plugin/skills/lit-code/scripts/go/check-no-excuse-rules.sh +173 -0
  463. package/plugin/skills/lit-code/scripts/go/new-project.py +138 -0
  464. package/plugin/skills/lit-code/scripts/go/templates/.editorconfig +13 -0
  465. package/plugin/skills/lit-code/scripts/go/templates/.golangci.yml +95 -0
  466. package/plugin/skills/lit-code/scripts/go/templates/AGENTS.md.tmpl +24 -0
  467. package/plugin/skills/lit-code/scripts/go/templates/README.md.tmpl +12 -0
  468. package/plugin/skills/lit-code/scripts/go/templates/Taskfile.yml +40 -0
  469. package/plugin/skills/lit-code/scripts/go/templates/ci.yml +37 -0
  470. package/plugin/skills/lit-code/scripts/go/templates/config.go +24 -0
  471. package/plugin/skills/lit-code/scripts/go/templates/gitignore +15 -0
  472. package/plugin/skills/lit-code/scripts/go/templates/main.go.tmpl +22 -0
  473. package/plugin/skills/lit-code/scripts/go/templates/run.go +15 -0
  474. package/plugin/skills/lit-code/scripts/python/check-no-excuse-rules.py +687 -0
  475. package/plugin/skills/lit-code/scripts/python/new-project.py +172 -0
  476. package/plugin/skills/lit-code/scripts/python/new-script.py +116 -0
  477. package/plugin/skills/lit-code/scripts/rust/check-no-excuse-rules.py +296 -0
  478. package/plugin/skills/lit-code/scripts/rust/check-no-excuse-rules.sh +158 -0
  479. package/plugin/skills/lit-code/scripts/rust/new-project.py +175 -0
  480. package/plugin/skills/lit-code/scripts/typescript/check-no-excuse-rules.ts +344 -0
  481. package/plugin/skills/lit-code/scripts/typescript/new-project.ts +174 -0
  482. package/plugin/skills/lit-commit/SKILL.md +148 -0
  483. package/plugin/skills/lit-commit/references/safe-git-operations.md +154 -0
  484. package/plugin/skills/lit-comprehend/SKILL.md +244 -0
  485. package/plugin/skills/lit-comprehend/assets/explainer-scaffold.html +257 -0
  486. package/plugin/skills/lit-comprehend/references/artifact-template.md +173 -0
  487. package/plugin/skills/lit-comprehend/references/micro-worlds.md +174 -0
  488. package/plugin/skills/lit-comprehend/scripts/verify-explainer.mjs +357 -0
  489. package/plugin/skills/lit-crucible/SKILL.md +151 -0
  490. package/plugin/skills/lit-crucible/references/adversarial-workflow.md +134 -0
  491. package/plugin/skills/lit-crucible/references/lane-briefs.md +69 -0
  492. package/plugin/skills/lit-crucible/templates/crucible.md +37 -0
  493. package/plugin/skills/lit-diagram-drawer/NOTICE +33 -0
  494. package/plugin/skills/lit-diagram-drawer/SKILL.md +177 -0
  495. package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-dark.html +1 -0
  496. package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-full.html +1 -0
  497. package/plugin/skills/lit-diagram-drawer/assets/examples/type-architecture-light.html +1 -0
  498. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-dark.html +1 -0
  499. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-full.html +1 -0
  500. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bar-light.html +1 -0
  501. package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-dark.html +1 -0
  502. package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-full.html +1 -0
  503. package/plugin/skills/lit-diagram-drawer/assets/examples/type-beeswarm-light.html +1 -0
  504. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-dark.html +1 -0
  505. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-full.html +1 -0
  506. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bubble-light.html +1 -0
  507. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-dark.html +1 -0
  508. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-full.html +1 -0
  509. package/plugin/skills/lit-diagram-drawer/assets/examples/type-bump-light.html +1 -0
  510. package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-dark.html +1 -0
  511. package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-full.html +1 -0
  512. package/plugin/skills/lit-diagram-drawer/assets/examples/type-data-flow-light.html +1 -0
  513. package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-dark.html +1 -0
  514. package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-full.html +1 -0
  515. package/plugin/skills/lit-diagram-drawer/assets/examples/type-datalake-light.html +1 -0
  516. package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-dark.html +1 -0
  517. package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-full.html +1 -0
  518. package/plugin/skills/lit-diagram-drawer/assets/examples/type-db-schema-light.html +1 -0
  519. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-dark.html +1 -0
  520. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-full.html +1 -0
  521. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dependency-light.html +1 -0
  522. package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-dark.html +1 -0
  523. package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-full.html +1 -0
  524. package/plugin/skills/lit-diagram-drawer/assets/examples/type-deployment-light.html +1 -0
  525. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-dark.html +1 -0
  526. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-full.html +1 -0
  527. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-integration-light.html +1 -0
  528. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-dark.html +1 -0
  529. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-full.html +1 -0
  530. package/plugin/skills/lit-diagram-drawer/assets/examples/type-dp-security-matrix-light.html +1 -0
  531. package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-dark.html +1 -0
  532. package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-full.html +1 -0
  533. package/plugin/skills/lit-diagram-drawer/assets/examples/type-er-light.html +1 -0
  534. package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-dark.html +1 -0
  535. package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-full.html +1 -0
  536. package/plugin/skills/lit-diagram-drawer/assets/examples/type-fishbone-light.html +1 -0
  537. package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-dark.html +1 -0
  538. package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-full.html +1 -0
  539. package/plugin/skills/lit-diagram-drawer/assets/examples/type-flowchart-light.html +1 -0
  540. package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-dark.html +1 -0
  541. package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-full.html +1 -0
  542. package/plugin/skills/lit-diagram-drawer/assets/examples/type-gantt-light.html +1 -0
  543. package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-dark.html +1 -0
  544. package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-full.html +1 -0
  545. package/plugin/skills/lit-diagram-drawer/assets/examples/type-heatmap-light.html +1 -0
  546. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-dark.html +1 -0
  547. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-full.html +1 -0
  548. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-light.html +1 -0
  549. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-dark.html +1 -0
  550. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-full.html +1 -0
  551. package/plugin/skills/lit-diagram-drawer/assets/examples/type-high-level-vertical-light.html +1 -0
  552. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-dark.html +1 -0
  553. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-full.html +1 -0
  554. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-drawio-light.html +1 -0
  555. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-dark.html +1 -0
  556. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-full.html +1 -0
  557. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-excalidraw-light.html +1 -0
  558. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-dark.html +1 -0
  559. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-full.html +1 -0
  560. package/plugin/skills/lit-diagram-drawer/assets/examples/type-import-mermaid-light.html +1 -0
  561. package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-dark.html +1 -0
  562. package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-full.html +1 -0
  563. package/plugin/skills/lit-diagram-drawer/assets/examples/type-it-state-light.html +1 -0
  564. package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-dark.html +1 -0
  565. package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-full.html +1 -0
  566. package/plugin/skills/lit-diagram-drawer/assets/examples/type-journey-light.html +1 -0
  567. package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-dark.html +1 -0
  568. package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-full.html +1 -0
  569. package/plugin/skills/lit-diagram-drawer/assets/examples/type-kanban-light.html +1 -0
  570. package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-dark.html +1 -0
  571. package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-full.html +1 -0
  572. package/plugin/skills/lit-diagram-drawer/assets/examples/type-layers-light.html +1 -0
  573. package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-dark.html +1 -0
  574. package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-full.html +1 -0
  575. package/plugin/skills/lit-diagram-drawer/assets/examples/type-line-light.html +1 -0
  576. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-dark.html +1 -0
  577. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-full.html +1 -0
  578. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-light.html +1 -0
  579. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-dark.html +1 -0
  580. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-full.html +1 -0
  581. package/plugin/skills/lit-diagram-drawer/assets/examples/type-loop-terminal-light.html +1 -0
  582. package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-dark.html +1 -0
  583. package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-full.html +1 -0
  584. package/plugin/skills/lit-diagram-drawer/assets/examples/type-marimekko-light.html +1 -0
  585. package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-dark.html +1 -0
  586. package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-full.html +1 -0
  587. package/plugin/skills/lit-diagram-drawer/assets/examples/type-medallion-light.html +1 -0
  588. package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-dark.html +1 -0
  589. package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-full.html +1 -0
  590. package/plugin/skills/lit-diagram-drawer/assets/examples/type-nested-light.html +1 -0
  591. package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-dark.html +1 -0
  592. package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-full.html +1 -0
  593. package/plugin/skills/lit-diagram-drawer/assets/examples/type-org-chart-light.html +1 -0
  594. package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-dark.html +1 -0
  595. package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-full.html +1 -0
  596. package/plugin/skills/lit-diagram-drawer/assets/examples/type-paved-road-animated-light.html +1 -0
  597. package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-dark.html +1 -0
  598. package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-full.html +1 -0
  599. package/plugin/skills/lit-diagram-drawer/assets/examples/type-polar-light.html +1 -0
  600. package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-dark.html +1 -0
  601. package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-full.html +1 -0
  602. package/plugin/skills/lit-diagram-drawer/assets/examples/type-policy-trace-animated-light.html +1 -0
  603. package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-dark.html +1 -0
  604. package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-full.html +1 -0
  605. package/plugin/skills/lit-diagram-drawer/assets/examples/type-process-light.html +1 -0
  606. package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-dark.html +1 -0
  607. package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-full.html +1 -0
  608. package/plugin/skills/lit-diagram-drawer/assets/examples/type-pyramid-light.html +1 -0
  609. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-dark.html +1 -0
  610. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-full.html +1 -0
  611. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-consultant-light.html +1 -0
  612. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-dark.html +1 -0
  613. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-full.html +1 -0
  614. package/plugin/skills/lit-diagram-drawer/assets/examples/type-quadrant-light.html +1 -0
  615. package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-dark.html +1 -0
  616. package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-full.html +1 -0
  617. package/plugin/skills/lit-diagram-drawer/assets/examples/type-queue-animated-light.html +1 -0
  618. package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-dark.html +1 -0
  619. package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-full.html +1 -0
  620. package/plugin/skills/lit-diagram-drawer/assets/examples/type-radar-light.html +1 -0
  621. package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-dark.html +1 -0
  622. package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-full.html +1 -0
  623. package/plugin/skills/lit-diagram-drawer/assets/examples/type-ridgeline-light.html +1 -0
  624. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-dark.html +1 -0
  625. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-full.html +1 -0
  626. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sankey-light.html +1 -0
  627. package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-dark.html +1 -0
  628. package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-full.html +1 -0
  629. package/plugin/skills/lit-diagram-drawer/assets/examples/type-scatter-light.html +1 -0
  630. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-dark.html +1 -0
  631. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-full.html +1 -0
  632. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-light.html +1 -0
  633. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-dark.html +1 -0
  634. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-full.html +1 -0
  635. package/plugin/skills/lit-diagram-drawer/assets/examples/type-sequence-oauth-light.html +1 -0
  636. package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-dark.html +1 -0
  637. package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-full.html +1 -0
  638. package/plugin/skills/lit-diagram-drawer/assets/examples/type-slopegraph-light.html +1 -0
  639. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-dark.html +1 -0
  640. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-full.html +1 -0
  641. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-dark.html +1 -0
  642. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-full.html +1 -0
  643. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-lifecycle-light.html +1 -0
  644. package/plugin/skills/lit-diagram-drawer/assets/examples/type-state-light.html +1 -0
  645. package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-dark.html +1 -0
  646. package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-full.html +1 -0
  647. package/plugin/skills/lit-diagram-drawer/assets/examples/type-story-map-light.html +1 -0
  648. package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-dark.html +1 -0
  649. package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-full.html +1 -0
  650. package/plugin/skills/lit-diagram-drawer/assets/examples/type-streamgraph-light.html +1 -0
  651. package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-dark.html +1 -0
  652. package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-full.html +1 -0
  653. package/plugin/skills/lit-diagram-drawer/assets/examples/type-swimlane-light.html +1 -0
  654. package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-dark.html +1 -0
  655. package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-full.html +1 -0
  656. package/plugin/skills/lit-diagram-drawer/assets/examples/type-timeline-light.html +1 -0
  657. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-dark.html +1 -0
  658. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-full.html +1 -0
  659. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-block-decomposition-light.html +1 -0
  660. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-dark.html +1 -0
  661. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-full.html +1 -0
  662. package/plugin/skills/lit-diagram-drawer/assets/examples/type-tree-light.html +1 -0
  663. package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-dark.html +1 -0
  664. package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-full.html +1 -0
  665. package/plugin/skills/lit-diagram-drawer/assets/examples/type-treemap-light.html +1 -0
  666. package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-dark.html +1 -0
  667. package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-full.html +1 -0
  668. package/plugin/skills/lit-diagram-drawer/assets/examples/type-uml-class-light.html +1 -0
  669. package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-dark.html +1 -0
  670. package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-full.html +1 -0
  671. package/plugin/skills/lit-diagram-drawer/assets/examples/type-venn-light.html +1 -0
  672. package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-dark.html +1 -0
  673. package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-full.html +1 -0
  674. package/plugin/skills/lit-diagram-drawer/assets/examples/type-wardley-light.html +1 -0
  675. package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-dark.html +1 -0
  676. package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-full.html +1 -0
  677. package/plugin/skills/lit-diagram-drawer/assets/examples/type-waterfall-light.html +1 -0
  678. package/plugin/skills/lit-diagram-drawer/assets/fonts/OFL.txt +94 -0
  679. package/plugin/skills/lit-diagram-drawer/assets/fonts/PretendardVariable.woff2 +0 -0
  680. package/plugin/skills/lit-diagram-drawer/assets/fonts/provenance.json +22 -0
  681. package/plugin/skills/lit-diagram-drawer/assets/icons.html +231 -0
  682. package/plugin/skills/lit-diagram-drawer/assets/index.html +1 -0
  683. package/plugin/skills/lit-diagram-drawer/assets/licenses/devicon-MIT.txt +20 -0
  684. package/plugin/skills/lit-diagram-drawer/assets/licenses/diagram-design-MIT.txt +21 -0
  685. package/plugin/skills/lit-diagram-drawer/assets/licenses/log-z-MIT.txt +21 -0
  686. package/plugin/skills/lit-diagram-drawer/assets/licenses/simple-icons-CC0.md +30 -0
  687. package/plugin/skills/lit-diagram-drawer/assets/licenses/tabler-MIT.txt +21 -0
  688. package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/after.html +1 -0
  689. package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/brief.md +33 -0
  690. package/plugin/skills/lit-diagram-drawer/examples/01-service-architecture/constructed-naive-foil.html +1 -0
  691. package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/after.html +1 -0
  692. package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/brief.md +18 -0
  693. package/plugin/skills/lit-diagram-drawer/examples/02-release-decision/constructed-naive-foil.html +1 -0
  694. package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/after.html +1 -0
  695. package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/brief.md +19 -0
  696. package/plugin/skills/lit-diagram-drawer/examples/03-data-retention/constructed-naive-foil.html +1 -0
  697. package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/after.html +1 -0
  698. package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/brief.md +17 -0
  699. package/plugin/skills/lit-diagram-drawer/examples/04-oauth-sequence/constructed-naive-foil.html +1 -0
  700. package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/after.html +1 -0
  701. package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/brief.md +17 -0
  702. package/plugin/skills/lit-diagram-drawer/examples/05-review-lanes/constructed-naive-foil.html +1 -0
  703. package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/after.html +1 -0
  704. package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/brief.md +17 -0
  705. package/plugin/skills/lit-diagram-drawer/examples/06-rollout-gates/constructed-naive-foil.html +1 -0
  706. package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/after.html +1 -0
  707. package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/brief.md +19 -0
  708. package/plugin/skills/lit-diagram-drawer/examples/07-deployment-boundary/constructed-naive-foil.html +1 -0
  709. package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/after.html +1 -0
  710. package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/brief.md +20 -0
  711. package/plugin/skills/lit-diagram-drawer/examples/08-policy-traces/constructed-naive-foil.html +1 -0
  712. package/plugin/skills/lit-diagram-drawer/references/accessibility.md +37 -0
  713. package/plugin/skills/lit-diagram-drawer/references/drawing-rules.md +86 -0
  714. package/plugin/skills/lit-diagram-drawer/references/export.md +34 -0
  715. package/plugin/skills/lit-diagram-drawer/references/failure-codes.md +66 -0
  716. package/plugin/skills/lit-diagram-drawer/references/import-drawio.md +21 -0
  717. package/plugin/skills/lit-diagram-drawer/references/import-excalidraw.md +14 -0
  718. package/plugin/skills/lit-diagram-drawer/references/import-mermaid.md +18 -0
  719. package/plugin/skills/lit-diagram-drawer/references/import-schema.md +28 -0
  720. package/plugin/skills/lit-diagram-drawer/references/korean-typography.md +34 -0
  721. package/plugin/skills/lit-diagram-drawer/references/motion.md +29 -0
  722. package/plugin/skills/lit-diagram-drawer/references/office-pptx-docx.md +42 -0
  723. package/plugin/skills/lit-diagram-drawer/references/output-spec.md +48 -0
  724. package/plugin/skills/lit-diagram-drawer/references/playbooks.md +67 -0
  725. package/plugin/skills/lit-diagram-drawer/references/primitive-annotation.md +12 -0
  726. package/plugin/skills/lit-diagram-drawer/references/primitive-icons.md +21 -0
  727. package/plugin/skills/lit-diagram-drawer/references/primitive-sketchy.md +11 -0
  728. package/plugin/skills/lit-diagram-drawer/references/primitive-terminal.md +11 -0
  729. package/plugin/skills/lit-diagram-drawer/references/profiles.md +24 -0
  730. package/plugin/skills/lit-diagram-drawer/references/semantic-patterns.md +27 -0
  731. package/plugin/skills/lit-diagram-drawer/references/style-guide.md +67 -0
  732. package/plugin/skills/lit-diagram-drawer/references/type-architecture.md +51 -0
  733. package/plugin/skills/lit-diagram-drawer/references/type-bar.md +51 -0
  734. package/plugin/skills/lit-diagram-drawer/references/type-beeswarm.md +49 -0
  735. package/plugin/skills/lit-diagram-drawer/references/type-bubble.md +49 -0
  736. package/plugin/skills/lit-diagram-drawer/references/type-bump.md +49 -0
  737. package/plugin/skills/lit-diagram-drawer/references/type-catalog.json +1433 -0
  738. package/plugin/skills/lit-diagram-drawer/references/type-data-flow.md +51 -0
  739. package/plugin/skills/lit-diagram-drawer/references/type-datalake.md +49 -0
  740. package/plugin/skills/lit-diagram-drawer/references/type-db-schema.md +49 -0
  741. package/plugin/skills/lit-diagram-drawer/references/type-dependency.md +49 -0
  742. package/plugin/skills/lit-diagram-drawer/references/type-deployment.md +49 -0
  743. package/plugin/skills/lit-diagram-drawer/references/type-dp-integration.md +49 -0
  744. package/plugin/skills/lit-diagram-drawer/references/type-dp-security-matrix.md +49 -0
  745. package/plugin/skills/lit-diagram-drawer/references/type-er.md +49 -0
  746. package/plugin/skills/lit-diagram-drawer/references/type-fishbone.md +49 -0
  747. package/plugin/skills/lit-diagram-drawer/references/type-flowchart.md +49 -0
  748. package/plugin/skills/lit-diagram-drawer/references/type-gantt.md +49 -0
  749. package/plugin/skills/lit-diagram-drawer/references/type-heatmap.md +53 -0
  750. package/plugin/skills/lit-diagram-drawer/references/type-high-level-vertical.md +53 -0
  751. package/plugin/skills/lit-diagram-drawer/references/type-high-level.md +53 -0
  752. package/plugin/skills/lit-diagram-drawer/references/type-import-drawio.md +53 -0
  753. package/plugin/skills/lit-diagram-drawer/references/type-import-excalidraw.md +53 -0
  754. package/plugin/skills/lit-diagram-drawer/references/type-import-mermaid.md +53 -0
  755. package/plugin/skills/lit-diagram-drawer/references/type-it-state.md +54 -0
  756. package/plugin/skills/lit-diagram-drawer/references/type-journey.md +54 -0
  757. package/plugin/skills/lit-diagram-drawer/references/type-kanban.md +54 -0
  758. package/plugin/skills/lit-diagram-drawer/references/type-layers.md +54 -0
  759. package/plugin/skills/lit-diagram-drawer/references/type-line.md +54 -0
  760. package/plugin/skills/lit-diagram-drawer/references/type-loop-terminal.md +53 -0
  761. package/plugin/skills/lit-diagram-drawer/references/type-loop.md +54 -0
  762. package/plugin/skills/lit-diagram-drawer/references/type-marimekko.md +54 -0
  763. package/plugin/skills/lit-diagram-drawer/references/type-medallion.md +54 -0
  764. package/plugin/skills/lit-diagram-drawer/references/type-nested.md +59 -0
  765. package/plugin/skills/lit-diagram-drawer/references/type-org-chart.md +58 -0
  766. package/plugin/skills/lit-diagram-drawer/references/type-paved-road-animated.md +72 -0
  767. package/plugin/skills/lit-diagram-drawer/references/type-polar.md +67 -0
  768. package/plugin/skills/lit-diagram-drawer/references/type-policy-trace-animated.md +69 -0
  769. package/plugin/skills/lit-diagram-drawer/references/type-process.md +58 -0
  770. package/plugin/skills/lit-diagram-drawer/references/type-pyramid.md +59 -0
  771. package/plugin/skills/lit-diagram-drawer/references/type-quadrant-consultant.md +60 -0
  772. package/plugin/skills/lit-diagram-drawer/references/type-quadrant.md +57 -0
  773. package/plugin/skills/lit-diagram-drawer/references/type-queue-animated.md +63 -0
  774. package/plugin/skills/lit-diagram-drawer/references/type-radar.md +57 -0
  775. package/plugin/skills/lit-diagram-drawer/references/type-ridgeline.md +63 -0
  776. package/plugin/skills/lit-diagram-drawer/references/type-sankey.md +68 -0
  777. package/plugin/skills/lit-diagram-drawer/references/type-scatter.md +60 -0
  778. package/plugin/skills/lit-diagram-drawer/references/type-sequence-oauth.md +66 -0
  779. package/plugin/skills/lit-diagram-drawer/references/type-sequence.md +63 -0
  780. package/plugin/skills/lit-diagram-drawer/references/type-slopegraph.md +65 -0
  781. package/plugin/skills/lit-diagram-drawer/references/type-state-lifecycle.md +53 -0
  782. package/plugin/skills/lit-diagram-drawer/references/type-state.md +59 -0
  783. package/plugin/skills/lit-diagram-drawer/references/type-story-map.md +52 -0
  784. package/plugin/skills/lit-diagram-drawer/references/type-streamgraph.md +53 -0
  785. package/plugin/skills/lit-diagram-drawer/references/type-swimlane.md +52 -0
  786. package/plugin/skills/lit-diagram-drawer/references/type-timeline.md +52 -0
  787. package/plugin/skills/lit-diagram-drawer/references/type-tree-block-decomposition.md +57 -0
  788. package/plugin/skills/lit-diagram-drawer/references/type-tree.md +54 -0
  789. package/plugin/skills/lit-diagram-drawer/references/type-treemap.md +54 -0
  790. package/plugin/skills/lit-diagram-drawer/references/type-uml-class.md +52 -0
  791. package/plugin/skills/lit-diagram-drawer/references/type-venn.md +51 -0
  792. package/plugin/skills/lit-diagram-drawer/references/type-wardley.md +52 -0
  793. package/plugin/skills/lit-diagram-drawer/references/type-waterfall.md +54 -0
  794. package/plugin/skills/lit-diagram-drawer/references/verifier-guide.md +76 -0
  795. package/plugin/skills/lit-diagram-drawer/scripts/block-registry.mjs +43 -0
  796. package/plugin/skills/lit-diagram-drawer/scripts/brief-contract.mjs +94 -0
  797. package/plugin/skills/lit-diagram-drawer/scripts/check-visible-text.mjs +15 -0
  798. package/plugin/skills/lit-diagram-drawer/scripts/diagram-craft-rules.mjs +14 -0
  799. package/plugin/skills/lit-diagram-drawer/scripts/diagram-metrics.mjs +219 -0
  800. package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime-lock/package.json +9 -0
  801. package/plugin/skills/lit-diagram-drawer/scripts/diagram-runtime.mjs +277 -0
  802. package/plugin/skills/lit-diagram-drawer/scripts/doctor.mjs +25 -0
  803. package/plugin/skills/lit-diagram-drawer/scripts/drawio-model.mjs +162 -0
  804. package/plugin/skills/lit-diagram-drawer/scripts/drawio-source.mjs +147 -0
  805. package/plugin/skills/lit-diagram-drawer/scripts/drawio-xml.mjs +148 -0
  806. package/plugin/skills/lit-diagram-drawer/scripts/export.mjs +119 -0
  807. package/plugin/skills/lit-diagram-drawer/scripts/import-common.mjs +85 -0
  808. package/plugin/skills/lit-diagram-drawer/scripts/import-drawio.mjs +48 -0
  809. package/plugin/skills/lit-diagram-drawer/scripts/import-excalidraw.mjs +234 -0
  810. package/plugin/skills/lit-diagram-drawer/scripts/import-mermaid.mjs +104 -0
  811. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-common.mjs +115 -0
  812. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-er.mjs +70 -0
  813. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-flowchart.mjs +178 -0
  814. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-sequence.mjs +137 -0
  815. package/plugin/skills/lit-diagram-drawer/scripts/mermaid-state.mjs +80 -0
  816. package/plugin/skills/lit-diagram-drawer/scripts/office-safety.mjs +54 -0
  817. package/plugin/skills/lit-diagram-drawer/scripts/runtime-probes.mjs +11 -0
  818. package/plugin/skills/lit-diagram-drawer/scripts/verify-all.mjs +85 -0
  819. package/plugin/skills/lit-diagram-drawer/scripts/verify-brief.mjs +16 -0
  820. package/plugin/skills/lit-diagram-drawer/scripts/verify-diagram.mjs +27 -0
  821. package/plugin/skills/lit-diagram-drawer/scripts/verify-motion.mjs +12 -0
  822. package/plugin/skills/lit-diagram-drawer/scripts/verify-type.mjs +48 -0
  823. package/plugin/skills/lit-diagram-drawer/scripts/visual-quality-geometry.mjs +226 -0
  824. package/plugin/skills/lit-diagram-drawer/scripts/visual-quality.mjs +147 -0
  825. package/plugin/skills/lit-docx/NOTICE +35 -0
  826. package/plugin/skills/lit-docx/SKILL.md +137 -0
  827. package/plugin/skills/lit-docx/references/build-loop.md +96 -0
  828. package/plugin/skills/lit-docx/references/components.md +287 -0
  829. package/plugin/skills/lit-docx/references/direction-step.md +339 -0
  830. package/plugin/skills/lit-docx/references/examples/01-report-ko.md +166 -0
  831. package/plugin/skills/lit-docx/references/examples/02-brief-ko.md +96 -0
  832. package/plugin/skills/lit-docx/references/examples/03-manual-ko.md +170 -0
  833. package/plugin/skills/lit-docx/references/examples/04-proposal-ko.md +141 -0
  834. package/plugin/skills/lit-docx/references/examples/05-memo-en.md +56 -0
  835. package/plugin/skills/lit-docx/references/examples/06-journal-en.md +129 -0
  836. package/plugin/skills/lit-docx/references/examples/07-report-en.md +123 -0
  837. package/plugin/skills/lit-docx/references/examples/08-proposal-en.md +122 -0
  838. package/plugin/skills/lit-docx/references/examples/09-memo-ko.md +40 -0
  839. package/plugin/skills/lit-docx/references/frontmatter_schema.md +94 -0
  840. package/plugin/skills/lit-docx/references/journal_style_spec.md +89 -0
  841. package/plugin/skills/lit-docx/references/markdown_quality_checklist.md +43 -0
  842. package/plugin/skills/lit-docx/references/page-composition.md +319 -0
  843. package/plugin/skills/lit-docx/references/slop_phrase_list.yaml +58 -0
  844. package/plugin/skills/lit-docx/references/slop_rules.md +88 -0
  845. package/plugin/skills/lit-docx/references/tonalities/brief.md +170 -0
  846. package/plugin/skills/lit-docx/references/tonalities/journal.md +173 -0
  847. package/plugin/skills/lit-docx/references/tonalities/manual.md +182 -0
  848. package/plugin/skills/lit-docx/references/tonalities/memo.md +171 -0
  849. package/plugin/skills/lit-docx/references/tonalities/proposal.md +181 -0
  850. package/plugin/skills/lit-docx/references/tonalities/report.md +199 -0
  851. package/plugin/skills/lit-docx/scripts/clean_markdown.py +95 -0
  852. package/plugin/skills/lit-docx/scripts/convert_md_to_docx.py +1395 -0
  853. package/plugin/skills/lit-docx/scripts/convert_md_to_pdf.py +301 -0
  854. package/plugin/skills/lit-docx/scripts/convert_pdf.py +139 -0
  855. package/plugin/skills/lit-docx/scripts/docx_design.py +2449 -0
  856. package/plugin/skills/lit-docx/scripts/docx_layout.py +959 -0
  857. package/plugin/skills/lit-docx/scripts/edit_docx.py +306 -0
  858. package/plugin/skills/lit-docx/scripts/embed_images.py +78 -0
  859. package/plugin/skills/lit-docx/scripts/generate_docx_templates.py +500 -0
  860. package/plugin/skills/lit-docx/scripts/pdf_fonts.py +83 -0
  861. package/plugin/skills/lit-docx/scripts/qa_docx.py +234 -0
  862. package/plugin/skills/lit-docx/scripts/slop_lint.py +573 -0
  863. package/plugin/skills/lit-docx/scripts/visual_audit.py +48 -0
  864. package/plugin/skills/lit-docx/templates/docx/acs.docx +0 -0
  865. package/plugin/skills/lit-docx/templates/docx/elsevier.docx +0 -0
  866. package/plugin/skills/lit-docx/templates/docx/ieee.docx +0 -0
  867. package/plugin/skills/lit-docx/templates/docx/korean-generic.docx +0 -0
  868. package/plugin/skills/lit-docx/templates/docx/nature.docx +0 -0
  869. package/plugin/skills/lit-docx/templates/latex/acs/README.md +5 -0
  870. package/plugin/skills/lit-docx/templates/latex/acs/template.tex +41 -0
  871. package/plugin/skills/lit-docx/templates/latex/elsevier/README.md +5 -0
  872. package/plugin/skills/lit-docx/templates/latex/elsevier/template.tex +42 -0
  873. package/plugin/skills/lit-docx/templates/latex/ieee/README.md +5 -0
  874. package/plugin/skills/lit-docx/templates/latex/ieee/template.tex +41 -0
  875. package/plugin/skills/lit-docx/templates/latex/korean-generic/README.md +5 -0
  876. package/plugin/skills/lit-docx/templates/latex/korean-generic/template.tex +41 -0
  877. package/plugin/skills/lit-docx/templates/latex/nature/README.md +5 -0
  878. package/plugin/skills/lit-docx/templates/latex/nature/template.tex +41 -0
  879. package/plugin/skills/lit-docx/templates/registry.yaml +1366 -0
  880. package/plugin/skills/lit-docx/templates/tonalities/brief.yaml +28 -0
  881. package/plugin/skills/lit-docx/templates/tonalities/journal.yaml +25 -0
  882. package/plugin/skills/lit-docx/templates/tonalities/manual.yaml +26 -0
  883. package/plugin/skills/lit-docx/templates/tonalities/memo.yaml +26 -0
  884. package/plugin/skills/lit-docx/templates/tonalities/proposal.yaml +26 -0
  885. package/plugin/skills/lit-docx/templates/tonalities/report.yaml +26 -0
  886. package/plugin/skills/lit-handoff/LICENSE +21 -0
  887. package/plugin/skills/lit-handoff/SKILL.md +176 -0
  888. package/plugin/skills/lit-handoff/evals/evals.json +244 -0
  889. package/plugin/skills/lit-handoff/examples/HANDOFF-example-generic-auth-refactor.md +97 -0
  890. package/plugin/skills/lit-handoff/reference/PROVENANCE.md +17 -0
  891. package/plugin/skills/lit-handoff/reference/canonical-handoff.md +199 -0
  892. package/plugin/skills/lit-handoff/scripts/verify-closure.mjs +50 -0
  893. package/plugin/skills/lit-handoff/templates/HANDOFF.md +121 -0
  894. package/plugin/skills/lit-humanizer/NOTICE +160 -0
  895. package/plugin/skills/lit-humanizer/SKILL.md +226 -0
  896. package/plugin/skills/lit-humanizer/assets/always-on-rule.md +11 -0
  897. package/plugin/skills/lit-humanizer/assets/report-skeleton.md +29 -0
  898. package/plugin/skills/lit-humanizer/assets/slide-text-skeleton.md +28 -0
  899. package/plugin/skills/lit-humanizer/bench/prompts.md +81 -0
  900. package/plugin/skills/lit-humanizer/examples/accessibility-note/after.md +7 -0
  901. package/plugin/skills/lit-humanizer/examples/accessibility-note/before.md +9 -0
  902. package/plugin/skills/lit-humanizer/examples/api-reference/after.md +10 -0
  903. package/plugin/skills/lit-humanizer/examples/api-reference/before.md +14 -0
  904. package/plugin/skills/lit-humanizer/examples/changelog/after.md +8 -0
  905. package/plugin/skills/lit-humanizer/examples/changelog/before.md +12 -0
  906. package/plugin/skills/lit-humanizer/examples/code-comments/after.md +11 -0
  907. package/plugin/skills/lit-humanizer/examples/code-comments/before.md +19 -0
  908. package/plugin/skills/lit-humanizer/examples/commit/after.md +7 -0
  909. package/plugin/skills/lit-humanizer/examples/commit/before.md +5 -0
  910. package/plugin/skills/lit-humanizer/examples/data-release/after.md +9 -0
  911. package/plugin/skills/lit-humanizer/examples/data-release/before.md +11 -0
  912. package/plugin/skills/lit-humanizer/examples/english-essay/after.md +5 -0
  913. package/plugin/skills/lit-humanizer/examples/english-essay/before.md +9 -0
  914. package/plugin/skills/lit-humanizer/examples/incident-update/after.md +9 -0
  915. package/plugin/skills/lit-humanizer/examples/incident-update/before.md +9 -0
  916. package/plugin/skills/lit-humanizer/examples/ko-essay/after.md +5 -0
  917. package/plugin/skills/lit-humanizer/examples/ko-essay/before.md +11 -0
  918. package/plugin/skills/lit-humanizer/examples/ko-report/after.md +9 -0
  919. package/plugin/skills/lit-humanizer/examples/ko-report/before.md +19 -0
  920. package/plugin/skills/lit-humanizer/examples/ko-slide/after.md +21 -0
  921. package/plugin/skills/lit-humanizer/examples/ko-slide/before.md +23 -0
  922. package/plugin/skills/lit-humanizer/examples/meeting-brief/after.md +9 -0
  923. package/plugin/skills/lit-humanizer/examples/meeting-brief/before.md +11 -0
  924. package/plugin/skills/lit-humanizer/examples/policy-faq/after.md +16 -0
  925. package/plugin/skills/lit-humanizer/examples/policy-faq/before.md +16 -0
  926. package/plugin/skills/lit-humanizer/examples/pr/after.md +17 -0
  927. package/plugin/skills/lit-humanizer/examples/pr/before.md +19 -0
  928. package/plugin/skills/lit-humanizer/examples/project-update/after.md +10 -0
  929. package/plugin/skills/lit-humanizer/examples/project-update/before.md +9 -0
  930. package/plugin/skills/lit-humanizer/examples/readme/after.md +19 -0
  931. package/plugin/skills/lit-humanizer/examples/readme/before.md +23 -0
  932. package/plugin/skills/lit-humanizer/examples/report/after.md +9 -0
  933. package/plugin/skills/lit-humanizer/examples/report/before.md +19 -0
  934. package/plugin/skills/lit-humanizer/examples/research-abstract/after.md +1 -0
  935. package/plugin/skills/lit-humanizer/examples/research-abstract/before.md +7 -0
  936. package/plugin/skills/lit-humanizer/examples/slides/after.md +16 -0
  937. package/plugin/skills/lit-humanizer/examples/slides/before.md +19 -0
  938. package/plugin/skills/lit-humanizer/examples/troubleshooting/after.md +13 -0
  939. package/plugin/skills/lit-humanizer/examples/troubleshooting/before.md +13 -0
  940. package/plugin/skills/lit-humanizer/fixtures/ko-metrics-golden.json +51 -0
  941. package/plugin/skills/lit-humanizer/fixtures/office/minimal.docx +0 -0
  942. package/plugin/skills/lit-humanizer/fixtures/office/minimal.pptx +0 -0
  943. package/plugin/skills/lit-humanizer/fixtures/pledge-cases.json +1341 -0
  944. package/plugin/skills/lit-humanizer/fixtures/pos-real.txt +26 -0
  945. package/plugin/skills/lit-humanizer/fixtures/rule-cases.json +312 -0
  946. package/plugin/skills/lit-humanizer/motion-guide.md +125 -0
  947. package/plugin/skills/lit-humanizer/references/code-patterns.md +324 -0
  948. package/plugin/skills/lit-humanizer/references/deliverable-channels.md +123 -0
  949. package/plugin/skills/lit-humanizer/references/en-patterns-checklist.md +44 -0
  950. package/plugin/skills/lit-humanizer/references/en-patterns-content.md +245 -0
  951. package/plugin/skills/lit-humanizer/references/en-patterns-structure.md +389 -0
  952. package/plugin/skills/lit-humanizer/references/en-patterns.md +58 -0
  953. package/plugin/skills/lit-humanizer/references/ko-metrics.md +39 -0
  954. package/plugin/skills/lit-humanizer/references/ko-patterns-a-d.md +667 -0
  955. package/plugin/skills/lit-humanizer/references/ko-patterns-e-j.md +391 -0
  956. package/plugin/skills/lit-humanizer/references/ko-patterns.md +40 -0
  957. package/plugin/skills/lit-humanizer/references/litgravity-fidelity-checklist.md +83 -0
  958. package/plugin/skills/lit-humanizer/references/litgravity-rewrite-rules.md +74 -0
  959. package/plugin/skills/lit-humanizer/references/litgravity-style-patterns.md +57 -0
  960. package/plugin/skills/lit-humanizer/references/prompt-injection-handling.md +29 -0
  961. package/plugin/skills/lit-humanizer/references/rewrite-playbook.md +67 -0
  962. package/plugin/skills/lit-humanizer/references/taxonomy.md +190 -0
  963. package/plugin/skills/lit-humanizer/rules.json +938 -0
  964. package/plugin/skills/lit-humanizer/scripts/artifact-text.mjs +41 -0
  965. package/plugin/skills/lit-humanizer/scripts/core.mjs +313 -0
  966. package/plugin/skills/lit-humanizer/scripts/detect.mjs +79 -0
  967. package/plugin/skills/lit-humanizer/scripts/extract_office_text.py +109 -0
  968. package/plugin/skills/lit-humanizer/scripts/ko-metrics.mjs +147 -0
  969. package/plugin/skills/lit-humanizer/scripts/scan-input.mjs +57 -0
  970. package/plugin/skills/lit-humanizer/scripts/test-fixtures.mjs +217 -0
  971. package/plugin/skills/lit-humanizer/scripts/test-ko-metrics.mjs +28 -0
  972. package/plugin/skills/lit-init/SKILL.md +189 -0
  973. package/plugin/skills/lit-init/references/deep-repository-map.md +95 -0
  974. package/plugin/skills/lit-init/templates/agents-child.md +20 -0
  975. package/plugin/skills/lit-init/templates/agents-root.md +35 -0
  976. package/plugin/skills/lit-loop/SKILL.md +217 -0
  977. package/plugin/skills/lit-loop/references/adversarial-classes.md +27 -0
  978. package/plugin/skills/lit-loop/references/ledger-and-records.md +47 -0
  979. package/plugin/skills/lit-plan/SKILL.md +220 -0
  980. package/plugin/skills/lit-plan/references/agy-surfaces.md +29 -0
  981. package/plugin/skills/lit-plan/references/intent-routes.md +118 -0
  982. package/plugin/skills/lit-plan/references/plan-contract.md +112 -0
  983. package/plugin/skills/lit-plan/references/review-gates.md +51 -0
  984. package/plugin/skills/lit-plan/references/risk-and-recovery.md +56 -0
  985. package/plugin/skills/lit-plan/references/start-work-handoff-contract.md +66 -0
  986. package/plugin/skills/lit-plan/scripts/check-plan.mjs +163 -0
  987. package/plugin/skills/lit-plan/templates/draft.md +41 -0
  988. package/plugin/skills/lit-plan/templates/plan.md +101 -0
  989. package/plugin/skills/lit-pptx/NOTICE +35 -0
  990. package/plugin/skills/lit-pptx/SKILL.md +147 -0
  991. package/plugin/skills/lit-pptx/assets/azure/circle-lg.png +0 -0
  992. package/plugin/skills/lit-pptx/assets/azure/circle-md.png +0 -0
  993. package/plugin/skills/lit-pptx/assets/azure/circle-sm.png +0 -0
  994. package/plugin/skills/lit-pptx/assets/example-a.png +0 -0
  995. package/plugin/skills/lit-pptx/assets/example-b.png +0 -0
  996. package/plugin/skills/lit-pptx/assets/example-c.png +0 -0
  997. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Black.otf +0 -0
  998. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Bold.otf +0 -0
  999. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Light.otf +0 -0
  1000. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Medium.otf +0 -0
  1001. package/plugin/skills/lit-pptx/fonts/a2z/A2Z-Regular.otf +0 -0
  1002. package/plugin/skills/lit-pptx/fonts/a2z/OFL.txt +94 -0
  1003. package/plugin/skills/lit-pptx/fonts/a2z/SOURCE.md +29 -0
  1004. package/plugin/skills/lit-pptx/fonts/pretendard/OFL.txt +94 -0
  1005. package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Bold.otf +0 -0
  1006. package/plugin/skills/lit-pptx/fonts/pretendard/Pretendard-Regular.otf +0 -0
  1007. package/plugin/skills/lit-pptx/fonts/provenance.json +78 -0
  1008. package/plugin/skills/lit-pptx/references/agents/analyst.md +71 -0
  1009. package/plugin/skills/lit-pptx/references/agents/antithesis.md +77 -0
  1010. package/plugin/skills/lit-pptx/references/agents/architect.md +57 -0
  1011. package/plugin/skills/lit-pptx/references/agents/critic.md +58 -0
  1012. package/plugin/skills/lit-pptx/references/agents/synthesizer.md +56 -0
  1013. package/plugin/skills/lit-pptx/references/agents/thesis.md +53 -0
  1014. package/plugin/skills/lit-pptx/references/anti-slop-checklist.md +157 -0
  1015. package/plugin/skills/lit-pptx/references/authoring-guide.md +341 -0
  1016. package/plugin/skills/lit-pptx/references/build-loop.md +117 -0
  1017. package/plugin/skills/lit-pptx/references/consensus-protocol.md +123 -0
  1018. package/plugin/skills/lit-pptx/references/data-display-cookbook.md +153 -0
  1019. package/plugin/skills/lit-pptx/references/density-and-fill.md +232 -0
  1020. package/plugin/skills/lit-pptx/references/design-system-azure.md +90 -0
  1021. package/plugin/skills/lit-pptx/references/direction-step.md +245 -0
  1022. package/plugin/skills/lit-pptx/references/examples/01-pitch-signal-ko.md +211 -0
  1023. package/plugin/skills/lit-pptx/references/examples/02-pitch-studio-ko.md +147 -0
  1024. package/plugin/skills/lit-pptx/references/examples/03-business-review-ledger-ko.md +199 -0
  1025. package/plugin/skills/lit-pptx/references/examples/04-business-review-night-en.md +203 -0
  1026. package/plugin/skills/lit-pptx/references/examples/05-research-talk-paper-en.md +178 -0
  1027. package/plugin/skills/lit-pptx/references/examples/06-lecture-chalk-ko.md +199 -0
  1028. package/plugin/skills/lit-pptx/references/examples/07-data-review-night-en.md +192 -0
  1029. package/plugin/skills/lit-pptx/references/examples/08-image-led-atlas-ko.md +175 -0
  1030. package/plugin/skills/lit-pptx/references/examples/09-briefing-gazette-ko.md +204 -0
  1031. package/plugin/skills/lit-pptx/references/examples/10-status-update-ledger-ko.md +179 -0
  1032. package/plugin/skills/lit-pptx/references/examples/11-portfolio-studio-en.md +164 -0
  1033. package/plugin/skills/lit-pptx/references/examples/12-research-tutorial-chalk-en.md +174 -0
  1034. package/plugin/skills/lit-pptx/references/interview-protocol.md +132 -0
  1035. package/plugin/skills/lit-pptx/references/layout-families.md +298 -0
  1036. package/plugin/skills/lit-pptx/references/stages/autopilot.md +88 -0
  1037. package/plugin/skills/lit-pptx/references/stages/interview.md +84 -0
  1038. package/plugin/skills/lit-pptx/references/stages/plan.md +83 -0
  1039. package/plugin/skills/lit-pptx/references/title-treatments.md +165 -0
  1040. package/plugin/skills/lit-pptx/references/tonalities/atlas.md +152 -0
  1041. package/plugin/skills/lit-pptx/references/tonalities/chalk.md +163 -0
  1042. package/plugin/skills/lit-pptx/references/tonalities/gazette.md +173 -0
  1043. package/plugin/skills/lit-pptx/references/tonalities/ledger.md +178 -0
  1044. package/plugin/skills/lit-pptx/references/tonalities/night.md +174 -0
  1045. package/plugin/skills/lit-pptx/references/tonalities/paper.md +167 -0
  1046. package/plugin/skills/lit-pptx/references/tonalities/signal.md +157 -0
  1047. package/plugin/skills/lit-pptx/references/tonalities/studio.md +162 -0
  1048. package/plugin/skills/lit-pptx/scripts/compile-deck.js +464 -0
  1049. package/plugin/skills/lit-pptx/scripts/craft_extras.py +1033 -0
  1050. package/plugin/skills/lit-pptx/scripts/deck_craft.py +363 -0
  1051. package/plugin/skills/lit-pptx/scripts/embed_fonts.py +215 -0
  1052. package/plugin/skills/lit-pptx/scripts/forbidden-terms.json +55 -0
  1053. package/plugin/skills/lit-pptx/scripts/layout_inventory.py +418 -0
  1054. package/plugin/skills/lit-pptx/scripts/learn_template.py +446 -0
  1055. package/plugin/skills/lit-pptx/scripts/lib/derive-palette.js +176 -0
  1056. package/plugin/skills/lit-pptx/scripts/lib/directive-parser.js +244 -0
  1057. package/plugin/skills/lit-pptx/scripts/lib/font-map.js +79 -0
  1058. package/plugin/skills/lit-pptx/scripts/lib/gen-bg.js +86 -0
  1059. package/plugin/skills/lit-pptx/scripts/lib/gen-gradient-assets.js +37 -0
  1060. package/plugin/skills/lit-pptx/scripts/lib/grid-resolver.js +521 -0
  1061. package/plugin/skills/lit-pptx/scripts/lib/layout-resolver.js +1119 -0
  1062. package/plugin/skills/lit-pptx/scripts/lib/markdown-loader.js +138 -0
  1063. package/plugin/skills/lit-pptx/scripts/lib/render-adapter-html.js +356 -0
  1064. package/plugin/skills/lit-pptx/scripts/lib/render-adapter-pptx.js +2240 -0
  1065. package/plugin/skills/lit-pptx/scripts/lib/render-pack.js +3559 -0
  1066. package/plugin/skills/lit-pptx/scripts/lib/runtime-require.js +28 -0
  1067. package/plugin/skills/lit-pptx/scripts/lib/slide-ast.js +565 -0
  1068. package/plugin/skills/lit-pptx/scripts/lib/spec-validator.js +94 -0
  1069. package/plugin/skills/lit-pptx/scripts/lib/template-registry.js +679 -0
  1070. package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package-lock.json +793 -0
  1071. package/plugin/skills/lit-pptx/scripts/office-runtime-lock/package.json +12 -0
  1072. package/plugin/skills/lit-pptx/scripts/office-runtime-lock/requirements.lock +15 -0
  1073. package/plugin/skills/lit-pptx/scripts/office-runtime.mjs +279 -0
  1074. package/plugin/skills/lit-pptx/scripts/office_data.py +493 -0
  1075. package/plugin/skills/lit-pptx/scripts/office_runtime_bootstrap.py +73 -0
  1076. package/plugin/skills/lit-pptx/scripts/ooxml_integrity.py +199 -0
  1077. package/plugin/skills/lit-pptx/scripts/package.json +4 -0
  1078. package/plugin/skills/lit-pptx/scripts/qa_deck.py +795 -0
  1079. package/plugin/skills/lit-pptx/scripts/render_pages.py +116 -0
  1080. package/plugin/skills/lit-pptx/scripts/validate_pptx.py +230 -0
  1081. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v1.md +275 -0
  1082. package/plugin/skills/lit-pptx/specs/markdown-slide-spec-v2.md +263 -0
  1083. package/plugin/skills/lit-pptx/specs/slide-ast-v1.schema.json +229 -0
  1084. package/plugin/skills/lit-pptx/specs/slide-ast-v2.schema.json +144 -0
  1085. package/plugin/skills/lit-pptx/specs/template-enrollment-contract.md +405 -0
  1086. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/capabilities.yaml +146 -0
  1087. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/layout-mapping.yaml +454 -0
  1088. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-A2Z/template.yaml +40 -0
  1089. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/capabilities.yaml +154 -0
  1090. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/layout-mapping.yaml +475 -0
  1091. package/plugin/skills/lit-pptx/templates/enrolled/AZURE-PRO/template.yaml +40 -0
  1092. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/capabilities.yaml +179 -0
  1093. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/layout-mapping.yaml +299 -0
  1094. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-A2Z/template.yaml +45 -0
  1095. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/capabilities.yaml +181 -0
  1096. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/layout-mapping.yaml +299 -0
  1097. package/plugin/skills/lit-pptx/templates/enrolled/BOILERPLATE-PRETENDARD/template.yaml +44 -0
  1098. package/plugin/skills/lit-pptx/templates/tonalities/atlas/pack.yaml +92 -0
  1099. package/plugin/skills/lit-pptx/templates/tonalities/chalk/pack.yaml +97 -0
  1100. package/plugin/skills/lit-pptx/templates/tonalities/gazette/pack.yaml +93 -0
  1101. package/plugin/skills/lit-pptx/templates/tonalities/ledger/pack.yaml +94 -0
  1102. package/plugin/skills/lit-pptx/templates/tonalities/night/pack.yaml +93 -0
  1103. package/plugin/skills/lit-pptx/templates/tonalities/paper/pack.yaml +98 -0
  1104. package/plugin/skills/lit-pptx/templates/tonalities/signal/pack.yaml +94 -0
  1105. package/plugin/skills/lit-pptx/templates/tonalities/studio/pack.yaml +92 -0
  1106. package/plugin/skills/lit-recap/SKILL.md +168 -0
  1107. package/plugin/skills/lit-recap/references/recap-shapes.md +166 -0
  1108. package/plugin/skills/lit-recap/references/source-reading.md +105 -0
  1109. package/plugin/skills/lit-recap/references/stale-state-checks.md +74 -0
  1110. package/plugin/skills/lit-scientific-visualization/LICENSE +21 -0
  1111. package/plugin/skills/lit-scientific-visualization/SKILL.md +165 -0
  1112. package/plugin/skills/lit-scientific-visualization/assets/color_palettes.py +197 -0
  1113. package/plugin/skills/lit-scientific-visualization/assets/nature.mplstyle +75 -0
  1114. package/plugin/skills/lit-scientific-visualization/assets/presentation.mplstyle +74 -0
  1115. package/plugin/skills/lit-scientific-visualization/assets/publication.mplstyle +78 -0
  1116. package/plugin/skills/lit-scientific-visualization/evals/evals.json +158 -0
  1117. package/plugin/skills/lit-scientific-visualization/references/canonical-workflow.md +278 -0
  1118. package/plugin/skills/lit-scientific-visualization/references/color_palettes.md +380 -0
  1119. package/plugin/skills/lit-scientific-visualization/references/journal_requirements.md +359 -0
  1120. package/plugin/skills/lit-scientific-visualization/references/matplotlib_examples.md +608 -0
  1121. package/plugin/skills/lit-scientific-visualization/references/mdanalysis_martini_visualization.md +85 -0
  1122. package/plugin/skills/lit-scientific-visualization/references/publication_guidelines.md +217 -0
  1123. package/plugin/skills/lit-scientific-visualization/references/seaborn_for_publications.md +293 -0
  1124. package/plugin/skills/lit-scientific-visualization/scripts/figure_export.py +238 -0
  1125. package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime-requirements.lock +23 -0
  1126. package/plugin/skills/lit-scientific-visualization/scripts/sciviz-runtime.mjs +230 -0
  1127. package/plugin/skills/lit-scientific-visualization/scripts/style_presets.py +467 -0
  1128. package/plugin/skills/lit-scientific-visualization/tests/test_figure_export.py +51 -0
  1129. package/plugin/skills/lit-scientific-visualization/tests/test_style_presets.py +114 -0
  1130. package/plugin/skills/lit-team/SKILL.md +118 -0
  1131. package/plugin/skills/lit-team/references/member-briefs.md +67 -0
  1132. package/plugin/skills/lit-team/references/team-orchestration.md +129 -0
  1133. package/plugin/skills/lit-team/scripts/owner-lock.mjs +330 -0
  1134. package/plugin/skills/lit-team/scripts/secure-path.mjs +24 -0
  1135. package/plugin/skills/lit-team/scripts/state-root.mjs +55 -0
  1136. package/plugin/skills/lit-team/scripts/team.mjs +629 -0
  1137. package/plugin/skills/lit-typographic-motion/SKILL.md +196 -0
  1138. package/plugin/skills/lit-typographic-motion/engine/NOTICE +23 -0
  1139. package/plugin/skills/lit-typographic-motion/engine/THIRD_PARTY_NOTICES +62 -0
  1140. package/plugin/skills/lit-typographic-motion/engine/audio/beat_grid.py +56 -0
  1141. package/plugin/skills/lit-typographic-motion/engine/audio/requirements.lock +1084 -0
  1142. package/plugin/skills/lit-typographic-motion/engine/core/constants.mjs +246 -0
  1143. package/plugin/skills/lit-typographic-motion/engine/core/contrast.mjs +90 -0
  1144. package/plugin/skills/lit-typographic-motion/engine/core/events.mjs +46 -0
  1145. package/plugin/skills/lit-typographic-motion/engine/core/flash.mjs +211 -0
  1146. package/plugin/skills/lit-typographic-motion/engine/core/gate-rules.mjs +550 -0
  1147. package/plugin/skills/lit-typographic-motion/engine/core/presets.mjs +123 -0
  1148. package/plugin/skills/lit-typographic-motion/engine/core/text.mjs +100 -0
  1149. package/plugin/skills/lit-typographic-motion/engine/core/timeline.mjs +142 -0
  1150. package/plugin/skills/lit-typographic-motion/engine/core/util.mjs +167 -0
  1151. package/plugin/skills/lit-typographic-motion/engine/core/voices.mjs +19 -0
  1152. package/plugin/skills/lit-typographic-motion/engine/models/word-timing.json +198 -0
  1153. package/plugin/skills/lit-typographic-motion/engine/node/analysis.mjs +108 -0
  1154. package/plugin/skills/lit-typographic-motion/engine/node/brief.mjs +158 -0
  1155. package/plugin/skills/lit-typographic-motion/engine/node/chrome.mjs +331 -0
  1156. package/plugin/skills/lit-typographic-motion/engine/node/cover-assets.mjs +102 -0
  1157. package/plugin/skills/lit-typographic-motion/engine/node/cover-capture.mjs +209 -0
  1158. package/plugin/skills/lit-typographic-motion/engine/node/cover-gate.mjs +347 -0
  1159. package/plugin/skills/lit-typographic-motion/engine/node/cover-image.mjs +141 -0
  1160. package/plugin/skills/lit-typographic-motion/engine/node/cover-sheet.mjs +76 -0
  1161. package/plugin/skills/lit-typographic-motion/engine/node/cover-treatment.mjs +106 -0
  1162. package/plugin/skills/lit-typographic-motion/engine/node/cover-worker.mjs +32 -0
  1163. package/plugin/skills/lit-typographic-motion/engine/node/cover.mjs +374 -0
  1164. package/plugin/skills/lit-typographic-motion/engine/node/coverage.mjs +83 -0
  1165. package/plugin/skills/lit-typographic-motion/engine/node/done.mjs +170 -0
  1166. package/plugin/skills/lit-typographic-motion/engine/node/encode.mjs +105 -0
  1167. package/plugin/skills/lit-typographic-motion/engine/node/frame-worker.mjs +36 -0
  1168. package/plugin/skills/lit-typographic-motion/engine/node/look.mjs +164 -0
  1169. package/plugin/skills/lit-typographic-motion/engine/node/pipeline.mjs +593 -0
  1170. package/plugin/skills/lit-typographic-motion/engine/node/png.mjs +112 -0
  1171. package/plugin/skills/lit-typographic-motion/engine/node/report.mjs +66 -0
  1172. package/plugin/skills/lit-typographic-motion/engine/node/runtime.mjs +349 -0
  1173. package/plugin/skills/lit-typographic-motion/engine/node/session.mjs +145 -0
  1174. package/plugin/skills/lit-typographic-motion/engine/node/sound-cli.mjs +60 -0
  1175. package/plugin/skills/lit-typographic-motion/engine/node/sound.mjs +642 -0
  1176. package/plugin/skills/lit-typographic-motion/engine/node/stage-capture.mjs +179 -0
  1177. package/plugin/skills/lit-typographic-motion/engine/node/stage-gate.mjs +122 -0
  1178. package/plugin/skills/lit-typographic-motion/engine/node/stage-qa.mjs +295 -0
  1179. package/plugin/skills/lit-typographic-motion/engine/node/stage-serve.mjs +283 -0
  1180. package/plugin/skills/lit-typographic-motion/engine/node/stage.mjs +503 -0
  1181. package/plugin/skills/lit-typographic-motion/engine/node/stills.mjs +100 -0
  1182. package/plugin/skills/lit-typographic-motion/engine/node/treatment.mjs +344 -0
  1183. package/plugin/skills/lit-typographic-motion/engine/node/webp.mjs +146 -0
  1184. package/plugin/skills/lit-typographic-motion/engine/node/ws-server.mjs +132 -0
  1185. package/plugin/skills/lit-typographic-motion/engine/package-lock.json +25 -0
  1186. package/plugin/skills/lit-typographic-motion/engine/package.json +10 -0
  1187. package/plugin/skills/lit-typographic-motion/engine/stage/cover-init.js +37 -0
  1188. package/plugin/skills/lit-typographic-motion/engine/stage/init.js +288 -0
  1189. package/plugin/skills/lit-typographic-motion/engine/stage/loop-kit.js +106 -0
  1190. package/plugin/skills/lit-typographic-motion/engine/stage/qa.js +157 -0
  1191. package/plugin/skills/lit-typographic-motion/engine/stage/stage-kit.js +701 -0
  1192. package/plugin/skills/lit-typographic-motion/engine/web/boot.mjs +123 -0
  1193. package/plugin/skills/lit-typographic-motion/engine/web/engine.mjs +281 -0
  1194. package/plugin/skills/lit-typographic-motion/engine/web/gl.mjs +319 -0
  1195. package/plugin/skills/lit-typographic-motion/engine/web/glsl-common.mjs +78 -0
  1196. package/plugin/skills/lit-typographic-motion/engine/web/index.html +6 -0
  1197. package/plugin/skills/lit-typographic-motion/engine/web/lines.mjs +112 -0
  1198. package/plugin/skills/lit-typographic-motion/engine/web/passes/crt.mjs +98 -0
  1199. package/plugin/skills/lit-typographic-motion/engine/web/passes/dither.mjs +49 -0
  1200. package/plugin/skills/lit-typographic-motion/engine/web/passes/glitch.mjs +77 -0
  1201. package/plugin/skills/lit-typographic-motion/engine/web/passes/swiss-grid.mjs +61 -0
  1202. package/plugin/skills/lit-typographic-motion/engine/web/passes/terminal-ui.mjs +88 -0
  1203. package/plugin/skills/lit-typographic-motion/engine/web/passes/tidal-gradient.mjs +86 -0
  1204. package/plugin/skills/lit-typographic-motion/engine/web/post.mjs +165 -0
  1205. package/plugin/skills/lit-typographic-motion/engine/web/scale.mjs +15 -0
  1206. package/plugin/skills/lit-typographic-motion/engine/web/scene.mjs +82 -0
  1207. package/plugin/skills/lit-typographic-motion/engine/web/scenes/end-card.mjs +30 -0
  1208. package/plugin/skills/lit-typographic-motion/engine/web/scenes/index.mjs +16 -0
  1209. package/plugin/skills/lit-typographic-motion/engine/web/scenes/karaoke-line.mjs +47 -0
  1210. package/plugin/skills/lit-typographic-motion/engine/web/scenes/kinetic-list.mjs +45 -0
  1211. package/plugin/skills/lit-typographic-motion/engine/web/scenes/number-counter.mjs +29 -0
  1212. package/plugin/skills/lit-typographic-motion/engine/web/scenes/signature.mjs +73 -0
  1213. package/plugin/skills/lit-typographic-motion/engine/web/scenes/title-slam.mjs +73 -0
  1214. package/plugin/skills/lit-typographic-motion/engine/web/stroke.mjs +236 -0
  1215. package/plugin/skills/lit-typographic-motion/engine/web/type.mjs +180 -0
  1216. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-400.ttf +0 -0
  1217. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-700.ttf +0 -0
  1218. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w100-900.ttf +0 -0
  1219. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-400.ttf +0 -0
  1220. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-700.ttf +0 -0
  1221. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w125-900.ttf +0 -0
  1222. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-400.ttf +0 -0
  1223. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-700.ttf +0 -0
  1224. package/plugin/skills/lit-typographic-motion/fonts/archivo/Archivo-w75-900.ttf +0 -0
  1225. package/plugin/skills/lit-typographic-motion/fonts/archivo/OFL.txt +93 -0
  1226. package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/JetBrainsMono-wght-latin.woff2 +0 -0
  1227. package/plugin/skills/lit-typographic-motion/fonts/jetbrains-mono/OFL.txt +93 -0
  1228. package/plugin/skills/lit-typographic-motion/fonts/manifest.json +455 -0
  1229. package/plugin/skills/lit-typographic-motion/fonts/silkscreen/OFL.txt +93 -0
  1230. package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Bold.ttf +0 -0
  1231. package/plugin/skills/lit-typographic-motion/fonts/silkscreen/Silkscreen-Regular.ttf +0 -0
  1232. package/plugin/skills/lit-typographic-motion/fonts/stroke/CREDITS +42 -0
  1233. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSAllure.svg +216 -0
  1234. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSFelix.svg +216 -0
  1235. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSOsmotron.svg +216 -0
  1236. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSReadability.svg +216 -0
  1237. package/plugin/skills/lit-typographic-motion/fonts/stroke/EMSTech.svg +217 -0
  1238. package/plugin/skills/lit-typographic-motion/fonts/stroke/OFL.txt +91 -0
  1239. package/plugin/skills/lit-typographic-motion/fonts/vt323/OFL.txt +93 -0
  1240. package/plugin/skills/lit-typographic-motion/fonts/vt323/VT323-Regular.ttf +0 -0
  1241. package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/expected.json +16 -0
  1242. package/plugin/skills/lit-typographic-motion/recipes/negatives/card-scenes/index.html +27 -0
  1243. package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/expected.json +16 -0
  1244. package/plugin/skills/lit-typographic-motion/recipes/negatives/reset-sweep/index.html +17 -0
  1245. package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/expected.json +17 -0
  1246. package/plugin/skills/lit-typographic-motion/recipes/negatives/still-glow/index.html +18 -0
  1247. package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/expected.json +17 -0
  1248. package/plugin/skills/lit-typographic-motion/recipes/negatives/title-slam/index.html +30 -0
  1249. package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/expected.json +67 -0
  1250. package/plugin/skills/lit-typographic-motion/recipes/orbit-loop/index.html +152 -0
  1251. package/plugin/skills/lit-typographic-motion/recipes/painted-light/expected.json +95 -0
  1252. package/plugin/skills/lit-typographic-motion/recipes/painted-light/index.html +202 -0
  1253. package/plugin/skills/lit-typographic-motion/recipes/weight-tide/expected.json +67 -0
  1254. package/plugin/skills/lit-typographic-motion/recipes/weight-tide/index.html +100 -0
  1255. package/plugin/skills/lit-typographic-motion/references/brief-schema.md +119 -0
  1256. package/plugin/skills/lit-typographic-motion/references/cover.md +473 -0
  1257. package/plugin/skills/lit-typographic-motion/references/craft-loop.md +100 -0
  1258. package/plugin/skills/lit-typographic-motion/references/engine-contract.md +124 -0
  1259. package/plugin/skills/lit-typographic-motion/references/look.md +157 -0
  1260. package/plugin/skills/lit-typographic-motion/references/runtime.md +100 -0
  1261. package/plugin/skills/lit-typographic-motion/references/sound.md +121 -0
  1262. package/plugin/skills/lit-typographic-motion/references/stage.md +239 -0
  1263. package/plugin/skills/lit-typographic-motion/references/style-bibles.md +130 -0
  1264. package/plugin/skills/lit-typographic-motion/references/treatment.md +166 -0
  1265. package/plugin/skills/lit-typographic-motion/references/type-craft.md +87 -0
  1266. package/plugin/skills/lit-typographic-motion/scripts/motion-doctor.mjs +99 -0
  1267. package/plugin/skills/lit-typographic-motion/scripts/motion-runtime.mjs +95 -0
  1268. package/plugin/skills/lit-typographic-motion/scripts/motion.mjs +165 -0
  1269. package/plugin/skills/litgoal/SKILL.md +267 -0
  1270. package/plugin/skills/litgoal/references/close-gate.md +28 -0
  1271. package/plugin/skills/litgoal/references/host-goal-binding.md +32 -0
  1272. package/plugin/skills/litgoal/scripts/check-goal.mjs +116 -0
  1273. package/plugin/skills/litgoal/templates/goal.json +23 -0
  1274. package/plugin/skills/litresearch/ATTRIBUTION.md +42 -0
  1275. package/plugin/skills/litresearch/SKILL.md +229 -0
  1276. package/plugin/skills/litresearch/references/disputed-claims.md +103 -0
  1277. package/plugin/skills/litresearch/references/lane-operations.md +96 -0
  1278. package/plugin/skills/litresearch/references/ledger-and-evidence.md +120 -0
  1279. package/plugin/skills/litresearch/references/pitfalls.md +56 -0
  1280. package/plugin/skills/litresearch/references/query-craft.md +67 -0
  1281. package/plugin/skills/litresearch/references/question-playbooks.md +74 -0
  1282. package/plugin/skills/litresearch/references/report-formats.md +136 -0
  1283. package/plugin/skills/litresearch/references/source-verdict-checklist.md +81 -0
  1284. package/plugin/skills/litresearch/references/worked-examples.md +36 -0
  1285. package/plugin/skills/litwork/SKILL.md +190 -0
  1286. package/plugin/skills/litwork/references/execution-details.md +93 -0
  1287. package/plugin/skills/litwork/references/qa-channel-recipes.md +83 -0
  1288. package/plugin/skills/litwork/references/tier-and-criteria.md +68 -0
  1289. package/plugin/skills/litwork/templates/notes.md +29 -0
  1290. package/plugin/skills/lsp/SKILL.md +166 -0
  1291. package/plugin/skills/lsp/references/cli-recipes.md +154 -0
  1292. package/plugin/skills/lsp/references/runtime-triage.md +122 -0
  1293. package/plugin/skills/lsp/scripts/diagnostics.mjs +340 -0
  1294. package/plugin/skills/lsp/scripts/tsserver-query.mjs +83 -0
  1295. package/plugin/skills/lsp-setup/SKILL.md +241 -0
  1296. package/plugin/skills/lsp-setup/references/bash/README.md +92 -0
  1297. package/plugin/skills/lsp-setup/references/c-cpp/README.md +92 -0
  1298. package/plugin/skills/lsp-setup/references/csharp/README.md +93 -0
  1299. package/plugin/skills/lsp-setup/references/dart/README.md +88 -0
  1300. package/plugin/skills/lsp-setup/references/elixir/README.md +87 -0
  1301. package/plugin/skills/lsp-setup/references/go/README.md +93 -0
  1302. package/plugin/skills/lsp-setup/references/haskell/README.md +89 -0
  1303. package/plugin/skills/lsp-setup/references/java/README.md +89 -0
  1304. package/plugin/skills/lsp-setup/references/julia/README.md +85 -0
  1305. package/plugin/skills/lsp-setup/references/kotlin/README.md +88 -0
  1306. package/plugin/skills/lsp-setup/references/lua/README.md +92 -0
  1307. package/plugin/skills/lsp-setup/references/php/README.md +92 -0
  1308. package/plugin/skills/lsp-setup/references/python/README.md +104 -0
  1309. package/plugin/skills/lsp-setup/references/ruby/README.md +90 -0
  1310. package/plugin/skills/lsp-setup/references/rust/README.md +91 -0
  1311. package/plugin/skills/lsp-setup/references/swift/README.md +91 -0
  1312. package/plugin/skills/lsp-setup/references/terraform/README.md +92 -0
  1313. package/plugin/skills/lsp-setup/references/typescript/README.md +109 -0
  1314. package/plugin/skills/lsp-setup/references/yaml/README.md +93 -0
  1315. package/plugin/skills/lsp-setup/references/zig/README.md +81 -0
  1316. package/plugin/skills/lsp-setup/scripts/detect-lsp.mjs +129 -0
  1317. package/plugin/skills/lsp-setup/scripts/lsp-server-table.mjs +192 -0
  1318. package/plugin/skills/lsp-setup/scripts/verify-lsp.mjs +203 -0
  1319. package/plugin/skills/readme-studio/SKILL.md +111 -0
  1320. package/plugin/skills/readme-studio/references/decoration-and-navigation.md +55 -0
  1321. package/plugin/skills/readme-studio/references/facts-and-assembly.md +19 -0
  1322. package/plugin/skills/readme-studio/references/production-interview.md +11 -0
  1323. package/plugin/skills/readme-studio/references/render-and-deliver.md +44 -0
  1324. package/plugin/skills/readme-studio/references/type-and-background.md +23 -0
  1325. package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package-lock.json +133 -0
  1326. package/plugin/skills/readme-studio/scripts/readme-runtime-lock/package.json +6 -0
  1327. package/plugin/skills/readme-studio/scripts/readme-runtime.mjs +77 -0
  1328. package/plugin/skills/readme-studio/scripts/validate-readme-facts.mjs +28 -0
  1329. package/plugin/skills/readme-studio/templates/cover-source.json +21 -0
  1330. package/plugin/skills/readme-studio/templates/hyperframes-cover/index.html +30 -0
  1331. package/plugin/skills/readme-studio/templates/hyperframes-cover/index.motion.json +1 -0
  1332. package/plugin/skills/readme-studio/templates/hyperframes-cover/package-lock.json +2017 -0
  1333. package/plugin/skills/readme-studio/templates/hyperframes-cover/package.json +8 -0
  1334. package/plugin/skills/readme-studio/templates/readme-cover-section.md +75 -0
  1335. package/plugin/skills/readme-studio/templates/readme-facts.json +4 -0
  1336. package/plugin/skills/readme-studio/templates/remotion-cover/package-lock.json +3783 -0
  1337. package/plugin/skills/readme-studio/templates/remotion-cover/package.json +7 -0
  1338. package/plugin/skills/readme-studio/templates/remotion-cover/src/index.tsx +36 -0
  1339. package/plugin/skills/readme-studio/templates/typography/package-lock.json +133 -0
  1340. package/plugin/skills/readme-studio/templates/typography/package.json +6 -0
  1341. package/plugin/skills/readme-studio/templates/typography/safe-files.mjs +57 -0
  1342. package/plugin/skills/readme-studio/templates/typography/shape-text-to-svg.mjs +63 -0
  1343. package/plugin/skills/refactor/SKILL.md +228 -0
  1344. package/plugin/skills/refactor/references/evidence-and-stops.md +107 -0
  1345. package/plugin/skills/refactor/references/language-and-surface-checks.md +90 -0
  1346. package/plugin/skills/refactor/references/parallel-dispatch.md +66 -0
  1347. package/plugin/skills/refactor/references/phase-templates.md +172 -0
  1348. package/plugin/skills/refactor/references/safe-change-playbook.md +151 -0
  1349. package/plugin/skills/review-work/SKILL.md +227 -0
  1350. package/plugin/skills/review-work/references/agy-plugin-review.md +38 -0
  1351. package/plugin/skills/review-work/references/lane-briefs.md +62 -0
  1352. package/plugin/skills/review-work/references/lane-context.md +44 -0
  1353. package/plugin/skills/review-work/references/lane-goal.md +51 -0
  1354. package/plugin/skills/review-work/references/lane-output-examples.md +79 -0
  1355. package/plugin/skills/review-work/references/lane-qa.md +54 -0
  1356. package/plugin/skills/review-work/references/lane-quality.md +39 -0
  1357. package/plugin/skills/review-work/references/lane-security.md +38 -0
  1358. package/plugin/skills/review-work/references/plan-review-checklist.md +142 -0
  1359. package/plugin/skills/review-work/references/review-rules.md +54 -0
  1360. package/plugin/skills/review-work/references/verdict-templates.md +152 -0
  1361. package/plugin/skills/review-work/references/worked-reviews.md +85 -0
  1362. package/plugin/skills/review-work/scripts/check-lanes.mjs +109 -0
  1363. package/plugin/skills/rules/SKILL.md +175 -0
  1364. package/plugin/skills/rules/references/loading-facts.md +55 -0
  1365. package/plugin/skills/rules/templates/receipt.md +34 -0
  1366. package/plugin/skills/start-work/SKILL.md +191 -0
  1367. package/plugin/skills/start-work/references/admission-and-selection.md +39 -0
  1368. package/plugin/skills/start-work/references/delegation-and-recovery.md +63 -0
  1369. package/plugin/skills/start-work/references/execution-templates.md +131 -0
  1370. package/plugin/skills/start-work/references/final-wave.md +47 -0
  1371. package/plugin/skills/start-work/references/gate-details.md +79 -0
  1372. package/plugin/skills/start-work/scripts/ledger-append.mjs +58 -0
  1373. package/plugin/skills/start-work/scripts/next-row.mjs +99 -0
  1374. package/plugin/skills/structural-search/SKILL.md +223 -0
  1375. package/plugin/skills/structural-search/references/diagnostics.md +289 -0
  1376. package/plugin/skills/structural-search/references/patterns-and-rules.md +356 -0
  1377. package/plugin/skills/structural-search/references/rewrite-safety.md +230 -0
  1378. package/plugin/skills/visual-qa/SKILL.md +136 -0
  1379. package/plugin/skills/visual-qa/references/breakage-catalogue.md +70 -0
  1380. package/plugin/skills/visual-qa/references/capture-playbook.md +96 -0
  1381. package/plugin/skills/visual-qa/references/complete-contract.md +411 -0
  1382. package/plugin/skills/visual-qa/references/korean-and-mixed-script-checks.md +50 -0
  1383. package/plugin/skills/visual-qa/references/reviewer-charters.md +70 -0
  1384. package/plugin/skills/visual-qa/schemas/design-contract-v1alpha1.schema.json +305 -0
  1385. package/plugin/skills/visual-qa/schemas/design-contract-v1beta1.schema.json +291 -0
  1386. package/plugin/skills/visual-qa/schemas/design-contract-v1beta2.schema.json +311 -0
  1387. package/plugin/skills/visual-qa/schemas/evidence-manifest-v1alpha1.schema.json +235 -0
  1388. package/plugin/skills/visual-qa/schemas/evidence-manifest-v1beta1.schema.json +208 -0
  1389. package/plugin/skills/visual-qa/schemas/review-receipt-v1alpha1.schema.json +66 -0
  1390. package/plugin/skills/visual-qa/scripts/ansi.ts +17 -0
  1391. package/plugin/skills/visual-qa/scripts/cli.mjs +101 -0
  1392. package/plugin/skills/visual-qa/scripts/cli.ts +96 -0
  1393. package/plugin/skills/visual-qa/scripts/design-contract-shape.mjs +448 -0
  1394. package/plugin/skills/visual-qa/scripts/east-asian-width.ts +72 -0
  1395. package/plugin/skills/visual-qa/scripts/errors.mjs +12 -0
  1396. package/plugin/skills/visual-qa/scripts/evidence-io.mjs +184 -0
  1397. package/plugin/skills/visual-qa/scripts/evidence-semantic.mjs +95 -0
  1398. package/plugin/skills/visual-qa/scripts/evidence-shape.mjs +163 -0
  1399. package/plugin/skills/visual-qa/scripts/evidence.mjs +421 -0
  1400. package/plugin/skills/visual-qa/scripts/image-diff.mjs +89 -0
  1401. package/plugin/skills/visual-qa/scripts/image-diff.ts +109 -0
  1402. package/plugin/skills/visual-qa/scripts/png-chunks.mjs +107 -0
  1403. package/plugin/skills/visual-qa/scripts/png-crc.ts +27 -0
  1404. package/plugin/skills/visual-qa/scripts/png-decode.mjs +143 -0
  1405. package/plugin/skills/visual-qa/scripts/png-decode.ts +206 -0
  1406. package/plugin/skills/visual-qa/scripts/png-synth.ts +57 -0
  1407. package/plugin/skills/visual-qa/scripts/review-rules.mjs +137 -0
  1408. package/plugin/skills/visual-qa/scripts/strict-json.mjs +143 -0
  1409. package/plugin/skills/visual-qa/scripts/terminal-text.mjs +117 -0
  1410. package/plugin/skills/visual-qa/scripts/tui-check.mjs +74 -0
  1411. package/plugin/skills/visual-qa/scripts/tui-grid.ts +88 -0
  1412. package/plugin/skills/visual-qa/scripts/types.ts +54 -0
  1413. package/plugin/skills/wikify/LICENSE +21 -0
  1414. package/plugin/skills/wikify/PROVENANCE.md +31 -0
  1415. package/plugin/skills/wikify/SKILL.md +245 -0
  1416. package/plugin/skills/wikify/assets/home-template.md +44 -0
  1417. package/plugin/skills/wikify/assets/maintenance-report-template.md +46 -0
  1418. package/plugin/skills/wikify/assets/paper-source-note-template.md +137 -0
  1419. package/plugin/skills/wikify/assets/source-note-template.md +45 -0
  1420. package/plugin/skills/wikify/assets/wiki-rules-template.md +117 -0
  1421. package/plugin/skills/wikify/modes/ingest.md +40 -0
  1422. package/plugin/skills/wikify/modes/init.md +50 -0
  1423. package/plugin/skills/wikify/modes/lint.md +43 -0
  1424. package/plugin/skills/wikify/modes/query.md +35 -0
  1425. package/plugin/skills/wikify/modes/save.md +43 -0
  1426. package/plugin/skills/wikify/references/bridge-and-promotion.md +70 -0
  1427. package/plugin/skills/wikify/references/capture-review-protocol.md +78 -0
  1428. package/plugin/skills/wikify/references/knowledge-script-contract.md +95 -0
  1429. package/plugin/skills/wikify/references/lint-and-maintenance.md +83 -0
  1430. package/plugin/skills/wikify/references/paper-notes.md +56 -0
  1431. package/plugin/skills/wikify/references/query-protocol.md +58 -0
  1432. package/plugin/skills/wikify/references/source-notes-and-citations.md +71 -0
  1433. package/plugin/skills/wikify/references/wiki-layout.md +152 -0
  1434. package/plugin/skills/wikify/scripts/wikify-knowledge.mjs +483 -0
@@ -0,0 +1,1033 @@
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 one accent colour per slide (hue families among solid shape fills)
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 slide that uses one title treatment keeps that treatment's frame
20
+ OF-114 titles and the cover subtitle are topic labels, not declarative sentences
21
+ OF-115 no region left empty: a bottom title on the floor, a used side rail, a takeaway column as long
22
+ as the visual beside it (its values table included), a title panel as tall as its text and no
23
+ plate under an empty page
24
+ OF-116 (with --sibling) another tonality of the same source draws a different skeleton
25
+ OF-117 no light figure card on a dark ground
26
+ OF-118 a bold run-in label is followed by its separator ("요약: …", "Summary: …")
27
+ OF-119 an agenda's title carries no count numeral beside it (its rows are numbered)
28
+
29
+ Every threshold lives in THRESHOLDS. A HIGH finding fails the gate; a MEDIUM finding is
30
+ advisory and is reported, not blocking. `tier` is "measured" when read off the OOXML and
31
+ "derived" when it rests on an inherited value (a table style's alignment).
32
+
33
+ Usage:
34
+ python3 craft_extras.py deck.pptx # JSON report; exit 0 always
35
+ """
36
+
37
+ from __future__ import annotations
38
+
39
+ import os as _os
40
+ import sys as _sys
41
+
42
+ _sys.dont_write_bytecode = True # the installed skill directory stays read-only
43
+ _HERE = _os.path.dirname(_os.path.abspath(__file__))
44
+ _sys.path.insert(0, _HERE)
45
+ from office_runtime_bootstrap import ensure_runtime # noqa: E402
46
+
47
+ ensure_runtime(["pptx"])
48
+
49
+ import colorsys # noqa: E402
50
+ import json # noqa: E402
51
+ import re # noqa: E402
52
+ from pathlib import Path # noqa: E402
53
+
54
+ from pptx import Presentation # noqa: E402
55
+ from pptx.enum.dml import MSO_FILL # noqa: E402
56
+ from pptx.enum.shapes import MSO_SHAPE_TYPE # noqa: E402
57
+ from pptx.enum.text import PP_ALIGN # noqa: E402
58
+ from pptx.oxml.ns import qn # noqa: E402
59
+
60
+ import deck_craft # noqa: E402
61
+ from layout_inventory import DEFAULT_INSETS, EMU_PER_IN, PT_PER_IN, _attr_int, paragraph_runs, wrap_segment # noqa: E402
62
+
63
+ THRESHOLDS = {
64
+ "accent": {"min_lightness": 0.12, "max_lightness": 0.93, "min_saturation": 0.12, "family_deg": 20.0,
65
+ "content_high": 3, "content_medium": 2, "display_high": 4, "display_medium": 3},
66
+ "measure": {"latin_max": 90, "cjk_max": 38, "cjk_share": 0.5, "narrow_min": 10, "narrow_lines": 3},
67
+ "numeric": {"share": 0.7, "min_rows": 2},
68
+ "radius": {"inset_spread_in": 0.06, "tolerance_in": 0.02, "min_outer_in": 0.04, "default_adj": 16667},
69
+ # MEDIUM until the family's read-only re-run on its calibration decks promotes it.
70
+ "grouping": {"ratio": 2.0, "severity": "MEDIUM"},
71
+ "band": {"high": 0.35, "medium": 0.25, "row_tolerance_in": 0.05},
72
+ }
73
+ EMOJI = re.compile("[\U0001F000-\U0001FAFF☀-➿]")
74
+ NUMERIC_STRIP = re.compile(r"[\s,.%▲▼+\-−±()$€£¥₩]")
75
+
76
+
77
+ def _finding(check, severity, slide, shape, detail, hint, tier="measured"):
78
+ return {"check": check, "severity": severity, "tier": tier, "slide": slide, "shape": shape, "detail": detail, "hint": hint}
79
+
80
+
81
+ def _hsl(rgb):
82
+ r, g, b = (int(str(rgb)[i:i + 2], 16) / 255 for i in (0, 2, 4))
83
+ h, lightness, s = colorsys.rgb_to_hls(r, g, b)
84
+ return h * 360.0, s, lightness
85
+
86
+
87
+ def _families(hues, width):
88
+ """Greedy hue clustering: a hue within `width` degrees of a family joins it."""
89
+ families = []
90
+ for hue in sorted(hues):
91
+ for family in families:
92
+ if min(abs(hue - family), 360 - abs(hue - family)) <= width:
93
+ break
94
+ else:
95
+ families.append(hue)
96
+ return families
97
+
98
+
99
+ def _solid_fill(shape):
100
+ try:
101
+ if shape.fill.type == MSO_FILL.SOLID:
102
+ return shape.fill.fore_color.rgb
103
+ except (AttributeError, TypeError, ValueError, NotImplementedError):
104
+ return None
105
+ return None
106
+
107
+
108
+ def check_accents(slide, number, shapes, page_area, display):
109
+ t = THRESHOLDS["accent"]
110
+ hues = []
111
+ for shape in shapes:
112
+ box = deck_craft._box(shape)
113
+ if box is None or box[2] * box[3] >= deck_craft.FULL_BLEED * page_area:
114
+ continue
115
+ if shape.shape_type == MSO_SHAPE_TYPE.PICTURE:
116
+ continue
117
+ rgb = _solid_fill(shape)
118
+ if rgb is None:
119
+ continue
120
+ hue, saturation, lightness = _hsl(rgb)
121
+ if t["min_lightness"] <= lightness <= t["max_lightness"] and saturation >= t["min_saturation"]:
122
+ hues.append(hue)
123
+ count = len(_families(hues, t["family_deg"]))
124
+ high, medium = (t["display_high"], t["display_medium"]) if display else (t["content_high"], t["content_medium"])
125
+ if count >= high:
126
+ return [_finding("OF-101", "HIGH", number, None, f"{count} accent hue families", "Keep one accent colour per slide; move the other fills to neutrals.")]
127
+ if count >= medium:
128
+ return [_finding("OF-101", "MEDIUM", number, None, f"{count} accent hue families", "Two accents only when they carry a real pair (a delta or a status).")]
129
+ return []
130
+
131
+
132
+ def _hangul_share(text):
133
+ letters = [c for c in text if not c.isspace()]
134
+ return sum(1 for c in letters if "가" <= c <= "힣") / max(1, len(letters))
135
+
136
+
137
+ def _wrapped_lines(shape):
138
+ body_pr = shape.text_frame._txBody.find(qn("a:bodyPr"))
139
+ insets = {k: _attr_int(body_pr, k, v) for k, v in DEFAULT_INSETS.items()}
140
+ wrap = body_pr.get("wrap", "square") if body_pr is not None else "square"
141
+ inner = (shape.width - insets["lIns"] - insets["rIns"]) / EMU_PER_IN * PT_PER_IN
142
+ lines = 0
143
+ for paragraph in shape.text_frame.paragraphs:
144
+ if not paragraph.text.strip():
145
+ continue
146
+ for segment in paragraph_runs(paragraph, 18.0):
147
+ lines += wrap_segment(segment, max(inner, 1.0), wrap)[0]
148
+ return lines
149
+
150
+
151
+ def check_measure(number, shapes, title):
152
+ t = THRESHOLDS["measure"]
153
+ found = []
154
+ for shape in shapes:
155
+ if shape is title or not getattr(shape, "has_text_frame", False) or not shape.has_text_frame or shape.name.startswith("lit-notice"):
156
+ continue
157
+ size = deck_craft._max_pt(shape)
158
+ if not deck_craft.CAPTION_PT < size < deck_craft.DISPLAY_PT:
159
+ continue
160
+ text = "".join(p.text for p in shape.text_frame.paragraphs)
161
+ lines = _wrapped_lines(shape)
162
+ if lines < 2 or not text.strip():
163
+ continue
164
+ per_line = len(text) / lines
165
+ cjk = _hangul_share(text) >= t["cjk_share"]
166
+ ceiling = t["cjk_max"] if cjk else t["latin_max"]
167
+ if per_line > ceiling:
168
+ found.append(_finding("OF-102", "HIGH", number, shape.name, f"{per_line:.0f} chars per line over {lines} lines{' (Korean)' if cjk else ''}",
169
+ f"Narrow the text box or split the text; keep body lines at or under {ceiling} characters."))
170
+ elif per_line < t["narrow_min"] and lines >= t["narrow_lines"]:
171
+ found.append(_finding("OF-102", "MEDIUM", number, shape.name, f"{per_line:.0f} chars per line over {lines} lines",
172
+ "Widen the column; very short lines read as broken wrapping."))
173
+ return found
174
+
175
+
176
+ def _numeric(text):
177
+ stripped = NUMERIC_STRIP.sub("", text)
178
+ return bool(stripped) and stripped.isdigit()
179
+
180
+
181
+ def check_numeric_columns(number, shapes):
182
+ t = THRESHOLDS["numeric"]
183
+ found = []
184
+ for shape in shapes:
185
+ if not getattr(shape, "has_table", False) or not shape.has_table:
186
+ continue
187
+ rows = list(shape.table.rows)
188
+ data = rows[1:]
189
+ if len(data) < t["min_rows"]:
190
+ continue
191
+ # A second header-like row (no number in it) above numeric rows is out of scope for now.
192
+ 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):
193
+ continue
194
+ for column in range(len(shape.table.columns)):
195
+ cells = [row.cells[column] for row in data]
196
+ filled = [cell for cell in cells if cell.text.strip()]
197
+ numbers = [cell for cell in filled if _numeric(cell.text)]
198
+ if len(numbers) < t["min_rows"] or len(numbers) / max(1, len(filled)) < t["share"]:
199
+ continue
200
+ 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())]
201
+ inherited = [cell for cell in numbers if all(p.alignment is None for p in cell.text_frame.paragraphs if p.text.strip())]
202
+ if explicit:
203
+ found.append(_finding("OF-103", "HIGH", number, shape.name, f"column {column + 1}: {len(explicit)} number cell(s) not right-aligned",
204
+ "Right-align numeric columns so the digits line up."))
205
+ elif inherited:
206
+ found.append(_finding("OF-103", "MEDIUM", number, shape.name, f"column {column + 1}: alignment inherited, not verified",
207
+ "Set right alignment on numeric cells explicitly.", tier="derived"))
208
+ return found
209
+
210
+
211
+ def _radius_in(shape):
212
+ geometry = shape._element.find(".//" + qn("a:prstGeom"))
213
+ if geometry is None or geometry.get("prst") != "roundRect":
214
+ return None
215
+ adj = THRESHOLDS["radius"]["default_adj"]
216
+ guide = geometry.find(".//" + qn("a:gd"))
217
+ if guide is not None and (guide.get("fmla") or "").startswith("val "):
218
+ adj = int(guide.get("fmla").split()[1])
219
+ return adj / 100000.0 * min(shape.width, shape.height) / EMU_PER_IN
220
+
221
+
222
+ def check_concentric(number, shapes):
223
+ t = THRESHOLDS["radius"]
224
+ rounded = [(shape, deck_craft._box(shape), _radius_in(shape)) for shape in shapes]
225
+ rounded = [(s, b, r) for s, b, r in rounded if b is not None and r is not None]
226
+ found = []
227
+ for inner, ibox, iradius in rounded:
228
+ for outer, obox, oradius in rounded:
229
+ if inner is outer or not deck_craft._contains(obox, ibox, tol=0.0):
230
+ continue
231
+ 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]]
232
+ if max(pads) - min(pads) > t["inset_spread_in"] or oradius <= t["min_outer_in"]:
233
+ continue
234
+ expected = max(0.0, oradius - sum(pads) / 4)
235
+ if abs(iradius - expected) > t["tolerance_in"]:
236
+ found.append(_finding("OF-104", "HIGH", number, inner.name, f"inner radius {iradius:.2f}in, expected {expected:.2f}in",
237
+ "Set the inner radius to the outer radius minus the frame's padding."))
238
+ return found
239
+
240
+
241
+ def _gap(a, b):
242
+ """Clear distance between two boxes; 0 when they overlap."""
243
+ dx = max(0.0, b[0] - (a[0] + a[2]), a[0] - (b[0] + b[2]))
244
+ dy = max(0.0, b[1] - (a[1] + a[3]), a[1] - (b[1] + b[3]))
245
+ return max(dx, dy)
246
+
247
+
248
+ def check_grouping(number, shapes, page_area):
249
+ """Cards are filled or outlined rectangles holding other shapes; compare their spacing.
250
+
251
+ The gap inside a card is the smallest clear gap between two shapes it encloses; a shape's
252
+ inset to the card's own edge is padding and never counts.
253
+ """
254
+ ratio = THRESHOLDS["grouping"]["ratio"]
255
+ severity = THRESHOLDS["grouping"]["severity"]
256
+ boxes = [(shape, deck_craft._box(shape)) for shape in shapes]
257
+ 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)
258
+ and (deck_craft._filled(s) or deck_craft._outlined(s)) and 0.5 <= b[2] * b[3] < deck_craft.FULL_BLEED * page_area]
259
+ members = {}
260
+ for card, cbox in cards:
261
+ 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]
262
+ if inside:
263
+ members[id(card)] = (card, cbox, inside)
264
+ within = {}
265
+ for key, (card, cbox, inside) in members.items():
266
+ gaps = [_gap(a, b) for i, a in enumerate(inside) for b in inside[i + 1:]]
267
+ gaps = [gap for gap in gaps if gap > 0]
268
+ if gaps:
269
+ within[key] = min(gaps)
270
+ found = []
271
+ ordered = list(members.values())
272
+ for i, (a, abox, _) in enumerate(ordered):
273
+ for b, bbox, _ in ordered[i + 1:]:
274
+ inner = max([within[k] for k in (id(a), id(b)) if k in within], default=None)
275
+ between = _gap(abox, bbox)
276
+ if inner is not None and 0 < between < ratio * inner:
277
+ found.append(_finding("OF-105", severity, number, f"{a.name} / {b.name}", f"{between:.2f}in between cards, {inner:.2f}in between shapes inside",
278
+ "Space the cards at least twice the gap between their contents apart, or tighten the contents."))
279
+ return found
280
+
281
+
282
+ def check_run_effects(number, slide):
283
+ found = []
284
+ for shape in slide.shapes:
285
+ element = shape._element
286
+ if element.findall(".//" + qn("a:rPr") + "/" + qn("a:gradFill")):
287
+ found.append(_finding("OF-106", "HIGH", number, shape.name, "gradient-filled text", "Use a solid text colour; emphasise with weight or size."))
288
+ if element.findall(".//" + qn("a:glow")):
289
+ found.append(_finding("OF-107", "HIGH", number, shape.name, "glow effect", "Remove the glow; use a solid fill or a thin neutral shadow."))
290
+ for bullet in element.iter(qn("a:buChar")):
291
+ if EMOJI.search(bullet.get("char") or ""):
292
+ found.append(_finding("OF-108", "HIGH", number, shape.name, f"emoji bullet {bullet.get('char')}", "Use the template's bullet or a plain symbol."))
293
+ return found
294
+
295
+
296
+ def _band(top, bottom, boxes):
297
+ """(largest gap before the trailing one, trailing gap) as fractions of the height."""
298
+ height = bottom - top
299
+ if height <= 0:
300
+ return 0.0, 0.0
301
+ edges = [top]
302
+ cursor = top
303
+ for box in sorted(boxes, key=lambda b: b[1]):
304
+ edges.append(max(cursor, box[1]))
305
+ cursor = max(cursor, box[1] + box[3])
306
+ edges.append(cursor)
307
+ edges.append(bottom)
308
+ gaps = [edges[i + 1] - edges[i] for i in range(0, len(edges) - 1, 2)]
309
+ return max(gaps[:-1], default=0.0) / height, gaps[-1] / height
310
+
311
+
312
+ def check_bands(number, shapes, area, boxes, page_area, W, H):
313
+ t = THRESHOLDS["band"]
314
+ found = []
315
+ regions = [("slide", area, boxes)]
316
+ for shape in shapes:
317
+ box = deck_craft._box(shape)
318
+ if not box or shape.shape_type != MSO_SHAPE_TYPE.AUTO_SHAPE or deck_craft._text(shape) or not deck_craft._filled(shape):
319
+ continue
320
+ if not 0.5 <= box[2] * box[3] < deck_craft.FULL_BLEED * page_area:
321
+ continue
322
+ if deck_craft._bleeds(box, W, H):
323
+ continue
324
+ 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]
325
+ if not inside:
326
+ continue
327
+ # A card that is itself display-style (one or two large lines, no visual) is exempt.
328
+ large = [s for s, _ in inside if deck_craft._text(s) and deck_craft._max_pt(s) >= deck_craft.DISPLAY_PT]
329
+ if large and len(large) <= 2 and not any(deck_craft._is_table(s) or deck_craft._is_chart(s) for s, _ in inside):
330
+ continue
331
+ regions.append((shape.name, box, [b for _, b in inside]))
332
+ bands = {}
333
+ for name, region, contents in regions:
334
+ if contents:
335
+ bands[name] = _band(region[1], region[1] + region[3], [b for b in contents if b[1] < region[1] + region[3]])
336
+ # Cards sharing a top edge and height form a row; the row's height imposes a trailing band on
337
+ # the card with the least text, so the row counts its smallest trailing band.
338
+ tol = t["row_tolerance_in"]
339
+ cards = [(name, region) for name, region, _ in regions if name != "slide" and name in bands]
340
+ for name, region in cards:
341
+ row = [other for other, box in cards if abs(box[1] - region[1]) <= tol and abs(box[3] - region[3]) <= tol]
342
+ if len(row) > 1:
343
+ bands[name] = (bands[name][0], min(bands[other][1] for other in row))
344
+ for name, region, contents in regions:
345
+ if name not in bands:
346
+ continue
347
+ fraction = max(bands[name])
348
+ if fraction > t["high"]:
349
+ 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",
350
+ "Fill the band with the message's visual, shrink the region to its content, or merge slides."))
351
+ elif fraction > t["medium"]:
352
+ found.append(_finding("OF-109", "MEDIUM", number, None if name == "slide" else name, f"{fraction:.0%} empty band",
353
+ "Tighten the region around its content."))
354
+ return found
355
+
356
+
357
+ # ── Deck output checks (OF-110..OF-113) ─────────────────────────────────────
358
+ #
359
+ # These read the compiled deck as a whole: which title treatment each slide really got, how the
360
+ # body is partitioned, and how much of the body is left empty. The treatment comes from the title
361
+ # frame's geometry and its companions; the name the engine writes (`title@<treatment>`) is only
362
+ # compared with it, never trusted on its own. A deck the engine did not build (no `title@` name)
363
+ # is out of scope. Decks on a legacy template report the variety checks and the deck median band
364
+ # as MEDIUM: whoever names a legacy template has asked for its single look. All geometry is in points.
365
+
366
+ TREATMENTS = ("top-rule", "top-plain-large", "side-rail", "band", "statement", "overlay", "kicker-numeral", "bottom-anchor")
367
+ ZONE_OF = {"top-rule": "top", "top-plain-large": "top", "kicker-numeral": "top", "side-rail": "side", "band": "band",
368
+ "overlay": "overlay", "bottom-anchor": "bottom", "statement": "none"}
369
+ OUTPUT = {
370
+ "tol": 2.0, "size_tol": 0.5,
371
+ "min_slides": 8, "min_treatments": 3,
372
+ "variety_cap": 5, "max_share": 0.40,
373
+ "band_floor": 486.0, "footer_top": 492.0, "band_deck_max": 0.20,
374
+ # Per-slide band caps by density (1-2, 3-4, 5-6, 7-8, 9-10); a slide over its cap is MEDIUM.
375
+ "band_caps": ((2, 0.28), (4, 0.24), (6, 0.20), (8, 0.16), (10, 0.12)),
376
+ "anchor_tol": 1.0,
377
+ }
378
+ # Widest four-column title and earliest column-5 start over the airy, standard, dense and compact grids.
379
+ RAIL = {960: (288.0, 336.0), 720: (216.0, 252.0)}
380
+ DIGITS = re.compile(r"\d+(?:[.:/-]\d+)?\.?")
381
+ STAMP = re.compile(r"\blit-pptx tonality=(\S+) density=(\d+) grid=(\w+) variance=(\d+)")
382
+ 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}}
383
+
384
+
385
+ def _pt_box(shape):
386
+ try:
387
+ if shape.left is None or shape.width is None:
388
+ return None
389
+ return (shape.left / 12700.0, shape.top / 12700.0, shape.width / 12700.0, shape.height / 12700.0)
390
+ except (TypeError, ValueError):
391
+ return None
392
+
393
+
394
+ def _run_sizes(shape):
395
+ sizes = []
396
+ if getattr(shape, "has_text_frame", False) and shape.has_text_frame:
397
+ for paragraph in shape.text_frame.paragraphs:
398
+ sizes += [run.font.size.pt for run in paragraph.runs if run.text.strip() and run.font.size is not None]
399
+ return sizes
400
+
401
+
402
+ def _elements(slide, W, H):
403
+ """Every drawn shape as a dict in points, with its kind and its role (content, card, decoration)."""
404
+ out = []
405
+ for shape in slide.shapes:
406
+ box = _pt_box(shape)
407
+ # The engine names the first shape it draws `family@<id>`: a band or a rule keeps its role;
408
+ # only an empty marker (no width and no height) is skipped.
409
+ if box is None or box[2] + box[3] <= 0 or shape.name.startswith("lit-notice"):
410
+ continue
411
+ text = deck_craft._text(shape) if getattr(shape, "has_text_frame", False) and shape.has_text_frame else ""
412
+ kind = ("picture" if shape.shape_type == MSO_SHAPE_TYPE.PICTURE else "table" if deck_craft._is_table(shape)
413
+ else "chart" if deck_craft._is_chart(shape) else "text" if text else "shape")
414
+ if kind == "table":
415
+ box = (box[0], box[1], box[2], max(box[3], sum(row.height for row in shape.table.rows) / 12700.0))
416
+ out.append({"shape": shape, "name": shape.name, "kind": kind, "x": box[0], "y": box[1], "w": box[2], "h": box[3],
417
+ "text": text, "sizes": _run_sizes(shape), "filled": kind == "shape" and deck_craft._filled(shape)})
418
+ for e in out:
419
+ if e["kind"] != "shape":
420
+ e["role"] = "content"
421
+ continue
422
+ bleeds = deck_craft._bleeds((e["x"] / 72, e["y"] / 72, e["w"] / 72, e["h"] / 72), W / 72, H / 72)
423
+ holds = any(o["kind"] != "shape" and _centre_in(o, e) for o in out if o is not e)
424
+ 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
425
+ e["role"] = "card" if card else "decoration"
426
+ return out
427
+
428
+
429
+ def _centre_in(e, box, tol=1.0):
430
+ cx, cy = e["x"] + e["w"] / 2, e["y"] + e["h"] / 2
431
+ return box["x"] - tol <= cx <= box["x"] + box["w"] + tol and box["y"] - tol <= cy <= box["y"] + box["h"] + tol
432
+
433
+
434
+ def _footer(e):
435
+ return e["y"] >= OUTPUT["footer_top"]
436
+
437
+
438
+ def classify_title(title, els, W, H):
439
+ """The title treatment a slide shows, by the tests of the design spec in order; first match wins."""
440
+ tol, st = OUTPUT["tol"], OUTPUT["size_tol"]
441
+ size = max(title["sizes"] or [0.0])
442
+ bottom = title["y"] + title["h"]
443
+ others = [e for e in els if e is not title]
444
+ body = [e for e in others if not _footer(e) and e["role"] != "decoration"]
445
+
446
+ def behind(e):
447
+ return (e["x"] - tol <= title["x"] and title["x"] + title["w"] <= e["x"] + e["w"] + tol
448
+ and e["y"] - tol <= title["y"] and bottom <= e["y"] + e["h"] + tol)
449
+
450
+ if (any(e["kind"] == "picture" and e["w"] * e["h"] >= 0.8 * W * H for e in others) and title["y"] >= 300 - tol
451
+ and any(e["kind"] == "shape" and e["filled"] and behind(e) for e in others)):
452
+ return "overlay"
453
+ if any(e["kind"] == "shape" and e["filled"] and e["y"] <= 2 + tol and 96 - tol <= e["h"] <= 120 + tol
454
+ and e["w"] >= 0.9 * W and _centre_in(title, e, tol) for e in others):
455
+ return "band"
456
+ if (size >= 36 - st and 220 - tol <= title["y"] + title["h"] / 2 <= 380 + tol
457
+ and not any(e["kind"] in ("table", "chart", "picture") or e["role"] == "card" for e in body)
458
+ and sum(1 for e in body if e["kind"] == "text") <= 1):
459
+ return "statement"
460
+ if title["y"] >= 360 - tol and all(e["y"] <= title["y"] + tol for e in body if e["kind"] == "text"):
461
+ return "bottom-anchor"
462
+ rail_w, col5 = RAIL.get(round(W), RAIL[960])
463
+ right = [e for e in body if e["x"] + e["w"] / 2 > title["x"] + title["w"]]
464
+ # What stands under the title inside the rail (criteria labels, takeaways, the source) is the rail's;
465
+ # only a block that runs from the rail into the body makes the title something else.
466
+ if (title["w"] <= rail_w + tol and right and min(e["x"] for e in right) >= col5 - tol
467
+ and not any(e["x"] < col5 - tol and e["y"] > bottom and e["x"] + e["w"] > col5 + tol for e in body)):
468
+ return "side-rail"
469
+ for e in others:
470
+ if (e["kind"] == "text" and e["sizes"] and DIGITS.fullmatch(e["text"]) and max(e["sizes"]) >= 44 - st
471
+ and e["x"] + e["w"] <= title["x"] + tol and e["y"] >= 30 - tol and e["y"] + e["h"] <= 114 + tol):
472
+ return "kicker-numeral"
473
+ if title["y"] <= 48 + tol:
474
+ # A rule is a line (wider than 16 pt and four times its height), never a list-marker dot.
475
+ rule = any(e["kind"] == "shape" and e["h"] <= 8 and e["w"] >= max(16, 4 * e["h"]) and bottom - tol <= e["y"] <= bottom + 24
476
+ and e["x"] < title["x"] + title["w"] and e["x"] + e["w"] > title["x"] for e in others)
477
+ if size >= 36 - st and not rule:
478
+ return "top-plain-large"
479
+ if size <= 32 + st and rule:
480
+ return "top-rule"
481
+ return "unclassified"
482
+
483
+
484
+ def _is_number(e):
485
+ """A text run of 44 pt or more that is mostly digits is a number, not text."""
486
+ compact = re.sub(r"\s+", "", e["text"])
487
+ digits = len(re.findall(r"\d", compact))
488
+ return e["kind"] == "text" and bool(e["sizes"]) and max(e["sizes"]) >= 44 - OUTPUT["size_tol"] and digits / max(1, len(compact)) >= 0.5
489
+
490
+
491
+ def composition(title, treatment, els, W, H, margin):
492
+ """(title zone, body partition, dominant content) of one slide.
493
+
494
+ Body boxes are clustered by their x-extent: two boxes overlapping by half the narrower one share
495
+ a column. A box wider than 70 % of the body (a takeaway under two columns) never merges columns.
496
+ """
497
+ zone = ZONE_OF.get(treatment, "none")
498
+ if treatment == "statement":
499
+ return (zone, "one", "text")
500
+ col5 = RAIL.get(round(W), RAIL[960])[1]
501
+ body = []
502
+ for e in els:
503
+ if e is title or _footer(e) or e["role"] == "decoration":
504
+ continue
505
+ if treatment == "side-rail" and e["x"] + e["w"] <= col5 + OUTPUT["tol"]:
506
+ continue # what stands in the rail belongs to the title zone, not to the body's partition
507
+ if e["kind"] == "shape" and title is not None and _centre_in(title, e, 0):
508
+ continue # the panel that carries the title
509
+ if treatment == "kicker-numeral" and e["kind"] == "text" and DIGITS.fullmatch(e["text"]) and e["y"] + e["h"] <= 116:
510
+ continue
511
+ body.append(e)
512
+ cards = [e for e in body if e["role"] == "card"]
513
+ blocks = [e for e in body if not any(c is not e and _centre_in(e, c) for c in cards)]
514
+ if any(e["kind"] == "picture" and e["w"] * e["h"] >= 0.8 * W * H for e in els):
515
+ partition = "full-bleed"
516
+ elif not blocks:
517
+ partition = "one"
518
+ else:
519
+ narrow = [e for e in blocks if e["w"] < 0.7 * (W - 2 * margin)] or blocks
520
+ columns = []
521
+ for e in sorted(narrow, key=lambda e: e["x"]):
522
+ 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"])]
523
+ if hits:
524
+ keep = hits[0]
525
+ for other in hits[1:]:
526
+ keep["l"], keep["r"] = min(keep["l"], other["l"]), max(keep["r"], other["r"])
527
+ keep["items"] += other["items"]
528
+ columns.remove(other)
529
+ keep["l"], keep["r"] = min(keep["l"], e["x"]), max(keep["r"], e["x"] + e["w"])
530
+ keep["items"].append(e)
531
+ else:
532
+ columns.append({"l": e["x"], "r": e["x"] + e["w"], "items": [e]})
533
+ column_of = {id(item): n for n, c in enumerate(columns) for item in c["items"]}
534
+ rows = []
535
+ for e in sorted(narrow, key=lambda e: e["y"]):
536
+ if rows and e["y"] < rows[-1]["bottom"] - 2:
537
+ rows[-1]["bottom"] = max(rows[-1]["bottom"], e["y"] + e["h"])
538
+ rows[-1]["items"].append(e)
539
+ else:
540
+ rows.append({"bottom": e["y"] + e["h"], "items": [e]})
541
+ grid_rows = sum(1 for r in rows if len({column_of[id(i)] for i in r["items"]}) >= 2)
542
+ k = len(columns)
543
+ if k >= 4 or (k >= 2 and grid_rows >= 2):
544
+ partition = "grid"
545
+ elif k == 3:
546
+ partition = "three"
547
+ elif k == 2:
548
+ a, b = (c["r"] - c["l"] for c in columns)
549
+ partition = "two-even" if min(a, b) / max(a, b) >= 0.85 else "two-asym"
550
+ else:
551
+ partition = "one"
552
+ area = {}
553
+ kinds = {"picture": "image", "table": "table", "chart": "chart"}
554
+ for e in blocks:
555
+ if e["kind"] in kinds:
556
+ key = kinds[e["kind"]]
557
+ elif e["kind"] == "text":
558
+ key = "number" if _is_number(e) else "text"
559
+ else:
560
+ continue
561
+ area[key] = area.get(key, 0.0) + e["w"] * e["h"]
562
+ for c in cards:
563
+ inner = [e for e in body if e is not c and _centre_in(e, c)]
564
+ key = "number" if any(_is_number(e) for e in inner) else "text"
565
+ area[key] = area.get(key, 0.0) + c["w"] * c["h"]
566
+ dominant = max(area, key=area.get) if area else "text"
567
+ return (zone, partition, dominant)
568
+
569
+
570
+ def bottom_band(title, els, top_margin=36.0):
571
+ """Share of the body zone left empty under its lowest content, from the title bottom (or the top
572
+ margin when the title sits low) to the body floor; decoration, footer and notice excluded."""
573
+ floor = OUTPUT["band_floor"]
574
+ top = title["y"] + title["h"] if title is not None and title["y"] + title["h"] < floor * 0.6 else top_margin
575
+ if floor - top < 10:
576
+ return None
577
+ ink = [e for e in els if e["role"] != "decoration" and not _footer(e) and e["y"] < floor and e["y"] + e["h"] > top]
578
+ lowest = max((min(floor, e["y"] + e["h"]) for e in ink), default=top)
579
+ return max(0.0, (floor - lowest) / (floor - top))
580
+
581
+
582
+ def _slide_kind(family):
583
+ for kind in ("cover", "section", "closing"):
584
+ if family == kind or family.startswith(kind + "-"):
585
+ return kind
586
+ return "content"
587
+
588
+
589
+ def _variance_max(variance):
590
+ return 2 if variance <= 3 else 3 if variance == 4 else 4 if variance <= 6 else 5
591
+
592
+
593
+ def read_deck(prs) -> dict:
594
+ """Every slide's elements, family, kind, written and drawn title treatment, and the deck's dials."""
595
+ W, H = prs.slide_width / 12700.0, prs.slide_height / 12700.0
596
+ stamp = STAMP.search(prs.core_properties.subject or "")
597
+ density, variance = (int(stamp.group(2)), int(stamp.group(4))) if stamp else (5, 5)
598
+ margin = MARGIN[960 if round(W) == 960 else 720].get(stamp.group(3) if stamp else "standard", 48.0)
599
+ slides = []
600
+ for number, slide in enumerate(prs.slides, start=1):
601
+ els = _elements(slide, W, H)
602
+ family = next((s.name.split("@", 1)[1] for s in slide.shapes if s.name.startswith("family@")), "")
603
+ title = next((e for e in els if e["name"].startswith("title@")), None)
604
+ written = title["name"].split("@", 1)[1] if title else None
605
+ treatment = classify_title(title, els, W, H) if title and title["sizes"] else None
606
+ s = {"n": number, "W": W, "H": H, "slide": slide, "els": els, "family": family, "kind": _slide_kind(family), "title": title,
607
+ "written": written, "treatment": treatment}
608
+ if s["kind"] == "content":
609
+ s["signature"] = composition(title, treatment, els, W, H, margin)
610
+ slides.append(s)
611
+ return {"W": W, "H": H, "stamp": stamp, "density": density, "variance": variance, "margin": margin, "slides": slides,
612
+ "legacy": any(s["written"] == "legacy" for s in slides), "engine": any(s["written"] for s in slides)}
613
+
614
+
615
+ def analyse_output(prs) -> list:
616
+ """OF-110..OF-113 and OF-115 over the whole deck."""
617
+ deck = read_deck(prs)
618
+ W, H, stamp, density, variance, slides = deck["W"], deck["H"], deck["stamp"], deck["density"], deck["variance"], deck["slides"]
619
+ if not deck["engine"]:
620
+ return [] # not built by this engine: nothing to compare against
621
+ variety = "MEDIUM" if deck["legacy"] else "HIGH"
622
+ found = []
623
+ for s in slides:
624
+ if s["written"] in TREATMENTS and s["treatment"] not in (None, s["written"]):
625
+ found.append(_finding("OF-110", "HIGH", s["n"], s["title"]["name"], f"the title is drawn as {s['treatment']}, named {s['written']}",
626
+ "Use the treatment's own geometry and companions; the written name must match what is drawn."))
627
+ # OF-110: distinct title treatments over the slides that carry one. Cover and section titles
628
+ # are variants of their own (a section keeps the statement frame), so they are not counted.
629
+ titled = [s for s in slides if s["kind"] not in ("cover", "section") and s["treatment"]]
630
+ used = sorted({s["treatment"] for s in titled} - {"unclassified"})
631
+ unclassified = [s["n"] for s in titled if s["treatment"] == "unclassified"]
632
+ if len(slides) >= OUTPUT["min_slides"]:
633
+ if variance <= 3 and len(used) < OUTPUT["min_treatments"]:
634
+ found.append(_finding("OF-110", "MEDIUM", None, None, f"{len(used)} title treatment(s); variety lowered by the user (variance {variance})",
635
+ "Variance below 4 is set only on the user's request; say so in the reply."))
636
+ elif len(used) < OUTPUT["min_treatments"]:
637
+ found.append(_finding("OF-110", variety, None, None, f"{len(used)} title treatment(s) ({', '.join(used) or 'none'}) on {len(slides)} slides",
638
+ "Map slide roles to the pack's treatments: data under a side rail or a bottom title, sequences under a numeral, claims as statements."))
639
+ elif stamp and len(used) > _variance_max(variance):
640
+ found.append(_finding("OF-110", variety, None, None, f"{len(used)} title treatments, variance {variance} allows {_variance_max(variance)}",
641
+ "Lower the number of treatments or raise variance (by at most 2 without asking)."))
642
+ if unclassified:
643
+ found.append(_finding("OF-110", variety, unclassified[0], None, f"no treatment recognised on slide(s) {', '.join(map(str, unclassified))}",
644
+ "Place the title on one of the eight treatment frames; never position a title by hand."))
645
+ # OF-111: composition signatures over content slides (cover, section and closing excluded).
646
+ content = [s for s in slides if s["kind"] == "content"]
647
+ if content:
648
+ need = min(OUTPUT["variety_cap"], -(-len(content) * 3 // 5))
649
+ problems = []
650
+ for label, key in (("signature", lambda s: s["signature"]), ("layout", lambda s: s["signature"][:2])):
651
+ counts = {}
652
+ for s in content:
653
+ counts[key(s)] = counts.get(key(s), 0) + 1
654
+ top, top_n = max(counts.items(), key=lambda kv: kv[1])
655
+ if len(counts) < need:
656
+ problems.append(f"{label}: {len(counts)} distinct, needs {need}")
657
+ if top_n / len(content) > OUTPUT["max_share"]:
658
+ slides_hit = [s["n"] for s in content if key(s) == top]
659
+ problems.append(f"{label}: {'/'.join(top)} on {top_n} of {len(content)} content slides ({', '.join(map(str, slides_hit))})")
660
+ if problems and len(content) >= 3:
661
+ found.append(_finding("OF-111", variety, None, None, "; ".join(problems),
662
+ "Change the family or the title treatment on the repeated slides; let each slide's job pick its shape."))
663
+ # OF-112: the body is used; per slide against the density cap, the deck median against 0.20.
664
+ cap = next(c for upto, c in OUTPUT["band_caps"] if density <= upto)
665
+ bands = []
666
+ for s in slides:
667
+ if s["kind"] in ("cover", "section") or s["family"] in ("statement", "quote", "closing-statement") or s["treatment"] == "statement":
668
+ continue
669
+ band = bottom_band(s["title"], s["els"])
670
+ if band is None:
671
+ continue
672
+ bands.append(band)
673
+ if band > cap:
674
+ 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})",
675
+ "Apply the pack's fill order: larger type, a grown visual, wider gaps, or a family that fits the content."))
676
+ if bands:
677
+ bands.sort()
678
+ mid = len(bands) // 2
679
+ median = bands[mid] if len(bands) % 2 else (bands[mid - 1] + bands[mid]) / 2
680
+ if median > OUTPUT["band_deck_max"]:
681
+ # A legacy template has no fill policies: its sparse pages could only be "fixed" with
682
+ # padding, so the median is advisory there and OF-109 still blocks a hollow slide.
683
+ found.append(_finding("OF-112", variety, None, None, f"median empty band {median:.2f} over {len(bands)} slides (limit {OUTPUT['band_deck_max']:.2f})",
684
+ "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."))
685
+ # OF-113: one geometry per treatment (a statement is centred, so only its x and width repeat; a bottom
686
+ # title stands on the floor, so its bottom edge repeats and its top follows the line count).
687
+ groups = {}
688
+ for s in titled:
689
+ if s["treatment"] in TREATMENTS and s["written"] in TREATMENTS:
690
+ groups.setdefault(s["treatment"], []).append(s)
691
+ edge = lambda t, k: t["y"] + t["h"] if k == "bottom" else t[k]
692
+ for treatment, group in groups.items():
693
+ keys = ("x", "w") if treatment == "statement" else ("x", "w", "bottom") if treatment == "bottom-anchor" else ("x", "y", "w")
694
+ modes = {}
695
+ for k in keys:
696
+ values = [round(edge(s["title"], k)) for s in group]
697
+ modes[k] = max(set(values), key=values.count)
698
+ for s in group:
699
+ off = [f"{k} {edge(s['title'], k):.0f} vs {modes[k]}" for k in keys if abs(edge(s["title"], k) - modes[k]) > OUTPUT["anchor_tol"]]
700
+ if off:
701
+ found.append(_finding("OF-113", "HIGH", s["n"], s["title"]["name"], f"{treatment} title off its frame: {', '.join(off)}",
702
+ "Every slide with one treatment keeps its title frame; fix the source, never nudge a title."))
703
+ found += empty_regions(deck)
704
+ found += agenda_numerals(deck)
705
+ return found
706
+
707
+
708
+ # ── OF-115: no region left empty ────────────────────────────────────────────
709
+ #
710
+ # The bottom band (OF-112) reads the body as one page. A region can still stand empty beside a full one:
711
+ # the floor under a bottom title, the rail under a side title, the takeaway column beside a chart that runs
712
+ # to the floor, the panel that carries a title over a picture, and the open page above a plate. Each reading
713
+ # is a share of its own region (40 %) or, under a bottom title, a distance (12 pt).
714
+ REGION = {"floor_gap": 12.0, "share": 0.40}
715
+
716
+
717
+ def _text_bottom(title):
718
+ """Where a top-aligned title's last line ends: frames keep spare lines, so the frame's own bottom does not say."""
719
+ lines = _wrapped_lines(title["shape"]) or 1
720
+ return title["y"] + lines * max(title["sizes"] or [0.0]) * 1.15
721
+
722
+
723
+ def _largest_gap(top, bottom, spans):
724
+ """The tallest stretch of [top, bottom] that no (y0, y1) span covers."""
725
+ gap, cursor = 0.0, top
726
+ for y0, y1 in sorted(spans):
727
+ if y1 <= cursor:
728
+ continue
729
+ gap = max(gap, max(0.0, min(y0, bottom) - cursor))
730
+ cursor = max(cursor, y1)
731
+ return max(gap, bottom - cursor)
732
+
733
+
734
+ def _short_column(s, content, title, treatment, body_floor, col5):
735
+ """A column of a two-column body that stops short of its neighbour: the largest empty band inside it, from
736
+ the body's top down to where the neighbour ends, is over 40 % of the body. A source or note strip that
737
+ closes the column does not hide the band above it (spec-v2 Amendments 8). Beside the figures of a kpi-row or
738
+ big-number slide the column is measured to the body floor (Amendments 9)."""
739
+ tol = OUTPUT["tol"]
740
+ # The body starts under a top title; beside a side title (in its rail) or over a bottom title it starts at the top.
741
+ top_of_title = title["y"] + title["h"] if treatment not in ("bottom-anchor", "side-rail") else 0.0
742
+ W, H = s["W"], s["H"]
743
+ fields = [e for e in s["els"] if e["kind"] == "shape" and e["filled"] and e["w"] * e["h"] >= 0.1 * W * H]
744
+ 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
745
+ and not (treatment == "side-rail" and e["x"] + e["w"] <= col5 + tol) and not any(_centre_in(e, f) for f in fields)]
746
+ if len(body) < 2:
747
+ return None
748
+ left_edge, right_edge = min(e["x"] for e in body), max(e["x"] + e["w"] for e in body)
749
+ for cut in sorted({e["x"] + e["w"] for e in body}):
750
+ a = [e for e in body if e["x"] + e["w"] <= cut + tol]
751
+ b = [e for e in body if e["x"] >= cut - tol]
752
+ # A block across most of the body (a note under both columns) belongs to neither column; a narrower block
753
+ # across the cut means there is no column line here.
754
+ across = [e for e in body if e not in a and e not in b]
755
+ if not a or not b or any(e["w"] < 0.7 * (right_edge - left_edge) for e in across):
756
+ continue
757
+ top = min(e["y"] for e in a + b)
758
+ for column, other in ((a, b), (b, a)):
759
+ # A takeaway column beside a chart that closes with the chart's values: the table is read at its drawn extent.
760
+ values = any(e["kind"] == "chart" for e in other) and any(e["kind"] == "text" for e in column) \
761
+ and not any(e["kind"] in ("chart", "picture") for e in column)
762
+ # A text column, or a picture drawn smaller than its column, beside a column that runs on.
763
+ 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):
764
+ continue
765
+ # Row heads (a matrix's or a comparison's short labels, each level with its row) are not a column to fill.
766
+ if all(e["kind"] == "text" and e["h"] <= 56 and len(re.sub(r"\s+", "", e["text"])) <= 16 for e in column):
767
+ continue
768
+ # Measured whatever the neighbour's length: a neighbour that stops short still marks how far the column should run.
769
+ reach = min(body_floor, max(e["y"] + e["h"] for e in other))
770
+ # A takeaway column beside the figures of a kpi-row or big-number slide runs to the body floor: the figure
771
+ # rows stop where their spacing ends, not where the slide's content does (spec-v2 Amendments 9).
772
+ # The figures' own labels stand exactly level with figures below the first row; they are part of the stack.
773
+ size = lambda side: max([max(e["sizes"]) for e in side if e["kind"] == "text" and e["sizes"]] or [0.0])
774
+ figures = [e for e in other if e["kind"] == "text" and e["sizes"] and max(e["sizes"]) > size(column) + 4]
775
+ labels = any(abs(e["y"] - f["y"]) <= 0.5 and f["y"] > top + tol for e in column for f in figures)
776
+ if s["family"] in ("kpi-row", "big-number") and figures and not labels:
777
+ reach = body_floor
778
+ gap = _largest_gap(top, reach, [(e["y"], e["y"] + e["h"]) for e in column])
779
+ share = gap / max(1.0, body_floor - top)
780
+ if share > REGION["share"]:
781
+ return _finding("OF-115", "HIGH", s["n"], column[0]["name"],
782
+ 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",
783
+ "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.")
784
+ return None
785
+
786
+
787
+ def empty_regions(deck) -> list:
788
+ W, H = deck["W"], deck["H"]
789
+ floor = OUTPUT["band_floor"]
790
+ col5 = RAIL.get(round(W), RAIL[960])[1]
791
+ tol = OUTPUT["tol"]
792
+ found = []
793
+ for s in deck["slides"]:
794
+ title, treatment = s["title"], s["treatment"]
795
+ content = [e for e in s["els"] if e is not title and e["role"] != "decoration" and not _footer(e)
796
+ and not (e["kind"] == "picture" and e["w"] * e["h"] >= 0.8 * W * H)]
797
+ if s["kind"] in ("content", "closing") and title is not None and title["sizes"]:
798
+ if treatment == "bottom-anchor":
799
+ gap = floor - _text_bottom(title)
800
+ if gap > REGION["floor_gap"]:
801
+ found.append(_finding("OF-115", "HIGH", s["n"], title["name"], f"the bottom title ends {gap:.0f} pt above the body floor",
802
+ "Stand the title's last line on the floor and give the visual above the room."))
803
+ if treatment == "side-rail" and s["family"] not in ("quote", "statement"):
804
+ top = title["y"] + title["h"] # the title frame keeps a spare line for a title that wraps once more
805
+ rail = [e for e in content if e["x"] + e["w"] <= col5 + tol and e["y"] + e["h"] > top]
806
+ share = _largest_gap(top, floor, [(e["y"], e["y"] + e["h"]) for e in rail]) / max(1.0, floor - top)
807
+ if share > REGION["share"]:
808
+ found.append(_finding("OF-115", "HIGH", s["n"], title["name"], f"{share:.0%} of the side rail under the title is empty",
809
+ "Put the slide's criteria labels, takeaways or source in the rail, or take a top or bottom title."))
810
+ # A takeaway column beside a chart, table or picture that runs on below it.
811
+ body_floor = title["y"] - tol if treatment == "bottom-anchor" else floor
812
+ short = _short_column(s, content, title, treatment, body_floor, col5)
813
+ if short:
814
+ found.append(short)
815
+ for v in ([] if short else [e for e in content if e["kind"] in ("chart", "table", "picture")]):
816
+ beside = [e for e in content if e["kind"] == "text" and e["y"] < v["y"] + v["h"] and e["y"] + e["h"] > v["y"]
817
+ and (e["x"] >= v["x"] + v["w"] - tol or e["x"] + e["w"] <= v["x"] + tol)]
818
+ # Text set on a colour field (a closing's ask field) stands on its own ground, not in a column.
819
+ fields = [e for e in s["els"] if e["kind"] == "shape" and e["filled"] and e["w"] * e["h"] >= 0.1 * W * H]
820
+ beside = [e for e in beside if not any(_centre_in(e, f) for f in fields)]
821
+ if not beside:
822
+ continue
823
+ left, right = min(e["x"] for e in beside), max(e["x"] + e["w"] for e in beside)
824
+ in_column = lambda e, l=left, r=right: l - tol <= e["x"] + e["w"] / 2 <= r + tol
825
+ in_visual = lambda e, vv=v: vv["x"] - tol <= e["x"] + e["w"] / 2 <= vv["x"] + vv["w"] + tol
826
+ top = min([v["y"]] + [e["y"] for e in beside])
827
+ column = max(e["y"] + e["h"] for e in content if in_column(e))
828
+ visual = min(body_floor, max(e["y"] + e["h"] for e in content if in_visual(e)))
829
+ share = (visual - column) / max(1.0, body_floor - top)
830
+ if share > REGION["share"]:
831
+ 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",
832
+ "Close the column with the source and note lines, the chart's values or the takeaways; never stretch the visual alone."))
833
+ break
834
+ if s["kind"] in ("cover", "section") or treatment in ("statement", "overlay"):
835
+ if title is None:
836
+ continue
837
+ # A title panel over a picture, and a plate under a statement or quote; a typographic cover's
838
+ # plate is a display device of the cover, not a region its text must fill.
839
+ pictured = any(e["kind"] == "picture" and e["w"] * e["h"] >= 0.8 * W * H for e in s["els"])
840
+ 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]:
841
+ inside = [e for e in content + [title] if e is not p and _centre_in(e, p)]
842
+ if p["y"] > tol and pictured:
843
+ region_floor = min(p["y"] + p["h"], floor)
844
+ share = _largest_gap(p["y"], region_floor, [(e["y"], e["y"] + e["h"]) for e in inside]) / max(1.0, region_floor - p["y"])
845
+ if share > REGION["share"]:
846
+ found.append(_finding("OF-115", "HIGH", s["n"], p["name"], f"{share:.0%} of the panel that carries the title is empty",
847
+ "Make the panel as tall as the title and its lines, standing on the page foot."))
848
+ 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):
849
+ found.append(_finding("OF-115", "HIGH", s["n"], p["name"], "a plate under part of the page leaves the open page above it empty",
850
+ "Set the sentence on the whole-page field or on the open page; a plate needs content above it."))
851
+ return found
852
+
853
+
854
+ # ── OF-116: another tonality of the same source draws another skeleton ─────
855
+ #
856
+ # A deck's skeleton is each content slide's title zone and column partition, read as OF-111 reads them (a
857
+ # kicker numeral title is a top title). Two tonalities of one source whose skeletons are identical differ in
858
+ # colour only: at least one content slide must take another zone or partition.
859
+
860
+
861
+ def skeleton(prs) -> list:
862
+ return [s["signature"][:2] for s in read_deck(prs)["slides"] if s["kind"] == "content"]
863
+
864
+
865
+ def compare_skeletons(path: Path, sibling: Path) -> list:
866
+ a, b = skeleton(Presentation(str(path))), skeleton(Presentation(str(sibling)))
867
+ n = min(len(a), len(b))
868
+ if not n:
869
+ return []
870
+ differ = sum(1 for x, y in zip(a, b) if x != y)
871
+ # Two slides at least once the deck has four content slides (spec-v2 Amendments 8): one differing slide
872
+ # left the alternatives reading as one deck in two colours.
873
+ need = 2 if n >= 4 else 1
874
+ if differ >= need:
875
+ return []
876
+ return [_finding("OF-116", "HIGH", None, None, f"{differ} of {n} content slides differ in title zone or partition from {Path(sibling).name} (needs {need})",
877
+ "Give the tonality its own structure: its role defaults, a different title zone or partition for the slides it shares with the other.")]
878
+
879
+
880
+ # ── OF-117: no light figure card on a dark ground ───────────────────────────
881
+ #
882
+ # A chart or diagram exported on white, placed on a dark ground, reads as a white card with small grey
883
+ # labels. A figure is a picture of mostly near-white pixels; a photograph rarely is.
884
+ FIGURE = {"ground_max": 0.25, "near_white": 235, "share": 0.5, "min_area": 0.03}
885
+
886
+
887
+ def light_figures(number, slide, W, H) -> list:
888
+ try:
889
+ rgb = slide.background.fill.fore_color.rgb if slide.background.fill.type == 1 else None
890
+ except (AttributeError, TypeError, ValueError):
891
+ rgb = None
892
+ if rgb is None:
893
+ return []
894
+ r, g, b = (int(str(rgb)[i:i + 2], 16) / 255 for i in (0, 2, 4))
895
+ if 0.2126 * r + 0.7152 * g + 0.0722 * b > FIGURE["ground_max"]:
896
+ return []
897
+ try:
898
+ import io
899
+ from PIL import Image
900
+ except ImportError:
901
+ return []
902
+ found = []
903
+ for shape in slide.shapes:
904
+ if shape.shape_type != MSO_SHAPE_TYPE.PICTURE:
905
+ continue
906
+ box = _pt_box(shape)
907
+ if not box or not FIGURE["min_area"] * W * H <= box[2] * box[3] < 0.8 * W * H:
908
+ continue
909
+ with Image.open(io.BytesIO(shape.image.blob)) as im:
910
+ raw = im.convert("RGB").resize((64, 64)).tobytes()
911
+ share = sum(1 for i in range(0, len(raw), 3) if min(raw[i:i + 3]) >= FIGURE["near_white"]) / (len(raw) / 3)
912
+ if share > FIGURE["share"]:
913
+ found.append(_finding("OF-117", "HIGH", number, shape.name, f"a light figure ({share:.0%} near-white) on a dark ground",
914
+ "Supply the figure's dark variant beside it (name.dark.png) or draw it as a native chart."))
915
+ return found
916
+
917
+
918
+ # ── OF-118: a run-in label keeps its separator ─────────────────────────────
919
+ #
920
+ # A point that opens with a bold label and runs on in regular weight reads as one sentence when nothing
921
+ # separates the two ("요약 앱에서 …"): the label takes a colon unless it ends in its own separator.
922
+ RUN_IN_SEPARATOR = re.compile(r"[::.)\]?!–—\-]$")
923
+
924
+
925
+ def check_run_ins(number, slide) -> list:
926
+ found = []
927
+ for shape in slide.shapes:
928
+ if not getattr(shape, "has_text_frame", False) or not shape.has_text_frame or shape.name.startswith(("title@", "lit-notice")):
929
+ continue
930
+ for paragraph in shape.text_frame.paragraphs:
931
+ runs = [r for r in paragraph.runs if r.text]
932
+ if len(runs) < 2 or not runs[0].font.bold or runs[1].font.bold:
933
+ continue
934
+ label, rest = runs[0].text, runs[1].text
935
+ if not label.strip() or not re.search(r"\w", rest) or RUN_IN_SEPARATOR.search(label.strip()) or rest.lstrip()[:1] in "::":
936
+ continue
937
+ found.append(_finding("OF-118", "HIGH", number, shape.name, f"bold run-in label without a separator: {(label + rest)[:40]}",
938
+ "Write the label with its colon (**요약:** …), or let the engine set it; never run a bold label into the sentence."))
939
+ return found
940
+
941
+
942
+ # ── OF-119: no count numeral beside an agenda title ────────────────────────
943
+
944
+
945
+ def agenda_numerals(deck) -> list:
946
+ return [_finding("OF-119", "HIGH", s["n"], s["title"]["name"], "a numeral beside the agenda title repeats the count of its numbered rows",
947
+ "An agenda takes a title without a numeral; its rows carry the numbers.")
948
+ for s in deck["slides"] if s["family"] == "agenda" and s["treatment"] == "kicker-numeral"]
949
+
950
+
951
+ # ── OF-114: titles are labels ───────────────────────────────────────────────
952
+ #
953
+ # A title names what the slide covers; the claim goes in the body. Korean is read on its last word
954
+ # (어절): a sentence ending or a nominalised claim makes the title a sentence. English is read for a
955
+ # final period or a finite verb (an auxiliary, or a report verb in the past or third person). A
956
+ # trailing parenthesis is set aside first ("… 요청 (18개월)"). A question is not a claim.
957
+
958
+ KO_SENTENCE = re.compile(r"(?:니다|[어아해세에예네지군래게]요|죠|[었았였했겠됐](?:다|음)|[가-힣]다|[가-힣](?:함|됨)|(?:있|없)음)$")
959
+ KO_NOT_SENTENCE = {"바다", "판다", "소다", "람다", "캐나다", "어젠다", "아젠다", "포함", "보다", "함", "다"}
960
+ 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)
961
+ EN_VERBS = {
962
+ "grew", "grows", "rose", "rises", "fell", "falls", "doubled", "doubles", "tripled", "triples", "halved", "halves",
963
+ "increased", "increases", "decreased", "decreases", "declined", "declines", "improved", "improves", "dropped", "drops",
964
+ "climbed", "climbs", "beats", "outperforms", "outperformed", "leads", "drives", "drove", "shows", "showed", "needs",
965
+ "makes", "reached", "reaches", "exceeded", "exceeds", "missed", "misses", "stays", "stayed", "remains", "remained",
966
+ "comes", "came", "takes", "took", "works", "worked", "pays", "paid", "saves", "saved", "explains", "explained",
967
+ "matters", "wins", "won", "lost", "loses", "cuts", "lifts", "lifted", "slowed", "slows", "fails", "failed",
968
+ }
969
+
970
+
971
+ def declarative_title(text: str) -> bool:
972
+ """True when a title or subtitle states a claim as a sentence instead of naming a topic."""
973
+ t = re.sub(r"\s+", " ", str(text or "")).strip()
974
+ t = re.sub(r"\s*\([^()]*\)$", "", t).strip().rstrip("\"'”’")
975
+ if not t or t.endswith("?") or t[0] in "“\"「『‘'":
976
+ return False # a question, or a quotation set as the slide's statement
977
+ if re.search(r"[가-힣]", t):
978
+ last = re.sub(r"[.!…]+$", "", t.split(" ")[-1])
979
+ return last not in KO_NOT_SENTENCE and bool(KO_SENTENCE.search(last))
980
+ if t.endswith(".") or t.endswith("!"):
981
+ return True
982
+ words = re.findall(r"[A-Za-z']+", t)
983
+ return bool(EN_AUX.search(t)) or any(w.lower() in EN_VERBS for w in words[1:])
984
+
985
+
986
+ def check_labels(prs) -> list:
987
+ """OF-114 over every engine-drawn title and the cover subtitle."""
988
+ found = []
989
+ named = [(number, shape) for number, slide in enumerate(prs.slides, start=1) for shape in slide.shapes
990
+ if shape.name.startswith(("title@", "subtitle@")) and getattr(shape, "has_text_frame", False) and shape.has_text_frame]
991
+ legacy = any(shape.name == "title@legacy" for _, shape in named)
992
+ for number, shape in named:
993
+ text = re.sub(r"\s+", " ", shape.text_frame.text).strip()
994
+ if declarative_title(text):
995
+ what = "subtitle" if shape.name.startswith("subtitle@") else "title"
996
+ found.append(_finding("OF-114", "MEDIUM" if legacy else "HIGH", number, shape.name,
997
+ f"the {what} is a sentence: {text[:60]}",
998
+ "Name the topic as a label (분기별 매출 추이; Conversion by feed rate) and move the claim into the body: the first takeaway, point or caption."))
999
+ return found
1000
+
1001
+
1002
+ def analyse(path: Path) -> dict:
1003
+ prs = Presentation(str(path))
1004
+ W, H = prs.slide_width / EMU_PER_IN, prs.slide_height / EMU_PER_IN
1005
+ page_area = W * H
1006
+ findings = analyse_output(prs) + check_labels(prs)
1007
+ for number, slide in enumerate(prs.slides, start=1):
1008
+ shapes = [s for s in slide.shapes if not s.name.startswith("lit-notice")]
1009
+ layout = deck_craft.slide_layout(shapes, W, H, page_area)
1010
+ findings += check_run_effects(number, slide)
1011
+ findings += check_run_ins(number, slide)
1012
+ findings += light_figures(number, slide, W * PT_PER_IN, H * PT_PER_IN)
1013
+ findings += check_accents(slide, number, shapes, page_area, layout["display"])
1014
+ findings += check_numeric_columns(number, shapes)
1015
+ findings += check_concentric(number, shapes)
1016
+ if layout["display"]:
1017
+ continue
1018
+ findings += check_measure(number, shapes, layout["title"])
1019
+ findings += check_grouping(number, shapes, page_area)
1020
+ findings += check_bands(number, shapes, layout["area"], layout["boxes"], page_area, W, H)
1021
+ return {"file": str(path), "pass": not any(f["severity"] == "HIGH" for f in findings), "findings": findings}
1022
+
1023
+
1024
+ def main(argv):
1025
+ if not argv:
1026
+ print(__doc__)
1027
+ return 2
1028
+ print(json.dumps(analyse(Path(argv[0])), ensure_ascii=False, indent=2))
1029
+ return 0
1030
+
1031
+
1032
+ if __name__ == "__main__":
1033
+ raise SystemExit(main(_sys.argv[1:]))