deepmodebot 0.0.0-stage → 0.9.1

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 (313) hide show
  1. package/.claude-plugin/marketplace.json +26 -0
  2. package/.omp-plugin/marketplace.json +26 -0
  3. package/LICENSE +24 -0
  4. package/README.md +377 -2
  5. package/bin/deepmodebot.mjs +247 -0
  6. package/lib/autoupdate.mjs +47 -0
  7. package/lib/clients.mjs +139 -0
  8. package/lib/run.mjs +32 -0
  9. package/lib/state.mjs +52 -0
  10. package/lib/tree.mjs +48 -0
  11. package/lib/version.mjs +26 -0
  12. package/package.json +44 -4
  13. package/plugins/deepmodebot/.antigravity-plugin/plugin.json +35 -0
  14. package/plugins/deepmodebot/.antigravity-plugin/skills/deep/SKILL.md +13 -0
  15. package/plugins/deepmodebot/.antigravity-plugin/skills/land-pr/SKILL.md +23 -0
  16. package/plugins/deepmodebot/.antigravity-plugin/skills/pr-thread/SKILL.md +17 -0
  17. package/plugins/deepmodebot/.antigravity-plugin/skills/review-pr/SKILL.md +16 -0
  18. package/plugins/deepmodebot/.antigravity-plugin/skills/tournament/SKILL.md +14 -0
  19. package/plugins/deepmodebot/.claude-plugin/plugin.json +27 -0
  20. package/plugins/deepmodebot/agents/reviewer/agent.md +33 -0
  21. package/plugins/deepmodebot/agents/scout/agent.md +34 -0
  22. package/plugins/deepmodebot/agents/security-reviewer/agent.md +30 -0
  23. package/plugins/deepmodebot/assets/logo.svg +8 -0
  24. package/plugins/deepmodebot/commands/contribute.md +8 -0
  25. package/plugins/deepmodebot/commands/deep.md +11 -0
  26. package/plugins/deepmodebot/commands/land-pr.md +12 -0
  27. package/plugins/deepmodebot/commands/pr-thread.md +14 -0
  28. package/plugins/deepmodebot/commands/project-brief.md +8 -0
  29. package/plugins/deepmodebot/commands/review-pr.md +10 -0
  30. package/plugins/deepmodebot/commands/tournament.md +12 -0
  31. package/plugins/deepmodebot/hooks/hooks.json +26 -0
  32. package/plugins/deepmodebot/hooks.json +24 -0
  33. package/plugins/deepmodebot/mcp_config.json +11 -0
  34. package/plugins/deepmodebot/scripts/antigravity-guard.mjs +413 -0
  35. package/plugins/deepmodebot/scripts/omp-mcp-server.mjs +1091 -0
  36. package/plugins/deepmodebot/skills/agent-harnesses/SKILL.md +57 -0
  37. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/bun.lock +391 -0
  38. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check.ts +53 -0
  39. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_antigravity.py +38 -0
  40. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/check_claude.mjs +11 -0
  41. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/package.json +11 -0
  42. package/plugins/deepmodebot/skills/agent-harnesses/assets/sdks/requirements.txt +1 -0
  43. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-native-tooling.md +190 -0
  44. package/plugins/deepmodebot/skills/agent-harnesses/references/ai-sdk-selection.md +50 -0
  45. package/plugins/deepmodebot/skills/agent-harnesses/references/antigravity.md +108 -0
  46. package/plugins/deepmodebot/skills/agent-harnesses/references/claude-code.md +166 -0
  47. package/plugins/deepmodebot/skills/agent-harnesses/references/codex.md +151 -0
  48. package/plugins/deepmodebot/skills/agent-harnesses/references/delegation-efficiency.md +230 -0
  49. package/plugins/deepmodebot/skills/agent-harnesses/references/langchain-ecosystem.md +124 -0
  50. package/plugins/deepmodebot/skills/agent-harnesses/references/omp.md +183 -0
  51. package/plugins/deepmodebot/skills/agent-harnesses/references/protocols.md +172 -0
  52. package/plugins/deepmodebot/skills/agent-harnesses/references/sdks.md +228 -0
  53. package/plugins/deepmodebot/skills/agent-harnesses/references/self-authoring.md +171 -0
  54. package/plugins/deepmodebot/skills/cloud-devsecops/SKILL.md +24 -0
  55. package/plugins/deepmodebot/skills/cloud-devsecops/references/aws.md +264 -0
  56. package/plugins/deepmodebot/skills/cloud-devsecops/references/azure.md +261 -0
  57. package/plugins/deepmodebot/skills/cloud-devsecops/references/containers.md +96 -0
  58. package/plugins/deepmodebot/skills/cloud-devsecops/references/devops-tools.md +297 -0
  59. package/plugins/deepmodebot/skills/cloud-devsecops/references/devsecops-pipeline.md +258 -0
  60. package/plugins/deepmodebot/skills/cloud-devsecops/references/gcp.md +258 -0
  61. package/plugins/deepmodebot/skills/cloud-devsecops/references/kubernetes.md +74 -0
  62. package/plugins/deepmodebot/skills/cloud-devsecops/references/local-emulators.md +265 -0
  63. package/plugins/deepmodebot/skills/contribute/SKILL.md +134 -0
  64. package/plugins/deepmodebot/skills/create-verification-skill/LICENSE +21 -0
  65. package/plugins/deepmodebot/skills/create-verification-skill/SKILL.md +101 -0
  66. package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
  67. package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  68. package/plugins/deepmodebot/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
  69. package/plugins/deepmodebot/skills/deep-stack/SKILL.md +53 -0
  70. package/plugins/deepmodebot/skills/deep-stack/references/AGENTS.template.md +52 -0
  71. package/plugins/deepmodebot/skills/deep-stack/references/agentic-workflow.md +114 -0
  72. package/plugins/deepmodebot/skills/deep-stack/references/any-app-stack.md +51 -0
  73. package/plugins/deepmodebot/skills/deep-stack/references/design-workflow.md +101 -0
  74. package/plugins/deepmodebot/skills/deep-stack/references/isolate.md +23 -0
  75. package/plugins/deepmodebot/skills/deep-stack/references/philosophy.md +306 -0
  76. package/plugins/deepmodebot/skills/deep-stack/references/prove.md +31 -0
  77. package/plugins/deepmodebot/skills/deep-stack/references/stack.md +119 -0
  78. package/plugins/deepmodebot/skills/deep-stack/references/structure.md +22 -0
  79. package/plugins/deepmodebot/skills/deep-stack/references/unslop/LICENSE +21 -0
  80. package/plugins/deepmodebot/skills/deep-stack/references/unslop/unslop.md +80 -0
  81. package/plugins/deepmodebot/skills/deepmodebot/LICENSE +23 -0
  82. package/plugins/deepmodebot/skills/deepmodebot/SKILL.md +198 -0
  83. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/agents_md.py +207 -0
  84. package/plugins/deepmodebot/skills/deepmodebot/assets/agents-md/test_agents_md.py +146 -0
  85. package/plugins/deepmodebot/skills/deepmodebot/assets/architecture-review/report-template.html +92 -0
  86. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude-guard.sh +42 -0
  87. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/claude_guard.py +135 -0
  88. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain-link.ts +12 -0
  89. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/omp-contain.ts +115 -0
  90. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_antigravity_guard.py +483 -0
  91. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_audit_regressions.py +139 -0
  92. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_contain.py +301 -0
  93. package/plugins/deepmodebot/skills/deepmodebot/assets/contain/test_omp_mcp.py +602 -0
  94. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/design.py +242 -0
  95. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/evidence.py +293 -0
  96. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/record.py +387 -0
  97. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/review.py +339 -0
  98. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_design.py +69 -0
  99. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_evidence.py +160 -0
  100. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_record.py +180 -0
  101. package/plugins/deepmodebot/skills/deepmodebot/assets/e2e/test_review.py +265 -0
  102. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard-patterns.txt +44 -0
  103. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.sh +132 -0
  104. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/git-guard.ts +122 -0
  105. package/plugins/deepmodebot/skills/deepmodebot/assets/git-guardrails/test_git_guard.py +192 -0
  106. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/bot.py +3037 -0
  107. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.json +11 -0
  108. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/brand.py +51 -0
  109. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/ghapp.py +361 -0
  110. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/install.py +274 -0
  111. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/local_updates.py +576 -0
  112. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/review_context.py +204 -0
  113. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_bot.py +2182 -0
  114. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_brand.py +19 -0
  115. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_local_updates.py +691 -0
  116. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_review_context.py +127 -0
  117. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/test_workspace_cleanup.py +496 -0
  118. package/plugins/deepmodebot/skills/deepmodebot/assets/github-app/workspace_cleanup.py +351 -0
  119. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/loop.py +2394 -0
  120. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/plan.py +583 -0
  121. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_loop.py +1426 -0
  122. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_plan.py +320 -0
  123. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/test_windows_job.py +326 -0
  124. package/plugins/deepmodebot/skills/deepmodebot/assets/loop/windows_job.py +244 -0
  125. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/bench_harness.py +165 -0
  126. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/perf_audit.py +240 -0
  127. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_bench_harness.py +55 -0
  128. package/plugins/deepmodebot/skills/deepmodebot/assets/perf-audit/test_perf_audit.py +53 -0
  129. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/diff_coverage.py +350 -0
  130. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/pr_agent_local.py +370 -0
  131. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-agent/test_diff_coverage.py +94 -0
  132. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.html +425 -0
  133. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena.py +579 -0
  134. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/arena_tui.py +839 -0
  135. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/font8x8_basic.hex +1 -0
  136. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/show_thread.py +329 -0
  137. package/plugins/deepmodebot/skills/deepmodebot/assets/pr-conversation/test_arena.py +610 -0
  138. package/plugins/deepmodebot/skills/deepmodebot/assets/repo-references.json +637 -0
  139. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/test_yt_enrich.py +250 -0
  140. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_enrich.py +1820 -0
  141. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_meta.py +156 -0
  142. package/plugins/deepmodebot/skills/deepmodebot/assets/scrape/yt_transcript_relay.js +54 -0
  143. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/audit-pr.sh +122 -0
  144. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/gate.cjs +155 -0
  145. package/plugins/deepmodebot/skills/deepmodebot/assets/security-audit/prompt.md +13 -0
  146. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/test_tournament.py +654 -0
  147. package/plugins/deepmodebot/skills/deepmodebot/assets/tournament/tournament.py +1285 -0
  148. package/plugins/deepmodebot/skills/deepmodebot/assets/wizard/wizard.sh +234 -0
  149. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/test_workspace_map.py +879 -0
  150. package/plugins/deepmodebot/skills/deepmodebot/assets/workspace-map/workspace_map.py +2436 -0
  151. package/plugins/deepmodebot/skills/deepmodebot/references/README.md +61 -0
  152. package/plugins/deepmodebot/skills/deepmodebot/references/catalog.md +105 -0
  153. package/plugins/deepmodebot/skills/deepmodebot/references/contain.md +39 -0
  154. package/plugins/deepmodebot/skills/deepmodebot/references/factory-landscape.md +147 -0
  155. package/plugins/deepmodebot/skills/deepmodebot/references/flows.md +50 -0
  156. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/authoring-a-skill.md +37 -0
  157. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/babysit.md +77 -0
  158. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/bug-fix.md +34 -0
  159. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/end-to-end.md +50 -0
  160. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/eval.md +39 -0
  161. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/feature.md +60 -0
  162. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/handoff.md +52 -0
  163. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/hillclimb.md +46 -0
  164. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/investigation.md +20 -0
  165. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/opening-a-pr.md +97 -0
  166. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/pause-safely.md +30 -0
  167. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/perf-issue.md +31 -0
  168. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/phased-build.md +146 -0
  169. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/prototype.md +31 -0
  170. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/refactoring.md +60 -0
  171. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/reference-rebuild.md +45 -0
  172. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/run-a-goal.md +143 -0
  173. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/runtime-forensics.md +22 -0
  174. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/self-authoring.md +130 -0
  175. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/session-pickup.md +33 -0
  176. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/setup.md +105 -0
  177. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/shipping.md +52 -0
  178. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/spec.md +67 -0
  179. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/tickets.md +56 -0
  180. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/trace-forensics.md +24 -0
  181. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/triage.md +102 -0
  182. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/visual-parity.md +19 -0
  183. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/wayfinder.md +44 -0
  184. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/work-a-queue.md +189 -0
  185. package/plugins/deepmodebot/skills/deepmodebot/references/playbooks/worktree-cleanup.md +35 -0
  186. package/plugins/deepmodebot/skills/deepmodebot/references/principles/attack-the-premise.md +7 -0
  187. package/plugins/deepmodebot/skills/deepmodebot/references/principles/boundary-discipline.md +8 -0
  188. package/plugins/deepmodebot/skills/deepmodebot/references/principles/build-the-lever.md +8 -0
  189. package/plugins/deepmodebot/skills/deepmodebot/references/principles/encode-lessons-in-structure.md +6 -0
  190. package/plugins/deepmodebot/skills/deepmodebot/references/principles/exhaust-the-design-space.md +4 -0
  191. package/plugins/deepmodebot/skills/deepmodebot/references/principles/experience-first.md +7 -0
  192. package/plugins/deepmodebot/skills/deepmodebot/references/principles/explain-the-number.md +9 -0
  193. package/plugins/deepmodebot/skills/deepmodebot/references/principles/fix-root-causes.md +6 -0
  194. package/plugins/deepmodebot/skills/deepmodebot/references/principles/foundational-thinking.md +9 -0
  195. package/plugins/deepmodebot/skills/deepmodebot/references/principles/guard-the-context-window.md +7 -0
  196. package/plugins/deepmodebot/skills/deepmodebot/references/principles/laziness-protocol.md +6 -0
  197. package/plugins/deepmodebot/skills/deepmodebot/references/principles/make-operations-idempotent.md +7 -0
  198. package/plugins/deepmodebot/skills/deepmodebot/references/principles/migrate-callers-then-delete-legacy-apis.md +5 -0
  199. package/plugins/deepmodebot/skills/deepmodebot/references/principles/minimize-reader-load.md +7 -0
  200. package/plugins/deepmodebot/skills/deepmodebot/references/principles/model-the-domain.md +7 -0
  201. package/plugins/deepmodebot/skills/deepmodebot/references/principles/never-block-on-the-human.md +7 -0
  202. package/plugins/deepmodebot/skills/deepmodebot/references/principles/outcome-oriented-execution.md +6 -0
  203. package/plugins/deepmodebot/skills/deepmodebot/references/principles/prove-it-works.md +8 -0
  204. package/plugins/deepmodebot/skills/deepmodebot/references/principles/redesign-from-first-principles.md +7 -0
  205. package/plugins/deepmodebot/skills/deepmodebot/references/principles/separate-before-serializing-shared-state.md +6 -0
  206. package/plugins/deepmodebot/skills/deepmodebot/references/principles/sequence-verifiable-units.md +7 -0
  207. package/plugins/deepmodebot/skills/deepmodebot/references/principles/subtract-before-you-add.md +6 -0
  208. package/plugins/deepmodebot/skills/deepmodebot/references/principles/test-behavior-not-implementation.md +7 -0
  209. package/plugins/deepmodebot/skills/deepmodebot/references/principles/type-system-discipline.md +6 -0
  210. package/plugins/deepmodebot/skills/deepmodebot/references/rust-migration-case-studies.md +26 -0
  211. package/plugins/deepmodebot/skills/deepmodebot/references/startup-ideas.md +21 -0
  212. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/agent-collaboration.md +82 -0
  213. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architect.md +32 -0
  214. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/architecture-review.md +43 -0
  215. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/arena.md +20 -0
  216. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/benchmark-checklist.md +31 -0
  217. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/blast-radius.md +19 -0
  218. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/correct.md +20 -0
  219. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/course.md +47 -0
  220. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/coworkers.md +70 -0
  221. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/domain-model.md +69 -0
  222. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/figure-it-out.md +25 -0
  223. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/git-guardrails.md +44 -0
  224. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/github-app.md +160 -0
  225. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/goal-review.md +156 -0
  226. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/grill.md +27 -0
  227. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/how.md +23 -0
  228. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/in-your-own-words.md +12 -0
  229. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/inner-loop.md +39 -0
  230. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/interrogate.md +16 -0
  231. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/issue-conversation.md +52 -0
  232. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/no-comments.md +29 -0
  233. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/open-design-evidence.md +65 -0
  234. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/panel.md +34 -0
  235. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-agent.md +39 -0
  236. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-conversation.md +135 -0
  237. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pr-review.md +138 -0
  238. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/pre-commit.md +31 -0
  239. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/prior-art.md +44 -0
  240. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/questionnaire.md +46 -0
  241. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/re-explain.md +23 -0
  242. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/recall.md +19 -0
  243. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/reflect.md +20 -0
  244. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/research.md +99 -0
  245. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/retro.md +30 -0
  246. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/scrape.md +32 -0
  247. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/security-audit.md +40 -0
  248. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sharpen.md +15 -0
  249. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/show-me-your-work.md +19 -0
  250. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/sme-review.md +49 -0
  251. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/swarm.md +14 -0
  252. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tdd.md +55 -0
  253. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/teach.md +20 -0
  254. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/technical-writing.md +22 -0
  255. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tool-routing.md +85 -0
  256. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tournament.md +44 -0
  257. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/tracker.md +78 -0
  258. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/unslop.md +15 -0
  259. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/visual-e2e.md +78 -0
  260. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/why.md +31 -0
  261. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/wizard.md +25 -0
  262. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/workspace-map.md +35 -0
  263. package/plugins/deepmodebot/skills/deepmodebot/references/techniques/writing-for-agents.md +66 -0
  264. package/plugins/deepmodebot/skills/deepmodebot/scripts/check_skill.py +93 -0
  265. package/plugins/deepmodebot/skills/deepmodebot/scripts/trending.py +598 -0
  266. package/plugins/deepmodebot/skills/domain-rules/SKILL.md +131 -0
  267. package/plugins/deepmodebot/skills/domain-rules/references/agent-engineering.md +105 -0
  268. package/plugins/deepmodebot/skills/domain-rules/references/ai-concepts.md +103 -0
  269. package/plugins/deepmodebot/skills/domain-rules/references/aws-networking.md +121 -0
  270. package/plugins/deepmodebot/skills/domain-rules/references/backend-system-design.md +162 -0
  271. package/plugins/deepmodebot/skills/domain-rules/references/data-structures-and-cache-optimization.md +48 -0
  272. package/plugins/deepmodebot/skills/domain-rules/references/devops-and-fundamentals.md +137 -0
  273. package/plugins/deepmodebot/skills/domain-rules/references/engineering-practice.md +100 -0
  274. package/plugins/deepmodebot/skills/domain-rules/references/high-scale-server-optimization.md +181 -0
  275. package/plugins/deepmodebot/skills/domain-rules/references/language-ecosystems.md +56 -0
  276. package/plugins/deepmodebot/skills/frontend-ui/SKILL.md +146 -0
  277. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/live-demos.md +38 -0
  278. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/mobbin-shipped-apps.md +28 -0
  279. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-clips.md +269 -0
  280. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/motion-graphics.md +62 -0
  281. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-animations.md +217 -0
  282. package/plugins/deepmodebot/skills/frontend-ui/references/patterns/pinterest-patterns.md +101 -0
  283. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/01-workflow.md +25 -0
  284. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/02-review-rubric.md +21 -0
  285. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/03-ai-tells.md +46 -0
  286. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04-components.md +21 -0
  287. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/04a-agent-ui.md +153 -0
  288. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05-motion.md +106 -0
  289. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/05a-motion-graphics.md +121 -0
  290. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06-typography-layout.md +48 -0
  291. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/06a-color.md +26 -0
  292. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/07-copy.md +11 -0
  293. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/08-quality-floor.md +63 -0
  294. package/plugins/deepmodebot/skills/frontend-ui/references/playbook/09-steering-agents.md +13 -0
  295. package/plugins/deepmodebot/skills/maintain-verification-skill/LICENSE +21 -0
  296. package/plugins/deepmodebot/skills/maintain-verification-skill/SKILL.md +47 -0
  297. package/plugins/deepmodebot/skills/project-brief/SKILL.md +100 -0
  298. package/plugins/deepmodebot/skills/project-brief/assets/CONTRIBUTING.template.md +124 -0
  299. package/plugins/deepmodebot/skills/project-brief/assets/ISSUE_TEMPLATE/task.yml +61 -0
  300. package/plugins/deepmodebot/skills/project-brief/assets/PROJECT_BRIEF.template.md +98 -0
  301. package/plugins/deepmodebot/skills/project-brief/assets/PULL_REQUEST_TEMPLATE.md +35 -0
  302. package/plugins/deepmodebot/skills/project-brief/assets/pr-overlap.py +643 -0
  303. package/plugins/deepmodebot/skills/project-brief/assets/sync-roadmap.py +314 -0
  304. package/plugins/deepmodebot/skills/secrets-and-auth/SKILL.md +60 -0
  305. package/plugins/deepmodebot/skills/secrets-and-auth/references/agent-authentication.md +198 -0
  306. package/plugins/deepmodebot/skills/secrets-and-auth/references/leak-prevention.md +206 -0
  307. package/plugins/deepmodebot/skills/secrets-and-auth/references/logins-and-passwords.md +165 -0
  308. package/plugins/deepmodebot/skills/secrets-and-auth/references/secrets-and-env.md +182 -0
  309. package/plugins/deepmodebot/skills/software-architecture/SKILL.md +47 -0
  310. package/plugins/deepmodebot/skills/software-architecture/references/backend-infrastructure.md +273 -0
  311. package/plugins/deepmodebot/skills/software-architecture/references/databases.md +277 -0
  312. package/plugins/deepmodebot/skills/software-architecture/references/monorepos.md +210 -0
  313. package/plugins/deepmodebot/skills/software-architecture/references/ontology.md +287 -0
@@ -0,0 +1,101 @@
1
+ # Agent-driven UI design workflow (2026)
2
+
3
+ Run the ordered steps below when designing or restyling a UI with an agent. Each step ends on a **Done when** check; finish it before moving on. The design system is the single source of truth: page fixes flow back into it, and agents build pages only from it.
4
+
5
+ Source dates: 2026-09-28 (Paper workflow, newest), 2026-06-23 (Claude Design workflow), 2026-05-08 and 2025-12-01 (component libraries). The newest wins conflicts.
6
+
7
+ ## Which design tool
8
+ - **Default: Paper + its MCP**, a Figma alternative that agents drive well, controlled from the coding harness (2026-09-28).
9
+ - **Alternative: Claude Design**, exported to Claude Code with "Send to Claude Code" and the Claude Design MCP. It is strong at producing design systems (2026-06-23).
10
+ - Both follow the same loop: inspiration → design system with tokens → tweak → build pages from it.
11
+
12
+ ## Principles
13
+ - Build a design system and tokens before any page. Apps designed page by page without them drift out of consistency (2026-06-23).
14
+ - A design system is the single source of truth for components, guidelines, and brand (colors, copy).
15
+ - Tokens are named decisions: `spacing-medium` instead of `16px`, `brand-primary` instead of a hex value. Dark mode becomes a token swap, and a brand change propagates from one place.
16
+ - Never let the agent design from nothing. Without a system, output looks generic and machine-made. Use the agent to build on a foundation, not to be the foundation (2026-09-28, 2026-05-08).
17
+ - Inspiration is a base, not a copy. Add your own taste, or the site looks like every other generated site. The agent will not reproduce a screenshot exactly; treat its output as a canvas to tweak (2026-06-23).
18
+ - The first output is never final. Plan for many rounds (2026-09-28).
19
+ - Model: one talk reported Claude models (Opus 5.5 in particular) followed design systems best, with OpenAI models acceptable when given a system (2026-09-28) [unverified: single-talk opinion, no benchmarks; test against your own design system across available harnesses including Antigravity/Gemini].
20
+
21
+ ## Prerequisites
22
+ - Paper desktop app with its MCP connected to the harness.
23
+ - A full-page screenshot tool. Screenshots are required at several steps.
24
+ - An agent harness with permission to edit and run the app.
25
+
26
+ ## Ordered workflow
27
+
28
+ ### Step 1: Collect inspiration
29
+ 1. Browse Mobbin (mobbin.com) for sites in your niche and outside it. It collects well-designed sections (onboarding, hero, dashboards) and has an MCP server. The free tier is enough.
30
+ 2. Bookmark designs you like from designers you follow, and keep them in one inspiration library.
31
+ 3. With no inspiration, start from Vercel's `vercel.com/design.md` (light or dark) as a foundation, not a target.
32
+ 4. Take a full-page screenshot of the chosen site.
33
+ - **Done when:** you have at least one full-page screenshot (or a design.md) that captures how the app should feel.
34
+
35
+ ### Step 2: Build the design system (most important step)
36
+ - **Paper route:** put the screenshot in a new Paper project and ask the agent to use the Paper MCP to recreate the site and extract its design system. Expect it to take tens of minutes. The result has Foundations and Components boards covering colors, fonts, spacing, layouts, shades, and depth. You can ask for a landing page in the same prompt.
37
+ - **Claude Design route:** start from a file, upload the screenshot, and ask for a design system on one page: components built from it, with the tokens displayed. For a design.md base, paste its contents and ask for a system built from it.
38
+ - **The system page must show:**
39
+ - Colors: brand scale, neutrals, accents, semantic colors (success, warning, danger, info).
40
+ - Typography: family, and sizes for display, H1, H2, H3, body.
41
+ - Spacing scale, radius scale, elevation.
42
+ - Components: buttons, badges, inputs and controls, avatars, dialog, form, alerts, checkboxes, radios, dropdown menu, tooltips, steps. Ask the agent to add any standard component still missing, so the build agent later knows how everything should look.
43
+ - Remove generated artifacts at once: stray decorations, an AI-drawn logo, misaligned badge text. Mark them on the canvas and tell the agent to remove or fix them.
44
+ - **Done when:** one page shows every token (color, type, spacing, radius, elevation) and a full core component set, with no stray artifacts or generated logo.
45
+
46
+ ### Step 3: Build a landing page from the system
47
+ - Ask the agent for a landing page that follows the system exactly. A design system is hard to judge in the abstract; a real page shows whether it works.
48
+ - **Done when:** a landing page exists whose colors, type, spacing, and components visibly match the system.
49
+
50
+ ### Step 4: Iterate on the landing page, then sync the system
51
+ 1. Leave comments on Paper elements, then tell the agent to address every comment.
52
+ 2. Typical requests: replace copied or random images (Paper can generate images); add syntax colors to code samples; explore adding color to a grayscale system in several versions and pick one; generate variants of the system with different base colors and delete the ones you reject.
53
+ 3. To merge two systems, copy one board into the other project and ask the agent to combine them into a new page.
54
+ 4. Once the page looks right, tell the agent to bring the design system up to date. Tweak the page first, then the system, never the system in the abstract.
55
+ 5. In the Claude Design flow, finish all tweaks in the design tool before exporting. Do not change the system after handing it to the coding agent.
56
+ 6. Expect several rounds over several days.
57
+ - **Done when:** the landing page is accepted and the design system reflects every accepted tweak.
58
+
59
+ ### Step 5: Explore the remaining pages in several versions
60
+ - Ask for explorations, not single designs. One prompt can produce several variants of a page (for example summary, ledger, and detail layouts).
61
+ - A short prompt works once the system exists: ask the agent to design the product dashboard in the Paper project, using the design system, the landing page, and its knowledge of what the app's code can do.
62
+ - Design empty states and secondary flows too.
63
+ - **Done when:** each product page has at least two explored variants and one chosen, all consistent with the system.
64
+
65
+ ### Step 6: Build it in the app
66
+ - Tell the agent to build the chosen designs in the app.
67
+ - Claude Design path: create a minimal app, hand off with "Send to Claude Code", let the agent import through the MCP and build the design system page first, then ask for landing, auth (sign in and sign up), and dashboard pages. The system is in the codebase, so prompts need not repeat it.
68
+ - Fix mismatches in the design system, where a fix propagates everywhere.
69
+ - **Done when:** landing, auth, and dashboard share the same colors, fonts, spacing, and radius, with no leftover artifacts.
70
+
71
+ ### Step 7 (optional): Add flair, constrained by the system
72
+ - Give the agent a component's code or URL and tell it to style the component with the design system.
73
+ - Reverse method: bring in one standout component and ask the agent to extract its design language for the rest of the app. Keep strong effects (such as a liquid-metal border) to a few places like primary CTAs.
74
+ - Small touches that add character: key-press sounds, a spin-the-wheel, celebration animations.
75
+
76
+ ## Tells of generated design to avoid
77
+ - Odd borders and radius that changes between pages.
78
+ - Purple as the primary color; it now reads as machine-made.
79
+ - Generated logos and random decorations.
80
+ - Default colors nobody reviewed.
81
+ - Building without a system, or styling element by element in prompts.
82
+ - Single-version designs, and exact copies of another site.
83
+ - Generic sameness. A little time on quality makes a product stand out.
84
+ - The default HTML `<video>` player where a hover player fits better.
85
+
86
+ ## UI component libraries (install by giving the agent the code, CLI, or URL)
87
+ | Library | Use for | Date |
88
+ |---|---|---|
89
+ | shadcn/ui | Assumed base; most libraries below install onto it | 2025-12-01 |
90
+ | Coconut UI | Distinctive components: slide-text button, glass music player, activity rings, bento grids, card flip and stack, transfer animation, AI input and tool-call loaders, voice, text animations | 2025-12-01 |
91
+ | Cult UI | Drawers, expandable waitlist modal, browser mockup, 3D carousel, hover video player, dot-matrix loaders; paid Pro tier | 2025-12-01, 2026-05-08 |
92
+ | Motion Primitives | Animated numbers, dynamic toolbar, dock, glow, before/after slider, scroll progress, magnetic button, morphing dialog | 2025-12-01 |
93
+ | prompt-kit | AI app blocks: chain of thought, chat container, code blocks | 2025-12-01 |
94
+ | Liquid Metal | Animated liquid-metal border for premium CTAs and pricing; use sparingly | 2026-05-08 |
95
+ | Style UI (styleui.dev) | Free templates: a light B2B SaaS landing and a consumer app | 2026-05-08 |
96
+ | Skipper UI | Hover and glide cards, crawl scroll, card stacks and swipes, expanding video player | 2026-05-08 |
97
+ | Watermelon UI | Springy, native-feeling components (onboarding, card swiper) | 2026-05-08 |
98
+ | componentry.fun | Tactile keyboard with sounds, flight tracker, GitHub tracker, matrix effects | 2026-05-08 |
99
+ | balloon.js | Celebration balloon and text animations | 2026-05-08 |
100
+
101
+ Design and inspiration tools: Paper + MCP, Claude Design + MCP, Mobbin, vercel.com/design.md.
@@ -0,0 +1,23 @@
1
+ # Isolate a task
2
+
3
+ Use a dedicated git worktree and branch for PR/publication work, concurrent writers, or when the starting checkout has dirty unrelated changes so parallel agents never edit the same checkout. (Verified local S/M edits with no remote or PR ask stay uncommitted in the starting working tree per deepmodebot `SKILL.md`.)
4
+
5
+ ## Steps
6
+
7
+ 1. Fetch: `git fetch origin`.
8
+ 2. Pick a short branch name from the task: `<type>/<slug>`, for example `fix/login-redirect`.
9
+ 3. Create the worktree inside the repo's self-ignored `.worktrees/` folder, never beside the repo:
10
+ - Bash/POSIX: `mkdir -p .worktrees && { [ -f .worktrees/.gitignore ] || printf '*\n' > .worktrees/.gitignore; } && git worktree add .worktrees/<slug> -b <type>/<slug> origin/main`
11
+ - PowerShell: `New-Item -ItemType Directory -Force .worktrees | Out-Null; if (!(Test-Path .worktrees/.gitignore)) { Set-Content -NoNewline .worktrees/.gitignore "*\`n" }; git worktree add .worktrees/<slug> -b <type>/<slug> origin/main`
12
+ 4. Work only inside that directory. Install dependencies there; worktrees do not share `node_modules` or virtualenvs.
13
+ 5. Copy any untracked local config the task needs (for example `.env.local`). Never commit it.
14
+
15
+ A worktree already assigned to this task is reused as is. Never build on `main`.
16
+
17
+ ## Done when
18
+
19
+ `git branch --show-current` inside the worktree prints the task branch, and `git status` shows a clean tree based on `origin/main`.
20
+
21
+ ## Cleanup
22
+
23
+ After the PR merges or closes: `git worktree remove .worktrees/<slug>`, then delete the branch.
@@ -0,0 +1,306 @@
1
+ # Technology-decision rules
2
+
3
+ These rules describe how to pick technology. They were distilled from 2024 to 2026 public talks on building software with agents. `any-app-stack.md` cites them by ID, and its step 4 scores candidates against them. The concrete web defaults live in `stack.md`.
4
+
5
+ How to use:
6
+ - Each rule gives an imperative, the date of its source, and an "Applies to any app as:" line. That line is how an agent applies the rule outside web work.
7
+ - When sources disagree, the newest one wins. Older positions go in [Reversals](#reversals).
8
+ - The rules came from web and SaaS work. Applying them to other kinds of app is inference. Label any pick derived this way **inferred**, never "default pick".
9
+ - Discount any endorsement that came from a sponsored segment or a vendor relationship (see [Bias to correct for](#bias-to-correct-for)).
10
+
11
+ ## Choosing tools
12
+
13
+ **P1. Judge a stack by how fast it ships an outcome customers want, not by the tech.**
14
+ - Source date: 2024-02-12.
15
+ - Applies to any app as: for a CLI, desktop app or pipeline, pick the option that gets a working end-to-end slice to its real user fastest.
16
+
17
+ **P2. Buy what's already solved (auth, rate limits, integrations, hard platform plumbing) and spend your time on business logic.**
18
+ - Source date: 2024-02-19.
19
+ - Applies to any app as: use an existing library or service for parsing, crypto, packaging, signing or OAuth. Write only the code that makes your app different.
20
+
21
+ **P3. Use the highest managed abstraction you're allowed to use, and drop to a lower level only where it's required.**
22
+ - Source date: 2024-03-13.
23
+ - Applies to any app as: prefer a batteries-included framework, a managed DB or a hosted queue over hand-rolled plumbing. Go lower only for the one job the abstraction can't do.
24
+
25
+ **P4. Constraints override: in a restricted environment, "managed" means the highest-level abstraction the constraints allow.** [INFERENCE: generalized from the managed-services rule.]
26
+ - Source date: 2024-04-19.
27
+ - Applies to any app as: on-prem, air-gapped, accredited or no-SaaS → pick a self-hostable product that removes the most plumbing. Examples: an embedded DB like SQLite over hand-rolled files, a packaged identity server over custom auth, a framework over raw sockets. Record the constraint that forced the choice.
28
+
29
+ **P5. Pick the stack for who the customer is. Enterprise buyers mean proven, compliant tools over novel ones.**
30
+ - Source date: 2025-11-03.
31
+ - Applies to any app as: for regulated, government or security buyers, pick tools that already hold the needed certifications or accreditations, and use them rather than becoming an expert in the standards yourself.
32
+
33
+ **P6. Pick the tool you know, then check that it scales and that successful companies run it.**
34
+ - Source date: 2026-07-02.
35
+ - Applies to any app as: choose a CLI or service language the team (and the agents) already write well, as long as it's proven at the scale you need.
36
+
37
+ **P7. Prefer tools that hand you code you own, while other people maintain the base.**
38
+ - Source date: 2026-03-13.
39
+ - Applies to any app as: prefer vendored or open-source components you can read and patch over closed black-box SDKs.
40
+
41
+ **P8. Don't ship production on beta, release-candidate or experimental tech. Learning with it is fine.**
42
+ - Source date: 2026-01-23.
43
+ - Applies to any app as: pin stable releases of runtimes, drivers and frameworks. Keep pre-1.0 tools to spikes.
44
+
45
+ **P9. Drop tools that are unstable or unmaintained, even popular ones. Prefer open source so a vendor can't abandon you.**
46
+ - Source date: 2026-09-11.
47
+ - Applies to any app as: check release cadence, breaking-change history and licence before adopting a dependency. Replace one that churns.
48
+
49
+ **P10. Prefer one primitive that replaces several tools.**
50
+ - Source date: 2024-11-26.
51
+ - Applies to any app as: a single runtime, a single-binary tool or a single store that covers several layers beats wiring four separate parts.
52
+
53
+ **P11. Pick the middle of the control spectrum: full control over your logic, with no low-level plumbing.**
54
+ - Source date: 2026-09-11.
55
+ - Applies to any app as: pick an agent, GUI or CLI framework that owns transport, streaming and packaging but leaves product logic to you.
56
+
57
+ **P12. Test lock-in claims yourself instead of trusting the discourse.**
58
+ - Source date: 2026-09-11.
59
+ - Applies to any app as: before rejecting a tool as "lock-in", spike it on a second target. If you can't, record the cost of leaving.
60
+
61
+ **P13. Within one ecosystem, commit to the whole set.**
62
+ - Source date: 2026-10-01.
63
+ - Applies to any app as: on a platform such as AWS, a cluster or an embedded vendor SDK, use its native storage, queue and secrets together rather than mixing in outside pieces.
64
+
65
+ **P14. Don't marry one tool. Cycle through options and go where the value is.**
66
+ - Source date: 2026-03-27.
67
+ - Applies to any app as: keep model, harness and vendor choices swappable behind config. Re-evaluate them every quarter.
68
+
69
+ **P15. For tools you live in every day, feel and aesthetics count.**
70
+ - Source date: 2025-06-20.
71
+ - Applies to any app as: for developer tools such as a terminal, TUI or editor plugin, UX quality is a valid tiebreaker.
72
+
73
+ ## Agents and AI as the builder
74
+
75
+ **P16. Prefer tools agents already know well and that are configured as code.**
76
+ - Source date: 2025-04-28.
77
+ - Applies to any app as: prefer mainstream languages and libraries with config-as-code (TOML, YAML, code) over GUI-configured tools that agents can't read.
78
+
79
+ **P17. Prefer end-to-end type safety, because it is the agent's feedback loop.**
80
+ - Source date: 2026-01-16.
81
+ - Applies to any app as: pick statically typed languages and typed boundaries (schemas, generated clients) so the compiler catches agent mistakes. Examples: Rust or Go for a CLI, typed IPC for desktop.
82
+
83
+ **P18. Give the agent real source and docs, not its memory. The codebase is the best context.**
84
+ - Source date: 2026-04-03.
85
+ - Applies to any app as: vendor or fetch the source of key dependencies (`npx opensrc`, the official repo) before an agent integrates them, whatever the language.
86
+
87
+ **P19. A language with less training data is fine if the code and a skill file supply the context.**
88
+ - Source date: 2026-03-24.
89
+ - Applies to any app as: a niche language or DSL is acceptable when you provide examples, source and a skill. It still counts against the language when no such context exists.
90
+
91
+ **P20. Prefer file-based conventions an agent can read.**
92
+ - Source date: 2026-09-11.
93
+ - Applies to any app as: prefer file-routed commands, declarative pipelines and checked-in infra definitions over runtime registration that is hidden in code paths.
94
+
95
+ **P21. The plan and the environment around the model decide quality.**
96
+ - Source date: 2026-01-16.
97
+ - Applies to any app as: invest in tests, linters, typed builds and a clear PRD for any project type before scaling agent work.
98
+
99
+ **P22. Loop agents only when there's a clear, automatic success check.**
100
+ - Source date: 2026-07-09.
101
+ - Applies to any app as: pick tools that give fast, machine-checkable signals. Examples: a test runner, golden files for a CLI, eval sets for ML.
102
+
103
+ **P23. Run one worktree and one branch per agent, and keep PRs small.**
104
+ - Source date: 2026-05-22.
105
+ - Applies to any app as: prefer a monorepo layout and a build that lets parallel agents work in isolation and merge small diffs.
106
+
107
+ **P24. Choose models per task by your own tests and price, not benchmarks.**
108
+ - Source date: 2026-02-06.
109
+ - Applies to any app as: for an AI feature in any app, run your own small eval on real inputs, then pick the cheapest model that passes. Production can use a cheaper model than development.
110
+
111
+ **P25. Prefer controllable, open-weight intelligence where you depend on it.**
112
+ - Source date: 2026-09-06.
113
+ - Applies to any app as: for offline, private or security work, prefer local open-weight models over hosted APIs. Coding models still need to be large to be useful.
114
+
115
+ **P26. Vibe-code v1 for clarity, then build v2 deliberately on the real stack. Know exactly how serious code works.**
116
+ - Source date: 2025-10-24.
117
+ - Applies to any app as: throwaway spikes can use any stack. The production rewrite follows these rules and gets human understanding of its high-stakes paths.
118
+
119
+ **P27. Review evidence and signatures, and keep your own skill as the fallback.**
120
+ - Source date: 2026-07-09.
121
+ - Applies to any app as: pick stacks whose interfaces are readable by a human, so reviewing at the signature level is meaningful.
122
+
123
+ **P28. Build only the product and its harness. Buy the agent core.**
124
+ - Source date: 2026-05-05.
125
+ - Applies to any app as: in an AI agent app, adopt an existing agent framework and tool layer, and spend effort on domain tools and evaluation.
126
+
127
+ ## Architecture and security
128
+
129
+ **P29. Treat every server-callable function as a public endpoint, and authorize inside it.**
130
+ - Source date: 2024-10-28.
131
+ - Applies to any app as: every IPC handler, RPC method, MCP tool or plugin hook validates and authorizes its own input.
132
+
133
+ **P30. Keep secrets and sensitive or expensive calls off the client. No client-to-data shortcuts.**
134
+ - Source date: 2025-04-28.
135
+ - Applies to any app as: desktop, mobile and CLI clients never embed DB credentials or privileged API keys. They go through a service layer, or keep secrets in an OS keychain or vault.
136
+
137
+ **P31. Lock data down by default, and grant the least privilege needed.**
138
+ - Source date: 2024-09-18.
139
+ - Applies to any app as: use read-only credentials, scoped tokens and deny-by-default storage. Don't store user credentials you don't need.
140
+
141
+ **P32. Validate on the server as well as the client, and force structured output from LLMs.**
142
+ - Source date: 2025-02-24.
143
+ - Applies to any app as: validate at every trust boundary with a schema, including config files, CLI args, file imports and model output.
144
+
145
+ **P33. Isolate critical webhooks and payment flows from what users can reach. Verify signatures and log every event first.**
146
+ - Source date: 2025-04-28.
147
+ - Applies to any app as: any inbound event source (queues, sensors, webhooks) gets a durable raw log before processing, plus authenticity checks.
148
+
149
+ **P34. Move long-running or CPU-heavy work off the request path or UI thread.**
150
+ - Source date: 2025-04-25.
151
+ - Applies to any app as: use background workers or durable jobs for services, worker threads for desktop and mobile, and async pipelines for data work.
152
+
153
+ **P35. Use typed, explicit errors for every backend service.**
154
+ - Source date: 2026-10-01.
155
+ - Applies to any app as: pick a language or library with errors as values (Rust `Result`, Go errors, Effect) for any service or CLI.
156
+
157
+ **P36. Put a human gate on irreversible or high-stakes agent actions, and shrink the blast radius.**
158
+ - Source date: 2025-10-17.
159
+ - Applies to any app as: agents run in containers or sandboxes with their own accounts. Payments, sends and deletes need approval.
160
+
161
+ **P37. Deploy for compliance first, then latency.**
162
+ - Source date: 2025-01-09.
163
+ - Applies to any app as: choose regions, hosts and data residency to satisfy the regulation first, then place compute near users.
164
+
165
+ **P38. Self-host what you depend on, on hardware you control, when uptime and privacy matter.**
166
+ - Source date: 2026-02-12.
167
+ - Applies to any app as: long-running agents, home and lab services, and sensitive pipelines run on owned hardware. A cheap VPS is fine for casual use.
168
+
169
+ **P39. Pen-test yourself on a schedule.**
170
+ - Source date: 2026-07-15.
171
+ - Applies to any app as: add scheduled automated security scans or agent audits to CI for any project type.
172
+
173
+ **P40. Let users own and export their data.**
174
+ - Source date: 2026-05-05.
175
+ - Applies to any app as: prefer open, portable storage formats and export paths over proprietary stores.
176
+
177
+ ## Shipping and quality
178
+
179
+ **P41. Go scruffy first, and harden when real use demands it.**
180
+ - Source date: 2024-10-09.
181
+ - Applies to any app as: a single process with an embedded store is a fine v1. Split it into services only when load or ownership requires it.
182
+
183
+ **P42. "Slop" means it breaks at scale or costs too much, not that it doesn't work.**
184
+ - Source date: 2025-10-24.
185
+ - Applies to any app as: score candidates on how they behave under real load and on cost, not on whether the demo runs.
186
+
187
+ **P43. Prove the riskiest integrations first, and reproduce bugs before fixing them.**
188
+ - Source date: 2026-06-05.
189
+ - Applies to any app as: spike hardware, driver, platform-API and model integrations before building features on them.
190
+
191
+ **P44. Test in a sandbox before production.**
192
+ - Source date: 2025-06-06.
193
+ - Applies to any app as: use staging accounts, test networks and dry-run modes for anything touching money, devices or external systems.
194
+
195
+ **P45. Polish and care are the moat, because code is cheap to copy.**
196
+ - Source date: 2026-10-16.
197
+ - Applies to any app as: prefer tools that let you finish UX details, such as native-feel desktop toolkits or good TUI libraries, over ones that cap quality.
198
+
199
+ **P46. Build something you'll use, for real non-developer users, and finish it.**
200
+ - Source date: 2025-11-25.
201
+ - Applies to any app as: cut setup friction for the end user, for example one key instead of three, an installer instead of build steps, sensible defaults.
202
+
203
+ **P47. Keep one reusable starter or template that every project feeds back into.**
204
+ - Source date: 2024-05-27.
205
+ - Applies to any app as: keep a per-type template (CLI, service, agent) with features behind config flags.
206
+
207
+ ## Cost and scale
208
+
209
+ **P48. Spend for reliability and speed early. Optimize cost later.**
210
+ - Source date: 2026-07-02.
211
+ - Applies to any app as: accept paid tools that buy speed or reliability. Revisit them when the bill matters.
212
+
213
+ **P49. Price a tool by its total cost, not the headline free tier.**
214
+ - Source date: 2025-02-24.
215
+ - Applies to any app as: add the hidden dependencies, such as email, egress, licences, ops time and model tokens, before comparing options.
216
+
217
+ **P50. Pay a bit more for much better developer experience.**
218
+ - Source date: 2025-04-07.
219
+ - Applies to any app as: a slightly costlier SDK, host or runtime wins if it removes a class of bugs or plumbing.
220
+
221
+ **P51. Pick billing and pricing tools by the pricing model.**
222
+ - Source date: 2026-07-02.
223
+ - Applies to any app as: for licensing in desktop or CLI apps, choose by model (seat, usage, one-off) rather than by brand.
224
+
225
+ **P52. Don't switch architecture for small gains.**
226
+ - Source date: 2026-09-06.
227
+ - Applies to any app as: migrate only when the measured gain beats the risk of a new class of bugs.
228
+
229
+ **P53. Split services partly by who will own them.**
230
+ - Source date: 2026-07-02.
231
+ - Applies to any app as: draw service and package boundaries where a future owner or team would sit, not by layer for its own sake.
232
+
233
+ ## Evolving the stack
234
+
235
+ **P54. If it works, don't swap it for something new.**
236
+ - Source date: 2024-10-28.
237
+ - Applies to any app as: an existing project's stack wins. Change one layer at a time, with a stated reason.
238
+
239
+ **P55. Install only the plugins and integrations you actually use. Add agent tools one at a time.**
240
+ - Source date: 2026-02-12.
241
+ - Applies to any app as: keep the dependency and tool lists minimal, and add each one when a task proves the need.
242
+
243
+ **P56. Turn every process that works into a skill, after walking it by hand.**
244
+ - Source date: 2026-02-20.
245
+ - Applies to any app as: codify the build, release and debug loops for any project as checked-in skills or scripts.
246
+
247
+ **P57. Kill features that fight a vendor's limits rather than bending the stack.**
248
+ - Source date: 2026-02-25.
249
+ - Applies to any app as: if a chosen tool can't do a feature cleanly, drop the feature or replace the tool. Don't build a fragile workaround.
250
+
251
+ ## Bias to correct for
252
+
253
+ - Some sources had a commercial tie to Convex, Orgo, or Tempo Labs. Treat praise of those products as interested praise, and confirm it with your own prototype.
254
+ - Ignore tools that appeared only in sponsored segments. Weigh lightly tools that were both sponsors and independently praised.
255
+ - The sources lean toward Next.js and Vercel. Check that lean against the app's real constraints.
256
+
257
+ ## Reversals
258
+
259
+ | Was | Date | Now | Date |
260
+ |---|---|---|---|
261
+ | Next.js as the whole backend | 2024-02-12 | Separate server for payments and core work | 2024-04-01 |
262
+ | Server actions for data fetching | 2024-06-06 | Fetch in server components; actions for mutations | 2024-07-12 |
263
+ | Supabase + Prisma | 2024-09-18 | Neon + Drizzle (free tier), then PlanetScale Postgres (stack.md §4) | 2024-10-02 / 2026-07-02 |
264
+ | Stripe for payments | 2024-10-15 | Polar for DX; Stripe for plain subscriptions, Autumn for credits | 2025-02-11 / 2026-07-02 |
265
+ | Bun package manager | 2024-11-26 | pnpm | 2025-03-18 |
266
+ | Next.js for everything | 2025-11-03 | SvelteKit (compiled, snappy) | 2026-03-24 |
267
+ | Clerk as default auth | 2026-01-23 | WorkOS default; Better Auth when you need ownership | 2026-03-13 |
268
+ | Claude Code as the best agent | 2025-06-06 | Cursor, then T3 Code; Claude CLI over SSH | 2025-10-17 / 2026-10-21 |
269
+ | Gemini models as the lead pick | 2025-11-25 | Single-talk opinion: avoid Gemini for agent work [unverified: no benchmarks; superseded by current Google Antigravity/Gemini support in `skill://agent-harnesses/references/antigravity.md`] | 2026-02-12 |
270
+ | Codex/GPT best value | 2026-07-24 | Opus 5.5 main model | 2026-10-01 |
271
+ | OpenClaw as agent core | 2026-05-05 | Eve [caption?], a lighter agent core | 2026-09-11 |
272
+ | Daytona agent computers | 2026-05-22 | Orgo | 2026-10-01 |
273
+ | Ghostty terminal | 2026-01-23 | cmux [caption?], then Ghostty plus a multiplexer | 2026-03-13 / 2026-08-19 |
274
+ | "models not trained on it" rules TanStack out | 2026-01-23 | Training data waived given code plus a skill (Svelte) | 2026-03-24 |
275
+ | Custom agent-loop CLIs are essential | 2026-01-16 | Native harness loops replace them | 2026-03-07 |
276
+
277
+ ## Known non-web picks
278
+
279
+ | Language / tool | Job | Citation |
280
+ |---|---|---|
281
+ | Python + Flask | AI research/plan/write pipeline and job queueing | 2024-05-09 |
282
+ | Bun + Elysia (+ Eden) | Standalone typed backend servers | 2024-03-04; 2026-01-23 |
283
+ | Hono on Cloudflare Workers + Drizzle + Neon | Standalone API backend | 2024-10-02; 2024-12-10 |
284
+ | Effect (TypeScript) | Every backend service, including an MCP server | 2026-10-01 |
285
+ | Railway | Hosting separate servers | 2026-01-23; 2026-08-19 |
286
+ | Expo + React Native (SwiftUI only if iOS-only) | Mobile | 2025-11-10; 2026-07-02 |
287
+ | Electron (wraps the site) | Desktop app | 2026-07-02 |
288
+ | Rust | Native-feel desktop clones; single sync server for hardware | 2026-10-16; 2026-11-06 |
289
+ | Bash script → npm CLI with YAML config (Ralphy) | Agent-loop CLI | 2026-01-20 |
290
+ | Express + JSON file on Fly.io, Vapi, ElevenLabs, Twilio | Voice agent | 2025-12-09 |
291
+ | Vercel AI SDK, Claude Agent SDK, Composio, Daytona | Agent SDKs, tools, sandboxes | 2026-01-23 |
292
+ | Supermemory, AgentMail, Plaid, Mistral OCR, OpenRouter, Caddy | Agent service dependencies | 2026-05-05; 2026-07-02 |
293
+ | Braintrust / Axiom / Sentry | Agent observability | 2026-07-02 |
294
+ | Linux mini PC, Tailscale, Synology NAS, UPS | Agent runtime machine | 2026-08-19 |
295
+ | Nightly traces → NAS, fine-tunes on rented H100s | ML / fine-tuning | 2026-10-29 |
296
+ | REA (Ghidra, Hopper, IDA over MCP) | Reverse engineering for agents | 2026-10-16 |
297
+ | Abliterated DeepSeek via Morph LLM | Pen-testing your own devices | 2026-11-02 |
298
+ | 1Password | Environment variable secrets | 2026-08-14 |
299
+ | AdGuard Home (agent-managed) | Home network | 2026-10-29 |
300
+ | Raspberry Pi, ReSpeaker, Blender via Codex, 3D printing | Hardware prototype | 2026-11-06 |
301
+ | TradingView webhook → Convex; brokerage API; polygon.io | Fintech data and alerts | 2025-10-17; 2026-01-23 |
302
+ | thirdweb, Crossmint, Privy, viem [caption?] | Crypto wallets and Ethereum | 2025-11-12 |
303
+ | pass.js [caption?], ImageKit, R2 | Apple Wallet passes and images | 2025-08-28; 2026-03-13 |
304
+ | Web Workers | CPU-heavy parsing and inference in UI | 2025-04-25 |
305
+ | Cloudflare Tunnel / ngrok | Exposing local servers and webhooks | 2024-09-18; 2026-08-19 |
306
+ | Linear | Planning and issue tracking | 2026-07-09 |
@@ -0,0 +1,31 @@
1
+ # Prove a change
2
+
3
+ A change is proven by evidence from the running artifact, captured before the fix and after it. Passing unit tests alone is not proof of changed behavior.
4
+
5
+ ## Steps
6
+
7
+ 1. Run the repo's own checks (typecheck, lint, tests, build). Record the commands and results.
8
+ 2. List the test targets: each behavior the change touches.
9
+ 3. **Before.** Reproduce the problem first, while it is cheapest to show. Capture it.
10
+ 4. Make the change.
11
+ 5. **After.** Repeat the same steps and capture the result.
12
+ 6. Mark each target `passed`, `failed`, or `untested`, each backed by an artifact. `untested` needs a reason.
13
+
14
+ ## Capture by kind of change
15
+
16
+ | Change | Evidence |
17
+ |---|---|
18
+ | UI | Screenshots of the same view before and after, taken with the `browser` tool or Playwright. Record a video with `ffmpeg` when the behavior is a sequence. |
19
+ | CLI | The same command with its output, before and after. |
20
+ | API or backend | The same request with status and body, before and after. |
21
+ | Performance | The same measurement run several times, with the numbers. |
22
+
23
+ Store artifacts under `.scratch/evidence/<task>/`. `.scratch/` holds a `.gitignore` of `*`, so nothing in it reaches a commit (deepmodebot's Contain the work). A repo with a `verify-<app>` skill uses that skill instead of ad hoc captures.
24
+
25
+ Put a before and after table in the PR body. Host the images where the repo's readers can see them, for example committed to a separate `evidence/<branch>` branch and linked by raw URL. Never upload sensitive screens to a public host.
26
+
27
+ A missing tool (no browser, no `ffmpeg`) stops that capture. Report it and the evidence you do have. Never substitute a weaker check silently.
28
+
29
+ ## Done when
30
+
31
+ Every test target has a result backed by an artifact, and the PR body shows the before and after pairs.
@@ -0,0 +1,119 @@
1
+ # Default stack for web, SaaS, and AI apps (2026)
2
+
3
+ Layer-by-layer opinionated TypeScript/web-app defaults distilled from 2026 talks, each with its reason and source date. When two entries conflict, the newer date wins. An existing project's stack always beats these defaults. For general relational monoliths, free-tier Postgres 18 (Neon/Supabase + Drizzle), PaaS deploys (Render/Railway/Fly), or deciding single-package vs monorepo, see `skill://software-architecture`. Tools that appeared only in paid sponsor segments are excluded.
4
+
5
+ Vendor relationships worth knowing: several Convex and Orgo recommendations came from sources with a commercial tie to those companies. Weigh them with that in mind and prefer evidence from your own prototype.
6
+
7
+ ---
8
+
9
+ ## 1. Web framework
10
+ - **Default: SvelteKit.** Agents write it well, and the resulting apps are fast. It compiles to vanilla JS with a small runtime (Svelte 5 runes) and no virtual DOM (2026-10-01, 2026-07-02).
11
+ - Thin training data is not a blocker. Scaffold a SvelteKit project and the code itself becomes the agent's context. Agents can search the web. Add the Svelte team's official agent skills file (2026-03-24).
12
+ - The ecosystem is enough. shadcn has a Svelte port, Tailwind carries over, and a vendor's plain JS package fills gaps when no SvelteKit package exists. Have the agent write whatever is missing (2026-03-24).
13
+ - Next.js habits transfer: file routing (`src/routes/about/+page.svelte`), SSR, data loading, prerendering (2026-03-24).
14
+ - **Alternative: Next.js**, when it fits better or the team prefers it (2026-10-01). It was the default until early 2026 (2026-01-23).
15
+ - **TanStack Start:** avoid while it is a release candidate. Production work needs stable releases (2026-01-23).
16
+ - **One-off API routes inside Next.js:** Elysia on Bun, mounted at `app/api/[[...slugs]]/route.ts`, with an Eden client in `lib/eden.ts` for end-to-end types. Not a main backend (2026-01-23).
17
+
18
+ ## 2. Mobile / desktop / monorepo
19
+ - **Mobile: Expo + React Native** for cross-platform. Use Swift when Android is not needed (2026-07-02).
20
+ - **Desktop: Electron** wrapping the web app (2026-07-02).
21
+ - **Start with a Turborepo monorepo when shipping multiple apps or shared packages.** The agent sees the whole codebase, and every client shares one backend and one UI library (2026-07-02, 2026-01-23). For a single deployable with no shared code, keep a single-package repo per `skill://software-architecture/references/monorepos.md`.
22
+
23
+ ## 3. Styling / UI
24
+ - **Tailwind v4 + shadcn/ui.** Start from shadcn/ui's New Project page: choose Base UI components, a style, radius, and theme, then run the generated `bunx` command (2026-01-23).
25
+ - Design tooling (Paper, Mobbin) is in §11.
26
+
27
+ ## 4. Backend / database
28
+ - **Default backend: Convex.** The whole backend is code (schema, functions, scheduling), so agents can build it the way they build infrastructure with Terraform. It is type-safe and real-time by default, and it covers webhooks (HTTP actions), cron, scheduled and background jobs, and queues. Set up with `npx convex dev` (2026-01-23, 2026-07-02, 2026-10-01).
29
+ - Convex combines server and database: queries read, mutations write, actions call external services (2026-07-02).
30
+ - **Integrate through Convex components.** Give the agent the component's link and ask it to set the integration up with that component. Available components include Stripe, Polar, Autumn, Dodo Payments, Workflow (durable flows with retries), Workpool (queues and parallel work), Cloudflare R2, Resend, WorkOS, PostHog, and Browserbase. Agents set these up reliably (2026-01-23 to 2026-10-01).
31
+ - **Effect (Effect-TS) for any standalone service that is not Convex.** Its typed errors make failure handling explicit, and agents make it easy to learn. An MCP server or a payments service are good fits (2026-07-02, 2026-10-01).
32
+ - **Postgres: PlanetScale.** Works well with Effect and can be reached through Cloudflare Hyperdrive (2026-07-02, 2026-10-01).
33
+ - **Avoid client-to-database designs** such as Supabase with row-level security as the only guard. Keep a server between the client and the data (2026-07-02).
34
+
35
+ ## 5. Auth
36
+ - **Default: WorkOS.** Enterprise-ready: org invites, SSO, and compliance needs such as SOC 2, and agents integrate it well (2026-07-02, 2026-10-01).
37
+ - Earlier view, now superseded: Clerk is the simplest, Better Auth has a Convex component, WorkOS for enterprise. Any of the three works (2026-01-23).
38
+
39
+ ## 6. Payments
40
+ - **Plain subscriptions: Stripe**, through the Convex Stripe component (2026-01-23 to 2026-07-02).
41
+ - **Credits, usage-based billing, top-ups: Autumn**, through the Convex Autumn component (2026-07-02).
42
+ - Polar and Dodo Payments have Convex components but are not default picks (2026-02-04).
43
+
44
+ ## 7. AI app tooling
45
+ - **Vercel AI SDK** for building agents (2026-01-23).
46
+ - **Claude Agent SDK** for running Claude Code instances inside a sandbox, for coding agents or assistants (2026-01-23).
47
+ - **Composio** as the tool and integration layer (Gmail, Calendar, Slack, GitHub, Sheets, Shopify). Create a tool-router session per user ID and pass its tools to AI SDK `streamText` (2026-01-23).
48
+ - **OpenRouter** as the inference provider behind a usage ledger (2026-07-02).
49
+
50
+ ## 8. Sandboxes / agent computers
51
+ - **Daytona** for agent sandboxes. Strong developer experience; each agent can get a computer with a browser (2026-01-23, 2026-07-02).
52
+ - **Orgo** for giving each agent its own computer (2026-10-01). It replaced Daytona for that job. The name comes from auto-captions, so confirm it [INFERENCE: Orgo].
53
+
54
+ ## 9. Deployment
55
+ - **Default: Vercel**, with Turborepo, for production, staging, services, and admin sites (2026-07-02).
56
+ - **Cloudflare only as a whole stack:** Workers, R2, Hyperdrive, Durable Objects, Email. If any part of the app is on Cloudflare, keep the rest there too. Otherwise use Vercel (2026-10-01).
57
+ - Avoid raw AWS, GCP, and Azure. Use managed layers such as Convex, Vercel, and PlanetScale (2026-07-02).
58
+ - Railway for a separate server plus Postgres is superseded by PlanetScale and Cloudflare (2026-01-23, 2026-10-01).
59
+
60
+ ## 10. Analytics / observability / review / email
61
+ - **Sentry + PostHog** for errors and analytics. Tell the agent every error must be traceable with them (2026-07-02). PostHog also has a Convex component (2026-10-01).
62
+ - **Email: Resend**, through its Convex component (2026-01-23 to 2026-07-02). Agent email can run on Cloudflare Email (2026-10-01).
63
+ - **Code review:** an AI reviewer on every PR, looping the agent on its findings until clean. deepmodebot does this with its pr-review technique (`skill://deepmodebot/references/techniques/pr-review.md`).
64
+ - **Issue tracking: Linear**, connected over MCP. Assign a ticket to a cloud agent so a fix PR exists before a human reads the bug (2026-10-01).
65
+
66
+ ## 11. Dev tools
67
+ - **opensrc** (from Vercel). Fetches a package's or repo's source into the project so agents read real code, which matters for new libraries and new versions. Usage:
68
+ 1. Run `npx opensrc <package | github-url>`.
69
+ 2. It creates a gitignored `opensrc/` folder with `sources.json`, `settings.json`, and `repos/github.com/...`.
70
+ 3. Prompt the agent to look under `opensrc/` for the library and show how to use the feature in this codebase.
71
+
72
+ Prefer it to a docs MCP or pasted docs: the code is the best context (2026-04-03).
73
+ - **Paper**, a Figma alternative that works well with agents and has an MCP (2026-10-01).
74
+ - **Mobbin** for design inspiration; it has an MCP (2026-10-01).
75
+ - **Wispr Flow** for voice prompting. Spoken prompts carry more detail than typed ones (2026-10-01).
76
+ - **Ghostty** as the terminal (2026-01-23).
77
+ - The per-feature flow is this skill's ship loop (`SKILL.md`): worktree per feature, service-layer build, proof, reviewed PR.
78
+
79
+ ## 12. Harnesses and models
80
+ - **A meta-harness** (T3 Code) that runs Claude Code, Cursor, and OpenCode and dispatches agents to several machines. Threads settle when their PR merges (2026-10-01).
81
+ - **Claude Code as a CLI**, including over SSH on new machines (2026-10-01).
82
+ - **Codex app** for computer use, research, 3D work, and hardware projects (2026-10-01).
83
+ - **Cursor and Devin cloud agents**, triggered from Linear (2026-10-01).
84
+ - Stay loyal to no subscription. Use whichever lab currently gives the most capacity for the price (2026-10-01).
85
+ - **Models (Oct 2026):** Opus 5.5 as the main model for instruction following and long tasks; GPT-6 Astra for deep research and understanding a codebase. Expect this to change within months (2026-10-01).
86
+
87
+ ---
88
+
89
+ ## System design for AI apps (2026-07-02)
90
+ - Every tool choice trades scalability, reliability, performance, and cost. Name the trade.
91
+ - Build on managed layers (Convex, Vercel, PlanetScale) over raw cloud. Their developer and agent experience is better, and they scale by raising the plan.
92
+ - **Never let the client talk to the database.** Always client → server → database → server → client, or keys leak through the network tab.
93
+ - Choose tools agents know well and that are configured as code.
94
+ - Monorepo layout: web (SvelteKit), mobile (Expo, or Swift if iOS only), desktop (Electron around the web app), a shared UI library, one backend.
95
+ - **Run agent and chat work as durable processes** so it continues when the user leaves: Convex Workflow, Workpool for queues, components for integrations.
96
+ - **Split out a separate service** when code touches one surface, does one job, has no foothold across the codebase, could have its own owner, or the main backend is getting too big. This is judgment, not a formula; the model can propose the split.
97
+
98
+ Example architecture:
99
+ - Clients: web, desktop, mobile, internal admin site.
100
+ - Source of truth: Convex with components.
101
+ - Services in the monorepo: an Effect inference and payments service with its own PlanetScale ledger and OpenRouter for inference; an Effect messaging service.
102
+ - Agents: one sandbox computer each, with a browser.
103
+ - Auth WorkOS, billing Autumn, observability Sentry + PostHog, deploy Vercel.
104
+ - Accepted trade-off: cost. One backend would be cheaper; separate services buy isolation.
105
+
106
+ ---
107
+
108
+ ## Superseded
109
+ | Was | Date | Now | Date |
110
+ |---|---|---|---|
111
+ | Next.js main frontend, Elysia for API routes | 2026-01-23 | SvelteKit default, Next.js sometimes | 2026-03-24 to 2026-10-01 |
112
+ | Clerk simplest, Better Auth possible, WorkOS for enterprise | 2026-01-23 | WorkOS default | 2026-07-02, 2026-10-01 |
113
+ | Stripe only | 2026-01-23 | Stripe for subscriptions, Autumn for credits | 2026-07-02 |
114
+ | Railway for servers + Postgres | 2026-01-23 | PlanetScale; Cloudflare whole stack or Vercel | 2026-10-01 |
115
+ | Daytona for agent computers | 2026-07-02 | Orgo for agent computers | 2026-10-01 |
116
+ | Opus 4.5 + GPT-5.2 / Codex | 2026-01-23 | Opus 5.5 main, GPT-6 Astra for deep work | 2026-10-01 |
117
+ | Cursor editor + Claude Code CLI | 2026-01-23 | Meta-harness; cloud agents from Linear | 2026-10-01 |
118
+ | Docs MCP / pasted docs | rejected | opensrc | 2026-04-03 |
119
+ | Human review after an AI score threshold | 2026-01-23 | Agent loops on AI review until clean (deepmodebot: pr-review) | 2026-10-01 |
@@ -0,0 +1,22 @@
1
+ # Structure shared code
2
+
3
+ Use this when two or more workflows repeat the same operation, or when a new feature needs mechanics that already exist. The project's existing architecture wins. This split is the default only when the project has no convention.
4
+
5
+ ## The split
6
+
7
+ - **Entry points** (route handlers, server actions, CLI commands, jobs) decide *whether* and *when*. They hold product rules: permissions, plan limits, which steps run in which order.
8
+ - **Services** decide *how*. A service does one reusable operation, such as charging a card or sending an email. It takes explicit inputs and returns a structured result: a success value or a typed error.
9
+ - Services do not read request state, session globals, or UI state. Everything they need arrives as an argument.
10
+ - Services do not call entry points. Entry points may call several services.
11
+
12
+ ## Steps
13
+
14
+ 1. List the places that repeat the operation. Note what differs between them.
15
+ 2. Move the shared part into one service. Make every difference an input.
16
+ 3. Keep the decisions that differ in the entry points.
17
+ 4. Return a result object instead of throwing for expected failures, so callers handle them explicitly.
18
+ 5. Replace every copy with a call to the service. Delete the copies.
19
+
20
+ ## Done when
21
+
22
+ No operation is duplicated across callers, and the repo's typecheck and lint pass.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lauren Tan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.