@cratis/pi 8.0.2 → 8.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 (486) hide show
  1. package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +9 -102
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +3 -5
  3. package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +8 -49
  4. package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +1 -1
  5. package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -84
  6. package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +6 -51
  7. package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -81
  8. package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -54
  9. package/package/corpus/harnesses/copilot/instructions/components.instructions.md +1 -1
  10. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +5 -22
  11. package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +7 -315
  12. package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +1 -1
  13. package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +3 -25
  14. package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +5 -151
  15. package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +5 -104
  16. package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +5 -63
  17. package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +8 -55
  18. package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +3 -33
  19. package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +6 -79
  20. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +4 -27
  21. package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +4 -6
  22. package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +0 -2
  23. package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +0 -1
  24. package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +1 -1
  25. package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +7 -138
  26. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +19 -19
  27. package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +1 -4
  28. package/package/corpus/harnesses/copilot/instructions/go.instructions.md +2 -7
  29. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +5 -6
  30. package/package/corpus/harnesses/copilot/instructions/java.instructions.md +7 -129
  31. package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +8 -165
  32. package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +5 -98
  33. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +9 -63
  34. package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +1 -1
  35. package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +8 -148
  36. package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +4 -37
  37. package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +3 -1
  38. package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +7 -70
  39. package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -98
  40. package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +3 -47
  41. package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +3 -65
  42. package/package/corpus/hooks/README.md +4 -7
  43. package/package/corpus/hooks/scripts/quality-gates.json +3 -5
  44. package/package/corpus/rules/ai-distribution.md +9 -102
  45. package/package/corpus/rules/authoring-skills.md +3 -5
  46. package/package/corpus/rules/browser.md +8 -49
  47. package/package/corpus/rules/code-health-policy.txt +4 -24
  48. package/package/corpus/rules/code-health.md +1 -1
  49. package/package/corpus/rules/code-quality.csharp.md +3 -84
  50. package/package/corpus/rules/code-quality.md +6 -51
  51. package/package/corpus/rules/code-quality.typescript.md +4 -81
  52. package/package/corpus/rules/codescene.md +5 -54
  53. package/package/corpus/rules/components.md +1 -1
  54. package/package/corpus/rules/cratis-folder-is-configuration.md +5 -22
  55. package/package/corpus/rules/csharp.md +7 -315
  56. package/package/corpus/rules/dialogs.md +1 -1
  57. package/package/corpus/rules/discoverability.md +3 -25
  58. package/package/corpus/rules/documentation-structure-and-formatting.md +5 -151
  59. package/package/corpus/rules/documentation.md +5 -104
  60. package/package/corpus/rules/editing-cratis-docs.md +5 -63
  61. package/package/corpus/rules/efcore.md +8 -55
  62. package/package/corpus/rules/efcore.specs.md +3 -33
  63. package/package/corpus/rules/elixir.md +6 -79
  64. package/package/corpus/rules/exit-codes-and-wrappers.md +4 -27
  65. package/package/corpus/rules/framework-dotnet.md +4 -6
  66. package/package/corpus/rules/framework.md +0 -2
  67. package/package/corpus/rules/frontend-quality.md +0 -1
  68. package/package/corpus/rules/frontend-testing.md +1 -1
  69. package/package/corpus/rules/general.md +2 -2
  70. package/package/corpus/rules/github-actions.md +7 -138
  71. package/package/corpus/rules/glossary.md +19 -19
  72. package/package/corpus/rules/go-engineering.md +1 -4
  73. package/package/corpus/rules/go.md +2 -7
  74. package/package/corpus/rules/guards-and-fuses.md +5 -6
  75. package/package/corpus/rules/java.md +7 -129
  76. package/package/corpus/rules/kotlin.md +8 -165
  77. package/package/corpus/rules/orleans.md +5 -98
  78. package/package/corpus/rules/profiles.md +9 -63
  79. package/package/corpus/rules/scripting.md +1 -1
  80. package/package/corpus/rules/specs.csharp.md +8 -148
  81. package/package/corpus/rules/specs.elixir.md +4 -37
  82. package/package/corpus/rules/specs.typescript.md +3 -1
  83. package/package/corpus/rules/storybook.md +7 -70
  84. package/package/corpus/rules/typescript.md +8 -98
  85. package/package/corpus/rules/writing-correct-examples.md +3 -47
  86. package/package/corpus/rules/writing-cratis-docs.md +3 -65
  87. package/package/corpus/skills/cratis-application-growth/SKILL.md +7 -54
  88. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +49 -0
  89. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +12 -14
  90. package/package/corpus/skills/cratis-application-growth/references/stages.md +2 -2
  91. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +2 -2
  92. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +3 -3
  93. package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +2 -2
  94. package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +10 -43
  95. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +40 -0
  96. package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +1 -1
  97. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +1 -1
  98. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +4 -4
  99. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +1 -1
  100. package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +6 -7
  101. package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +2 -8
  102. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +1 -1
  103. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +1 -1
  104. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +1 -1
  105. package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +6 -12
  106. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +4 -0
  107. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +2 -2
  108. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +11 -4
  109. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +1 -1
  110. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +2 -2
  111. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +1 -1
  112. package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +19 -2
  113. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +1 -1
  114. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +1 -1
  115. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +1 -2
  116. package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +2 -2
  117. package/package/corpus/skills/cratis-arc-host-application/references/go.md +5 -1
  118. package/package/corpus/skills/cratis-arc-host-application/references/java.md +1 -1
  119. package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +1 -1
  120. package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +1 -1
  121. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +4 -7
  122. package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +1 -1
  123. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +4 -4
  124. package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +1 -1
  125. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +2 -2
  126. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +2 -2
  127. package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +1 -1
  128. package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +1 -1
  129. package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +1 -1
  130. package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +4 -2
  131. package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +6 -6
  132. package/package/corpus/skills/cratis-arc-page-query/SKILL.md +3 -3
  133. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +10 -6
  134. package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +2 -2
  135. package/package/corpus/skills/cratis-arc-page-query/references/java.md +1 -1
  136. package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +1 -1
  137. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +2 -2
  138. package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +1 -1
  139. package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +1 -1
  140. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +7 -3
  141. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +1 -1
  142. package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +2 -2
  143. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +2 -4
  144. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +2 -2
  145. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +1 -1
  146. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +2 -2
  147. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +1 -3
  148. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +13 -51
  149. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +9 -1
  150. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +40 -0
  151. package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +19 -64
  152. package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +62 -0
  153. package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +24 -55
  154. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +49 -0
  155. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +13 -31
  156. package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +25 -0
  157. package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +24 -62
  158. package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +51 -0
  159. package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +4 -4
  160. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +10 -12
  161. package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +16 -3
  162. package/package/corpus/skills/cratis-arc-validate-command/references/go.md +19 -2
  163. package/package/corpus/skills/cratis-arc-validate-command/references/java.md +20 -7
  164. package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +22 -2
  165. package/package/corpus/skills/cratis-arc-validate-command/references/python.md +8 -2
  166. package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +22 -2
  167. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +22 -248
  168. package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +55 -0
  169. package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +72 -0
  170. package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +86 -0
  171. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +27 -275
  172. package/package/corpus/skills/cratis-arc-validation-typescript/references/models-and-queries.md +63 -0
  173. package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +46 -0
  174. package/package/corpus/skills/cratis-arc-validation-typescript/references/server-decisions.md +114 -0
  175. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +15 -255
  176. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +13 -6
  177. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +75 -0
  178. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +78 -13
  179. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +16 -14
  180. package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +1 -1
  181. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +10 -6
  182. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +1 -1
  183. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +2 -2
  184. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +8 -8
  185. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +10 -8
  186. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +8 -4
  187. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +4 -4
  188. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +2 -2
  189. package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +21 -8
  190. package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +1 -1
  191. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +1 -1
  192. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +5 -7
  193. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +3 -3
  194. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +10 -80
  195. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +2 -2
  196. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -24
  197. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +10 -0
  198. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +2 -2
  199. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +7 -6
  200. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +2 -2
  201. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +6 -0
  202. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +6 -0
  203. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +6 -0
  204. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +11 -5
  205. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +2 -2
  206. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +4 -4
  207. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +2 -2
  208. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +3 -1
  209. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +1 -1
  210. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +1 -1
  211. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +1 -1
  212. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +51 -40
  213. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +1 -1
  214. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +1 -1
  215. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/{occurrences.md → csharp-occurrences.md} +2 -2
  216. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +5 -6
  217. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +1 -1
  218. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +1 -1
  219. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +1 -1
  220. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +1 -1
  221. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +21 -19
  222. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +3 -3
  223. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +1 -1
  224. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +3 -4
  225. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +3 -4
  226. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +2 -2
  227. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +1 -1
  228. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +7 -2
  229. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +1 -1
  230. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +4 -4
  231. package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +3 -3
  232. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +2 -6
  233. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +2 -2
  234. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +1 -1
  235. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +1 -5
  236. package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +3 -3
  237. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +2 -2
  238. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +12 -201
  239. package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +67 -0
  240. package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +88 -0
  241. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +8 -4
  242. package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +13 -11
  243. package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +2 -2
  244. package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -4
  245. package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +20 -61
  246. package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +1 -1
  247. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +15 -26
  248. package/package/corpus/skills/cratis-code-review/SKILL.md +7 -6
  249. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +1 -1
  250. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +1 -1
  251. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +14 -206
  252. package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +29 -0
  253. package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +8 -0
  254. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +7 -7
  255. package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +1 -1
  256. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +7 -8
  257. package/package/corpus/skills/cratis-components-choose-control/references/collections.md +2 -2
  258. package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +1 -1
  259. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +22 -27
  260. package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +5 -0
  261. package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +19 -25
  262. package/package/corpus/skills/cratis-components-display-list/SKILL.md +26 -19
  263. package/package/corpus/skills/cratis-components-display-list/references/server-query.md +3 -3
  264. package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +15 -12
  265. package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +3 -3
  266. package/package/corpus/skills/cratis-components-explore-data/SKILL.md +7 -7
  267. package/package/corpus/skills/cratis-components-host-chat/SKILL.md +7 -7
  268. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +9 -15
  269. package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +5 -5
  270. package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +3 -3
  271. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +7 -51
  272. package/package/corpus/skills/cratis-components-theme-application/references/palette.md +49 -0
  273. package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +4 -2
  274. package/package/corpus/skills/cratis-content-length/SKILL.md +34 -46
  275. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +26 -127
  276. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +15 -27
  277. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +3 -19
  278. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +29 -224
  279. package/package/corpus/skills/cratis-discoverability/SKILL.md +11 -4
  280. package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +2 -2
  281. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +4 -3
  282. package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +13 -129
  283. package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +132 -0
  284. package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +11 -100
  285. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +55 -40
  286. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +68 -0
  287. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +38 -0
  288. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +14 -65
  289. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +40 -174
  290. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +8 -52
  291. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +29 -0
  292. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +20 -0
  293. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +3 -4
  294. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +7 -12
  295. package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +5 -4
  296. package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +6 -40
  297. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +18 -151
  298. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +5 -21
  299. package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +19 -0
  300. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +3 -66
  301. package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +68 -0
  302. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +2 -84
  303. package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +87 -0
  304. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +15 -263
  305. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +3 -3
  306. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +28 -6
  307. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dotnet-nuget.md +18 -14
  308. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +231 -0
  309. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/other-environments.md +2 -3
  310. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +62 -77
  311. package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +6 -39
  312. package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +36 -0
  313. package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +4 -4
  314. package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +8 -134
  315. package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +139 -0
  316. package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +3 -100
  317. package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +109 -0
  318. package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +1 -5
  319. package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +1 -3
  320. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +11 -116
  321. package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +93 -0
  322. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +4 -15
  323. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +8 -8
  324. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +4 -4
  325. package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +1 -1
  326. package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +1 -1
  327. package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +5 -5
  328. package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +15 -2
  329. package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +1 -1
  330. package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +1 -1
  331. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +10 -27
  332. package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +16 -0
  333. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +26 -188
  334. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +14 -0
  335. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +7 -5
  336. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +23 -157
  337. package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +139 -0
  338. package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +7 -5
  339. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +2 -4
  340. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +7 -0
  341. package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +2 -2
  342. package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +1 -1
  343. package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +2 -2
  344. package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +2 -2
  345. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +5 -23
  346. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +20 -0
  347. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +3 -3
  348. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +8 -63
  349. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +52 -0
  350. package/package/corpus/skills/cratis-observability/SKILL.md +1 -1
  351. package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +9 -23
  352. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +3 -14
  353. package/package/corpus/skills/cratis-observability/references/csharp.md +4 -6
  354. package/package/corpus/skills/cratis-observability/references/elixir.md +1 -1
  355. package/package/corpus/skills/cratis-observability/references/troubleshooting.md +4 -5
  356. package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +1 -4
  357. package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +0 -3
  358. package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +0 -4
  359. package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +7 -49
  360. package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +22 -0
  361. package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +4 -4
  362. package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +1 -1
  363. package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +12 -0
  364. package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +12 -0
  365. package/package/corpus/skills/cratis-orchestration-lanes/references/worktrees.md +10 -0
  366. package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +14 -13
  367. package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +51 -26
  368. package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +8 -14
  369. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +9 -65
  370. package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +5 -0
  371. package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +11 -7
  372. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +1 -1
  373. package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +27 -0
  374. package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +35 -0
  375. package/package/corpus/skills/cratis-performance-review/SKILL.md +6 -76
  376. package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +79 -0
  377. package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +19 -16
  378. package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +2 -2
  379. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +5 -5
  380. package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +1 -1
  381. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +2 -3
  382. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +2 -2
  383. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +10 -8
  384. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +6 -6
  385. package/package/corpus/skills/cratis-platform-start-application/references/java.md +4 -4
  386. package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +4 -4
  387. package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +3 -3
  388. package/package/corpus/skills/cratis-release-notes/SKILL.md +9 -133
  389. package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -0
  390. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +64 -0
  391. package/package/corpus/skills/cratis-rtk/SKILL.md +12 -18
  392. package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +3 -3
  393. package/package/corpus/skills/cratis-screenplay-accept-model/references/capability-consumption.md +1 -1
  394. package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +1 -1
  395. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +25 -59
  396. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +11 -10
  397. package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +9 -6
  398. package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +3 -3
  399. package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +8 -0
  400. package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +20 -167
  401. package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +23 -47
  402. package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +9 -10
  403. package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +26 -23
  404. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +6 -14
  405. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +2 -2
  406. package/package/corpus/skills/cratis-screenplay-declare-slice/references/read-identity.md +1 -1
  407. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +7 -9
  408. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +1 -1
  409. package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +10 -14
  410. package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +1 -1
  411. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +1 -1
  412. package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +6 -31
  413. package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +22 -0
  414. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +5 -5
  415. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +5 -5
  416. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +4 -4
  417. package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +2 -2
  418. package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +2 -2
  419. package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
  420. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +4 -75
  421. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -2
  422. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +85 -1
  423. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +1 -1
  424. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +15 -133
  425. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
  426. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +4 -12
  427. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +28 -57
  428. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +4 -5
  429. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +13 -20
  430. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +1 -1
  431. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +1 -1
  432. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +3 -5
  433. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +2 -0
  434. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +5 -5
  435. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +82 -71
  436. package/package/corpus/skills/cratis-security-review/SKILL.md +4 -73
  437. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +24 -13
  438. package/package/corpus/skills/cratis-security-review/references/review-checklist.md +74 -0
  439. package/package/corpus/skills/cratis-session-handoff/SKILL.md +7 -32
  440. package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +2 -2
  441. package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +20 -0
  442. package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +9 -17
  443. package/package/corpus/skills/cratis-showrunner-herald/references/options.md +2 -2
  444. package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +16 -10
  445. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +9 -162
  446. package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +37 -0
  447. package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +40 -0
  448. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +39 -150
  449. package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +24 -0
  450. package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +23 -0
  451. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +5 -5
  452. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +2 -2
  453. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +13 -5
  454. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +7 -4
  455. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +1 -1
  456. package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +20 -4
  457. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +1 -1
  458. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +2 -2
  459. package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +5 -5
  460. package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +2 -2
  461. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +2 -2
  462. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +2 -2
  463. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +10 -9
  464. package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +3 -3
  465. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +7 -6
  466. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -6
  467. package/package/corpus/skills/cratis-technical-examples/SKILL.md +10 -106
  468. package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +1 -1
  469. package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +42 -0
  470. package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +2 -2
  471. package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +37 -0
  472. package/package/corpus/skills/cratis-ux-review/SKILL.md +8 -40
  473. package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +24 -0
  474. package/package/corpus/skills/cratis-ux-review/references/checklist.md +1 -1
  475. package/package/corpus/skills/cratis-ux-review/references/report-template.md +2 -1
  476. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +19 -132
  477. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +24 -97
  478. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +23 -0
  479. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +25 -0
  480. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +17 -0
  481. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +23 -0
  482. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +8 -29
  483. package/package.json +1 -1
  484. /package/package/corpus/skills/cratis-chronicle-protect-decision/references/{standalone.md → csharp-standalone.md} +0 -0
  485. /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/silent-backup-failure.md → silent-backup-failure.md} +0 -0
  486. /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/unintended-release-regression.md → unintended-release-regression.md} +0 -0
@@ -6,101 +6,11 @@ paths:
6
6
  ---
7
7
  <!-- cratis-ai: generated Copilot instructions. Do not edit; rules/ is the source. -->
8
8
 
9
-
10
- # TypeScript Conventions
11
-
12
- ## Use enums rather than string literal unions
13
-
14
- ```ts
15
- // ✅ Correct — refactorable, discoverable, exhaustive
16
- export enum SliceType {
17
- StateChange = 'stateChange',
18
- StateView = 'stateView',
19
- Automation = 'automation',
20
- Translator = 'translator',
21
- }
22
-
23
- // ❌ Wrong — no refactoring support, invisible to tooling
24
- export type SliceType = 'stateChange' | 'stateView' | 'automation' | 'translator';
25
- ```
26
-
27
- - Use enum members everywhere — `switch` cases, comparisons, defaults.
28
- - Do **not** import enums as `type`; they are values.
29
- - Export enums from `index.ts` without the `type` keyword.
30
-
31
- ## One Type or Enum per File
32
-
33
- - Every interface, type alias, and enum lives in **its own file**, named after the type (e.g. `SliceType.ts`).
34
- - **Never create** `types.ts`, `models.ts`, `interfaces.ts` grab-bag files — they become dumping grounds that grow without limit.
35
- - Exception: component props interfaces (`*Props`) may live alongside their component `.tsx` file since they are tightly coupled to that component.
36
- - Aggregate exports through the folder's `index.ts`.
37
-
38
- ## Type Safety
39
-
40
- `any` disables the compiler — the one tool that catches bugs for free. Every `any` is a hole in the safety net. Use `unknown` and narrow with type guards instead.
41
-
42
- - Never use `any` — use `unknown`, `Record<string, unknown>`, or proper generic constraints.
43
- - Prefer `value as unknown as TargetType` over `value as any`.
44
- - Use `unknown` as default generic parameter instead of `any`.
45
- - React synthetic events (`React.MouseEvent<Element, MouseEvent>`) and DOM events (`MouseEvent`) are different types — don't mix them.
46
- - **`int64`/`uint64` Chronicle fields generate as `bigint`** in the TypeScript proxies (not `number`, which silently truncated past `Number.MAX_SAFE_INTEGER`). Sequence numbers, large counters, and 64-bit ids surface as `bigint` — use `bigint` arithmetic, never `Number()`.
47
-
48
- ## User-facing strings (localization)
49
-
50
- How user-visible text is handled is **product policy, not a Cratis framework rule**: locales belong in a downstream application's own rules. Cratis itself has no mandatory i18n layer or `Strings` alias.
51
-
52
- - If the app has a localization convention (e.g. a translation object behind a `strings`/`Strings` import, or any i18n library), follow it consistently and keep raw string literals to constant, non-user-facing values (CSS class names, `key` props, internal identifiers).
53
- - If the app ships literal text, literal labels in JSX are fine.
54
-
55
- Either way, the Cratis-generic rule is only that strings are handled consistently within the app — not a specific file layout or import alias.
56
-
57
- ## Arc proxies
58
-
59
- Generated command and query proxies, their hooks, paging and forms are covered by **cratis-arc-react-bind-slice** and **cratis-arc-generate-proxies** where those skills are installed. Never edit a generated proxy by hand: change the backend type and regenerate.
60
-
61
- ## Language — American English Only
62
-
63
- All identifiers, comments, JSDoc, and string literals must use **American English** spelling (initialize, serialize, behavior, color, organization, center, modeling, dialog, license, judgment, gray).
64
-
65
- ## Variables and Naming
66
-
67
- - Prefer `const` over `let` over `var` when declaring variables.
68
- - Never use shortened or abbreviated names for variables, parameters, or properties.
69
- - Use full descriptive names: `deltaX` not `dx`, `index` not `idx`, `event` not `e`, `previous` not `prev`, `direction` not `dir`, `position` not `pos`, `contextMenu` not `ctx`/`ctxMenu`.
70
- - The only acceptable short names are well-established domain terms (e.g. `id`, `url`, `min`, `max`).
71
-
72
- ## Imports and Compilation
73
-
74
- - Never leave unused import statements in the code.
75
- - Always ensure that the code compiles without warnings — use `yarn compile` to verify (successful runs produce no output).
76
- - Review each file for lint compliance before finalizing.
77
- - Never use placeholder or temporary types — use proper types from the start.
78
- - **Never modify any file inside `node_modules/` or any build cache (e.g. `.vite/deps/`).** These are managed by the package manager and will be overwritten on the next install. If something appears broken in a library, look harder at the application code — especially when other usages of the same library work fine. Fixes belong in application code or upstream in the library's own repo.
79
-
80
- ## Folder Structure
81
-
82
- - **Never give a `.tsx` the same basename as a `.ts` in the same folder.** The Arc proxy generator emits `<Slice>.ts` beside the slice's C#; a component named `<Slice>.tsx` next to it is **silently dropped from the program**: for one basename TypeScript keeps only the `.ts`, so the component's type errors are never reported and `tsc -b` stays green while the file is broken (reproduced on TypeScript 6.0.3 and 7.0.2 with `include: ["src/**/*"]`). At Arc v22.75.0 use `<CratisProxiesUseProxyFileSuffix>true</CratisProxiesUseProxyFileSuffix>` to emit `<Slice>.proxy.ts` with matching barrels; that is the clean generator fix. Otherwise name the component for what it renders (`Listing.tsx`, `RegisterAuthor.tsx`), never for the slice, and consider a repository spec that fails on any `.tsx` with a sibling `.ts` of the same name.
83
- - Do not prefix a file, component, type, or symbol with the name of its containing folder or the concept it belongs to. Instead, use folder structure to provide that context.
84
- - Favor functional folder structure over technical folder structure.
85
- - Group files by the feature or concept they belong to, not by their technical role.
86
- - Avoid folders like `components/`, `hooks/`, `utils/`, `types/` at the feature level.
87
-
88
- ## Advanced Type Safety
89
-
90
- **Storybook:**
91
- - Use `React.ComponentType<Record<string, never>>` for components with no props.
92
- - Always use `as unknown as` when converting component imports to avoid type mismatch errors.
93
- - Properly type story args — never use `any`.
94
-
95
- **External libraries with strict generic constraints:**
96
- - Import necessary types (e.g. `Command` from `@cratis/arc/commands`) rather than asserting to `any`.
97
- - Use type assertions through `unknown`: `props.command as unknown as Constructor<Command<...>>`.
98
- - Extract tuple results explicitly rather than destructuring when type assertions are needed.
99
- - Use proper library types when available; use specific property types (e.g. `{ canvas?: HTMLCanvasElement }`) over `any`.
100
-
101
- **Dynamic and generic types:**
102
- - Add type guards for unknown function parameters: `if (typeof accessor !== 'function') return ''`.
103
- - Type parameters with fallbacks: `function<T = unknown>(accessor: ((obj: T) => unknown) | unknown)`.
104
- - Cast arrays from `unknown` explicitly: `((obj as Record<string, unknown>).items || []) as string[]`.
105
- - Use `String(value)` for string conversions in generic contexts.
106
- - Use explicit Date parameter types: `new Date(value as string | number | Date)`.
9
+ # TypeScript conventions
10
+
11
+ - Group files by feature. Give named types and enums their own files and export the public surface through `index.ts` where the package uses barrels. Keep component props beside their component. Avoid grab-bag files and redundant folder-name prefixes.
12
+ - Use enums for owned sets of named domain values, not for external string contracts or scripts restricted to erasable TypeScript. Import and export enums as values.
13
+ - Prefer `const`, descriptive names and American English. Follow the application's localization convention; Cratis does not require one.
14
+ - Use `unknown` and narrow it, or use a real generic constraint. Do not hide a type mismatch with `any` or a double assertion. Keep React events distinct from DOM events. Preserve precision when a generated type uses `bigint`.
15
+ - Don't give `.ts` and `.tsx` files in the same folder the same basename: TypeScript may exclude the `.tsx` file. Name the component for what it renders. If generated Arc proxies need distinct names, set the generator's `CratisProxiesUseProxyFileSuffix` MSBuild property to `true`.
16
+ - Use the repository's type-check and lint commands. Never edit generated proxies, `node_modules/` or build caches; change the source or fix the owning package. For proxy generation and binding, use **cratis-arc-generate-proxies** and **cratis-arc-react-bind-slice**.
@@ -6,52 +6,8 @@ paths:
6
6
  ---
7
7
  <!-- cratis-ai: generated Copilot instructions. Do not edit; rules/ is the source. -->
8
8
 
9
- # Writing Correct Code Examples (Technical Docs)
9
+ # Writing correct examples
10
10
 
11
- Documentation code examples are **copied verbatim** by evaluators. A snippet that uses an API that doesn't exist is worse than no snippet — it breaks on first paste and loses trust. An audit of these docs found **~12 fabricated-API bugs** that had passed review and shipped. The discipline below is how you avoid adding the thirteenth.
11
+ Use **cratis-technical-examples**. Verify every framework API, receiver, argument, default and import against released source for that client, not a sibling checkout's working tree or another client. Teach the current convention first. Keep tag, path and line evidence in the review report, not the example or skill.
12
12
 
13
- ## The rule: verify every framework API against real source — before you write it
14
-
15
- For each framework type, attribute, method, prop, hook, or import in an example, confirm it exists and has that exact shape in **source**, not in another doc page (the docs themselves had the bugs):
16
-
17
- - **C# / backend** — grep real usage in a reference application (e.g. Cratis **Studio**) and the product `Source/` trees of the Cratis repos checked out alongside this one (`Arc/Source`, `Chronicle/Source`). For extension methods, find the `public static … (this <Type> …)` signature and note **which type it extends**.
18
- - **React / Components** — the authoritative prop names are in the compiled type defs of the installed package (`node_modules/@cratis/components/dist/esm/**/*.d.ts`) or the `Components` source `dist`. Real usage: a reference app's `*.tsx`.
19
- - **Invented *domain* names are fine** (event/concept/command names like `AuthorRegistered`, `BookId`). Only **framework APIs** must be real. Never invent a framework interface, attribute, prop, method, or import path.
20
- - **Read the source at the version the reader runs, never at a checkout's `HEAD`.** A sibling clone's working tree is whatever someone last checked out; the package the reader installed is a tag. Read with `git show <tag>:<path>` and `git grep <pattern> <tag> -- <path>` — both work without touching the checkout, so a dirty or shared worktree is never a reason to skip the check. Name the repository and the tag in the claim ("`Arc v22.16.0`, `ParameterDependencyResolver.cs:44-62`") so the next reader can re-run it. Where the corpus states a version in a skill's *Verified product sources* table, that tag is the one to read; when a consumer's pin is newer, re-read at theirs. A release note is a reason to look, not evidence that a behavior changed or that a workaround can be retired — retire a workaround only after the original reproduction passes at the new tag.
21
-
22
- ## Choose a maintained source for the example
23
-
24
- For a long example or threaded tutorial, derive displayed snippets from a
25
- compiling, tested sample or spec when tooling supports extraction; otherwise
26
- compare each block to that source and check both together. For a short,
27
- illustrative excerpt, write purpose-built code but verify its framework APIs
28
- against the product source at the supported version. Do not forbid copying
29
- from a runnable sample: copying *without a check that prevents drift* is the
30
- problem. Multi-client pages use their client-owned snippet sources and checks;
31
- never hand-translate an unsupported SDK. See the **cratis-technical-examples**
32
- skill for the workflow.
33
-
34
- ## Complete and correct
35
-
36
- - No pseudo-code, no `// ...` elisions that leave the reader guessing, no props/members that don't exist.
37
- - A standalone snippet should compile with its stated prerequisites. Label an excerpt as an excerpt and supply or link the domain types it assumes.
38
- - Show the run command and an observable result for a substantial sample; a passing site build does not prove behavior.
39
-
40
- ## Historical API pitfalls to recheck
41
-
42
- These reminders are not versioned API evidence and must not be copied as an
43
- unchecked contract. Before using one in a new example, resolve the reader's
44
- package version and verify the exact receiver, signature and source path at
45
- that tag. Recheck affected examples on product version changes; remove a
46
- workaround only after its reproduction passes. The source check above, not
47
- this list, establishes which shape the target version supports.
48
-
49
- - Commands/queries are **model-bound**: a `[Command]` record with `Handle()` **on the record**, and `[ReadModel]` records with **static** query methods. The marker/handler interfaces `ICommand`, `ICommandHandler<T>`, `IQuery<T>`, `IQueryHandler<T,R>` **do not exist** — never use them.
50
- - Bootstrap: `ArcApplication.CreateBuilder(args)` (not `ArcApplicationBuilder.CreateBuilder`). `builder.AddCratisArc()` on the builder (`WebApplicationBuilder`/`IHostBuilder`); `app.UseCratisArc()` on the built app and it takes **no args** (the listen URL comes from `ArcOptions.Hosting.ApplicationUrl`).
51
- - Read the current user inside `Handle()` by injecting **`IHttpContextAccessor`** and reading `HttpContext?.User` (`ClaimsPrincipal`). There is no `CommandContext.User` and no `IUserAccessor` Arc type. In-`Handle` guards return **`Result<TEvent, ValidationResult>`** (success type first, error type second) + `ValidationResult.Error(...)` — there is no `CommandResult.Forbidden`/`Unauthorized` to return.
52
- - Components: `DataPage` uses the **compound** `DataPage.Columns` / `DataPage.MenuItems`; the detail prop is **`detailsComponent`** (lowercase) — `detailsTitle`/`initialSizes` are **not** props. Import `DataTableForObservableQuery` from `@cratis/components/DataTables` (the root barrel only re-exports namespaces); `DataPage`/`MenuItem` from `@cratis/components/DataPage`. Required props like `emptyMessage`/`title` must be present.
53
- - Chronicle model-bound projections use property attributes **`[SetFrom<T>]`** / **`[SetValue<T>]`** (and `[FromEvent<T>]` AutoMap) — **not** `static On(event)` methods (that shape does not exist). Retrieve a read model with `eventStore.ReadModels.GetInstanceById<T>(id)`. Assertion signatures depend on the extension receiver: the out-of-process `IChronicleSetupFixture` extension is `ShouldHaveAppendedEvent<TEvent>(sequenceNumber, eventSourceId, validator)`, while Arc's in-process `CommandScenario<TCommand>` extensions use `<TCommand, TEvent>` with the event-source id and optional predicate. Verify the receiver type and its exact extension signature before copying either shape.
54
-
55
- ## Auditing at scale
56
-
57
- Re-run a snippet-correctness audit periodically — it keeps finding bugs (the list above came from three rounds). Delegate the cross-checking to subagents that compare each snippet to source and report only confirmed discrepancies; **verify each finding against source yourself before fixing**. Consider adopting an automated example tester (**Doc Detective**, **Squidler** — from awesome-docs) that actually runs the snippets, so correctness is enforced by CI rather than by hand. The principle, from jvns's "write good examples by starting with real code": derive examples from working source, don't compose them from memory.
13
+ Derive substantial examples from a maintained runnable sample or spec. Label excerpts and supply or link the prerequisites; do not omit code the reader needs. Build and exercise the example and show an observable result. A site build proves rendering, not example behavior.
@@ -6,70 +6,8 @@ paths:
6
6
  ---
7
7
  <!-- cratis-ai: generated Copilot instructions. Do not edit; rules/ is the source. -->
8
8
 
9
- # Writing Cratis Documentation
9
+ # Writing Cratis documentation
10
10
 
11
- Read and use **cratis-documentation-writing** to establish the reader's goal and
12
- page purpose, then **cratis-engineering-docs-authoring** to draft from product
13
- evidence. Before writing explanations beside examples, work through
14
- that skill's explaining-code reference.
15
- It shows how a concrete registration or directive can carry the explanation
16
- without making the page read like a review form. Read a current, well-reviewed
17
- tutorial in the product or a closely related product before writing, without
18
- assuming its vocabulary fits this product.
11
+ Use **cratis-documentation-writing** to define the reader's goal and **cratis-engineering-docs-authoring** for evidence, drafting and explaining code. Use **cratis-technical-examples** for runnable examples. Lead with the current convention, explain invisible wiring against the backend the reader built, and show an observable result before introducing another concept. Keep limitations beside the action they affect. Preserve the site's snippet and language-tab workflow. When both sides matter, show the backend contract and generated frontend shape in producer-to-consumer order.
19
12
 
20
- Write as a developer explaining the code to another developer. Start with the
21
- reader's problem, show the relevant example, and explain the part they cannot
22
- see: why this type matters, what the call changes, or where responsibility
23
- passes to another component. Let each paragraph develop that point. Use steps
24
- for a procedure and a table for a comparison; neither replaces a connected
25
- explanation. A reference entry can state its contract directly.
26
-
27
- The example should also teach the intended idiom. Explain a tempting alternative
28
- when it exposes a real trap, and put a limitation beside the action it affects.
29
- Do not add a stock warning or a closing list of everything the product does not
30
- do. A concrete recommendation with a source-backed reason is useful perspective;
31
- an invented customer story or personal experience is not. Make the first example
32
- the convention path: do not hand-register what the framework already discovers.
33
- Explain that invisible wiring against the backend the reader actually built,
34
- then show an observable result before introducing another concept.
35
-
36
- Use **cratis-technical-examples** to verify code, configuration, commands and
37
- results against the applicable product source. It is fine to explain the effect
38
- of code that is absent, such as convention-based wiring, but establish that
39
- effect first. Do not infer a second client's API or behavior from the first.
40
- Read the multi-client section of **Explaining code** before choosing shared
41
- prose, tabs or separate guides. Preserve the owning repository's snippet and
42
- language-tab workflow rather than inventing another one. Show both the backend
43
- contract and generated frontend shape when both matter, keeping required
44
- producer/consumer actions sequential.
45
-
46
- Choose presentation to support the reader, not decorate the page. The exact
47
- Markdown/MDX boundary, aside semantics, component contracts and rendering checks
48
- live in [Documentation Structure and Formatting](./documentation-structure-and-formatting.instructions.md).
49
- Use the owning site's supported components and inspect the emitted Markdown;
50
- a raw source mirror is not proof that essential labels or warnings survive.
51
-
52
- Link the guided explanation to exact reference and connect neighboring products
53
- at their workflow seams instead of retelling their setup. A coming-from-X bridge
54
- can put the reader's existing code beside the Cratis equivalent and explain
55
- what changes. Keep that comparison fair and version-accurate, or label it
56
- illustrative; say when the existing approach remains the better fit. It does
57
- not impose universal navigation buckets.
58
-
59
- Follow the [documentation rule](./documentation.instructions.md) for naming, claims and version
60
- constraints. The reader needs the minimum or compatibility boundary that changes
61
- what they can run, not the author's source-checking diary. Keep verification
62
- provenance in the private change summary. A rendered page, compiling example,
63
- observed result and successful reader journey are different evidence.
64
-
65
- Before returning a draft, read its explanation as prose: does it make the code
66
- easier to understand, or merely name responsibilities and limitations? Use
67
- **cratis-writing-voice-and-cadence** for an authorized revision, preserving
68
- technical claims and approval boundaries. For a materially changed journey,
69
- follow the reader-review procedure owned by **cratis-documentation-writing**;
70
- report when independent review is unavailable. Do not edit generated copies,
71
- change navigation, or publish as part of writing. Run the owning documentation
72
- gate and, when available, the Documentation site's full check for attributable
73
- lint and rendered-link errors. For a visual page, use the owning preview workflow
74
- and inspect light and dark screenshots. Source ownership and the edit/sync/verify
75
- loop live in [Editing Cratis Documentation](./editing-cratis-docs.instructions.md).
13
+ Follow [Documentation](./documentation.instructions.md) for naming and claims, [Structure and Formatting](./documentation-structure-and-formatting.instructions.md) for supported site components, and [Editing Cratis Documentation](./editing-cratis-docs.instructions.md) for source ownership and gates. Do not edit generated copies or change navigation or publish as part of writing. Verify rendered links and critical content; use the owning preview and inspect light and dark output for visual changes. Report when the reader review or a gate is unavailable.
@@ -929,19 +929,16 @@ all solution projects, executing each test project independently rather than sil
929
929
  dependents. Non-test projects are explicitly skipped; a solution with none reports no verified
930
930
  specifications. A timeout is never a pass. Reports are local under `.ai-work/spec-runs/`.
931
931
 
932
- **`CratisProxiesSkip` is the proxy generator's off switch.** From Arc 22.185.1 the generator's
933
- target runs only when `CratisProxiesOutputPath` is non-empty and `CratisProxiesSkip` is not
934
- `true`, so `-p:CratisProxiesSkip=true` skips it even when the output path is set. Before 22.185.1
935
- an empty `-p:CratisProxiesOutputPath=` is the off switch, and older Arc ignores `CratisProxiesSkip`
936
- silently (MSBuild accepts unknown `-p:` names), so the shipped gates pass both. Proxies are
932
+ **`CratisProxiesSkip` is the proxy generator's off switch.** The generator's target runs only
933
+ when `CratisProxiesOutputPath` is non-empty and `CratisProxiesSkip` is not `true`, so
934
+ `-p:CratisProxiesSkip=true` skips it even when the output path is set. Proxies are
937
935
  generated and committed by the client, never in CI, so CI builds always skip generation.
938
936
 
939
937
  The Debug/Release split applies to the shipped client-side local gates only: Release clears the
940
938
  path, and the committing client's Debug gate does not, because the Debug build is
941
939
  the canonical trigger for regenerating the TypeScript proxies the frontend phase depends on, and
942
940
  the client commits the result. A consuming repository's CI never copies the Debug proxy step; it
943
- passes `-p:CratisProxiesSkip=true -p:CratisProxiesOutputPath=` (Skip needs Arc 22.185.1 or
944
- later) in every configuration.
941
+ passes `-p:CratisProxiesSkip=true` in every configuration.
945
942
 
946
943
  ## Unattended runs
947
944
 
@@ -67,14 +67,12 @@
67
67
  " { \"gates\": [ { \"id\": \"frontend-lint\", \"workingDirectory\": \"Source/App\" } ] }",
68
68
  "",
69
69
  "Note the Release build passes -p:CratisProxiesSkip=true so the proxy",
70
- "generator does not re-run and touch already-correct generated files. From Arc 22.185.1 that",
71
- "is the off switch: the target skips when CratisProxiesSkip is true even if the output path is",
72
- "set. Older Arc ignores it silently, so the command also clears CratisProxiesOutputPath, which",
73
- "older Arc honors (the target requires it to be non-empty).",
70
+ "generator does not re-run and touch already-correct generated files: the target skips when",
71
+ "CratisProxiesSkip is true even if the output path is set.",
74
72
  "The Debug/Release split is for these client-side local hooks only: the committing client's",
75
73
  "Debug gate omits the override because the Debug build is the canonical proxy-regeneration",
76
74
  "trigger, and the client commits the result. CI never copies that Debug proxy step: it passes",
77
- "-p:CratisProxiesSkip=true -p:CratisProxiesOutputPath= (Skip needs Arc 22.185.1 or later) in every configuration."
75
+ "-p:CratisProxiesSkip=true in every configuration."
78
76
  ],
79
77
  "enabled": true,
80
78
  "failFast": true,
@@ -4,107 +4,14 @@ paths:
4
4
  - "**/.cratis/**"
5
5
  ---
6
6
 
7
- # Shared AI Distribution
7
+ # Shared AI distribution
8
8
 
9
- How the shared Cratis AI corpus reaches a repository, and what a consuming
10
- repository must and must not do with it.
9
+ Author shared corpus changes in `Cratis/AI`. Never copy one consumer's `.cratis/ai` or native assistant folders into another repository. Keep consumer settings, private skills and repository knowledge local. Generalize and remove private facts before proposing shared changes; the engineering audience does not imply confidential distribution. Do not hand-edit installed managed files or generated adapters.
11
10
 
12
- Do not copy or synchronize shared `.cratis/ai`, `.agents`, `.claude`, `.github`, or
13
- `.pi` trees from one Cratis repository to another. A consuming repository must
14
- never become an accidental source that republishes its local AI corpus.
15
-
16
- Shared Cratis capabilities are authored and reviewed in `Cratis/AI` and reach a
17
- repository through these channels, each with its own version semantics:
18
-
19
- - **`cratis ai install` / `cratis ai update`** copy the corpus into `.cratis/ai/`
20
- from the current `main` of `Cratis/AI` (or an explicit `--source` path), record
21
- the source commit and every installed file's hash in `.cratis/ai.manifest.json`,
22
- and create native harness adapters as symlinks into that managed copy. There is
23
- no version pin on this channel: an update takes whatever `main` holds. Hooks
24
- are always installed; rules are filtered by profile and language; skills by
25
- the profile catalog; `harnesses/<harness>/` only for the harnesses selected.
26
- - **`@cratis/pi`** is a versioned channel: an npm package cut per release,
27
- pinned and rolled back by package version. It yields to a managed install when
28
- `.cratis/ai.manifest.json` exists.
29
- - **Native plugin marketplaces** (Claude Code, Codex, Copilot, Cursor) expose the
30
- skills only, from the unpinned `Cratis/AI` GitHub source.
31
- - **`Cratis/AI.Distribution`** is a separate tag-versioned, deny-by-default public
32
- evaluation marketplace. It is explicitly unsupported `0.x`, not a supported
33
- installation channel, and it carries a subset of the skills.
34
-
35
- `cratis ai install`, `update` and `uninstall` support `--dry-run`; `--source`
36
- or `CRATIS_AI_SOURCE` supplies a local corpus. Otherwise the CLI shallow-clones
37
- Cratis/AI's default branch and deletes the download after the run. `status`
38
- exits non-zero on local modifications; `--force` does not remove changed owned
39
- MCP entries on uninstall. Consumer extension sections in `.cratis/ai.json` and
40
- hook shebang/execute bits are preserved. Installation creates no model folder.
41
-
42
- ## Profile-selected MCP servers
43
-
44
- `mcp-servers.json` declares MCP launch capabilities for selected profiles. It is
45
- canonical corpus content, not a replacement client configuration and not an
46
- instruction for an assistant to install or execute arbitrary software.
47
-
48
- The Cratis CLI owns native client registration and executable hosting. Screenplay
49
- uses `cratis screenplay mcp`, bundled in the CLI; no second global tool install
50
- or startup download is required. Client installation must preserve unrelated
51
- servers, settings and comments, detect conflicts, support dry-run/status, and
52
- remove only unchanged owned entries on uninstall. Unsupported adapters must be
53
- reported explicitly rather than presented as configured.
54
-
55
- The CLI registers each server whose profile is selected in the project
56
- configuration of every managed harness: `.mcp.json` for Claude, `.vscode/mcp.json`
57
- for Copilot, `.cursor/mcp.json`, `.codex/config.toml` and OpenCode's config. This
58
- requires Cratis CLI 3.90.0 or later; older CLIs register only Screenplay. Pi uses
59
- the `cratis-mcp` harness extension rather than a config file. Set
60
- `mcpServers.<id>.enabled` to `false` in `.cratis/ai.json` to opt out of one
61
- server. The corpus declares no Chronicle or Studio MCP server. Run
62
- `cratis ai status` to see what was registered.
63
-
64
- Project model roots and opt-outs are consumer-owned configuration. Model writes
65
- go through a reviewed proposal that is then applied, and need the user's in-scope
66
- request.
67
-
68
- ## Preserve consumer ownership
69
-
70
- Keep existing repository-local AI files in place while a replacement corpus is
71
- under canary; do not restart legacy all-to-all propagation and do not delete
72
- legacy adapters before reviewed retirement evidence exists.
73
-
74
- Shared public product and `engineering-*` packages contain only public-safe
75
- Cratis behavior. The `engineering-` prefix identifies the maintainer audience;
76
- it does not imply confidential package contents or a private registry.
77
-
78
- The consuming repository owns its project facts, confidential behavior, local
79
- skills, and minimal host bootstraps. Project-specific context is the repository's own
80
- documentation plus `.cratis/ai/rules/project.md`; `.agents/skills/` holds private or
81
- repository-specific local workflows. Never merge, overwrite, or remove these
82
- local files as a side effect of installing, updating, rolling back, or
83
- uninstalling shared AI capabilities.
84
-
85
- Keep confidential and repository-specific behavior local. Generalize and remove
86
- private facts before proposing a reusable improvement to `Cratis/AI`; never
87
- reverse-sync a private repository's AI tree or generated adapters.
88
-
89
- Update shared AI through the channel's own mechanism (`cratis ai update`, or the
90
- `@cratis/pi` package version). Canary the change, observe its behavior and gates,
91
- and roll back the same way — by package version where one exists, otherwise by
92
- reinstalling from a known-good source commit with `--source`. Never patch managed
93
- files under `.cratis/ai/`, generated adapters, or marketplace wrappers by hand;
94
- `cratis ai status` reports such drift and `update` refuses it without `--force`.
95
-
96
- ## Audit a managed installation
97
-
98
- 1. Run `cratis ai status` for managed-file drift. For each selected harness, inspect the managed adapter links recorded in `.cratis/ai.manifest.json` under `.claude/`, `.agents/`, `.github/`, `.pi/`, `.cursor/` and `.opencode/`, as applicable. Confirm each resolves to its intended target in `.cratis/ai/`. A dangling link is a setup fault, not drift in a managed file.
99
- 2. Inspect the installed hook wiring and commands without executing them. Flag destructive or platform-specific commands and compare enforcement with the documented hook policy; a rule in prose is not proof that a hook runs.
100
- 3. Compare installed rules, skills, agents and hooks with the inventory for the selected source, profiles, languages and harnesses. Report missing and stale entries separately. In all three checks, give the affected paths and smallest repair; change files only when asked.
101
-
102
- ## Check release drift when maintaining the shared corpus
103
-
104
- For every product and native SDK row in the compatibility inventory, compare the recorded release with the latest published release from its registry or official release channel. Map the changed surface to the skills that teach it. Assign one result per row: **current**, **drifted** (name affected skills), **unknown** (registry or private source inaccessible), **not covered** (intentionally no skill), or **pinned-older** (an intentional older verification pin, such as the standalone Screenplay CI check). Do not report a pin or unavailable release as verified current.
105
-
106
- ## Verify agent dispatch separately from installation
107
-
108
- Managed installs include canonical roles such as `browser-operator`, `code-reviewer` and `slice-implementer`. Pi and OpenCode adapters are generated role prompts, not a delegation tool. Keep supported agents; add `cratis/review` when review skills are needed, whether or not the harness dispatches the reviewer role. Before updating, use `cratis ai update --dry-run` to see which obsolete managed files and links will be removed; never delete a project-owned prompt just because an old corpus supplied one.
109
-
110
- For Pi delegation, the operator can provision an external loader with `pi install npm:@tintinweb/pi-subagents`. After restarting, check that the subagent tool and intended role are available; with approval, dispatch one read-only role on a disposable input and verify its separate result. Test any required parallel cap, chained handoff, local override or provider selection before relying on it. Cratis does not guarantee the old dispatch semantics with an external loader. When a reviewer cannot use a different provider family, report `single-provider`; never silently claim independence.
11
+ - Use `cratis ai install` or `cratis ai update` for managed installs. The CLI takes the canonical repository's default branch unless `--source` or `CRATIS_AI_SOURCE` selects a local source. `.cratis/ai.manifest.json` records ownership, file hashes and adapter links. Use `cratis ai status` to check drift and `--dry-run` before install, update or uninstall. Update requires `--force` to overwrite modified managed files. Canary changes; roll back using a known-good local source.
12
+ - Standalone `@cratis/pi` yields to a managed install. Native marketplaces expose skills, not a managed corpus. `Cratis/AI.Distribution` is a public evaluation channel, not a supported install channel. Update or roll back through the channel that installed the capability.
13
+ - `mcp-servers.json` declares launch capabilities, not permission. The installer configures supported harness adapters, preserves unrelated entries, and reports conflicts or unsupported combinations. Uninstall preserves changed owned MCP entries even with `--force`. Set `mcpServers.<id>.enabled: false` in `.cratis/ai.json` to opt out.
14
+ - Pi's `cratis-mcp` extension handles Screenplay separately and loads stdio servers for explicitly selected profiles, including `cratis/codescene` and `cratis/playwright`. The CLI may report Screenplay-only registration for Pi; that does not describe the extension's runtime support. Once authorized, call `cratis_enable_mcp` with `server: codescene` or `server: playwright`; tools appear on the next step. For approved startup at session launch, set `mcpServers.<id>.eager: true`. Browser and CodeScene restrictions still apply. Screenplay model roots remain consumer-owned; writes require a reviewed proposal and user authority.
15
+ - Audit with status, then check links and hook wiring without running unknown commands. Compare installed paths with the selected source, profiles, languages and harnesses. Report missing, stale, modified and dangling paths separately. Do not remove user-owned or legacy adapters as a side effect of a canary.
16
+ - An installed role prompt does not prove delegation. Pi and OpenCode adapters are role prompts; provision a loader separately with approval and verify dispatch, handoff and required isolation on disposable work. Add `cratis/review` for its skills when needed. Report `single-provider` when independent provider review is requested but unavailable.
17
+ - When maintaining the compatibility inventory, compare against official published releases and identify affected skills. Report unverifiable, intentional older verification pins and uncovered SDKs separately from current rows.
@@ -31,13 +31,11 @@ For example: `Use when an existing Arc query needs server-side paging. Not for c
31
31
 
32
32
  ## Checked, timeless claims
33
33
 
34
- Check every API, flag, shape, package, default and version constraint against a released version before writing it. Keep the evidence in review notes, not in the skill: no source paths, line citations, commit hashes, issue or pull-request numbers, probe results or dates.
34
+ Check every API, flag, shape, package and default against the latest released version before writing it. Keep the evidence in review notes, not in the skill: no source paths, line citations, commit hashes, issue or pull-request numbers, probe results or dates.
35
35
 
36
- A version is kept only when it marks a prerequisite. Before deleting one, decide what it marks, because deleting it blindly turns a true statement into a false one:
36
+ **Latest only.** Skills and rules assume the latest released Cratis packages and teach their newest idiomatic API. Never name a Cratis package version, the release that introduced or changed a behavior, or what older releases do, and never pin a version in a Cratis install command. When a release changes a behavior, update the guidance to the new behavior instead of describing both. A non-Cratis platform requirement, such as a .NET SDK or Node.js major version, is stated only when the reader must act on it.
37
37
 
38
- - **History** (when something was verified or shipped): remove it.
39
- - **The release that introduced a behavior**: state it at the step that needs it, naming the release from the product's tags.
40
- - **A behavior that changed in a release**: state the release and what older releases do.
38
+ **Conventional first, no restated defaults.** Lead with the pattern the Cratis documentation and samples use by default. Omit arguments, attributes and options whose value equals the default, for example `[GeneratedValue]` rather than `[GeneratedValue("authorId")]` on a parameter named `authorId`. Present a non-default form only as an alternative with the specific need that calls for it.
41
39
 
42
40
  ## Size, references and links
43
41
 
@@ -6,52 +6,11 @@ paths:
6
6
 
7
7
  # Browser use
8
8
 
9
- Browser access is a capability, not authority: a configured browser tool permits
10
- nothing by itself. Every line is tagged **[contract]** (binding) or **[convention]**
11
- (the house default). Read this before any browser call.
12
-
13
- ## Permit and handoff
14
-
15
- - **[contract] Production is read-only.** Write to a production site only when the user's
16
- request or an applicable policy names that exact action. A configured browser tool is not
17
- a permit.
18
- - **[contract] One production tab per session.** No parallel polling or parallel findings on
19
- production. Run the health check first and close your own idle pages before opening one.
20
- - **[contract] Close only what you opened.** Promptly close the browser backend you
21
- started; if no shutdown tool exists, close your pages and report it. Subagents do the
22
- same. Never touch a user's or shared session; no `pkill`/`killall`. One browser per lane.
23
- - **[convention] Prefer staging or a local copy** for interactive and visual smoke runs.
24
- - **[contract] Only the `browser-operator` agent receives browser tools.** Hand it the URL,
25
- scope, permit and artifact directory. The main session does not do browser work itself
26
- unless no such agent is available. No other agent gets browser tools.
27
- - **[contract] Stop for a human on sign-in, 2FA or CAPTCHA.** Record
28
- `UI UNVERIFIED — needs human sign-in` and continue the other lanes. Do not block on it.
29
-
30
- ## Legacy observation
31
-
32
- - **[contract] Observe only; never install a missing tool.** Without browser tools, use document and
33
- expert evidence and record the gap. Installing tools is a separate, requested action.
34
- - **[contract] Use only approved test identities.** Never guess credentials or reuse one found in a URL.
35
- - **[contract] Stop on unexpected production data, mutation or an access boundary,** including from a
36
- local page that calls production. Submit a form only for an approved scenario, never to see what
37
- happens.
38
-
39
- ## Artifacts and uploads
40
-
41
- - **[contract] Write artifacts and stage uploads only under `.ai-work/<task>/browser/`**,
42
- an ignored folder at the repository root. If a path guard blocks you,
43
- stop and report. Never monkey-patch DOM or file APIs to get around it.
44
- - **[contract] No secrets or tokens in artifacts, URLs or logs.**
45
-
46
- ## Evidence
47
-
48
- - **[contract] A UI verification records:** URL, build or version, screenshot path under
49
- `.ai-work/`, correlation id, timestamp and environment. Without these it is unverified.
50
-
51
- ## Headless production-smoke checklist
52
-
53
- - **[convention]** Port-forward to the service.
54
- - **[convention]** Front it with a GET-only proxy that injects the required headers.
55
- - **[convention]** Drive it from a fresh headless browser with no persistent profile.
56
- - **[convention]** Give any signed-in profile a single owner.
57
- - **[convention]** Tear down the browser, proxy and port-forward when done.
9
+ Read before using a browser. Tool access is not permission.
10
+
11
+ - **[contract]** Delegate to `browser-operator` with the URL, scope, permit and artifact directory. That role is read-only. No other delegated role gets browser tools. If the role is unavailable, the main session may use existing authorized browser tools; never install a missing tool as a fallback. Report any unverified UI and use non-browser evidence where available.
12
+ - **[contract]** Production is read-only unless the request or applicable policy permits the exact action. Use one production tab per session, check health first, and do not poll in parallel. Stop on unexpected production data, a mutation, or an access boundary, even if the page itself is local. Submit forms only in an explicitly approved scenario.
13
+ - **[contract]** Use only approved test identities. On sign-in, 2FA or CAPTCHA, record `UI UNVERIFIED — needs human sign-in` and continue other work.
14
+ - **[contract]** Write artifacts or stage authorized uploads only under `.ai-work/<task>/browser/`. Stop and report a path guard; do not bypass it. Keep secrets out of URLs, artifacts and logs.
15
+ - **[contract]** Record URL, build, environment, timestamp, correlation ID and screenshot path; report missing evidence as unverified. Close only your own pages and backend. Never kill or close another session; report if your backend cannot be closed.
16
+ - **[convention]** Prefer staging or local for interactive checks. For an authorized headless production smoke, use a fresh browser and a GET-only proxy over the port-forward. Assign one owner to any signed-in profile and tear down the browser, proxy and port-forward afterward.
@@ -1,27 +1,7 @@
1
1
  # Code Health floor
2
2
 
3
- Apply [criticality tiers](./criticality-tiers.md) first: score Tier A code and
4
- maintained Tier B code when CodeScene is available. Tier C requires no scoring or
5
- uplift. Without tools or an account, report that and continue; never block.
6
- MCP setup, approval-gated tools and tool-output handling are in the `codescene` rule,
7
- installed with the `cratis/codescene` profile.
3
+ Score Tier A and maintained Tier B code, not Tier C or generated files. If the tools or account are unavailable, or the score is unknown, say so and continue. See `codescene` for tool approvals.
8
4
 
9
- ## The floor
10
-
11
- - In-scope code ends at Code Health **9.5 or higher**; new code aims for 10. A touched file never declines.
12
- - Uplift safely with behavior-preserving refactoring; an uplift alone does not call for new specs. A narrow fix does not require unrelated legacy uplift. If 9.5 exceeds safe scope, report the gap and suggest a follow-up; do not widen the change.
13
- - Never refactor generated code. A "could not determine" Code Health score is not a failure. Other Cratis rules win over a finding.
14
- - CodeScene has no floor setting, so the check is ours.
15
-
16
- ## Checking
17
-
18
- - For in-scope code, run `code_health_review` while shaping it, `code_health_score` before delivery, then `pre_commit_code_health_safeguard` (or `analyze_change_set` against the base branch).
19
- - The delivery report has a table: file, score before, score after; name each exception with its reason.
20
-
21
- ## No fix loops
22
-
23
- - **Once, before the gate.** Handle Code Health once per in-scope file: review while shaping the code (design for the score, do not write first and fix later), refactor, then one `code_health_score`. The gate and review then run once on the final shape.
24
- - **Never a cycle.** No gate, score, refactor, gate loops. A score check never triggers an extra build or test run on its own; batch score fixes with the other fixes.
25
- - **One refactor pass per file per change.** If it does not reach 9.5, report before/after and the reason, suggest the uplift follow-up, and stop.
26
- - **A reported reason closes the item.** Reviewers flag only an in-scope file below 9.5 with no reason, together with the round's other findings, never as a review round of its own.
27
- - **A second Code Health round is itself a finding.** Name the cause (wrong approach, file too large for the task, tool problem) instead of iterating.
5
+ - Changed files must not decline. The floor is 9.5; aim for 10 on new code. Do not widen a narrow fix for unrelated uplift or put Code Health above Cratis conventions.
6
+ - Run `code_health_review` while shaping each in-scope file. Make at most one behavior-preserving uplift pass, then run `code_health_score` once and `pre_commit_code_health_safeguard` once (or `analyze_change_set` against the base).
7
+ - Report each file's before/after score, any gap and its reason. Suggest follow-up if the floor exceeds safe scope. A reported reason closes the item; an unreported gap belongs in the ordinary review, not a new round. Never trigger another build or test solely for scoring.
@@ -14,4 +14,4 @@ paths:
14
14
 
15
15
  # Code Health floor
16
16
 
17
- For Tier A or maintained Tier B code, apply the policy in `.cratis/ai/rules/code-health-policy.txt` (standalone Pi: `code-health-policy.txt` in the announced rules directory) before shaping the change. Never refactor generated code. If CodeScene is unavailable, report it and continue.
17
+ Before shaping production code changes, read `code-health-policy.txt` alongside this rule. It defines scope, thresholds, checks and exceptions.