devrites 5.5.0 → 5.6.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 (281) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +8 -6
  3. package/engine/internal/devritespaths/paths.go +3 -0
  4. package/engine/internal/hostpack/hostpack.go +45 -6
  5. package/engine/internal/hostpack/hostpack_test.go +29 -13
  6. package/engine/internal/install/apply.go +14 -5
  7. package/engine/internal/install/install.go +8 -2
  8. package/engine/internal/install/install_test.go +12 -5
  9. package/engine/internal/install/merge.go +5 -0
  10. package/engine/internal/install/preflight.go +20 -2
  11. package/engine/internal/install/uninstall.go +5 -0
  12. package/engine/internal/install/update.go +1 -1
  13. package/install.sh +4 -1
  14. package/pack/generated/README.md +5 -1
  15. package/pack/generated/pi/AGENTS.md +22 -0
  16. package/pack/generated/pi/agents/devrites-code-reviewer.md +142 -0
  17. package/pack/generated/pi/agents/devrites-devex-reviewer.md +124 -0
  18. package/pack/generated/pi/agents/devrites-doubt-reviewer.md +88 -0
  19. package/pack/generated/pi/agents/devrites-evidence-scout.md +72 -0
  20. package/pack/generated/pi/agents/devrites-frontend-reviewer.md +116 -0
  21. package/pack/generated/pi/agents/devrites-performance-reviewer.md +115 -0
  22. package/pack/generated/pi/agents/devrites-plan-drafter.md +99 -0
  23. package/pack/generated/pi/agents/devrites-plan-reviewer.md +142 -0
  24. package/pack/generated/pi/agents/devrites-proof-runner.md +74 -0
  25. package/pack/generated/pi/agents/devrites-retrospector.md +61 -0
  26. package/pack/generated/pi/agents/devrites-security-auditor.md +109 -0
  27. package/pack/generated/pi/agents/devrites-simplifier-reviewer.md +94 -0
  28. package/pack/generated/pi/agents/devrites-slice-wright.md +204 -0
  29. package/pack/generated/pi/agents/devrites-spec-reviewer.md +96 -0
  30. package/pack/generated/pi/agents/devrites-strategy-reviewer.md +100 -0
  31. package/pack/generated/pi/agents/devrites-test-analyst.md +94 -0
  32. package/pack/generated/pi/agents/devrites-upgrade-planner.md +89 -0
  33. package/pack/generated/pi/prompts/rite-adopt.md +5 -0
  34. package/pack/generated/pi/prompts/rite-autocomplete.md +5 -0
  35. package/pack/generated/pi/prompts/rite-build.md +5 -0
  36. package/pack/generated/pi/prompts/rite-clarify.md +5 -0
  37. package/pack/generated/pi/prompts/rite-converge.md +5 -0
  38. package/pack/generated/pi/prompts/rite-customize.md +5 -0
  39. package/pack/generated/pi/prompts/rite-define.md +5 -0
  40. package/pack/generated/pi/prompts/rite-doctor.md +5 -0
  41. package/pack/generated/pi/prompts/rite-dogfood.md +5 -0
  42. package/pack/generated/pi/prompts/rite-explain.md +5 -0
  43. package/pack/generated/pi/prompts/rite-frame.md +5 -0
  44. package/pack/generated/pi/prompts/rite-handoff.md +5 -0
  45. package/pack/generated/pi/prompts/rite-learn.md +5 -0
  46. package/pack/generated/pi/prompts/rite-plan.md +5 -0
  47. package/pack/generated/pi/prompts/rite-polish.md +5 -0
  48. package/pack/generated/pi/prompts/rite-pov.md +5 -0
  49. package/pack/generated/pi/prompts/rite-pr-feedback.md +5 -0
  50. package/pack/generated/pi/prompts/rite-pressure-test.md +5 -0
  51. package/pack/generated/pi/prompts/rite-prototype.md +5 -0
  52. package/pack/generated/pi/prompts/rite-prove.md +5 -0
  53. package/pack/generated/pi/prompts/rite-quick.md +5 -0
  54. package/pack/generated/pi/prompts/rite-resolve.md +5 -0
  55. package/pack/generated/pi/prompts/rite-review.md +5 -0
  56. package/pack/generated/pi/prompts/rite-seal.md +5 -0
  57. package/pack/generated/pi/prompts/rite-ship.md +5 -0
  58. package/pack/generated/pi/prompts/rite-spec.md +5 -0
  59. package/pack/generated/pi/prompts/rite-status.md +5 -0
  60. package/pack/generated/pi/prompts/rite-temper.md +5 -0
  61. package/pack/generated/pi/prompts/rite-upgrade.md +5 -0
  62. package/pack/generated/pi/prompts/rite-vet.md +5 -0
  63. package/pack/generated/pi/prompts/rite-watch-pr.md +5 -0
  64. package/pack/generated/pi/prompts/rite-zoom-out.md +5 -0
  65. package/pack/generated/pi/prompts/rite.md +5 -0
  66. package/pack/generated/pi/skills/devrites-api-interface/SKILL.md +63 -0
  67. package/pack/generated/pi/skills/devrites-audit/SKILL.md +50 -0
  68. package/pack/generated/pi/skills/devrites-browser-proof/SKILL.md +76 -0
  69. package/pack/generated/pi/skills/devrites-browser-proof/reference/browser-performance.md +15 -0
  70. package/pack/generated/pi/skills/devrites-browser-proof/reference/visual-verdict.md +34 -0
  71. package/pack/generated/pi/skills/devrites-debug-recovery/SKILL.md +96 -0
  72. package/pack/generated/pi/skills/devrites-debug-recovery/reference/build-the-loop.md +58 -0
  73. package/pack/generated/pi/skills/devrites-debug-recovery/reference/cleanup-and-classify.md +34 -0
  74. package/pack/generated/pi/skills/devrites-debug-recovery/reference/hypotheses.md +17 -0
  75. package/pack/generated/pi/skills/devrites-debug-recovery/reference/instrumentation.md +21 -0
  76. package/pack/generated/pi/skills/devrites-debug-recovery/reference/regression-test.md +30 -0
  77. package/pack/generated/pi/skills/devrites-debug-recovery/reference/trace.md +25 -0
  78. package/pack/generated/pi/skills/devrites-doubt/SKILL.md +79 -0
  79. package/pack/generated/pi/skills/devrites-frontend-craft/SKILL.md +86 -0
  80. package/pack/generated/pi/skills/devrites-frontend-craft/reference/craft.md +63 -0
  81. package/pack/generated/pi/skills/devrites-frontend-craft/reference/design-references.md +116 -0
  82. package/pack/generated/pi/skills/devrites-frontend-craft/reference/fullstack.md +46 -0
  83. package/pack/generated/pi/skills/devrites-frontend-craft/reference/quality-standards.md +294 -0
  84. package/pack/generated/pi/skills/devrites-frontend-craft/reference/reuse-first.md +53 -0
  85. package/pack/generated/pi/skills/devrites-frontend-craft/reference/shape.md +56 -0
  86. package/pack/generated/pi/skills/devrites-interview/SKILL.md +102 -0
  87. package/pack/generated/pi/skills/devrites-lib/SKILL.md +58 -0
  88. package/pack/generated/pi/skills/devrites-lib/reference/candidate-integrity.md +42 -0
  89. package/pack/generated/pi/skills/devrites-lib/reference/intent-map.md +64 -0
  90. package/pack/generated/pi/skills/devrites-lib/reference/orchestration-profiles.md +27 -0
  91. package/pack/generated/pi/skills/devrites-lib/reference/parallel-dispatch.md +73 -0
  92. package/pack/generated/pi/skills/devrites-lib/reference/reply-contract.md +88 -0
  93. package/pack/generated/pi/skills/devrites-lib/reference/standards/README.md +60 -0
  94. package/pack/generated/pi/skills/devrites-lib/reference/standards/acceptance-preserving-reslice.md +30 -0
  95. package/pack/generated/pi/skills/devrites-lib/reference/standards/afk-hitl.md +398 -0
  96. package/pack/generated/pi/skills/devrites-lib/reference/standards/agents.md +99 -0
  97. package/pack/generated/pi/skills/devrites-lib/reference/standards/anti-patterns.md +48 -0
  98. package/pack/generated/pi/skills/devrites-lib/reference/standards/browser-proof-checklist.md +24 -0
  99. package/pack/generated/pi/skills/devrites-lib/reference/standards/ci-cd.md +50 -0
  100. package/pack/generated/pi/skills/devrites-lib/reference/standards/code-navigation.md +43 -0
  101. package/pack/generated/pi/skills/devrites-lib/reference/standards/code-review.md +108 -0
  102. package/pack/generated/pi/skills/devrites-lib/reference/standards/coding-style.md +48 -0
  103. package/pack/generated/pi/skills/devrites-lib/reference/standards/context-hygiene.md +109 -0
  104. package/pack/generated/pi/skills/devrites-lib/reference/standards/core.md +167 -0
  105. package/pack/generated/pi/skills/devrites-lib/reference/standards/data-integrity.md +118 -0
  106. package/pack/generated/pi/skills/devrites-lib/reference/standards/debug-recovery.md +28 -0
  107. package/pack/generated/pi/skills/devrites-lib/reference/standards/definition-of-done.md +19 -0
  108. package/pack/generated/pi/skills/devrites-lib/reference/standards/deprecation.md +31 -0
  109. package/pack/generated/pi/skills/devrites-lib/reference/standards/developer-experience.md +119 -0
  110. package/pack/generated/pi/skills/devrites-lib/reference/standards/development-workflow.md +29 -0
  111. package/pack/generated/pi/skills/devrites-lib/reference/standards/documentation.md +43 -0
  112. package/pack/generated/pi/skills/devrites-lib/reference/standards/edge-case-trace.md +92 -0
  113. package/pack/generated/pi/skills/devrites-lib/reference/standards/elicitation.md +85 -0
  114. package/pack/generated/pi/skills/devrites-lib/reference/standards/error-handling.md +47 -0
  115. package/pack/generated/pi/skills/devrites-lib/reference/standards/git-workflow.md +49 -0
  116. package/pack/generated/pi/skills/devrites-lib/reference/standards/hooks.md +25 -0
  117. package/pack/generated/pi/skills/devrites-lib/reference/standards/integration-reliability.md +102 -0
  118. package/pack/generated/pi/skills/devrites-lib/reference/standards/loop-operations.md +85 -0
  119. package/pack/generated/pi/skills/devrites-lib/reference/standards/observability.md +88 -0
  120. package/pack/generated/pi/skills/devrites-lib/reference/standards/one-shot-actions.md +97 -0
  121. package/pack/generated/pi/skills/devrites-lib/reference/standards/patterns.md +68 -0
  122. package/pack/generated/pi/skills/devrites-lib/reference/standards/performance.md +51 -0
  123. package/pack/generated/pi/skills/devrites-lib/reference/standards/principles.md +42 -0
  124. package/pack/generated/pi/skills/devrites-lib/reference/standards/prose-style.md +123 -0
  125. package/pack/generated/pi/skills/devrites-lib/reference/standards/release/ship-checklist.md +8 -0
  126. package/pack/generated/pi/skills/devrites-lib/reference/standards/repository-topology.md +80 -0
  127. package/pack/generated/pi/skills/devrites-lib/reference/standards/review-checklist.md +12 -0
  128. package/pack/generated/pi/skills/devrites-lib/reference/standards/security-checklist.md +25 -0
  129. package/pack/generated/pi/skills/devrites-lib/reference/standards/security.md +202 -0
  130. package/pack/generated/pi/skills/devrites-lib/reference/standards/skill-authoring.md +209 -0
  131. package/pack/generated/pi/skills/devrites-lib/reference/standards/spec-grammar.md +197 -0
  132. package/pack/generated/pi/skills/devrites-lib/reference/standards/test-proof-checklist.md +13 -0
  133. package/pack/generated/pi/skills/devrites-lib/reference/standards/testing.md +212 -0
  134. package/pack/generated/pi/skills/devrites-lib/reference/standards/tooling.md +92 -0
  135. package/pack/generated/pi/skills/devrites-lib/reference/standards/workflow-artifacts.md +427 -0
  136. package/pack/generated/pi/skills/devrites-lib/reference/visual-playbooks/code.md +44 -0
  137. package/pack/generated/pi/skills/devrites-lib/reference/visual-playbooks/comparison.md +42 -0
  138. package/pack/generated/pi/skills/devrites-lib/reference/visual-playbooks/diagram.md +51 -0
  139. package/pack/generated/pi/skills/devrites-lib/reference/visual-playbooks/index.md +66 -0
  140. package/pack/generated/pi/skills/devrites-lib/reference/visual-playbooks/input.md +46 -0
  141. package/pack/generated/pi/skills/devrites-lib/reference/visual-playbooks/outline-template.md +106 -0
  142. package/pack/generated/pi/skills/devrites-lib/reference/visual-playbooks/plan.md +48 -0
  143. package/pack/generated/pi/skills/devrites-lib/reference/visual-playbooks/slides.md +40 -0
  144. package/pack/generated/pi/skills/devrites-lib/reference/visual-playbooks/table.md +42 -0
  145. package/pack/generated/pi/skills/devrites-lib/reference/workspace-artifact-schema.md +267 -0
  146. package/pack/generated/pi/skills/devrites-prose-craft/SKILL.md +73 -0
  147. package/pack/generated/pi/skills/devrites-prose-craft/reference/banned-phrases.md +132 -0
  148. package/pack/generated/pi/skills/devrites-prose-craft/reference/examples.md +131 -0
  149. package/pack/generated/pi/skills/devrites-prose-craft/reference/structures.md +196 -0
  150. package/pack/generated/pi/skills/devrites-source-driven/SKILL.md +52 -0
  151. package/pack/generated/pi/skills/devrites-ux-shape/SKILL.md +134 -0
  152. package/pack/generated/pi/skills/devrites-ux-shape/reference/brief-template.md +108 -0
  153. package/pack/generated/pi/skills/devrites-ux-shape/reference/visual-direction-probe.md +48 -0
  154. package/pack/generated/pi/skills/rite/SKILL.md +148 -0
  155. package/pack/generated/pi/skills/rite/reference/menu.md +48 -0
  156. package/pack/generated/pi/skills/rite-adopt/SKILL.md +52 -0
  157. package/pack/generated/pi/skills/rite-adopt/reference/adoption.md +19 -0
  158. package/pack/generated/pi/skills/rite-adopt/reference/anti-patterns.md +19 -0
  159. package/pack/generated/pi/skills/rite-autocomplete/SKILL.md +132 -0
  160. package/pack/generated/pi/skills/rite-autocomplete/reference/decision-policy.md +41 -0
  161. package/pack/generated/pi/skills/rite-autocomplete/reference/loop.md +148 -0
  162. package/pack/generated/pi/skills/rite-autocomplete/reference/stop-conditions.md +92 -0
  163. package/pack/generated/pi/skills/rite-build/SKILL.md +96 -0
  164. package/pack/generated/pi/skills/rite-build/reference/afk-discipline.md +145 -0
  165. package/pack/generated/pi/skills/rite-build/reference/anti-patterns.md +23 -0
  166. package/pack/generated/pi/skills/rite-build/reference/checkpoint-protocol.md +120 -0
  167. package/pack/generated/pi/skills/rite-build/reference/checkpoint.md +44 -0
  168. package/pack/generated/pi/skills/rite-build/reference/frontend-trigger.md +39 -0
  169. package/pack/generated/pi/skills/rite-build/reference/one-slice-cycle.md +50 -0
  170. package/pack/generated/pi/skills/rite-build/reference/output.md +33 -0
  171. package/pack/generated/pi/skills/rite-build/reference/parallel-batch.md +205 -0
  172. package/pack/generated/pi/skills/rite-build/reference/phase-contract.md +87 -0
  173. package/pack/generated/pi/skills/rite-build/reference/spec-drift-guard.md +84 -0
  174. package/pack/generated/pi/skills/rite-build/reference/tdd.md +27 -0
  175. package/pack/generated/pi/skills/rite-build/reference/wright-dispatch.md +89 -0
  176. package/pack/generated/pi/skills/rite-clarify/SKILL.md +99 -0
  177. package/pack/generated/pi/skills/rite-clarify/reference/anti-patterns.md +24 -0
  178. package/pack/generated/pi/skills/rite-clarify/reference/decision-coverage.md +55 -0
  179. package/pack/generated/pi/skills/rite-converge/SKILL.md +145 -0
  180. package/pack/generated/pi/skills/rite-converge/reference/anti-patterns.md +35 -0
  181. package/pack/generated/pi/skills/rite-converge/reference/convergence-assessment.md +65 -0
  182. package/pack/generated/pi/skills/rite-customize/SKILL.md +60 -0
  183. package/pack/generated/pi/skills/rite-define/SKILL.md +169 -0
  184. package/pack/generated/pi/skills/rite-define/reference/anti-patterns.md +26 -0
  185. package/pack/generated/pi/skills/rite-define/reference/gates.md +154 -0
  186. package/pack/generated/pi/skills/rite-define/reference/plan-template.md +149 -0
  187. package/pack/generated/pi/skills/rite-doctor/SKILL.md +69 -0
  188. package/pack/generated/pi/skills/rite-dogfood/SKILL.md +55 -0
  189. package/pack/generated/pi/skills/rite-explain/SKILL.md +152 -0
  190. package/pack/generated/pi/skills/rite-explain/reference/intake.md +89 -0
  191. package/pack/generated/pi/skills/rite-frame/SKILL.md +115 -0
  192. package/pack/generated/pi/skills/rite-frame/reference/failure-modes.md +66 -0
  193. package/pack/generated/pi/skills/rite-handoff/SKILL.md +97 -0
  194. package/pack/generated/pi/skills/rite-handoff/reference/handoff-template.md +44 -0
  195. package/pack/generated/pi/skills/rite-learn/SKILL.md +72 -0
  196. package/pack/generated/pi/skills/rite-plan/SKILL.md +186 -0
  197. package/pack/generated/pi/skills/rite-plan/reference/anti-patterns.md +34 -0
  198. package/pack/generated/pi/skills/rite-plan/reference/dependency-graph.md +48 -0
  199. package/pack/generated/pi/skills/rite-plan/reference/replan-and-repair.md +105 -0
  200. package/pack/generated/pi/skills/rite-plan/reference/slicing.md +167 -0
  201. package/pack/generated/pi/skills/rite-plan/reference/task-breakdown.md +42 -0
  202. package/pack/generated/pi/skills/rite-polish/SKILL.md +104 -0
  203. package/pack/generated/pi/skills/rite-polish/reference/adr-promotion.md +11 -0
  204. package/pack/generated/pi/skills/rite-polish/reference/anti-ai-slop.md +187 -0
  205. package/pack/generated/pi/skills/rite-polish/reference/anti-patterns.md +30 -0
  206. package/pack/generated/pi/skills/rite-polish/reference/backend-polish.md +80 -0
  207. package/pack/generated/pi/skills/rite-polish/reference/browser-polish-evidence.md +33 -0
  208. package/pack/generated/pi/skills/rite-polish/reference/code.md +82 -0
  209. package/pack/generated/pi/skills/rite-polish/reference/design-memory.md +117 -0
  210. package/pack/generated/pi/skills/rite-polish/reference/design-system-discovery.md +8 -0
  211. package/pack/generated/pi/skills/rite-polish/reference/harden-checklist.md +109 -0
  212. package/pack/generated/pi/skills/rite-polish/reference/ledger.md +65 -0
  213. package/pack/generated/pi/skills/rite-polish/reference/ui.md +137 -0
  214. package/pack/generated/pi/skills/rite-pov/SKILL.md +58 -0
  215. package/pack/generated/pi/skills/rite-pr-feedback/SKILL.md +54 -0
  216. package/pack/generated/pi/skills/rite-pressure-test/SKILL.md +67 -0
  217. package/pack/generated/pi/skills/rite-prototype/SKILL.md +104 -0
  218. package/pack/generated/pi/skills/rite-prove/SKILL.md +120 -0
  219. package/pack/generated/pi/skills/rite-prove/reference/acceptance-proof.md +88 -0
  220. package/pack/generated/pi/skills/rite-prove/reference/anti-patterns.md +25 -0
  221. package/pack/generated/pi/skills/rite-prove/reference/browser-proof.md +51 -0
  222. package/pack/generated/pi/skills/rite-prove/reference/failure-triage.md +43 -0
  223. package/pack/generated/pi/skills/rite-prove/reference/proof-ladder.md +28 -0
  224. package/pack/generated/pi/skills/rite-prove/reference/test-command-discovery.md +30 -0
  225. package/pack/generated/pi/skills/rite-quick/SKILL.md +82 -0
  226. package/pack/generated/pi/skills/rite-resolve/SKILL.md +95 -0
  227. package/pack/generated/pi/skills/rite-resolve/reference/answer-protocol.md +118 -0
  228. package/pack/generated/pi/skills/rite-review/SKILL.md +170 -0
  229. package/pack/generated/pi/skills/rite-review/reference/anti-patterns.md +32 -0
  230. package/pack/generated/pi/skills/rite-review/reference/cognitive-load.md +90 -0
  231. package/pack/generated/pi/skills/rite-review/reference/feature-scoped-review.md +26 -0
  232. package/pack/generated/pi/skills/rite-review/reference/five-axis-review.md +66 -0
  233. package/pack/generated/pi/skills/rite-review/reference/nielsen-heuristics.md +126 -0
  234. package/pack/generated/pi/skills/rite-review/reference/performance-checklist.md +80 -0
  235. package/pack/generated/pi/skills/rite-review/reference/performance-review.md +14 -0
  236. package/pack/generated/pi/skills/rite-review/reference/security-review.md +42 -0
  237. package/pack/generated/pi/skills/rite-seal/SKILL.md +75 -0
  238. package/pack/generated/pi/skills/rite-seal/reference/anti-patterns.md +29 -0
  239. package/pack/generated/pi/skills/rite-seal/reference/final-evidence.md +41 -0
  240. package/pack/generated/pi/skills/rite-seal/reference/go-no-go.md +29 -0
  241. package/pack/generated/pi/skills/rite-seal/reference/output.md +5 -0
  242. package/pack/generated/pi/skills/rite-seal/reference/phase-contract.md +47 -0
  243. package/pack/generated/pi/skills/rite-seal/reference/risk-and-rollback.md +56 -0
  244. package/pack/generated/pi/skills/rite-seal/reference/seal-template.md +27 -0
  245. package/pack/generated/pi/skills/rite-ship/SKILL.md +88 -0
  246. package/pack/generated/pi/skills/rite-ship/reference/anti-patterns.md +28 -0
  247. package/pack/generated/pi/skills/rite-ship/reference/close-out.md +68 -0
  248. package/pack/generated/pi/skills/rite-ship/reference/git-ship.md +120 -0
  249. package/pack/generated/pi/skills/rite-ship/reference/rollout.md +62 -0
  250. package/pack/generated/pi/skills/rite-ship/reference/ship-template.md +39 -0
  251. package/pack/generated/pi/skills/rite-spec/SKILL.md +150 -0
  252. package/pack/generated/pi/skills/rite-spec/reference/acceptance-criteria.md +31 -0
  253. package/pack/generated/pi/skills/rite-spec/reference/ai-spec-template.md +40 -0
  254. package/pack/generated/pi/skills/rite-spec/reference/anti-patterns.md +27 -0
  255. package/pack/generated/pi/skills/rite-spec/reference/interview-patterns.md +56 -0
  256. package/pack/generated/pi/skills/rite-spec/reference/investigation.md +83 -0
  257. package/pack/generated/pi/skills/rite-spec/reference/question-protocol.md +36 -0
  258. package/pack/generated/pi/skills/rite-spec/reference/references-intake.md +62 -0
  259. package/pack/generated/pi/skills/rite-spec/reference/spec-checklists.md +89 -0
  260. package/pack/generated/pi/skills/rite-spec/reference/spec-template.md +154 -0
  261. package/pack/generated/pi/skills/rite-spec/reference/state-workspace.md +227 -0
  262. package/pack/generated/pi/skills/rite-status/SKILL.md +57 -0
  263. package/pack/generated/pi/skills/rite-temper/SKILL.md +130 -0
  264. package/pack/generated/pi/skills/rite-temper/reference/anti-patterns.md +30 -0
  265. package/pack/generated/pi/skills/rite-temper/reference/review-dimensions.md +66 -0
  266. package/pack/generated/pi/skills/rite-temper/reference/scope-modes.md +53 -0
  267. package/pack/generated/pi/skills/rite-temper/reference/significance.md +46 -0
  268. package/pack/generated/pi/skills/rite-temper/reference/strategy-template.md +90 -0
  269. package/pack/generated/pi/skills/rite-upgrade/SKILL.md +121 -0
  270. package/pack/generated/pi/skills/rite-vet/SKILL.md +193 -0
  271. package/pack/generated/pi/skills/rite-vet/reference/anti-patterns.md +43 -0
  272. package/pack/generated/pi/skills/rite-vet/reference/artifacts.md +202 -0
  273. package/pack/generated/pi/skills/rite-vet/reference/cross-model.md +19 -0
  274. package/pack/generated/pi/skills/rite-vet/reference/depth.md +59 -0
  275. package/pack/generated/pi/skills/rite-vet/reference/eng-lenses.md +48 -0
  276. package/pack/generated/pi/skills/rite-vet/reference/review-axes.md +201 -0
  277. package/pack/generated/pi/skills/rite-watch-pr/SKILL.md +85 -0
  278. package/pack/generated/pi/skills/rite-zoom-out/SKILL.md +69 -0
  279. package/package.json +3 -2
  280. package/scripts/build-host-artifacts.sh +54 -4
  281. package/scripts/pi-generate.sh +198 -0
@@ -0,0 +1,108 @@
1
+ # `design-brief.md` template: the UX/UI contract
2
+
3
+ The feature-level design decision, produced **before** code by `devrites-ux-shape` (at
4
+ `/rite-spec` when UI is detected) and the **target** the build, polish, and seal check
5
+ against. `devrites-frontend-craft` refines it per slice and appends build-time decisions;
6
+ it is never re-derived from scratch.
7
+
8
+ Pick the shape by how clear the answers are. **Compact** is the default for a crisp prompt;
9
+ **full** when the surface is ambiguous, multi-screen, or the user asked to shape it as a
10
+ step. Don't pad a clear brief into a long one to look thorough.
11
+
12
+ ## Compact form (default)
13
+ ```markdown
14
+ # Design brief: <feature>
15
+ Slug: <kebab> Shaped: <iso> Register: brand | product Fidelity: <sketch|mid-fi|high-fi|production>
16
+
17
+ - **Building**: <one line — what + who it's for + the primary action>
18
+ - **Thesis**: <focal point + hierarchy> · memorable move: <one move | none — system continuity> · preserve/avoid: <identity + anti-goal>
19
+ - **Direction**: <color strategy> · density <airy|balanced|dense>/motion <minimal|standard|expressive> · "<scene sentence>" · targets: <R-ids> · constraints: <R-ids> · inspiration: <R-ids>
20
+ - **Locks**: accent <token> · radius <scale> · theme <light|dark>
21
+ - **States**: <the states this surface needs, comma-listed>
22
+ - **Interaction**: <inline / navigated / modal · feedback · entry→completion in a phrase>
23
+ - **Proof**: <states × viewports × input modes; target R-ids; zero material visual mismatches>
24
+ - **Confirm or override?** <the one or two things you still want the user to confirm>
25
+ ```
26
+
27
+ ## Full form
28
+ ```markdown
29
+ # Design brief: <feature>
30
+ Slug: <kebab> Shaped: <iso> Register: brand | product
31
+
32
+ ## 1. Summary
33
+ What this is, who it's for, what it must accomplish, what existing identity/behavior must
34
+ survive — including IA, content voice, SEO/analytics hooks, and accessibility wins — and
35
+ the anti-goal (2-3 sentences).
36
+
37
+ ## 2. Primary action
38
+ The single most important thing the user does or understands here. Everything else is secondary.
39
+
40
+ ## 3. Design direction
41
+ - Color strategy: Restrained | Committed | Multi-role | Saturated — why (from the scene, not the category).
42
+ - Calibration: density Airy | Balanced | Dense · motion Minimal | Standard | Expressive — from the scene (`../../devrites-frontend-craft/reference/quality-standards.md` — Calibration).
43
+ - Scene sentence: "<who uses it, where, under what light, in what mood>".
44
+ - Visual thesis: <focal point + 1st/2nd/3rd hierarchy> · memorable move: <one | none — system continuity>.
45
+ - References by role: targets <R-ids> · constraints <R-ids> · inspiration <R-ids>.
46
+ - Locks: one accent <token> · one radius scale · one theme — held page-wide
47
+ (`../../devrites-frontend-craft/reference/quality-standards.md` — Consistency locks).
48
+ - Rejected direction: <the obvious-but-wrong direction + why>.
49
+ - Departure: default (preserve identity) | departing because <explicit signal>.
50
+
51
+ ## 4. Scope *(task-scoped — not persisted to PRODUCT.md / DESIGN.md)*
52
+ Fidelity · breadth · interactivity · time intent.
53
+
54
+ ## 5. Layout & hierarchy
55
+ What gets emphasis; what's seen 1st / 2nd / 3rd; how information flows. Hierarchy, not CSS.
56
+
57
+ ## 6. Key states
58
+ Every state + what the user needs to see and feel:
59
+ | State | User sees / feels | Notes |
60
+ |---|---|---|
61
+ | default / populated | | |
62
+ | loading | | initial + subsequent |
63
+ | empty | | welcoming + the next action |
64
+ | error | | what happened + how to recover |
65
+ | success | | |
66
+ | disabled / no-permission | | |
67
+ | long-content / overflow / many items | | |
68
+
69
+ ## 7. Interaction model
70
+ Inline vs navigated vs (rarely) modal; optimistic vs pending; focus & keyboard; feedback on
71
+ every action; the flow from entry to completion.
72
+
73
+ ## 8. Content & copy
74
+ Labels, empty/error messages, microcopy in the product's voice. Realistic dynamic ranges.
75
+ For image-led surfaces: required media roles + likely source (project asset / generated /
76
+ SVG-CSS / icon library / accepted omission) and the shippable provenance/usage recorded in
77
+ `references.md`.
78
+
79
+ ## 9. Responsive & a11y
80
+ Reflow 320→1440 (what stacks / collapses / scrolls); focus order, labels, contrast,
81
+ keyboard, target size. Floor: `../../devrites-frontend-craft/reference/quality-standards.md`.
82
+
83
+ ## 10. Visual-direction probe
84
+ Which probe ran (figma / images / prototype / skipped — no tool), which direction won, what
85
+ changed in the brief because of it. Artifacts saved under `references/`.
86
+
87
+ ## 11. Proof targets
88
+ Representative states × viewports × input modes, the target R-ids or brief rules each
89
+ render is compared with, and the exact interaction/accessibility checks. A visual pass
90
+ requires zero unresolved **material** mismatch; accepted departures are recorded below.
91
+
92
+ ## 12. Open questions
93
+ Genuinely unresolved only. If you'd write "Recommend: X", decide X instead.
94
+
95
+ ## Build-time refinements *(appended by devrites-frontend-craft per slice)*
96
+ - SLICE-001: <decision made while building this surface + why>.
97
+ ```
98
+
99
+ ## How downstream phases use it
100
+ - `/rite-define`: UI slices map to the **Key states**, **Interaction model**, and **Proof
101
+ targets**; each UI slice names the visual acceptance it proves.
102
+ - `/rite-build` + `devrites-frontend-craft`: build **to** the brief; refine per slice;
103
+ append refinements above instead of re-deriving.
104
+ - `/rite-prove` + `browser-evidence.md`: render the proof targets, compare against the
105
+ brief + target references, and close material deltas.
106
+ - `/rite-polish`: Phase 4 reads the brief so polish honors the agreed direction.
107
+ - `/rite-seal` + `devrites-frontend-reviewer`: check the UI matches the brief (states
108
+ covered, direction held, references matched).
@@ -0,0 +1,48 @@
1
+ # Visual-direction probe: test the lane before the brief locks
2
+
3
+ Before finalizing `design-brief.md`, pressure-test the visual direction with something
4
+ concrete instead of words, *when it will clarify the brief*. This is the
5
+ DevRites-native answer to "build it according to the design (Figma, images)": show a
6
+ direction, get a reaction, then write the brief.
7
+
8
+ ## When to run (all true)
9
+ - The work is **net-new** or directionally **ambiguous**. An existing surface or an
10
+ approved reference classified **target** already fixes the direction → skip.
11
+ - Fidelity is **mid-fi or higher**. Sketch-only planning → skip.
12
+ - A probe tool is available (below). **Capability-gated**: never ask the user to
13
+ install APIs or tooling. If none is available, **announce the skip in one line** and
14
+ proceed to the brief. The one-line announcement is required; it forces a conscious choice
15
+ instead of letting the step quietly evaporate.
16
+
17
+ ## Pick the probe by what's available (first match)
18
+ 1. **Figma reference supplied** → pull design context with the Figma integration (frames,
19
+ tokens, components, a screenshot of the target). Record what it dictates. A Figma frame
20
+ that conflicts with the project's design system is a **question for the user**, not a
21
+ silent choice.
22
+ 2. **Native image generation available** (Figma Make, an image-gen MCP, computer-use, or
23
+ similar) → generate **2-4 distinct direction probes** from the discovery answers (color
24
+ strategy, scene sentence, anchors). They must differ in **primary direction**:
25
+ hierarchy, density, typographic voice, topology, not just palette tweaks. Treat them as
26
+ *direction tests*, not final UI.
27
+ 3. **A code-fidelity question** ("which of these layouts works in our stack") →
28
+ route to **`/rite-prototype`** (2-4 real UI variations on one throwaway route). Prototype
29
+ is DevRites' existing tool for this; don't rebuild it here.
30
+ 4. **Reference sites / links only** → screenshot them (`devrites-browser-proof` tooling)
31
+ and read the relevant intent (tone, density, interaction).
32
+ 5. **Nothing available** → one-line skip, proceed.
33
+
34
+ ## How to use the result
35
+ - Ask which direction feels closest, what's off, what carries forward. Don't treat
36
+ generated imagery as final UX, copy, or accessibility behavior.
37
+ - If the probe reveals a mismatch, revise the **discovery inputs** (scene sentence, color
38
+ strategy, anchors) *before* writing the brief. That's the whole point of probing.
39
+ - Save probe artifacts (generated images, Figma exports, screenshots) into
40
+ `.devrites/work/<slug>/references/`, index them in `references.md` with what each shows,
41
+ and note the winning direction in the brief's **Visual-direction probe** section.
42
+
43
+ ## Limits
44
+ - Don't skip discovery because image generation is available.
45
+ - Don't run a probe for a minor refinement of existing work. It's for shaping a new
46
+ surface or a big directional choice.
47
+ - Don't block the brief on a slow or failing tool: try once, then skip with the one-line
48
+ note.
@@ -0,0 +1,148 @@
1
+ ---
2
+ name: rite
3
+ description: User-invoked DevRites menu and router; no args renders the menu, a verb invokes the matching `rite-<verb>` skill.
4
+ argument-hint: "[verb [args...]]"
5
+ user-invocable: true
6
+ disable-model-invocation: true
7
+ ---
8
+
9
+ # /rite: DevRites menu + router
10
+
11
+ Two modes:
12
+
13
+ - **No args** → render the menu and stop. Do not execute a phase or infer
14
+ workspace status; `/rite-status` owns that.
15
+ - **Verb arg** → pass-through invocation of the matching `rite-<verb>` skill (`/rite spec foo` ≡ `/rite-spec foo`); the called skill owns the output.
16
+
17
+ When the user asks which rite fits, load [`devrites-lib/reference/intent-map.md`](../devrites-lib/reference/intent-map.md).
18
+ When they ask how phases connect, load [`reference/menu.md`](reference/menu.md).
19
+
20
+ ## Dispatch
21
+
22
+ If `$ARGUMENTS` starts with a verb in this table, **load the matching skill and execute its workflow** with the remainder of `$ARGUMENTS` as that skill's argument. Resolve the installed skill path:
23
+
24
+ ```bash
25
+ V=<verb>; ARGS="<remaining args>"
26
+ F=.pi/skills/rite-$V/SKILL.md
27
+ # Then Read "$F" and follow its workflow with $ARGS as that skill's $ARGUMENTS.
28
+ ```
29
+
30
+ `use` and `guide` are handled inline per the sections below, not via a skill file.
31
+
32
+ What each verb does lives once, in the Menu below; this table is the invocation map only.
33
+
34
+ | Verb | Skill |
35
+ |---|---|
36
+ | `spec [feature]` | `/rite-spec` |
37
+ | `adopt [area]` | `/rite-adopt` |
38
+ | `clarify [feature]` | `/rite-clarify` |
39
+ | `temper [--mode]` | `/rite-temper` |
40
+ | `define` | `/rite-define` |
41
+ | `vet [--cross-model]` | `/rite-vet` |
42
+ | `plan [mode]` | `/rite-plan` |
43
+ | `build [slice]` | `/rite-build` |
44
+ | `converge [slug]` | `/rite-converge` |
45
+ | `prove` | `/rite-prove` |
46
+ | `polish [mode]` | `/rite-polish` |
47
+ | `review [scope]` | `/rite-review` |
48
+ | `seal` | `/rite-seal` |
49
+ | `ship` | `/rite-ship` |
50
+ | `status [slug]` | `/rite-status` |
51
+ | `doctor` | `/rite-doctor` |
52
+ | `upgrade [slug]` | `/rite-upgrade` |
53
+ | `learn ["<lesson>"]` | `/rite-learn` |
54
+ | `explain [concept \| diff \| idea \| recap]` | `/rite-explain` |
55
+ | `pov [candidate]` | `/rite-pov` |
56
+ | `dogfood [--port N]` | `/rite-dogfood` |
57
+ | `pr-feedback [PR\|thread]` | `/rite-pr-feedback` |
58
+ | `watch-pr [PR\|URL]` | `/rite-watch-pr` |
59
+ | `customize [instruction \| skill \| agent \| plugin]` | `/rite-customize` |
60
+ | `use <slug>` | (inline) |
61
+ | `guide` | (inline) |
62
+ | `resolve <qid> "<answer>"` | `/rite-resolve` |
63
+ | `prototype [question]` | `/rite-prototype` |
64
+ | `handoff [focus]` | `/rite-handoff` |
65
+ | `zoom-out` | `/rite-zoom-out` |
66
+ | `pressure-test` | `/rite-pressure-test` |
67
+ | `autocomplete [idea] [--ship]` | `/rite-autocomplete` |
68
+ | `quick [change]` | `/rite-quick` |
69
+ | `frame [task]` | `/rite-frame` |
70
+
71
+ Both forms call the same skill. The menu supports discovery; `/rite-<verb>` is the direct form.
72
+
73
+ `use <slug>` is handled **inline**. There is no `rite-use` skill. Confirm
74
+ `.devrites/work/<slug>/` exists, then re-point `.devrites/ACTIVE` to `<slug>` and report
75
+ the now-active feature. It is cheap context-switching only: no re-spec, no phase run. If
76
+ the workspace is missing, list the slugs under `.devrites/work/` and stop.
77
+
78
+ `guide` is an inline walkthrough for the first feature. Agree on one **real, small**
79
+ change, then run spec → clarify → temper → define → vet → build → prove → polish → review → seal →
80
+ ship. Before each phase, say what it decides; after, name what it wrote and why. Pause at
81
+ every boundary and explain only what the user needs for the next decision.
82
+
83
+ Specialist triggers (model-invoked inside the above):
84
+ `devrites-frontend-craft` (UI) · `devrites-browser-proof` (UI verify) ·
85
+ `devrites-source-driven` (uncertain library) · `devrites-doubt` (non-trivial
86
+ decision) · `devrites-api-interface` (cross-boundary) ·
87
+ `devrites-audit <security|perf|simplify>` (single-axis review/polish pass) ·
88
+ `devrites-debug-recovery` (failures). Parallel reviewer fan-out at seal is a shared
89
+ reference (see [`devrites-lib/reference/parallel-dispatch.md`](../devrites-lib/reference/parallel-dispatch.md)).
90
+
91
+ ## What to output
92
+
93
+ Reply-contract exception: `/rite` is the menu/router, not a workspace completion step.
94
+ Called phase skills own the shared completion reply contract
95
+ ([`reply-contract.md`](../devrites-lib/reference/reply-contract.md)).
96
+
97
+ 1. **Verb in `$ARGUMENTS`** → invoke the matching skill per the table above.
98
+ 2. **No args** → menu mode, as above.
99
+ 3. **Unrecognized first token** → tell the user the known verbs and stop. Don't guess.
100
+ 4. **No active feature** and the user asked "where am I" → point at `/rite spec <feature>` (or `/rite-spec`). Don't summarize state yourself: `/rite status` (or `/rite-status`) owns that.
101
+
102
+ ## Menu
103
+
104
+ ```
105
+ DevRites — disciplined senior-engineer workflow
106
+ menu form direct shortcut
107
+ SPEC /rite spec ≡ /rite-spec investigate deeply → write spec.md
108
+ ADOPT /rite adopt ≡ /rite-adopt onboard existing code → reverse-derive spec.md
109
+ CLARIFY /rite clarify ≡ /rite-clarify close the complete decision surface before planning
110
+ TEMPER /rite temper ≡ /rite-temper optional — strategic review: scope mode + pre-mortem, harden the spec
111
+ PLAN /rite define ≡ /rite-define turn the spec into plan + task slices + state
112
+ VET /rite vet ≡ /rite-vet mandatory every plan — light/full engineering review by stakes
113
+ REPLAN /rite plan ≡ /rite-plan decompose / reslice / repair an active plan
114
+ BUILD /rite build ≡ /rite-build one slice/wright; HITL stops, `.devrites/AFK` may chain
115
+ CONVERGE /rite converge ≡ /rite-converge recovery — append work needed to meet intent
116
+ PROVE /rite prove ≡ /rite-prove tests + build + runtime + browser evidence
117
+ POLISH /rite polish ≡ /rite-polish code polish always; UI normalize + polish if UI
118
+ REVIEW /rite review ≡ /rite-review feature-scoped multi-axis review
119
+ SEAL /rite seal ≡ /rite-seal final GO / NO-GO decision (no git)
120
+ SHIP /rite ship ≡ /rite-ship pre-GO read-only; fresh GO → commit; optional approved push/tag/PR → archive
121
+ STATUS /rite status ≡ /rite-status active feature, next action, evidence, risks
122
+ DOCTOR /rite doctor ≡ /rite-doctor installation and native host diagnostics
123
+ UPGRADE /rite upgrade ... ≡ /rite-upgrade audit an older workspace; route only proven gaps
124
+ LEARN /rite learn ... ≡ /rite-learn review captured lessons → promote to project rules / principles
125
+ EXPLAIN /rite explain ... ≡ /rite-explain grounded concept/diff/idea/recap explainer
126
+ POV /rite pov ... ≡ /rite-pov decide adopt / trial / hold / reject for an external option
127
+ DOGFOOD /rite dogfood ... ≡ /rite-dogfood browser QA by changed user journey
128
+ PR FEEDBACK /rite pr-feedback ... ≡ /rite-pr-feedback fix and resolve PR review threads
129
+ WATCH PR /rite watch-pr ... ≡ /rite-watch-pr observe PR/CI once without mutation
130
+ CUSTOMIZE /rite customize ... ≡ /rite-customize author overrides/extensions without forking the pack
131
+ SWITCH /rite use <slug> re-point .devrites/ACTIVE to another feature (inline)
132
+ GUIDE /rite guide first feature, guided — full lifecycle on one small real change (inline)
133
+ RESUME /rite resolve ... ≡ /rite-resolve answer a HITL checkpoint
134
+ AUTO /rite autocomplete ... ≡ /rite-autocomplete unattended lifecycle; `--ship` stops at Ship preflight
135
+ QUICK /rite quick <change> ≡ /rite-quick express lane — one small reversible change (escalates if it grows)
136
+ UTILITY /rite frame | prototype | handoff | zoom-out | pressure-test (or direct shortcuts)
137
+ ```
138
+
139
+ > **Small one-off change?** A typo, copy tweak, config bump, or one-function fix → **`/rite-quick`**
140
+ > (express lane: one contract → build → prove → ship, no full workspace). It escalates to
141
+ > `/rite-spec` when the change is no longer small, reversible, and unambiguous. Use the
142
+ > full lifecycle above for features.
143
+
144
+ ## Core operating rules (every DevRites skill enforces)
145
+
146
+ The operating rules live in `.pi/skills/devrites-lib/reference/standards/core.md`; DevRites skills Read it as
147
+ their first step, and the other rule files load on demand. See
148
+ [`.pi/skills/devrites-lib/reference/standards/README.md`](../devrites-lib/reference/standards/README.md) for the full index.
@@ -0,0 +1,48 @@
1
+ # Menu reference
2
+
3
+ Phase-ordered `/rite` reference. Load only for command detail or phase connections.
4
+
5
+ ## Phases and commands
6
+
7
+ | Phase | Command | Use when |
8
+ |---|---|---|
9
+ | Spec | `/rite-spec <feature>` | **New feature.** Investigate → write spec.md. Asks with options; gathers attached design references (optional). |
10
+ | Adopt | `/rite-adopt` | Onboard an existing codebase instead of starting fresh: reverse-derive spec.md and propose project guidance. |
11
+ | Clarify | `/rite-clarify` | _Required after spec._ Topology-first decision-coverage scan; zero-question fast path when already clear. |
12
+ | Temper | `/rite-temper` | _Optional, before define._ Strategic review of the spec: scope mode (expand/selective/hold-rigor/reduce) + pre-mortem; hardens the spec. Best on big/risky features; mandatory in `/rite-autocomplete`. |
13
+ | Plan | `/rite-define` | Turn the approved spec into plan + vertical task slices + state. |
14
+ | Vet | `/rite-vet` | _Required before build._ Review every plan: scope · architecture · tests · perf; light for simple/reversible, full for high stakes. |
15
+ | Re-plan | `/rite-plan` | The active plan is too big, wrong, stale, ambiguous, or blocked. |
16
+ | Build | `/rite-build` | One slice/wright; HITL stops; `.devrites/AFK` lets root bounded-chain slices. |
17
+ | Converge | `/rite-converge` | _Recovery._ Code drifted from or falls short of intent after a resume, adoption, or stalled build: compare live code with spec/plan/tasks and append remaining work as new slices for `/rite-build`. |
18
+ | Prove | `/rite-prove` | Prove the current scope: tests, build, runtime, browser evidence. |
19
+ | Polish | `/rite-polish` | Code polish always; normalize and polish UI when in scope. Modes: `bolder/quieter/distill/harden/normalize-only`. |
20
+ | Review | `/rite-review` | Feature-scoped review before sealing. |
21
+ | Seal | `/rite-seal` | Final GO / NO-GO decision (no git). |
22
+ | Ship | `/rite-ship` | Pre-GO read-only; fresh GO → commit → optional approved push/tag/PR → archive/close. |
23
+ | Status | `/rite-status` | See where the active feature stands. |
24
+ | Doctor | `/rite-doctor` | Diagnose install integrity and native host configuration. |
25
+ | Upgrade | `/rite-upgrade` | _Explicit compatibility._ Audit an older released workspace; route cited defects through Clarify/Plan repair/Converge/Vet or current Prove/Polish/Review/Seal, preserve history, and never synthesize old proof. |
26
+ | Learn | `/rite-learn` | Review native memory and archived evidence → propose durable project guidance. |
27
+
28
+ ## Typical orderings
29
+
30
+ - **Every feature**: `/rite-spec` (spec) → `/rite-clarify` (decision coverage) →
31
+ *(big feature? `/rite-temper`: strategic review)* →
32
+ `/rite-define` (plan) → `/rite-vet` (engineering review; light or full) →
33
+ `/rite-build` ×N (all slices) → `/rite-prove` (once all built) →
34
+ `/rite-polish` (always: code + UI if UI) → `/rite-review` → `/rite-seal` → `/rite-ship`.
35
+ - **Existing codebase**: `/rite-adopt` → `/rite-clarify` → `/rite-define` → `/rite-vet` → build.
36
+ - **Drift mid-build**: classify → bounded recovery for objective defects, `/rite-plan`
37
+ repair for a wrong durable plan, or one user decision for real product/risk drift.
38
+ - **Older workspace cannot resume**: `/rite-upgrade` audits first → only proven gaps use
39
+ Clarify/Plan repair/Converge/Vet or Prove/Polish/Review/Seal → resume. It never
40
+ migrates cursor format or invents a prior pass.
41
+ - **Resumed / adopted / stalled**: `/rite-converge` (assess live code vs intent → append the
42
+ remaining slices) → `/rite-vet` → `/rite-build` ×N → continue at `/rite-prove`.
43
+
44
+ ## Rules this menu obeys
45
+
46
+ - `/rite` never edits code or runs a phase workflow.
47
+ - Menu mode is static; `/rite-status` owns workspace status.
48
+ - It suggests; the user (or Claude, when appropriate) invokes the real skill.
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: rite-adopt
3
+ description: Adopt an existing codebase into DevRites by reverse-engineering current behavior and establishing a baseline workspace.
4
+ argument-hint: "[path or area to adopt] [+ what you want to build next]"
5
+ user-invocable: true
6
+ ---
7
+
8
+ # /rite-adopt: onboard existing code
9
+
10
+ Reverse-engineer current behavior into `spec.md`; do not rewrite product code or create a
11
+ parallel convention system.
12
+
13
+ ## Workflow
14
+
15
+ 0. **Pre-flight (workspace anchor).** Resolve the repo root; take the target slug from
16
+ the user (ask once if material); a missing/ambiguous slug, wrong repo root, or
17
+ unwritable `.devrites/` blocks Adopt. **Failing case:** adopt infers the slug from
18
+ cwd alone → stop.
19
+
20
+ 1. Read core; resolve repository/sub-area and next objective. Ask once only if material.
21
+ 2. Follow [`reference/adoption.md`](reference/adoption.md): inspect current
22
+ behavior, architecture and placement, callers, reusable seams, repository/CI
23
+ commands, visible code/test patterns, non-obvious constraints, and any touched
24
+ load-bearing seam that needs **characterize-before-modify** (record disposition:
25
+ `characterized` with see-it-fail stub, or `deferred` with evidence why safe).
26
+ **Failing case:** plan touches auth middleware with no characterize row → Adopt
27
+ fails until disposition is recorded. Read existing `AGENTS.md`, `CLAUDE.md`, product,
28
+ and design guidance.
29
+ 3. Create the workspace and write `spec.md`, `decisions.md`, `assumptions.md`,
30
+ `questions.md`, and `state.md`. The spec separates the current baseline from
31
+ the measurable next objective.
32
+ 4. For a structured baseline, follow the ledger's read workflow in
33
+ [`ledger.md`](../rite-polish/reference/ledger.md) § Reading in Spec and Adopt:
34
+ list ledger specs with the host filesystem and read only the touched capabilities;
35
+ classify against current file content, never memory. The native preview/write
36
+ workflow runs during Polish, not Adopt.
37
+ 5. For a verified non-obvious policy or recurring/costly mistake, prefer existing hook/lint/
38
+ CI/type/schema enforcement; else propose one evidence-cited nearest-scope instruction edit.
39
+ Apply only after review; never create convention bands, scores, or a command cache.
40
+ 6. A genuine non-negotiable invariant may be proposed for
41
+ `.devrites/principles.md`; the human must ratify it.
42
+ 7. Set the next step to `/rite-clarify` and stop. Do not plan or build.
43
+
44
+ ## Output
45
+
46
+ ```text
47
+ Done: adopted <scope> into <slug>.
48
+ Changed: <workspace artifacts>; project guidance <proposed | unchanged>
49
+ Evidence: <source/CI paths inspected>
50
+ Open: <questions | none>
51
+ Next: /rite-clarify
52
+ ```
@@ -0,0 +1,19 @@
1
+ # Adoption: reverse-investigation
2
+
3
+ Loaded by `/rite-adopt`; record code reality before forward work.
4
+
5
+ Capture visible behavior; architecture/placement/callers/seams; repository/CI commands;
6
+ live naming/layering/error/data/test conventions; and non-obvious constraints.
7
+
8
+ For each next-objective load-bearing seam without a discriminating test, append after its
9
+ source in `spec.md` existing behavior's `Current evidence` cell:
10
+
11
+ ```text
12
+ Characterization: characterize-before-modify; risk: <risk>; first touch: <slice|unknown>
13
+ ```
14
+
15
+ This is a touched-behavior ratchet, not repository-wide coverage.
16
+
17
+ Use current code/search/docs; source and CI beat history. Put baseline/objective in
18
+ `spec.md`, uncertainty in `assumptions.md`, durable choices in `decisions.md`, and guidance
19
+ in nearest scoped instructions—never ledgers, scores, confidence bands, or command caches.
@@ -0,0 +1,19 @@
1
+ # /rite-adopt: anti-patterns
2
+
3
+ Start with the universal table in [`../../devrites-lib/reference/standards/anti-patterns.md`](../../devrites-lib/reference/standards/anti-patterns.md).
4
+ Below are the rationalizations specific to onboarding an existing codebase.
5
+
6
+ ## Adoption-specific rationalizations
7
+
8
+ | Excuse | Rebuttal |
9
+ |---|---|
10
+ | "I'll improve this messy bit while I document it." | Adoption *documents* what exists; it changes nothing. A cleanup is the *next* feature through the normal lifecycle: recording it as a drive-by here hides the baseline and balloons the diff. |
11
+ | "This looks like the convention, so I'll seed it." | Seed only what the code *and consistently* follows. A guessed seed becomes a high-confidence-looking prior that steers the first slice wrong. Observe it in ≥2 places or leave it out. |
12
+ | "I'll spec the ideal architecture, not the current one." | The spec's baseline is *current behavior*. Aspirations go in the next objective, not the baseline: otherwise every later slice drifts against a spec that never matched reality. |
13
+ | "Whole repo in one adopt." | Onboard the area you'll work in. A repo-wide adopt produces an unfocused spec and a ledger full of conventions no slice will touch. |
14
+
15
+ ## Red flags
16
+
17
+ - A seeded convention with no concrete code location behind it.
18
+ - `spec.md` describing behavior the code does **not** currently have (that's the next feature, not the baseline).
19
+ - Editing source during adoption: adoption writes `.devrites/` + the ledger, never project code.
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: rite-autocomplete
3
+ description: Run the full DevRites lifecycle unattended; --ship continues to the final Git approval boundary. Use for one-shot autonomous work; not for a single phase.
4
+ argument-hint: "[idea] [--ship|--yolo] [--max-slices N] [--parallel N] [--full] [--cross-model]"
5
+ user-invocable: true
6
+ ---
7
+
8
+ # /rite-autocomplete: full lifecycle, unattended
9
+
10
+ Run every phase after one clarification window. Irreversible-risk,
11
+ blocking/escalating,<!-- pack-scan-ignore: negated statement: gates are NOT disabled -->
12
+ NO-GO, resource, and human-owned gates still pause. Use the Standard native
13
+ profile by default and Full for high-risk scope or explicit `--full`; see
14
+ [`orchestration-profiles.md`](../devrites-lib/reference/orchestration-profiles.md).
15
+
16
+ ## Required rules
17
+
18
+ Read `devrites-lib/reference/standards/core.md` and `afk-hitl.md` first. Read
19
+ `one-shot-actions.md` before any stop/continue or execution decision involving a
20
+ consumptive action. Before honoring a terminal cursor that names missing
21
+ executable controller/harness/bundle bytes or a missing writer, read
22
+ `workflow-artifacts.md`. Before classifying any Reslice, read `.pi/skills/devrites-lib/reference/standards/acceptance-preserving-reslice.md`.
23
+
24
+ <!-- BEGIN RESLICE ROUTE-TO-ACTION -->
25
+ - `FOLD` → keep Plan repair/affected Vet internal; no stop solely for topology/count.
26
+ - `GUARD_AND_REPAIR` → enter Spec Drift Guard/Clarify; pause only at an existing human-owned gate; resume Plan/Vet internally.
27
+ - `BLOCKED_INPUT` → no planning writes; stop internal branch; exact diagnostic; recover authority; reclassify.
28
+ <!-- END RESLICE ROUTE-TO-ACTION -->
29
+
30
+ ## Invariants
31
+
32
+ - Use one initial human window: Spec, topology-first Clarify, and
33
+ `Decision coverage: CLEAR`. Only then arm AFK. Record later reversible choices
34
+ under [decision policy](reference/decision-policy.md).
35
+ - Safety is not bypassable. `--ship`/`--yolo` reaches only the exact-plan
36
+ literal-GO and native-approval boundary; it never authorizes Git.
37
+ - **Treat technical readiness as routing, not completion.** `NEEDS REPLAN` is a backward edge
38
+ to Plan repair and narrow Vet. `NEEDS REPLAN` cold resume follows a valid
39
+ technical return cursor before forward work or any reply. Clarification is
40
+ likewise internal when current authority resolves it.
41
+ - Always follow agent-owned backward edges through repair, affected Vet,
42
+ correction, and proof. A nested `STOP`/`Next step` is not a user handoff.
43
+ Pause only for a shared human/safety/access/exhaustion condition.
44
+ - **Do not confuse an action budget with recovery exhaustion.** Spent action
45
+ authority blocks another real execution, not offline correction of retained
46
+ Critical/Important evidence. Stop for fresh GO only after changed conditions
47
+ and READY Vet.
48
+ - Every exact causal fingerprint gets at most three no-progress corrections.
49
+ Closing one is progress; a distinct Critical/Important invariant has its own
50
+ budget. Lower severity cannot prolong recovery.
51
+ - Enforce `--max-slices`, the AFK sentinel, expiry, review queue, and native
52
+ agent/token/cost/time limits before every phase or dispatch. Count failed,
53
+ malformed, and unavailable leaf calls. At the review cap, permit only work
54
+ that reduces the queue.
55
+ - Parse flags only from this invocation. `--ship`, `--yolo`, `--max-slices`,
56
+ `--parallel`, `--full`, and `--cross-model` activate only as exact standalone
57
+ tokens in `$ARGUMENTS`; examples or earlier messages can never arm them.
58
+ `--max-slices` must occur once and be followed by a positive base-10 integer;
59
+ `--parallel` must occur once and be followed by a base-10 integer in `1`–`10`.
60
+ Missing, repeated, malformed, or conflicting values stop before any write.
61
+ - Temper always runs after Clarify. Unattended mode auto-applies only
62
+ `hold-rigor` and `reduce-to-MVP`; any `expand` or added acceptance pauses.
63
+ - Vet every plan. Cross-model is off unless the current invocation arms it.
64
+ Never auto-grow accepted scope.
65
+
66
+ ## Workflow
67
+
68
+ 1. **Orient and parse.** Resolve the explicit or active slug; when a workspace exists,
69
+ require its `state.md` and read its cursor; a fresh idea starts empty at step 2.
70
+ Before honoring `blocked` with terminal `next_action`,
71
+ reconcile retained consumptive evidence and fingerprint attempts from
72
+ `drift.md`/`evidence.md`; a retained fingerprint below its cap resumes offline
73
+ recovery.
74
+ <!-- workflow-artifact-adapter: {"module":"devrites-lib/reference/standards/workflow-artifacts.md","entry":"lifecycle cursor encounters admitted set or resumable journal","action":"invoke classifier; execute returned route internally","return":"saved phase/action; zero intermediate reply"} -->
75
+ Reconstruct a missing return cursor only from
76
+ the current phase and exact approved action in `test-plan.md`/evidence, never
77
+ from chat. After compaction or a resumed session, read `.devrites/ACTIVE`, then
78
+ the `state.md` cursor, `questions.md`, `decisions.md`, and `test-plan.md`/`evidence.md`.
79
+ Normalize current arguments to idea, `ship_preflight: yes|no`,
80
+ `max_slices: N|default`, `parallel: N|default`, `profile: standard|full`,
81
+ and `cross_model: yes|no`.
82
+ **Completion:** normalized state is unambiguous and no sentinel or workspace file has been written.
83
+ 2. **Specify and clarify.** Run `devrites-interview`, `/rite-spec`, and
84
+ `/rite-clarify` as one window. Partial/Missing material coverage never arms
85
+ AFK. **Completion:** `Decision coverage: CLEAR` is durable.
86
+ 3. **Arm AFK once.** Apply the loop's
87
+ [one-write AFK contract](reference/loop.md#arm-afk-once): preserve valid
88
+ existing bytes or create the bounded advisory-only sentinel once; never
89
+ rewrite it after Vet. Preserve an existing sentinel byte-for-byte.
90
+ **Completion:** a valid read-only AFK sentinel exists.
91
+ 4. **Drive phases.** Follow [the loop](reference/loop.md): `/rite-spec` →
92
+ `/rite-clarify` → `/rite-temper` → `/rite-define` → `/rite-vet` →
93
+ `/rite-build` batch loop → `/rite-prove` → `/rite-polish` →
94
+ `/rite-review` → `/rite-seal`. Read and execute each skill; durable files, not
95
+ chat, carry state. Apply the mutable post-vet budget before first Build.
96
+ Build runs the largest eligible path-disjoint batch (cap: `--parallel N`, else
97
+ sentinel `max_parallel`, else 10) and recomputes after every integrate until no
98
+ pending slice remains; serial only when fewer than two slices are eligible or the
99
+ host cannot isolate concurrent worktree writers.
100
+ **Completion:** loop reaches Seal GO or persists a valid stop before any later phase.
101
+ 5. **Apply stops.** At every gate use
102
+ [stop-conditions.md](reference/stop-conditions.md). A `blocked` label alone is not a stop condition:
103
+ route agent-owned red results through bounded recovery.
104
+ Red gates block forward advancement and enter caller-owned recovery. Stop on
105
+ hard risk, human-owned blocking/escalating/NO-GO, resource exhaustion, or the
106
+ exact fingerprint's proven exhaustion. Technical exhaustion records terminal
107
+ `Next step: none`, never a routine phase command. **Completion:** no stop is active, or its cursor and reason are durable.
108
+ 6. **Seal boundary.** Without a ship flag, stop at Seal GO with `/rite-ship` —
109
+ unless `continue_sequence` is armed and sequence budget remains, in which case
110
+ leave the sealed workspace unshipped and open the next recorded continuation
111
+ ([loop.md § Sequence continuation](reference/loop.md#sequence-continuation));
112
+ report the sequence position on every stop.
113
+ With a ship flag, perform Ship preflight, disclose the exact Git plan, and stop for
114
+ fresh literal `GO` plus native approval. **Completion:** performed no Git action before fresh literal `GO` plus native approval.
115
+
116
+ ## Reply and resume
117
+
118
+ HITL Build returns after one slice; explicit valid AFK may chain only green
119
+ slices within every cap. One Autocomplete invocation owns all internal
120
+ backtracking. Context pressure, compaction, or a nested completion footer does
121
+ not create a stop; persist and resume the cursor.
122
+
123
+ Use one terse line:
124
+
125
+ ```text
126
+ Autocomplete: <slug>
127
+ spec <done|stopped> · clarify <clear|stopped> · temper <done|stopped> · define <done|stopped> · vet <ready|stopped> · build <n/N|stopped> · prove <done|stopped> · polish <done|stopped> · review <done|stopped> · seal <GO|NO-GO|stopped>
128
+ ```
129
+
130
+ Final state is `Shipped`, `Stopped`, `Awaiting human`, `NO-GO`, or `GO`; do not
131
+ write a narrative recap. Require a clean or accepted baseline, arm checkpoint
132
+ mode, and never auto-pass a red gate.
@@ -0,0 +1,41 @@
1
+ # Decision policy: how autocomplete "chooses the best option"
2
+
3
+ Unattended ≠ careless. Every discretionary choice is made the way a senior engineer
4
+ would, then **recorded** so the seal can audit it. The difference from interactive mode
5
+ is only *who answers* a discretionary question, not whether it's reasoned.
6
+
7
+ Authority: `.pi/skills/devrites-lib/reference/standards/acceptance-preserving-reslice.md`.
8
+
9
+ <!-- BEGIN RESLICE ROUTE-TO-ACTION -->
10
+ - `FOLD` → keep Plan repair/affected Vet internal; no stop solely for topology/count.
11
+ - `GUARD_AND_REPAIR` → enter Spec Drift Guard/Clarify; pause only at an existing human-owned gate; resume Plan/Vet internally.
12
+ - `BLOCKED_INPUT` → no planning writes; stop internal branch; exact diagnostic; recover authority; reclassify.
13
+ <!-- END RESLICE ROUTE-TO-ACTION -->
14
+
15
+ ## The rule
16
+
17
+ For each non-trivial choice, pick the option the **relevant specialist favours**, and
18
+ write the choice + the one-line rationale to `decisions.md`. Do not coin-flip, and do
19
+ not pick the option that's merely easiest to implement.
20
+
21
+ | Choice type | Defer to | Then |
22
+ |---|---|---|
23
+ | Uncertain framework / library behaviour | `devrites-source-driven` (check the docs/source) | record the source in `evidence.md` |
24
+ | Risky boundary / data-model / API decision | `devrites-doubt` (+ `devrites-doubt-reviewer`) | record the trade-off in `decisions.md` |
25
+ | Cross-boundary contract (FE/BE split, API shape) | `devrites-api-interface` | contract-first slice |
26
+ | UI surface / states / a11y | `devrites-frontend-craft` | shape before code |
27
+ | Two reasonable designs, no clear winner | the simpler one that meets acceptance | note why in `decisions.md` |
28
+
29
+ ## Defaults autocomplete may assume (record them)
30
+
31
+ - Follow the project's existing conventions, components, and test commands: always.
32
+ - Prefer the smallest vertical slice that proves the acceptance criterion.
33
+ - Reuse → extend → build new, in that order (`coding-style.md`).
34
+ - When two options are equivalent on the evidence, choose the lower-risk / more
35
+ reversible one.
36
+
37
+ ## When a choice is NOT autocomplete's to make
38
+
39
+ Human-owned contract, data-model, security, and product choices are not discretionary.
40
+ Use owning elicitation/safety gates and the topology marked action. Autocomplete
41
+ answers *how*, never *what to build* beyond the settled interview.