create-yss-spec 3.5.2 → 3.5.3

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 (438) hide show
  1. package/package.json +1 -1
  2. package/src/template/asset-runtime.js +3 -1
  3. package/template/.agents/skills/.strategic-design-skills-manifest.json +1 -1
  4. package/template/.agents/skills/codebase-design/SKILL.md +4 -0
  5. package/template/{.codex/skills/improve-codebase-architecture/SKILL.md → .agents/skills/codebase-design/references/architecture-audit.md} +3 -9
  6. package/template/.agents/skills/frontend-commit/SKILL.md +4 -93
  7. package/template/.agents/skills/git-commit-core/SKILL.md +18 -0
  8. package/template/.agents/skills/java-backend-commit/SKILL.md +4 -96
  9. package/template/.agents/skills/llm-wiki/SKILL.md +12 -13
  10. package/template/.agents/skills/llm-wiki/assets/CLAUDE.md.template +7 -1
  11. package/template/.agents/skills/llm-wiki/references/compile.md +21 -114
  12. package/template/.agents/skills/llm-wiki/references/ingest.md +8 -33
  13. package/template/.agents/skills/llm-wiki/references/lint.md +9 -46
  14. package/template/.agents/skills/llm-wiki/references/query.md +9 -18
  15. package/template/.agents/skills/llm-wiki/references/schema.md +56 -29
  16. package/template/.agents/skills/llm-wiki/references/transactions.md +48 -0
  17. package/template/.agents/skills/llm-wiki/references/writing.md +4 -4
  18. package/template/.agents/skills/llm-wiki/scripts/advise.mjs +46 -58
  19. package/template/.agents/skills/llm-wiki/scripts/advise.test.mjs +11 -16
  20. package/template/.agents/skills/llm-wiki/scripts/core.mjs +262 -0
  21. package/template/.agents/skills/llm-wiki/scripts/extract.mjs +35 -18
  22. package/template/.agents/skills/llm-wiki/scripts/extract.test.mjs +5 -8
  23. package/template/.agents/skills/llm-wiki/scripts/feedback.mjs +51 -0
  24. package/template/.agents/skills/llm-wiki/scripts/inventory.mjs +43 -171
  25. package/template/.agents/skills/llm-wiki/scripts/inventory.test.mjs +25 -18
  26. package/template/.agents/skills/llm-wiki/scripts/lint-wikilinks.mjs +69 -92
  27. package/template/.agents/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +25 -37
  28. package/template/.agents/skills/llm-wiki/scripts/migrate.mjs +51 -0
  29. package/template/.agents/skills/llm-wiki/scripts/query.mjs +149 -0
  30. package/template/.agents/skills/llm-wiki/scripts/regressions.test.mjs +101 -0
  31. package/template/.agents/skills/llm-wiki/scripts/sources.mjs +166 -0
  32. package/template/.agents/skills/llm-wiki/scripts/transaction.mjs +384 -0
  33. package/template/.agents/skills/llm-wiki/scripts/v2.test.mjs +354 -0
  34. package/template/.agents/skills/prototype/LOGIC.md +1 -1
  35. package/template/.agents/skills/prototype/SKILL.md +5 -19
  36. package/template/.agents/skills/setup-matt-pocock-skills/SKILL.md +3 -3
  37. package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  38. package/template/.agents/skills/yss-implementation-contract-compiler/references/boundaries.md +2 -3
  39. package/template/.agents/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +14 -0
  40. package/template/.agents/skills/yss-product-lifecycle/SKILL.md +8 -8
  41. package/template/.agents/skills/yss-product-lifecycle/references/external-input-questionnaire.md +19 -0
  42. package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
  43. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +20 -4
  44. package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  45. package/template/.agents/skills/yss-product-lifecycle/references/plan-requirements.md +10 -0
  46. package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +1 -1
  47. package/template/.agents/skills/yss-research/SKILL.md +4 -0
  48. package/template/.codex/skills/codebase-design/SKILL.md +4 -0
  49. package/template/{.pi/skills/improve-codebase-architecture/SKILL.md → .codex/skills/codebase-design/references/architecture-audit.md} +3 -9
  50. package/template/.codex/skills/frontend-commit/SKILL.md +4 -93
  51. package/template/.codex/skills/git-commit-core/SKILL.md +18 -0
  52. package/template/.codex/skills/java-backend-commit/SKILL.md +4 -96
  53. package/template/.codex/skills/llm-wiki/SKILL.md +12 -13
  54. package/template/.codex/skills/llm-wiki/assets/CLAUDE.md.template +7 -1
  55. package/template/.codex/skills/llm-wiki/references/compile.md +21 -114
  56. package/template/.codex/skills/llm-wiki/references/ingest.md +8 -33
  57. package/template/.codex/skills/llm-wiki/references/lint.md +9 -46
  58. package/template/.codex/skills/llm-wiki/references/query.md +9 -18
  59. package/template/.codex/skills/llm-wiki/references/schema.md +56 -29
  60. package/template/.codex/skills/llm-wiki/references/transactions.md +48 -0
  61. package/template/.codex/skills/llm-wiki/references/writing.md +4 -4
  62. package/template/.codex/skills/llm-wiki/scripts/advise.mjs +46 -58
  63. package/template/.codex/skills/llm-wiki/scripts/advise.test.mjs +11 -16
  64. package/template/.codex/skills/llm-wiki/scripts/core.mjs +262 -0
  65. package/template/.codex/skills/llm-wiki/scripts/extract.mjs +35 -18
  66. package/template/.codex/skills/llm-wiki/scripts/extract.test.mjs +5 -8
  67. package/template/.codex/skills/llm-wiki/scripts/feedback.mjs +51 -0
  68. package/template/.codex/skills/llm-wiki/scripts/inventory.mjs +43 -171
  69. package/template/.codex/skills/llm-wiki/scripts/inventory.test.mjs +25 -18
  70. package/template/.codex/skills/llm-wiki/scripts/lint-wikilinks.mjs +69 -92
  71. package/template/.codex/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +25 -37
  72. package/template/.codex/skills/llm-wiki/scripts/migrate.mjs +51 -0
  73. package/template/.codex/skills/llm-wiki/scripts/query.mjs +149 -0
  74. package/template/.codex/skills/llm-wiki/scripts/regressions.test.mjs +101 -0
  75. package/template/.codex/skills/llm-wiki/scripts/sources.mjs +166 -0
  76. package/template/.codex/skills/llm-wiki/scripts/transaction.mjs +384 -0
  77. package/template/.codex/skills/llm-wiki/scripts/v2.test.mjs +354 -0
  78. package/template/.codex/skills/prototype/LOGIC.md +1 -1
  79. package/template/.codex/skills/prototype/SKILL.md +5 -19
  80. package/template/.codex/skills/setup-matt-pocock-skills/SKILL.md +3 -3
  81. package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  82. package/template/.codex/skills/yss-implementation-contract-compiler/references/boundaries.md +2 -3
  83. package/template/.codex/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +14 -0
  84. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +8 -8
  85. package/template/.codex/skills/yss-product-lifecycle/references/external-input-questionnaire.md +19 -0
  86. package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
  87. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +20 -4
  88. package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  89. package/template/.codex/skills/yss-product-lifecycle/references/plan-requirements.md +10 -0
  90. package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +1 -1
  91. package/template/.codex/skills/yss-research/SKILL.md +4 -0
  92. package/template/.cursor/skills/codebase-design/SKILL.md +4 -0
  93. package/template/.cursor/skills/{improve-codebase-architecture/SKILL.md → codebase-design/references/architecture-audit.md} +3 -9
  94. package/template/.cursor/skills/frontend-commit/SKILL.md +4 -93
  95. package/template/.cursor/skills/git-commit-core/SKILL.md +18 -0
  96. package/template/.cursor/skills/java-backend-commit/SKILL.md +4 -96
  97. package/template/.cursor/skills/llm-wiki/SKILL.md +12 -13
  98. package/template/.cursor/skills/llm-wiki/assets/CLAUDE.md.template +7 -1
  99. package/template/.cursor/skills/llm-wiki/references/compile.md +21 -114
  100. package/template/.cursor/skills/llm-wiki/references/ingest.md +8 -33
  101. package/template/.cursor/skills/llm-wiki/references/lint.md +9 -46
  102. package/template/.cursor/skills/llm-wiki/references/query.md +9 -18
  103. package/template/.cursor/skills/llm-wiki/references/schema.md +56 -29
  104. package/template/.cursor/skills/llm-wiki/references/transactions.md +48 -0
  105. package/template/.cursor/skills/llm-wiki/references/writing.md +4 -4
  106. package/template/.cursor/skills/llm-wiki/scripts/advise.mjs +46 -58
  107. package/template/.cursor/skills/llm-wiki/scripts/advise.test.mjs +11 -16
  108. package/template/.cursor/skills/llm-wiki/scripts/core.mjs +262 -0
  109. package/template/.cursor/skills/llm-wiki/scripts/extract.mjs +35 -18
  110. package/template/.cursor/skills/llm-wiki/scripts/extract.test.mjs +5 -8
  111. package/template/.cursor/skills/llm-wiki/scripts/feedback.mjs +51 -0
  112. package/template/.cursor/skills/llm-wiki/scripts/inventory.mjs +43 -171
  113. package/template/.cursor/skills/llm-wiki/scripts/inventory.test.mjs +25 -18
  114. package/template/.cursor/skills/llm-wiki/scripts/lint-wikilinks.mjs +69 -92
  115. package/template/.cursor/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +25 -37
  116. package/template/.cursor/skills/llm-wiki/scripts/migrate.mjs +51 -0
  117. package/template/.cursor/skills/llm-wiki/scripts/query.mjs +149 -0
  118. package/template/.cursor/skills/llm-wiki/scripts/regressions.test.mjs +101 -0
  119. package/template/.cursor/skills/llm-wiki/scripts/sources.mjs +166 -0
  120. package/template/.cursor/skills/llm-wiki/scripts/transaction.mjs +384 -0
  121. package/template/.cursor/skills/llm-wiki/scripts/v2.test.mjs +354 -0
  122. package/template/.cursor/skills/prototype/LOGIC.md +1 -1
  123. package/template/.cursor/skills/prototype/SKILL.md +5 -19
  124. package/template/.cursor/skills/setup-matt-pocock-skills/SKILL.md +3 -3
  125. package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  126. package/template/.cursor/skills/yss-implementation-contract-compiler/references/boundaries.md +2 -3
  127. package/template/.cursor/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +14 -0
  128. package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +8 -8
  129. package/template/.cursor/skills/yss-product-lifecycle/references/external-input-questionnaire.md +19 -0
  130. package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
  131. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +20 -4
  132. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  133. package/template/.cursor/skills/yss-product-lifecycle/references/plan-requirements.md +10 -0
  134. package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +1 -1
  135. package/template/.cursor/skills/yss-research/SKILL.md +4 -0
  136. package/template/.pi/skills/codebase-design/SKILL.md +4 -0
  137. package/template/{.agents/skills/improve-codebase-architecture/SKILL.md → .pi/skills/codebase-design/references/architecture-audit.md} +3 -9
  138. package/template/.pi/skills/frontend-commit/SKILL.md +4 -93
  139. package/template/.pi/skills/git-commit-core/SKILL.md +18 -0
  140. package/template/.pi/skills/java-backend-commit/SKILL.md +4 -96
  141. package/template/.pi/skills/llm-wiki/SKILL.md +12 -13
  142. package/template/.pi/skills/llm-wiki/assets/CLAUDE.md.template +7 -1
  143. package/template/.pi/skills/llm-wiki/references/compile.md +21 -114
  144. package/template/.pi/skills/llm-wiki/references/ingest.md +8 -33
  145. package/template/.pi/skills/llm-wiki/references/lint.md +9 -46
  146. package/template/.pi/skills/llm-wiki/references/query.md +9 -18
  147. package/template/.pi/skills/llm-wiki/references/schema.md +56 -29
  148. package/template/.pi/skills/llm-wiki/references/transactions.md +48 -0
  149. package/template/.pi/skills/llm-wiki/references/writing.md +4 -4
  150. package/template/.pi/skills/llm-wiki/scripts/advise.mjs +46 -58
  151. package/template/.pi/skills/llm-wiki/scripts/advise.test.mjs +11 -16
  152. package/template/.pi/skills/llm-wiki/scripts/core.mjs +262 -0
  153. package/template/.pi/skills/llm-wiki/scripts/extract.mjs +35 -18
  154. package/template/.pi/skills/llm-wiki/scripts/extract.test.mjs +5 -8
  155. package/template/.pi/skills/llm-wiki/scripts/feedback.mjs +51 -0
  156. package/template/.pi/skills/llm-wiki/scripts/inventory.mjs +43 -171
  157. package/template/.pi/skills/llm-wiki/scripts/inventory.test.mjs +25 -18
  158. package/template/.pi/skills/llm-wiki/scripts/lint-wikilinks.mjs +69 -92
  159. package/template/.pi/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +25 -37
  160. package/template/.pi/skills/llm-wiki/scripts/migrate.mjs +51 -0
  161. package/template/.pi/skills/llm-wiki/scripts/query.mjs +149 -0
  162. package/template/.pi/skills/llm-wiki/scripts/regressions.test.mjs +101 -0
  163. package/template/.pi/skills/llm-wiki/scripts/sources.mjs +166 -0
  164. package/template/.pi/skills/llm-wiki/scripts/transaction.mjs +384 -0
  165. package/template/.pi/skills/llm-wiki/scripts/v2.test.mjs +354 -0
  166. package/template/.pi/skills/prototype/LOGIC.md +1 -1
  167. package/template/.pi/skills/prototype/SKILL.md +5 -19
  168. package/template/.pi/skills/setup-matt-pocock-skills/SKILL.md +3 -3
  169. package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  170. package/template/.pi/skills/yss-implementation-contract-compiler/references/boundaries.md +2 -3
  171. package/template/.pi/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +14 -0
  172. package/template/.pi/skills/yss-product-lifecycle/SKILL.md +8 -8
  173. package/template/.pi/skills/yss-product-lifecycle/references/external-input-questionnaire.md +19 -0
  174. package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +5 -5
  175. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +20 -4
  176. package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  177. package/template/.pi/skills/yss-product-lifecycle/references/plan-requirements.md +10 -0
  178. package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +1 -1
  179. package/template/.pi/skills/yss-research/SKILL.md +4 -0
  180. package/template/.template-spec/agents/README.md +1 -1
  181. package/template/.template-spec/agents/digital-human-roles.yaml +1 -1
  182. package/template/.template-spec/agents/skill-migrations.md +15 -0
  183. package/template/.template-spec/agents/yss-skill-registry.yaml +10 -29
  184. package/template/.template-spec/architecture/README.md +3 -34
  185. package/template/.template-spec/plan/templates/competitive-analysis-template.md +2 -2
  186. package/template/.template-spec/process/contract-reading.md +24 -0
  187. package/template/.template-spec/process/lifecycle-registry-baseline.json +3 -1
  188. package/template/.template-spec/process/lifecycle-registry.yaml +6 -0
  189. package/template/.template-spec/process/research-completion.md +23 -0
  190. package/template/.template-spec/process/schemas/digital-human-task-package.schema.json +202 -12
  191. package/template/.template-spec/process/schemas/frontend-implementation-evidence.schema.json +7 -15
  192. package/template/.template-spec/process/subagent-collaboration.md +8 -0
  193. package/template/.template-spec/process/templates/frontend-implementation-verification-template.yaml +15 -1
  194. package/template/AGENTS.md +1 -1
  195. package/template/CONTEXT.md +5 -1
  196. package/template/README.md +12 -24
  197. package/template/scripts/contract +5 -5
  198. package/template/scripts/lib/contract-views.mjs +57 -2
  199. package/template/scripts/lib/execution-evidence.mjs +51 -0
  200. package/template/scripts/lib/harness-execution-scope.mjs +1 -1
  201. package/template/scripts/lib/implementation-contract-compiler.mjs +2 -0
  202. package/template/scripts/lib/lifecycle-context-query.mjs +15 -3
  203. package/template/scripts/lib/lifecycle-status.mjs +32 -6
  204. package/template/scripts/lib/lifecycle-transition.mjs +19 -1
  205. package/template/scripts/lib/maintenance-research.mjs +63 -0
  206. package/template/scripts/lib/read-only-intake.mjs +132 -0
  207. package/template/scripts/lib/skill-registry.mjs +2 -1
  208. package/template/scripts/lib/skill-supply-chain.mjs +4 -0
  209. package/template/scripts/lib/slice-task-package.mjs +1 -1
  210. package/template/scripts/lib/task-package.mjs +9 -2
  211. package/template/scripts/lifecycle-status +2 -2
  212. package/template/scripts/prepare-read-only-intake +16 -0
  213. package/template/scripts/run-read-only-intake +14 -0
  214. package/template/scripts/verify-digital-human-task-package +2 -2
  215. package/template/scripts/verify-frontend-implementation-evidence +24 -1
  216. package/template/scripts/verify-maintenance-research +13 -0
  217. package/template/skills-lock.json +19 -76
  218. package/template.manifest.json +118 -29
  219. package/template.snapshot.json +5 -6
  220. package/template/.agents/skills/grill-with-docs/SKILL.md +0 -20
  221. package/template/.agents/skills/grill-with-docs/agents/openai.yaml +0 -5
  222. package/template/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  223. package/template/.agents/skills/prototype/UI.md +0 -112
  224. package/template/.agents/skills/setup-matt-pocock-skills/domain.md +0 -37
  225. package/template/.agents/skills/to-questionnaire/SKILL.md +0 -55
  226. package/template/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
  227. package/template/.agents/skills/wait-what/SKILL.md +0 -7
  228. package/template/.agents/skills/wait-what/agents/openai.yaml +0 -5
  229. package/template/.codex/skills/data-analytics/.app.json +0 -84
  230. package/template/.codex/skills/data-analytics/.codex-plugin/plugin.json +0 -66
  231. package/template/.codex/skills/data-analytics/.mcp.json +0 -30
  232. package/template/.codex/skills/data-analytics/AGENTS.md +0 -20
  233. package/template/.codex/skills/data-analytics/DEPENDENCIES.MD +0 -27
  234. package/template/.codex/skills/data-analytics/README.md +0 -60
  235. package/template/.codex/skills/data-analytics/__yss_dotfile__.gitignore +0 -2
  236. package/template/.codex/skills/data-analytics/assets/datascience-artifact-widget.html +0 -16
  237. package/template/.codex/skills/data-analytics/assets/datascience-artifact-widget.html.gz.b64.part001 +0 -1
  238. package/template/.codex/skills/data-analytics/assets/datascience-artifact-widget.html.gz.b64.part002 +0 -1
  239. package/template/.codex/skills/data-analytics/assets/datascience-artifact-widget.html.gz.b64.part003 +0 -1
  240. package/template/.codex/skills/data-analytics/assets/datascience-artifact-widget.html.gz.b64.part004 +0 -1
  241. package/template/.codex/skills/data-analytics/assets/datascience-artifact-widget.html.gz.b64.part005 +0 -1
  242. package/template/.codex/skills/data-analytics/assets/datascience-artifact-widget.html.gz.b64.part006 +0 -1
  243. package/template/.codex/skills/data-analytics/assets/datascience-chart-widget.html +0 -16
  244. package/template/.codex/skills/data-analytics/assets/datascience-chart-widget.html.gz.b64.part001 +0 -1
  245. package/template/.codex/skills/data-analytics/assets/datascience-chart-widget.html.gz.b64.part002 +0 -1
  246. package/template/.codex/skills/data-analytics/assets/datascience-chart-widget.html.gz.b64.part003 +0 -1
  247. package/template/.codex/skills/data-analytics/assets/datascience-chart-widget.html.gz.b64.part004 +0 -1
  248. package/template/.codex/skills/data-analytics/assets/datascience-chart-widget.html.gz.b64.part005 +0 -1
  249. package/template/.codex/skills/data-analytics/assets/datascience-chart-widget.html.gz.b64.part006 +0 -1
  250. package/template/.codex/skills/data-analytics/assets/datascience-chart-widget.html.gz.b64.part007 +0 -1
  251. package/template/.codex/skills/data-analytics/assets/datascience-small.svg +0 -5
  252. package/template/.codex/skills/data-analytics/assets/datascience-table-widget.html +0 -16
  253. package/template/.codex/skills/data-analytics/assets/datascience-table-widget.html.gz.b64.part001 +0 -1
  254. package/template/.codex/skills/data-analytics/assets/datascience-table-widget.html.gz.b64.part002 +0 -1
  255. package/template/.codex/skills/data-analytics/assets/datascience-table-widget.html.gz.b64.part003 +0 -1
  256. package/template/.codex/skills/data-analytics/assets/datascience-table-widget.html.gz.b64.part004 +0 -1
  257. package/template/.codex/skills/data-analytics/assets/datascience.png +0 -0
  258. package/template/.codex/skills/data-analytics/assets/datascience.svg +0 -10
  259. package/template/.codex/skills/data-analytics/mcp/server.cjs +0 -2964
  260. package/template/.codex/skills/data-analytics/package-lock.json +0 -3048
  261. package/template/.codex/skills/data-analytics/package.json +0 -43
  262. package/template/.codex/skills/data-analytics/scripts/normalize-widget-assets.mjs +0 -75
  263. package/template/.codex/skills/data-analytics/skills/analyze-data-quality/SKILL.md +0 -137
  264. package/template/.codex/skills/data-analytics/skills/analyze-data-quality/agents/openai.yaml +0 -6
  265. package/template/.codex/skills/data-analytics/skills/analyze-data-quality/references/quality-checks.md +0 -29
  266. package/template/.codex/skills/data-analytics/skills/build-dashboard/SKILL.md +0 -148
  267. package/template/.codex/skills/data-analytics/skills/build-dashboard/agents/openai.yaml +0 -6
  268. package/template/.codex/skills/data-analytics/skills/build-dashboard/specifications/bi-platform-dashboard.md +0 -18
  269. package/template/.codex/skills/data-analytics/skills/build-dashboard/specifications/html-dashboard.md +0 -24
  270. package/template/.codex/skills/data-analytics/skills/build-dashboard/specifications/mcp-artifact-dashboard.md +0 -71
  271. package/template/.codex/skills/data-analytics/skills/build-dashboard/specifications/streamlit-dashboard.md +0 -85
  272. package/template/.codex/skills/data-analytics/skills/build-report/SKILL.md +0 -207
  273. package/template/.codex/skills/data-analytics/skills/build-report/agents/openai.yaml +0 -6
  274. package/template/.codex/skills/data-analytics/skills/build-report/assets/executive-report-shell.html +0 -70
  275. package/template/.codex/skills/data-analytics/skills/build-report/assets/technical-report-shell.html +0 -66
  276. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/SKILL.md +0 -108
  277. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/agents/openai.yaml +0 -6
  278. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/__init__.py +0 -1
  279. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/cli.py +0 -52
  280. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/constants.py +0 -61
  281. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/docx_writer.py +0 -362
  282. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/html_parser.py +0 -829
  283. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/model.py +0 -30
  284. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/plan.py +0 -127
  285. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/quality.py +0 -374
  286. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/rendering.py +0 -613
  287. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/table_utils.py +0 -54
  288. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc/utils.py +0 -16
  289. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/scripts/report_to_google_doc_plan.py +0 -9
  290. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-doc/tests/test_delivery_plan.py +0 -45
  291. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-slides/SKILL.md +0 -77
  292. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-slides/agents/openai.yaml +0 -6
  293. package/template/.codex/skills/data-analytics/skills/build-report/report-to-google-slides/scripts/report_to_google_slides.py +0 -2379
  294. package/template/.codex/skills/data-analytics/skills/build-report/report-to-pdf/SKILL.md +0 -88
  295. package/template/.codex/skills/data-analytics/skills/build-report/report-to-pdf/agents/openai.yaml +0 -6
  296. package/template/.codex/skills/data-analytics/skills/build-report/specifications/executive-report.md +0 -97
  297. package/template/.codex/skills/data-analytics/skills/build-report/specifications/mcp-app-report.md +0 -59
  298. package/template/.codex/skills/data-analytics/skills/build-report/specifications/technical-report.md +0 -75
  299. package/template/.codex/skills/data-analytics/skills/design-kpis/SKILL.md +0 -103
  300. package/template/.codex/skills/data-analytics/skills/design-kpis/agents/openai.yaml +0 -6
  301. package/template/.codex/skills/data-analytics/skills/gather-business-context/SKILL.md +0 -68
  302. package/template/.codex/skills/data-analytics/skills/gather-business-context/agents/openai.yaml +0 -6
  303. package/template/.codex/skills/data-analytics/skills/index/SKILL.md +0 -251
  304. package/template/.codex/skills/data-analytics/skills/index/agents/openai.yaml +0 -6
  305. package/template/.codex/skills/data-analytics/skills/jupyter-notebooks/SKILL.md +0 -131
  306. package/template/.codex/skills/data-analytics/skills/jupyter-notebooks/agents/openai.yaml +0 -6
  307. package/template/.codex/skills/data-analytics/skills/kpi-reporting/SKILL.md +0 -141
  308. package/template/.codex/skills/data-analytics/skills/kpi-reporting/agents/openai.yaml +0 -6
  309. package/template/.codex/skills/data-analytics/skills/kpi-reporting/references/report-templates.md +0 -32
  310. package/template/.codex/skills/data-analytics/skills/market-sizing/SKILL.md +0 -106
  311. package/template/.codex/skills/data-analytics/skills/market-sizing/agents/openai.yaml +0 -6
  312. package/template/.codex/skills/data-analytics/skills/metric-diagnostics/SKILL.md +0 -130
  313. package/template/.codex/skills/data-analytics/skills/metric-diagnostics/agents/openai.yaml +0 -6
  314. package/template/.codex/skills/data-analytics/skills/product-business-analysis/SKILL.md +0 -141
  315. package/template/.codex/skills/data-analytics/skills/product-business-analysis/agents/openai.yaml +0 -6
  316. package/template/.codex/skills/data-analytics/skills/spreadsheets/SKILL.md +0 -178
  317. package/template/.codex/skills/data-analytics/skills/spreadsheets/agents/openai.yaml +0 -9
  318. package/template/.codex/skills/data-analytics/skills/spreadsheets/assets/file-spreadsheet.png +0 -0
  319. package/template/.codex/skills/data-analytics/skills/spreadsheets/charts.md +0 -31
  320. package/template/.codex/skills/data-analytics/skills/spreadsheets/references/artifact_tool_api.md +0 -466
  321. package/template/.codex/skills/data-analytics/skills/spreadsheets/style_guidelines.md +0 -99
  322. package/template/.codex/skills/data-analytics/skills/user-context/SKILL.md +0 -197
  323. package/template/.codex/skills/data-analytics/skills/user-context/agents/openai.yaml +0 -6
  324. package/template/.codex/skills/data-analytics/skills/user-context/plugin-author-config/automation-config.md +0 -26
  325. package/template/.codex/skills/data-analytics/skills/user-context/plugin-author-config/source-category-config.json +0 -51
  326. package/template/.codex/skills/data-analytics/skills/user-context/plugin-author-config/user-context-config.md +0 -66
  327. package/template/.codex/skills/data-analytics/skills/user-context/references/automation.md +0 -69
  328. package/template/.codex/skills/data-analytics/skills/user-context/references/onboarding-examples.md +0 -204
  329. package/template/.codex/skills/data-analytics/skills/user-context/references/onboarding-state-template.json +0 -87
  330. package/template/.codex/skills/data-analytics/skills/user-context/references/onboarding.md +0 -497
  331. package/template/.codex/skills/data-analytics/skills/user-context/references/semantic-layer/connector-playbook.md +0 -74
  332. package/template/.codex/skills/data-analytics/skills/user-context/references/semantic-layer/setup.md +0 -65
  333. package/template/.codex/skills/data-analytics/skills/user-context/references/semantic-layer/skill-template.md +0 -160
  334. package/template/.codex/skills/data-analytics/skills/user-context/references/semantic-layer/source-intake.md +0 -75
  335. package/template/.codex/skills/data-analytics/skills/user-context/references/semantic-layer/weekly-polling-automation.md +0 -96
  336. package/template/.codex/skills/data-analytics/skills/user-context/references/source-category-runtime.md +0 -263
  337. package/template/.codex/skills/data-analytics/skills/user-context/scripts/data_analytics_preflight.py +0 -1462
  338. package/template/.codex/skills/data-analytics/skills/user-context/scripts/init_user_context_state.py +0 -128
  339. package/template/.codex/skills/data-analytics/skills/user-context/scripts/reset_user_context_state.py +0 -101
  340. package/template/.codex/skills/data-analytics/skills/user-context/scripts/validate_user_context_preflight.py +0 -499
  341. package/template/.codex/skills/data-analytics/skills/user-context/tests/test_state_helpers.py +0 -978
  342. package/template/.codex/skills/data-analytics/skills/validate-data/SKILL.md +0 -126
  343. package/template/.codex/skills/data-analytics/skills/validate-data/agents/openai.yaml +0 -6
  344. package/template/.codex/skills/data-analytics/skills/validate-data/references/validation-methods.md +0 -70
  345. package/template/.codex/skills/data-analytics/skills/visualize-data/SKILL.md +0 -157
  346. package/template/.codex/skills/data-analytics/skills/visualize-data/agents/openai.yaml +0 -6
  347. package/template/.codex/skills/data-analytics/skills/visualize-data/references/seaborn-templates.md +0 -774
  348. package/template/.codex/skills/data-analytics/src/DESIGN.md +0 -222
  349. package/template/.codex/skills/data-analytics/src/analytics-app/App.tsx +0 -3666
  350. package/template/.codex/skills/data-analytics/src/analytics-app/analytics-layout.test.mjs +0 -136
  351. package/template/.codex/skills/data-analytics/src/analytics-app/charting/ChartFrame.tsx +0 -54
  352. package/template/.codex/skills/data-analytics/src/analytics-app/charting/ChartLegend.tsx +0 -96
  353. package/template/.codex/skills/data-analytics/src/analytics-app/charting/ChartRenderer.tsx +0 -1647
  354. package/template/.codex/skills/data-analytics/src/analytics-app/charting/ChartTooltip.tsx +0 -245
  355. package/template/.codex/skills/data-analytics/src/analytics-app/charting/chart-app-helpers.tsx +0 -462
  356. package/template/.codex/skills/data-analytics/src/analytics-app/charting/chart-capabilities.ts +0 -107
  357. package/template/.codex/skills/data-analytics/src/analytics-app/charting/chart-compatibility.ts +0 -164
  358. package/template/.codex/skills/data-analytics/src/analytics-app/charting/chart-contract.ts +0 -192
  359. package/template/.codex/skills/data-analytics/src/analytics-app/charting/chart-theme.ts +0 -203
  360. package/template/.codex/skills/data-analytics/src/analytics-app/charting/chart-tokens.css +0 -619
  361. package/template/.codex/skills/data-analytics/src/analytics-app/charting/chart-transforms.ts +0 -402
  362. package/template/.codex/skills/data-analytics/src/analytics-app/fonts/SystemSansVariableVF.woff2 +0 -0
  363. package/template/.codex/skills/data-analytics/src/analytics-app/imageExport.ts +0 -370
  364. package/template/.codex/skills/data-analytics/src/analytics-app/layout/AnalyticsLayoutCanvas.tsx +0 -536
  365. package/template/.codex/skills/data-analytics/src/analytics-app/layout/RichMarkdown.tsx +0 -681
  366. package/template/.codex/skills/data-analytics/src/analytics-app/layout/analyticsLayoutCore.ts +0 -164
  367. package/template/.codex/skills/data-analytics/src/analytics-app/main.tsx +0 -21
  368. package/template/.codex/skills/data-analytics/src/analytics-app/scripts/chart_contract.py +0 -472
  369. package/template/.codex/skills/data-analytics/src/analytics-app/scripts/check_analytics_app_runtime_links.py +0 -75
  370. package/template/.codex/skills/data-analytics/src/analytics-app/scripts/design_contract.py +0 -142
  371. package/template/.codex/skills/data-analytics/src/analytics-app/scripts/package_utils.py +0 -142
  372. package/template/.codex/skills/data-analytics/src/analytics-app/scripts/tests/test_package_utils.py +0 -377
  373. package/template/.codex/skills/data-analytics/src/analytics-app/styles.css +0 -3468
  374. package/template/.codex/skills/data-analytics/src/analytics-app/tables/DataTable.d.ts +0 -44
  375. package/template/.codex/skills/data-analytics/src/analytics-app/tables/DataTable.jsx +0 -639
  376. package/template/.codex/skills/data-analytics/src/analytics-app/tables/data-table.css +0 -327
  377. package/template/.codex/skills/data-analytics/src/analytics-app/tokens.css +0 -225
  378. package/template/.codex/skills/data-analytics/src/analytics-app/types.ts +0 -204
  379. package/template/.codex/skills/data-analytics/src/analytics-app-core.md +0 -85
  380. package/template/.codex/skills/data-analytics/src/codex-style-contract.md +0 -30
  381. package/template/.codex/skills/data-analytics/src/datascience-artifact-widget.html +0 -12
  382. package/template/.codex/skills/data-analytics/src/datascience-artifact-widget.jsx +0 -1008
  383. package/template/.codex/skills/data-analytics/src/datascience-chart-widget.css +0 -2117
  384. package/template/.codex/skills/data-analytics/src/datascience-chart-widget.html +0 -122
  385. package/template/.codex/skills/data-analytics/src/datascience-chart-widget.js +0 -3588
  386. package/template/.codex/skills/data-analytics/src/datascience-table-widget.css +0 -483
  387. package/template/.codex/skills/data-analytics/src/datascience-table-widget.html +0 -32
  388. package/template/.codex/skills/data-analytics/src/datascience-table-widget.js +0 -333
  389. package/template/.codex/skills/data-analytics/src/mcp-host.js +0 -153
  390. package/template/.codex/skills/data-analytics/src/recharts-config.js +0 -315
  391. package/template/.codex/skills/data-analytics/src/recharts-renderer.jsx +0 -294
  392. package/template/.codex/skills/data-analytics/src/sql-source-view.css +0 -33
  393. package/template/.codex/skills/data-analytics/src/sql-source-view.js +0 -157
  394. package/template/.codex/skills/data-analytics/src/styles/codex-theme.css +0 -121
  395. package/template/.codex/skills/data-analytics/src/table-renderer.jsx +0 -28
  396. package/template/.codex/skills/data-analytics/tests/chart-transforms.test.mjs +0 -87
  397. package/template/.codex/skills/data-analytics/tests/funnel-smoke.html +0 -105
  398. package/template/.codex/skills/data-analytics/tests/inline-widget-compare.html +0 -233
  399. package/template/.codex/skills/data-analytics/tests/mcp-server.test.mjs +0 -1500
  400. package/template/.codex/skills/data-analytics/tests/native-style-contract.test.mjs +0 -219
  401. package/template/.codex/skills/data-analytics/tests/recharts-config.test.mjs +0 -144
  402. package/template/.codex/skills/data-analytics/tests/recharts-renderer.test.mjs +0 -11
  403. package/template/.codex/skills/data-analytics/tests/rich-markdown.test.mjs +0 -54
  404. package/template/.codex/skills/data-analytics/tests/widget-render-harness.html +0 -321
  405. package/template/.codex/skills/data-analytics/tsconfig.json +0 -19
  406. package/template/.codex/skills/data-analytics/vite.config.ts +0 -46
  407. package/template/.codex/skills/grill-with-docs/SKILL.md +0 -20
  408. package/template/.codex/skills/grill-with-docs/agents/openai.yaml +0 -5
  409. package/template/.codex/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  410. package/template/.codex/skills/prototype/UI.md +0 -112
  411. package/template/.codex/skills/setup-matt-pocock-skills/domain.md +0 -37
  412. package/template/.codex/skills/to-questionnaire/SKILL.md +0 -55
  413. package/template/.codex/skills/to-questionnaire/agents/openai.yaml +0 -5
  414. package/template/.codex/skills/wait-what/SKILL.md +0 -7
  415. package/template/.codex/skills/wait-what/agents/openai.yaml +0 -5
  416. package/template/.cursor/skills/grill-with-docs/SKILL.md +0 -20
  417. package/template/.cursor/skills/grill-with-docs/agents/openai.yaml +0 -5
  418. package/template/.cursor/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  419. package/template/.cursor/skills/prototype/UI.md +0 -112
  420. package/template/.cursor/skills/setup-matt-pocock-skills/domain.md +0 -37
  421. package/template/.cursor/skills/to-questionnaire/SKILL.md +0 -55
  422. package/template/.cursor/skills/to-questionnaire/agents/openai.yaml +0 -5
  423. package/template/.cursor/skills/wait-what/SKILL.md +0 -7
  424. package/template/.cursor/skills/wait-what/agents/openai.yaml +0 -5
  425. package/template/.pi/skills/grill-with-docs/SKILL.md +0 -20
  426. package/template/.pi/skills/grill-with-docs/agents/openai.yaml +0 -5
  427. package/template/.pi/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  428. package/template/.pi/skills/prototype/UI.md +0 -112
  429. package/template/.pi/skills/setup-matt-pocock-skills/domain.md +0 -37
  430. package/template/.pi/skills/to-questionnaire/SKILL.md +0 -55
  431. package/template/.pi/skills/to-questionnaire/agents/openai.yaml +0 -5
  432. package/template/.pi/skills/wait-what/SKILL.md +0 -7
  433. package/template/.pi/skills/wait-what/agents/openai.yaml +0 -5
  434. package/template/.template-spec/agents/domain.md +0 -31
  435. /package/template/.agents/skills/{improve-codebase-architecture → codebase-design/references}/HTML-REPORT.md +0 -0
  436. /package/template/.codex/skills/{improve-codebase-architecture → codebase-design/references}/HTML-REPORT.md +0 -0
  437. /package/template/.cursor/skills/{improve-codebase-architecture → codebase-design/references}/HTML-REPORT.md +0 -0
  438. /package/template/.pi/skills/{improve-codebase-architecture → codebase-design/references}/HTML-REPORT.md +0 -0
@@ -1,204 +0,0 @@
1
- import type {
2
- ChartReferenceLineSpec,
3
- ChartComparisonContext,
4
- ChartIntent,
5
- ChartSeriesColor,
6
- ChartSurfaceOptions,
7
- ChartType as SharedChartType,
8
- } from "./charting/chart-contract";
9
-
10
- export type ValueFormat = "compact" | "number" | "percent" | "currency";
11
- export type ChartType = SharedChartType;
12
- export type LayoutWidth = "full" | "half";
13
- export type TableDensity = "dense" | "spacious";
14
- export type SnapshotStatus = "ready" | "partial" | "blocked" | "fixture";
15
- export type AnalyticsSurface = "dashboard" | "report";
16
- export type ReportBlockType =
17
- | "markdown"
18
- | "metric-strip"
19
- | "chart"
20
- | "table"
21
- | "html";
22
-
23
- export type DashboardRow = Record<string, string | number | boolean | null>;
24
-
25
- export type DashboardSnapshot = {
26
- version: 1;
27
- generatedAt: string;
28
- status?: SnapshotStatus;
29
- datasets: Record<string, DashboardRow[]>;
30
- accessIssues?: AccessIssue[];
31
- };
32
-
33
- export type AppPackageInfo = {
34
- root: string;
35
- manifestPath: string;
36
- snapshotPath: string;
37
- originUrl?: string;
38
- };
39
-
40
- export type DashboardManifest = {
41
- version: 1;
42
- surface?: AnalyticsSurface;
43
- title: string;
44
- description?: string;
45
- generatedAt: string;
46
- filters?: FilterSpec[];
47
- cards?: CardSpec[];
48
- charts?: ChartSpec[];
49
- tables?: TableSpec[];
50
- sources?: SourceSpec[];
51
- blocks?: ReportBlockSpec[];
52
- };
53
-
54
- export type ReportBlockSpec = {
55
- id: string;
56
- type: ReportBlockType;
57
- body?: string;
58
- layout?: LayoutWidth;
59
- cardIds?: string[];
60
- chartId?: string;
61
- tableId?: string;
62
- sourceId?: string;
63
- };
64
-
65
- export type FilterSpec = {
66
- id: string;
67
- label: string;
68
- dataset: string;
69
- field: string;
70
- defaultValue?: string;
71
- includeAll?: boolean;
72
- targets?: FilterTargetSpec[];
73
- };
74
-
75
- export type FilterTargetSpec = {
76
- dataset: string;
77
- field?: string;
78
- };
79
-
80
- export type CardMetricSpec = {
81
- label: string;
82
- field: string;
83
- format?: ValueFormat;
84
- signed?: boolean;
85
- };
86
-
87
- export type CardSpec = {
88
- id: string;
89
- description?: string;
90
- dataset: string;
91
- filter?: Record<string, string | number | boolean | null>;
92
- metrics: CardMetricSpec[];
93
- };
94
-
95
- export type ChartSeriesSpec = {
96
- field: string;
97
- label?: string;
98
- color?: ChartSeriesColor;
99
- lineStyle?: "solid" | "dashed" | "dotted";
100
- role?: "actual" | "baseline" | "target" | "forecast" | "plan" | "comparison";
101
- semanticRole?: "actual" | "baseline" | "target" | "forecast" | "plan" | "comparison";
102
- };
103
-
104
- export type ChartEncodingSpec = {
105
- field?: string;
106
- fields?: string[];
107
- type?: "nominal" | "ordinal" | "quantitative" | "temporal" | "text";
108
- aggregate?: "none" | "sum" | "avg" | "min" | "max" | "count" | "countDistinct";
109
- format?: ValueFormat;
110
- label?: string;
111
- unit?: string;
112
- };
113
-
114
- export type ChartSpec = {
115
- id: string;
116
- title: string;
117
- subtitle?: string;
118
- showDescription?: boolean;
119
- headerMarkdown?: string;
120
- intent?: ChartIntent;
121
- question?: string;
122
- rationale?: string;
123
- comparisonContext?: ChartComparisonContext;
124
- type: ChartType;
125
- dataset: string;
126
- sourceId?: string;
127
- source?: SourceSpec;
128
- encodings?: {
129
- x?: ChartEncodingSpec;
130
- y?: ChartEncodingSpec;
131
- color?: ChartEncodingSpec;
132
- lineStyle?: ChartEncodingSpec;
133
- size?: ChartEncodingSpec;
134
- facet?: ChartEncodingSpec;
135
- label?: ChartEncodingSpec;
136
- tooltip?: ChartEncodingSpec[];
137
- };
138
- xField?: string;
139
- xAxisTitle?: string;
140
- yAxisTitle?: string;
141
- series?: ChartSeriesSpec[];
142
- valueFormat?: ValueFormat;
143
- unit?: string;
144
- layout?: LayoutWidth;
145
- combinationRationale?: string;
146
- maxRows?: number;
147
- referenceLines?: ChartReferenceLineSpec[];
148
- emptyState?: string;
149
- compatibleTypes?: ChartType[];
150
- surface?: ChartSurfaceOptions;
151
- };
152
-
153
- export type SourceQuerySpec = {
154
- engine?: string;
155
- query?: string;
156
- id?: string;
157
- url?: string;
158
- description?: string;
159
- executed_at?: string;
160
- language?: string;
161
- filters?: string[];
162
- metric_definitions?: string[];
163
- tables_used?: string[];
164
- };
165
-
166
- export type TableSpec = {
167
- id: string;
168
- title: string;
169
- subtitle?: string;
170
- showDescription?: boolean;
171
- headerMarkdown?: string;
172
- dataset: string;
173
- density?: TableDensity;
174
- sourceId?: string;
175
- source?: SourceSpec;
176
- layout?: LayoutWidth;
177
- columns: Array<{
178
- field: string;
179
- label: string;
180
- format?: ValueFormat;
181
- movement?: boolean;
182
- role?: "movement" | "value" | string;
183
- semantic?: "movement" | "value" | string;
184
- type?: ValueFormat | "date" | "text";
185
- }>;
186
- };
187
-
188
- export type SourceSpec = {
189
- id?: string;
190
- label?: string;
191
- path?: string;
192
- href?: string;
193
- query?: SourceQuerySpec;
194
- };
195
-
196
- export type AccessIssue = {
197
- id: string;
198
- scope?: string;
199
- sourceId?: string;
200
- dataset?: string;
201
- message: string;
202
- actionLabel?: string;
203
- actionHref?: string;
204
- };
@@ -1,85 +0,0 @@
1
- # Analytics App Core
2
-
3
- Use this shared foundation for generated Data Analytics dashboard and report artifacts. Public skills should keep separate intent contracts, but reuse this core for bounded snapshots, source safety, app runtime behavior, and validation helpers.
4
-
5
- Use this file after the selected delivery surface is an MCP Apps inline chart/table widget or a Data Analytics MCP report/dashboard artifact. Root skills remain delivery-mode neutral: if the user asks for chat, notebook, HTML, BI, Streamlit, slides, or no rendered artifact, do not apply MCP widget/app mechanics except for the general safety principles.
6
-
7
- ## Shared Contract
8
-
9
- - Use `render_artifact` as the default in-Codex reader handoff for generated dashboard/report manifests with bounded snapshots.
10
- - Keep generated artifacts snapshot-first.
11
- - Store source-backed data in `snapshot.datasets` and keep rows bounded and aggregate unless a detail table is explicitly needed.
12
- - Use the canonical snapshot shape: `snapshot.datasets` is an object keyed by dataset id, and each value is a plain array of reviewed row objects. Keep column metadata in the manifest, not inside `snapshot.datasets`.
13
- - Declare source artifacts in the manifest when the reader needs provenance,
14
- query text, or citation metadata.
15
- - Native chart specs are defined by MCP tool descriptions and enforced by artifact validation. Shared guidance should not duplicate field-level chart schema.
16
- - Use `ready`, `partial`, `blocked`, and `fixture` snapshot statuses across dashboard and report artifacts.
17
- - Reports must expose a visible in-report title. Set `manifest.title` to the reader-facing title, and make the first report markdown block a matching `#` heading.
18
- - Treat `partial` and `blocked` as first-class states with visible access notices, not buried caveats.
19
- - Reserve snapshot-level access issues for missing required data in `partial`
20
- or `blocked` artifacts. Optional source limitations in an otherwise `ready`
21
- artifact belong in caveat sections, source metadata, or report notes.
22
- - Every native chart block must expose the actual SQL or source path used to generate its chart dataset through the current MCP artifact schema.
23
- - Native chart source datasets should remain useful beyond visible encodings when safe reviewed context is available. Preserve candidate grouping fields, numerators, denominators, ranks, baselines, comparison periods, and adjacent measures for auditability and realistic chart switching.
24
- - Use the same canonical `source` structure for inline charts, inline tables, artifact charts, artifact tables, and `manifest.sources[]`: put runnable SQL/code in `source.query.sql`, put the human-readable query summary in `source.query.description`, and put durable query metadata in `source.query.engine`, `source.query.id`, `source.query.url`, `source.query.executed_at`, and `source.query.language`.
25
- - Source metadata must be specific enough to validate: use actual table identifiers such as `example.analytics.fact_revenue`, not query nicknames or semantic labels, and put those identifiers in `source.query.tables_used` when they cannot be inferred from SQL.
26
- - Declare static source predicates in `source.query.filters`, including date windows, cohort/population rules, material exclusions, and sampling/limit rules. Use artifact `manifest.filters` only for interactive viewer controls.
27
- - Metric definitions must describe calculations, not only source columns. For ARR, include the aggregation/window, currency/unit, date grain, and material exclusions such as internal orgs, test traffic, true-up rows, or other accounting adjustments.
28
- - KPI and metric cards must use accurate display semantics and scale. Set `format` to the value type being rendered, such as `percent` only for rates/shares and `currency` only for money. Prefer passing unscaled numeric values and using compact formatting so the artifact renders `K`, `M`, or similar scale suffixes accurately. When a query intentionally pre-scales a value, make that scale visible in the metric label, such as `B tokens` or `revenue, $M`; do not rely on SQL aliases, field names, or query comments to imply it. Do not use a percent or currency format just because the metric is a change; format the actual value's unit and label the comparison separately.
29
- - Reader-facing numbers in cards, chart labels, axes, tooltips, headings, and narrative text should use compact shorthand for large values, such as `1.2k` instead of `1,201`, unless the surface is an exact lookup table or audit detail where precise values are the point.
30
- - KPI and metric cards must be interpretable without reading the SQL. If a metric label depends on business logic rather than a plain count or sum, define the metric in reader-facing terms and preserve the exact calculation in `source.query.metric_definitions`.
31
- - Definitions should clarify the population being measured, the event or state being counted, the time window, the aggregation method, and any important thresholds, exclusions, numerator/denominator logic, or source-specific meaning. This is especially important for rates, averages, shares, lifecycle or stage metrics, eligibility or activity metrics, quality outcomes, and version/source-attribution metrics.
32
-
33
- ## Inline Widgets
34
-
35
- - Inline widgets are for compact, reviewed intermediate or final values in non-report runs. Do not render inline chart or table widgets during report-mode work; report charts, tables, and previews belong in the selected report surface.
36
- - Use `render_chart` for compact inline visuals from reviewed query results in non-report runs when the widget surface is available, safe, and useful for the user. Use `render_table` for row previews, exact lookup tables, or table-shaped data.
37
- - Chart and table widget payloads are query-shaped and pass the same canonical `source` object. The source query must contain the durable original SQL used to materially produce the reviewed rows, plus any durable query ID or URL as metadata. If a later query only reshapes, sorts, limits, or reselects from already computed rows for widget rendering, keep that later query out of `source.query.sql`; record it as transformation context instead of replacing the original provenance.
38
- - The source query text must be runnable SQL in the named engine. Do not pass prose such as "Revenue bridge SQL executed in Databricks..." as `source.query.sql`; put that prose in `source.query.description`.
39
- - The chart subtitle should add a reader-facing insight not already covered by the title. Put source names, query IDs, table names, SQL intent, metric definitions, and provenance in source metadata or notes instead.
40
- - Make widget tables exploration-ready with useful dimensions, measures, time columns, candidate grouping fields, ranks, benchmarks, comparison-period values, or adjacent measures from reviewed results. Customer, account, company, segment, and product names are valid analytical dimensions when they are relevant. For scatter widgets, prefer one row per meaningful observation rather than a handful of broad aggregates; retain a stable point label, numeric x and y measures at the same grain, denominator or sample-size fields, one volume/size candidate, and one interpretable grouping or filter field when safe. Retaining a field for exploration does not mean the shipped chart should bind it as color, series, or grouping.
41
- - Use tidy long-form rows when that keeps chart switching understandable.
42
-
43
- ## MCP Safety And Rendering
44
-
45
- - If the user explicitly waives MCP widgets or app rendering, continue through the selected non-MCP surface and preserve SQL, source notes, and visual QA in that surface's normal supporting artifacts.
46
- - Do not send hidden reasoning, credentials, secrets, direct personal contact/payment identifiers, or unvalidated calculations into widget or artifact payloads. Reviewed customer, account, or company names may be included when they are needed for the analysis.
47
- - Keep exposed rows compact, reviewed, and at a clear analytical grain. Use deterministic samples for larger results, set the full reviewed row count, and mark truncation when applicable.
48
- - After running a durable source query, expose the first 10 reviewed rows, or a deterministic 10-row sample when the query result is too large or naturally unordered, so the user can validate the grain and columns behind the chart/table.
49
- - Preserve the actual SQL, source file path, or reproducible transformation that materially produced exposed rows. Do not replace query text with a prose source description, metric definition, filter summary, or query ID list.
50
- - Validate MCP artifacts with `validate_artifact` before the first visible `render_artifact` call. Iterate on validator errors with the validator only.
51
- - Call `render_artifact` once validation succeeds. If rendering fails after validation, stop, record the blocker, and choose another delivery path instead of repeated visible retries.
52
- - If an inline chart/table widget fails after one targeted retry, continue the analysis through another appropriate surface and note the omission reason.
53
-
54
- ## Hosted MCP Artifact Publishing
55
-
56
- - Use `export_artifact_package` when a validated MCP app report or dashboard needs a hosted Site Creator link.
57
- - The exported package must preserve the canonical `datascience-artifact-widget.html` runtime and its shared chart detail widget. It should bootstrap the hosted page with the validated payload while also serving `/api/manifest`, `/api/snapshot`, `/api/package`, `/api/source-file`, and `/api/inline-chart-widget` for the runtime.
58
- - Do not rebuild the report as standalone HTML, inline CSS charts, or a separate one-off viewer. Hosted sharing is a packaging step for the current artifact, not a second rendering implementation.
59
- - Treat Site Creator exports as read-only reader surfaces by default: hide artifact editing controls and remove `Publish to Sites` from hosted export menus. Authoring should happen in the MCP artifact, followed by a new export/deploy.
60
- - Keep static HTML and PDF exports content-only: include the report or dashboard title, narrative, charts, tables, and source details, but omit the interactive top bar and app-only controls.
61
- - Use the explicitly selected sharing audience; if none exists, preserve local/private output until sharing is requested.
62
-
63
- ## Encoding Rules
64
-
65
- - Bind color, series, grouped, or stacked behavior only when there is a meaningful second categorical dimension beyond the x/y category, such as segment, product line, period plus component, or observed series.
66
- - Treat `by <dimension>` in a chart title, subtitle, or visible header as an encoding contract. An x/y axis dimension already satisfies that contract. If `<dimension>` is not on an axis and is not otherwise visibly encoded through color/series, grouped or stacked marks, faceting, or direct labels, remove `by <dimension>` from the visible text. For `render_chart`, a time or category x-axis chart titled `... by segment` or `... by market` must bind that second dimension through `chart.fields.color.field` or an equivalent visible grouping rather than only retaining it in the source table.
67
- - When a grouped chart uses color, series, grouped, stacked, or faceted behavior, make the group names visible with a legend or direct labels. A chart does not satisfy a `by <dimension>` title if the reader cannot identify the rendered groups from the chart itself.
68
- - Do not bind color, series, grouped, or stacked behavior to the same category already used for x or y just to color bars. A bar chart whose x-axis is `modality` and y-axis is `delta` should not also color by `modality`; use palette styling, direct labels, or a single mark color instead.
69
- - Hide legends for single-series charts. Prefer direct labels when the axis or table labels already name the categories.
70
-
71
- ## Surface Split
72
-
73
- - Dashboard skills own monitoring and exploration: KPI hierarchy, chart-first canvas, dashboard-wide filters, neutral markdown cell headers, and operational QA.
74
- - Report skills own answer-first synthesis: audience, findings,
75
- insight-led markdown cell headers, markdown narrative cells, section evidence, recommendations, citations, caveats, export, and reproducibility.
76
- - Shared code owns mechanics: manifest normalization, JSON IO, markdown page/cell header rendering, source safety, sensitive payload checks, and reusable validation primitives.
77
- - Shared chart support lives in `src/analytics-app/scripts/chart_contract.py`. Dashboard and report validators should import the same supported type list, palette roots,
78
- series-shape checks, mixed-metric checks, and mixed-scale checks so newly added or removed native chart types do not drift between surfaces.
79
- - Shared chart presentation support lives in `src/analytics-app/charting/chart-contract.ts`, `src/analytics-app/charting/chart-capabilities.ts`, and `src/analytics-app/scripts/chart_contract.py`. Keep palette kind, legend behavior, value label,
80
- and reference-line options declared in the manifest and validated in both dashboard and report artifacts before adding one-off renderer behavior.
81
- - Shared design support lives in `src/analytics-app/scripts/design_contract.py`. Validators should require a structured `DESIGN.md` without freezing users out of artifact-level customization.
82
-
83
- ## Report Mode Boundary
84
-
85
- MCP app reports and HTML reports are separate delivery modes. An MCP app report should use `render_artifact` for the in-Codex reader handoff and should not also generate a canonical static `report.html` as part of the same report run. When Google Docs conversion or Google Slides conversion is required, choose the HTML report mode in $build-report instead. HTML report charts should be generated through the Seaborn template workflow and embedded as PNG images.
@@ -1,30 +0,0 @@
1
- # Codex Style Contract
2
-
3
- Data Analytics follows the Codex visual system. The durable fallback token layer lives in `src/styles/codex-theme.css` and must be imported before analytics CSS. Host-provided theme variables, fonts, and display-mode context override that fallback when the app runs inside Codex.
4
-
5
- ## Non-Negotiables
6
-
7
- - Start from neutral Codex surfaces and semantic text levels.
8
- - Use blue for accent and focus. Reserve status and chart colors for meaning.
9
- - Keep controls compact, work-oriented, and consistent with the Codex shape system.
10
- - Prefer borders, tonal shifts, and subtle shadows before heavy elevation.
11
- - Preserve keyboard focus visibility, reduced-motion behavior, responsive sizing, and the inline-to-fullscreen affordance.
12
- - Treat `src/analytics-app/tokens.css` as an additive analytics alias layer, not a competing design system.
13
-
14
- ## Analytics Extensions
15
-
16
- Data Analytics owns domain-specific visualization palettes, KPI status roles, table density, report reading widths, dashboard layouts, and chart geometry. Those extensions should consume Codex tokens before introducing new values.
17
-
18
- ## File Ownership
19
-
20
- - `src/styles/codex-theme.css` is the copied Codex fallback baseline.
21
- - `src/analytics-app/tokens.css` aliases shared UI roles to the baseline and defines analytics-only roles.
22
- - `src/DESIGN.md` is the validator-required analytics extension contract for generated packages.
23
- - Component CSS should use those roles; add bespoke values only for chart geometry or analytics-specific layouts.
24
-
25
- ## Review Checklist
26
-
27
- - Do new shared UI roles resolve through `--codex-*` tokens?
28
- - Are new colors semantic or visualization-specific?
29
- - Does the first screen remain a usable workspace?
30
- - Do inline, fullscreen, light, dark, keyboard, and reduced-motion states work?
@@ -1,12 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1" />
6
- <title>Data Analytics artifact</title>
7
- </head>
8
- <body>
9
- <div id="root"></div>
10
- <script type="module" src="./datascience-artifact-widget.jsx"></script>
11
- </body>
12
- </html>