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,153 @@
1
+ ## 4a. Agent UI (chat and agent-console surfaces)
2
+ For React apps, run `npx shadcn@latest add message-scroller message bubble attachment marker trace code-block` or start from **`shadcn-ui/chatbot-template`** (AI SDK transport + these components). For SvelteKit (`skill://deep-stack`'s default) or other frameworks, port the same component contracts (`MessageScroller`, `Trace`, approval `Item`, streaming Markdown sanitizer) onto native primitives. **AI Elements (elements.ai-sdk.dev) is deprecated at the end of November 2026**; its patterns live in shadcn/ui. Optional private-repo notes: `TimothyVang/frontend:.claude/skills/shadcn/rules/chat.md`. [github/ai-ui/shadcn-ui-chatbot-template; github/ai-ui/vercel-ai-elements]
3
+
4
+ - **Thread**
5
+ - Build it with: `MessageScroller`. The user's turn is the `scrollAnchor`; `autoScroll` follows the reply but yields as soon as the user scrolls up; `MessageScrollerButton` jumps to latest. Once a streamed reply grows past the viewport, keep its *start* in view rather than following the bottom [articles/ai-ux/nngroup-ai-ux-research]
6
+ - Never: A raw `overflow-y-auto` div with manual stick-to-bottom logic
7
+ - **Turn**
8
+ - Build it with: `Message` (`align="end"` = the user) + `Bubble` variants
9
+ - Never: A styled div with `bg-primary`
10
+ - **Agent activity (reasoning, tool calls, file reads, sources, steps)**
11
+ - Build it with: One `TraceLine` per thing, inside one `Trace` per run. A tool row is a plain line until output exists, then a `TraceCollapsible` with output in `CodeBlock`
12
+ - Never: A hand-rolled `Collapsible` with "Thinking..."
13
+ - **Status words**
14
+ - Build it with: Match the state: Running → Ran / Failed to run; Thinking → Thought. Map SDK states yourself. Progress lines name the actual work ("Searching 3 repos for auth middleware"), without anthropomorphic verbs. Rows have explicit states (queued · running · waiting for approval · error · retried · completed). When results land, the run collapses to one summary line ("Ran 14 tools · 2m 10s") [articles/ai-ux/shapeof-ai-pattern-library; articles/ai-ux/lukew-durable-ai-patterns; articles/ai-ux/microsoft-agents-copilot-mcp-apps]
15
+ - Never: Dimming with `opacity-*`; passing raw SDK states through
16
+ - **Tool states (AI SDK → Trace)**
17
+ - Build it with: Render from `message.parts` with an exhaustive `switch (part.state)`. `input-streaming` / `input-available` → Running; `approval-requested` → the approval prompt; `approval-responded` → Running if approved, otherwise Denied; `output-available` → Ran; `output-error` → Failed to run; `output-denied` → a **neutral** "Denied …" line (the user's decision is not an error). Running after the chat stops → "Failed to …", except client tools, which are *waiting*. `preliminary: true` → still Running. One `Trace` per run of steps between text blocks.
18
+ A subagent is one line ("Ran the research agent") with a nested Trace, the task on top, model and tools as badges, and elapsed time. Sources and message actions appear only after streaming; Retry only on the last assistant message while idle [github/ai-ui/shadcn-ui-chatbot-template; github/ai-ui/vercel-ai]
19
+ - Never: A red error state for a denial
20
+ - **Tool approval**
21
+ - Build it with: A prompt *outside* the Trace: an `Item` with Approve / Deny in `ItemActions`. Once answered, it collapses back into a line
22
+ - Never: A log row with buttons
23
+ - **Dividers, system notes, checkpoints**
24
+ - Build it with: `Marker`
25
+ - Never: `Separator` plus a span
26
+ - **Attachments**
27
+ - Build it with: `Attachment`, with `state` wired to the real `idle → uploading → processing → done / error`
28
+ - Never: A separate spinner
29
+ - **Prompt box**
30
+ - Build it with: `InputGroup` (textarea, attachment chip, submit). **Pickers hold a value the collapsed trigger shows:** shadcn `Select`, or a `DropdownMenuRadioGroup` whose trigger displays the current model (the shadcn pattern uses two: model and effort) [articles/wai-aria-apg/menu-button; github/ai-ui/shadcn-ui-chatbot-template]. Prompt-control icons have text labels; context (Attach) and scope (Focus) are separate controls. Suggestion chips are `ul > li > button`, 3–6 of them, ranked and drawn from context.
31
+ A token or cost range sits beside Send for expensive runs [articles/ai-ux/nngroup-ai-ux-research; articles/ai-ux/primer-copilot-accessibility-practices; articles/ai-ux/shapeof-ai-pattern-library]
32
+ - Never: A plain action menu for a value; a trigger that hides the current choice
33
+ - **Message actions**
34
+ - Build it with: A row of 3+ controls is a toolbar: one tab stop, arrows inside. Hover-revealed actions are keyboard-reachable [articles/wai-aria-apg/toolbar]
35
+ - Never: Hover-only actions
36
+ - **Agent avatar**
37
+ - Build it with: A non-circle shape (square or hexagon); people stay circles [articles/component-gallery/avatar]
38
+ - **Citations / context usage**
39
+ - Build it with: Citations by depth: a hover quote for one claim, an inline link to open, a side panel for research answers. Citations alone push verification onto the user, so pair consequential values with per-value traces. Context usage is a `HoverCard` with `Progress` [youtube/L3RuP_q8Bwc; youtube/RGiXcVxSD3s]
40
+ - **Message body (streaming)**
41
+ - Build it with: A streaming-aware Markdown renderer that closes unterminated syntax (Streamdown, or remend in front of your renderer). Streamdown config: `animated` (150 ms fade per word) and `caret="block"` only on the last assistant message while streaming; `allowedImagePrefixes` plus `allowDataImages: false`, because unrestricted image URLs can leak data after prompt injection; keep `defaultRehypePlugins.sanitize` and the link-safety check. Memoize Markdown per block, keyed by message id; throttle `useChat` updates; never fake-stream real model output [youtube/VQCNVpzrR5Q; github/ai-ui/vercel-streamdown; github/ai-ui/vercel-ai]
42
+ - Never: A raw `*`, half link or open code fence flashing mid-stream
43
+ - **Generative UI**
44
+ - Build it with: A typed catalog of existing components; unknown types fall back to Markdown [youtube/maTp79FD9gI]: **render after exploring**, with data tools as plain trace lines and one render call showing the curated set, carrying the model's per-item reason. A **template per intent with named slots** (catalog entries declare accepted slots, validated by a Zod spec, labels from data), so the same request always gives the same layout. Rendered data is in model context; clicks write back as semantic state. Text after a widget points to it rather than repeating it. Tool descriptions state their UI side effects [youtube/lbaXnx0KLA8; youtube/QrMcNe2jjt8]
45
+ - Never: Rendering model-authored markup; a different layout on every run
46
+ - **Tool-result cards in the thread**
47
+ - Build it with: At most 2 actions (1 primary) and 4–5 data points. No menus, popovers, modals, tabs or inner scrollers. Height fits content; Expand opens a side panel or fullscreen, and the in-thread card collapses to a compact link. **Carousels hold 3–8 items; 1–2 items render as single cards.** Every widget shows its own loading, disabled, success and error-with-recovery states; status never lives only in prose; a finished action posts a new status line rather than silently mutating the old card.
48
+ Never duplicate the chat input inside a card [articles/ai-ux/openai-apps-sdk-ui-guidelines; articles/ai-ux/claude-mcp-apps-design-guidelines; articles/ai-ux/google-connected-apps-guidelines; articles/ai-ux/microsoft-agents-copilot-mcp-apps]
49
+ - Never: Mini-apps inside the thread
50
+ - **Answer format**
51
+ - Build it with: A ladder: Markdown by default → a typed component spec for scannable or actionable answers → a sandboxed widget only for calculations or games. The catalog generates the model's prompt; specs are schema-validated. Generative cards: one job, 400–600 px wide, purpose visible in the first 300 px, 5–7 options at most, carousel metadata of 3 lines or fewer, stable ids, heavy components deferred until their arguments are complete [github/ai-ui/assistant-ui-assistant-ui; github/ai-ui/openai-apps-sdk-ui; github/ai-ui/vercel-labs-json-render]
52
+ - **Third-party UI (MCP Apps, partner HTML)**
53
+ - Build it with: Only in a sandboxed iframe with the restrictive default CSP, logged postMessage traffic, a visible "From {server}" boundary, and the host theme passed as CSS variables. Tool calls the view starts go through the approval ladder [github/ai-ui/modelcontextprotocol-ext-apps]
54
+ - Never: Inline third-party markup
55
+ - **Artifacts (long output)**
56
+ - Build it with: A versioned side panel opened from its inline preview. Agent writes are versions; user edits are flagged as manual; versions can be diffed [github/ai-ui/vercel-chatbot]
57
+ - Never: Long output inline in the thread
58
+ - **Clarifying questions**
59
+ - Build it with: A sticky `Questionnaire` card above the composer: progress, choices plus "Type another answer…", Previous / Next / Answer. "Preparing a question…" shimmers while the input streams; afterwards a trace line reads "Asked N questions" [github/ai-ui/shadcn-ui-chatbot-template]
60
+ - Never: Numbered questions in prose
61
+ - **Agent edits to structured data**
62
+ - Build it with: Land as **pending**, with an AI marker plus an accept / undo pair. After a human edit the marker becomes "Revert to agent value". The AI marker is a toggletip with an explainability popover (overview → details → sources → actions), focusable even in read-only controls, and never triggers actions [articles/ai-ux/salesforce-slds-agentic-patterns; articles/ai-ux/carbon-for-ai]
63
+ - Never: Silently overwritten values
64
+ - **Answers**
65
+ - Build it with: Truncated pyramid: the answer and its necessary caveats first, follow-up chips after. "Can't do that" comes first, and "More detail" expands in place. Offer scrutiny follow-ups ("What could make this wrong?") and select-to-ask on any span. Clarifying questions render as a generated form (chips, one question per step), never numbered prose questions [articles/ai-ux/nngroup-ai-ux-research; articles/ai-ux/salesforce-slds-agentic-patterns]
66
+ - **Regenerate and branch**
67
+ - Build it with: Regenerating never destroys output: versions cycle ("2 / 3"). "Branch from here" shows the inherited context, with items that can be unticked [articles/ai-ux/shapeof-ai-pattern-library]
68
+ - Never: Overwriting the previous answer
69
+ - **Feedback**
70
+ - Build it with: Thumbs up and down together, tertiary placement, a "Thanks" confirmation. Detailed options are named by consequence. Act on feedback immediately [articles/ai-ux/salesforce-slds-agentic-patterns; articles/ai-ux/apple-hig-generative-ai]
71
+ - **Composer while running**
72
+ - Build it with: **Stop always visible beside a working Send**: messages sent mid-run queue as steering for the agent. Stop calls a **server stop endpoint** that saves the partial answer and cancels the work (with resumable streams, `stop()` only disconnects). A stopped turn keeps its partial text with a "Stopped by you" badge and Continue / Discard. An optional **Answer now** on the thinking line skips remaining reasoning without stopping the run [youtube/fmZWvE7yDZo; youtube/YNJvm7t3yq8; youtube/RGiXcVxSD3s; github/ai-ui/vercel-ai; github/ai-ui/assistant-ui-assistant-ui; github/ai-ui/ibelick-prompt-kit]
73
+ - Never: A run you can't interrupt or steer
74
+ - **Idle composer**
75
+ - Build it with: Capability chips for tasks the agent does reliably, role templates, and a "/ for skills" hint. After an answer: action buttons that carry the output into the next task or integration. Keep deterministic controls for exact operations [youtube/fmZWvE7yDZo; youtube/L3RuP_q8Bwc]
76
+ - **Agent driving a surface**
77
+ - Build it with: A persistent border or banner around the controlled browser, canvas or document, with Stop, Ask before acting, and Notify me [youtube/L3RuP_q8Bwc]
78
+ - **Memory**
79
+ - Build it with: An inspector showing what's remembered, with delete. A "Saved to memory" chip appears in the turn, with Manage / Undo. Temporary mode shows a persistent "not saved" indicator [youtube/L3RuP_q8Bwc; articles/ai-ux/shapeof-ai-pattern-library]
80
+ - Never: Silent memory
81
+
82
+ **Approvals** [youtube/CDqzWpwkSls; youtube/fmZWvE7yDZo; youtube/WkBPX-oDMnA]:
83
+ - **Tier by cost and risk.** Read-only and cheap tools run unprompted. Writes, sends, spending and irreversible actions need approval. Destructive ones get extra friction. Auto-approved calls render as a status line giving the policy reason.
84
+ - **Answers:** Approve · Reject (with a reason that reaches the model) · Edit arguments (only if the schema allows) · Respond instead. Scoped options (allow once / always, reject once / always) show what they grant before commit. [github/ai-ui/langchain-ai-langgraphjs; github/ai-ui/ag-ui-protocol-ag-ui; github/ai-ui/assistant-ui-assistant-ui]
85
+ - **Lifecycle:**
86
+ - Cancelled and expired are distinct from Deny.
87
+ - Decide whether a new message blocks or cancels a pending approval.
88
+ - Wait for the server to accept before disabling the buttons.
89
+ - Restore pending approvals from thread state after a reload.
90
+ - Several pending approvals get one card each and one combined submit.
91
+ - Approvals are verified on the server (signed or issued); free text never authorizes. [github/ai-ui/ag-ui-protocol-ag-ui; github/ai-ui/assistant-ui-assistant-ui; github/ai-ui/vercel-ai]
92
+ - **Frame the request as a proposal and say what to check:** target, effect, reversibility, evidence. Clear proposal framing substantially improves rejection of bad AI flags (one talk cited Duolingo moving correct rejections from 50% to 71% by rewording alone [unverified: no primary study linked]). A bare Approve / Deny on a high-stakes action invites rubber-stamping.
93
+ - **One decision per approval.** "Is the agent's reading right?" and "should it act?" are separate questions.
94
+ - **Multi-step work:**
95
+ - Approve a numbered plan card first, with the one open question that changes the approach.
96
+ - Then gate step by step.
97
+ - Never "Approve all" on a large diff, and never a confirm on every edit.
98
+ - **Approved then edited is a hidden rejection.** Record what the user does after approving (edits, overrides, retries) as distinct events.
99
+
100
+ **Trace and wait states** [youtube/fmZWvE7yDZo; youtube/maTp79FD9gI; youtube/WkBPX-oDMnA]:
101
+ - Completed lines show elapsed time, plus tokens or cost where users pay for them. Retries say "attempt n". A verifier's verdict is a line before the result.
102
+ - Use the shimmer only for waits that warrant it; short tool calls stay plain lines. Long runs announce "Working…" to screen readers about every 5 s via a polite live region, stopping at completion; errors are announced. [articles/ai-ux/primer-copilot-accessibility-practices]
103
+ - **Wait ladder:** nothing under 1 s; spinners and skeletons appear only after a 300–1000 ms delay; indeterminate for 1–3 s; determinate for 3–10 s; beyond 10 s it becomes a background task that notifies on completion. One spinner per region. First feedback within 100 ms of submit or tool start. On-device models add a "model not ready" stage: determinate download → indeterminate "Loading model" → ready, saying whether the feature works meanwhile. [articles/component-gallery/spinner; articles/clig; github/ai-ui/GoogleChromeLabs-web-ai-demos]
104
+ - **Trace logs collapse on success and expand automatically on failure.** [articles/clig]
105
+ - **Show what the agent removed, in place:** tinted and struck through, or a collapsed "N deleted" row; never only the end state.
106
+ - **Every automatic write announces itself with an Undo** for that action. When users keep overriding a behavior, stop and offer to turn it off. [articles/microsoft-hax G9, G13]
107
+ - **Stop responds instantly** and cleans up within a timeout. A second press force-stops, and the UI says so. [articles/clig] **A dropped connection is not a stop:** show "Reconnecting…" and resume the same message. Stop is an explicit signal that works from every tab or device in the session. [youtube/YNJvm7t3yq8]
108
+ - **End of run:** a state-changing run says what changed and suggests the next action. A failed or stopped run hands off what was done, what's left, and the manual path. [articles/clig; articles/google-pair; articles/microsoft-hax G10]
109
+ - **Confidence** is shown as High / Med / Low or ranked alternatives, each with an action, never a raw percentage. Clarifying questions come in one round, as a ranked choice, only when confidence is in the middle band. [articles/google-pair; articles/microsoft-hax G10-A, G11]
110
+ - **Agent output that varies lives in its own region;** controls people use by habit never move. [articles/google-pair]
111
+ - **Audit log** of agent actions: actor (with agent badge), event, what changed, status, Undo with a stated window ("Undo for 15 min"), date filter, export. Autonomous actions carry "Why: you allowed X". [articles/checklist-design; articles/ai-ux/smashing-agentic-ux-patterns]
112
+ - **Agent-caused errors:** acknowledge → what was corrected → next step → how to reach a human. [articles/ai-ux/smashing-agentic-ux-patterns]
113
+ - **First run:** the agent acts on the user's own data (or a sample) rather than coach marks, and offers example actions for common tasks. [articles/ai-ux/lukew-durable-ai-patterns]
114
+ - **Mark changes where they happen:** highlighted revisions, a jump-to-next-change control, per-change Keep / Undo plus Accept all, and one-click revert in place for proactive edits. [youtube/L3RuP_q8Bwc; youtube/2cEGQEllBGc]
115
+ - **Agent limits end in a human next step** that names who or what can fix it. Agent initiative ("I also noticed…") is labelled apart from the requested work. When the agent is about to make an assumption, it pauses, asks in the same task, and resumes without restarting the run. [youtube/CiMVKnX-CNI; youtube/RGiXcVxSD3s]
116
+ - Run summaries go in teaching order: background → the goal in plain words → details, with prose before each change.
117
+ - **Panels persist.** Hide and show the sidebar, trace inspector, tool-output drawer and settings with `<Activity mode={open ? "visible" : "hidden"}>`, not `{open && …}`, so search text, scroll and expansion survive. Pre-render the likely next view hidden (the next conversation, an approval's detail) so it opens instantly. [youtube/G9xD6lHgrMM]
118
+
119
+ **Delegated and background work** [youtube/RGiXcVxSD3s; youtube/YIVkERhy8xo]:
120
+ - A **task list** with status per task (awaiting input / running / done / failed), an openable trace per task, and a notification when work is done or needs input. Agent-produced values link to their provenance (source + step).
121
+ - An **attention queue**: filter chips All / Awaiting / Working / Idle with counts; rows show the task plus the live last action or "Idle 29m"; one shortcut jumps to the next item awaiting the user.
122
+ - **Review packages** for finished work: changed files plus a visual before/after, side-by-side comparison of parallel attempts, and terminal states (Merged / Cancelled).
123
+ - **Take-over is always possible:** the user can reclaim any task, and a failing agent backs off and returns control.
124
+
125
+ **AI inside non-chat surfaces** [youtube/CiMVKnX-CNI; youtube/2cEGQEllBGc]:
126
+ - Choose the surface per capability:
127
+ - **Invisible:** pre-work.
128
+ - **Ambient:** small markers on the affected field or row.
129
+ - **Inline:** invoke on the selection; dataset-wide changes run as generated code over the data.
130
+ - **Conversational:** only for building or exploring.
131
+ - Proactive help is a *specific* question or proposed change at the object, and is revertible in one click. Never a generic "Ask AI".
132
+
133
+ **Approval ladder** (refines the tiers above) [articles/clig; articles/microsoft-hax G16]:
134
+ 1. Read-only → runs with no prompt.
135
+ 2. Moderate → an inline confirm with a dry-run preview of the effect.
136
+ 3. Severe or irreversible → a blocking dialog with type-to-confirm (the resource name). *Indirect* destruction, such as a config change that deletes nine things, counts as severe. Initial focus goes to the least destructive button.
137
+
138
+ "Always allow" states its scope before the user commits: this session / this workspace / always; the exact command vs. every command of that kind; read vs. write or send. A grant history allows revoking. Autonomy is a user-adjustable ladder that starts low, with four named rungs set per tool category: **Suggest / Propose / Act with confirmation / Act and notify**. When approvals are switched off, a persistent "approvals off" indicator offers one-click re-enable. Approval timeouts warn at least 20 s before expiry and can be extended (WCAG 2.2.1). [youtube/L3RuP_q8Bwc; articles/ai-ux/smashing-agentic-ux-patterns]
139
+
140
+ - **The approval unit is an action card with a lifecycle:** title, one-line effect, Reject / Accept → "Generating preview" → accepted. Collapsed, the line keeps "Accepted by ‹name›" and a rollback note; a failure turns red with Try again. The same component works in chat and inline. Pending or dismissed never mutates data. [youtube/CiMVKnX-CNI; youtube/RGiXcVxSD3s]
141
+ - **Plan cards show estimated duration and cost** (money, tokens, credits) and their scope ("only these sites; I'll ask before anything else"). Steps that hand back say so ("I will stop before checkout"). They have three exits: **Proceed · Edit plan · I'll do it myself**. Use domain verbs, never function names. If execution diverges from the approved plan, flag it on the card. [youtube/L3RuP_q8Bwc; articles/ai-ux/smashing-agentic-ux-patterns]
142
+ - **Thresholds come from outcome costs, not a confidence number:** price a wrong action against asking or refusing, in user recovery time. Costly or irreversible actions confirm even at high confidence. Make confirming cheap with pre-filled choices. [youtube/Zd5b40Jbp_k]
143
+
144
+ **Identity and safety** [articles/agent-ui-written-guides]:
145
+ - **Agent identity:**
146
+ - Every agent-authored artifact carries an agent badge.
147
+ - The responsible human is shown on delegated work.
148
+ - The four states (thinking / waiting for input / executing / done) are readable at a glance.
149
+ - An invocation is acknowledged immediately.
150
+ - **Model output is untrusted user content:**
151
+ - Sanitize the *accumulated* stream (DOMPurify), not individual chunks.
152
+ - If the sanitizer removes anything, stop rendering.
153
+ - Append nodes instead of rewriting `innerHTML` / `textContent` on every chunk.
@@ -0,0 +1,106 @@
1
+ ## 5. Motion
2
+ [articles/emil-kowalski-*; .claude/skills/emil-design-eng, animate, review-animations]
3
+
4
+ **Easing:**
5
+
6
+ | Motion | Easing |
7
+ | --- | --- |
8
+ | Enter or exit | ease-out |
9
+ | Moving or morphing on screen | ease-in-out |
10
+ | Hover | ease |
11
+ | Constant motion | linear |
12
+ | Draggable, throwable or reversible mid-flight | spring |
13
+
14
+ - Never use `ease-in` for UI.
15
+ - Use the strong curves, never improvised approximations [github/emilkowalski-skills]:
16
+ - Enter and exit: `cubic-bezier(0.23, 1, 0.32, 1)`
17
+ - On-screen moves: `cubic-bezier(0.77, 0, 0.175, 1)`
18
+ - Drawers: `cubic-bezier(0.32, 0.72, 0, 1)`
19
+ - **Springs** [youtube/HaZ2jw9rx9M; youtube/gttSJA-kDmQ]:
20
+ - Specify a spring as duration + bounce: Motion `{ type: "spring", visualDuration, bounce }`, or CSS `linear()` baked from the same two numbers. Never raw stiffness / damping / mass.
21
+ - Bounce defaults to 0; about 0.15 is brisk; up to 0.3 for momentum-carrying gestures; never above 0.4. Something opened by a tap gets 0; something dismissed by a swipe may get a little.
22
+ - Fire follow-up work (focus, unmount) at the spring's perceptual duration, not when it settles.
23
+
24
+ **Duration:**
25
+
26
+ | Element | Duration |
27
+ | --- | --- |
28
+ | Micro-interactions | 100–150 ms |
29
+ | Tooltips, dropdowns | 150–250 ms |
30
+ | Modals, drawers | 200–300 ms |
31
+
32
+ - Keep UI motion under 300 ms; Rauno caps interactions at about 200 ms.
33
+ - Exits run about 20% faster than entrances.
34
+ - Choreography: 30–80 ms steps, under about 300 ms in total, never uniform, one entrance per container, never blocking interaction. [.claude/skills/choreograph]
35
+ - **Page transitions** may exceed 300 ms if legibility doesn't wait: cap *time to legible*, not total time. Use short distances, and sequence whole-view cross-fades (old out, then new in) rather than overlapping them. Delba's route slide is 400 ms ease-out over 60 px, with old out in 150 ms and new in over 210 ms after a 150 ms delay; readable at about 360 ms. [youtube/UuUAeWpz2NA]
36
+
37
+ **Details:**
38
+ - `scale(0.97)` on `:active`.
39
+ - Enter from `scale(0.95)` plus opacity (range 0.9–0.97), never `scale(0)`. Modals stay centered; popovers scale from their trigger.
40
+ - Origin-aware popovers: `transform-origin: var(--transform-origin)` in Base UI, the Radix variable in Radix.
41
+ - Only the first tooltip in a group gets a delay; later ones open instantly.
42
+ - Animate a child element to avoid hover flicker.
43
+ - A little blur (under 20 px; 2 px for crossfades) to smooth state changes. Fast-moving content gets a few px of motion blur on entry, or travels a shorter distance. [youtube/gttSJA-kDmQ]
44
+ - Don't force one curve on every property: position, scale and radius may finish at different times. [youtube/HaZ2jw9rx9M]
45
+ - **Interruptible means velocity-preserving.** A reversed or retargeted animation continues from its current velocity. CSS transitions retarget only position; springs also carry velocity, so use springs for anything the user can reverse mid-flight. Never keyframes for interactive state. [youtube/HaZ2jw9rx9M; github/vercel-labs-web-interface-guidelines]
46
+ - **Gestures** [youtube/gttSJA-kDmQ; .claude/skills/gestures]:
47
+ - Track the finger 1:1. Keep the grab offset (never re-center). Keep a velocity history.
48
+ - About 10 px before a drag starts, then lock the axis.
49
+ - Highlight on `pointerdown`; commit on `pointerup`; generous hit slop. Press-to-activate controls cancel when dragged out, but sliders and scrubbers keep the drag alive outside the track. [articles/rauno-invisible-details-interaction-design]
50
+ - Reversible gestures may commit mid-gesture; destructive ones commit only on release. Apply the change from the first pixel and animate only past the threshold.
51
+ - Choose the release target by **momentum projection**: `project(v) = (v/1000)·0.998/(1−0.998)`. Snap to the point nearest `pos + project(v)` and hand `v` to the spring. Distance thresholds alone make flicks snap back.
52
+ - Rubber-band at the edges.
53
+ - Recognize competing gestures in parallel. No double-tap handlers where single taps matter, since they add about 0.5 s to every tap.
54
+ - Hint toward the outcome during the press, and keep enter and exit paths symmetric.
55
+ - Use Vaul rather than a hand-built sheet.
56
+
57
+ **When to animate**, gated by frequency before choosing any curve [youtube/vjP8bNs8aok; youtube/z3Lo5QT7nME]:
58
+
59
+ | Frequency | Motion |
60
+ | --- | --- |
61
+ | 100+ times a day; anything keyboard-initiated, including Escape-to-close and ⌘K | None |
62
+ | Tens of times a day | Minimal |
63
+ | Occasional (dialogs, toasts) | Standard |
64
+ | Rare (onboarding, first success) | Delight is allowed |
65
+
66
+ Skills still miss this: with every rule installed, an agent animated Escape. Check it by hand.
67
+
68
+ - Animate in response to a user action (open, expand, confirm), to show what changed.
69
+ - Ambient motion only to draw attention: one orchestrated moment, not scattered effects.
70
+ - **Spatial consistency:** things enter from and return to where they live (popover ↔ trigger, sheet ↔ edge). [youtube/z3Lo5QT7nME]
71
+ - **Match strength to importance:** work tools are fast and predictable; bounce reads playful; overshoot is only for must-notice changes. Rules are defaults with reasons (Sonner deliberately uses 400 ms `ease`). [youtube/z3Lo5QT7nME]
72
+ - **State-to-state:** morph one container while content cross-fades with blur; roll digits rather than swapping them; make each step a legible state (button → form → loading → done). [youtube/ofoVCws7gFs]
73
+ - **Perceived performance:** spend the animation budget where users wait anyway (uploads, agent runs), and make everything else instant. [youtube/z3Lo5QT7nME]
74
+ - **Exits:** Material and NN/g use accelerating exits; for product UI we follow Emil (ease-out exits). Everyone agrees exits are shorter than entrances. [youtube/UcXWY057YuQ]
75
+ - Data the user is reading doesn't re-animate on refresh.
76
+ - Reduced motion means gentler, not zero: keep opacity and color, drop movement. Drive slide distance through `--slide-distance` and set it to `0` under `prefers-reduced-motion: reduce`. [youtube/UuUAeWpz2NA] **Exception:** spinners and progress indicators keep moving (subtly), because a frozen spinner reads as stalled. [articles/component-gallery/spinner] Decorative shimmer, generative borders and carousel slides are not progress indicators: they stop. Persistent ambient animation gets a pause control. [articles/ai-ux/google-connected-apps-guidelines; articles/ai-ux/atlassian-rovo-ai-guidelines]
77
+ - A sent message rises out of the composer (opacity and translateY only). [articles/ai-ux/atlassian-rovo-ai-guidelines]
78
+ - Motion origin encodes source: a tool-detail panel grows out of its trace row. Adaptive updates highlight the small part that changed; they never reshuffle the whole view. [articles/rauno; articles/microsoft-hax G14]
79
+ - Gate hover effects with `@media (hover: hover) and (pointer: fine)`.
80
+
81
+ **Performance** [.claude/skills/animation-performance]:
82
+ - Animate `transform` and `opacity` only; never `transition: all`.
83
+ - Per-frame values go to `ref.current.style`, not React state.
84
+ - Don't animate inherited CSS variables.
85
+ - Add `will-change` only after you've seen the glitch.
86
+ - **Layout changes** (reorder, accordion siblings, an expanding trace row) animate with Motion `layout` / `layoutId` or a View Transition, never `width`/`height`. The problem is visual (text re-wraps, pixels snap), not only performance. Scope `layout` narrowly: projection runs on the main thread and stutters while streamed content renders. [youtube/5-JIu0u42Jc]
87
+
88
+ **Platform first, the cheapest tool that works** [youtube/UcXWY057YuQ]:
89
+ - `@starting-style` + `transition-behavior: allow-discrete` (with `display`, `overlay`) for dialogs and popovers.
90
+ - `interpolate-size: allow-keywords` / `::details-content` for accordions. This is the only sanctioned height animation.
91
+ - View Transitions for **discrete** changes only: a route change, a filter applied, an item added or removed [youtube/QA5f2loqtM4; youtube/G9xD6lHgrMM; youtube/UuUAeWpz2NA; youtube/GDkFiog1D1c]:
92
+ - **They can't be interrupted.** A second transition skips the first to its end. Anything that can be triggered rapidly or reversed uses springs, Motion `layout` or additive animation instead.
93
+ - **A document-level transition blocks input.** Add `::view-transition { pointer-events: none }`, or use element-scoped `el.startViewTransition()` (feature-detect) for panels inside a live, streaming app.
94
+ - **In React**, trigger only through `startTransition` / `<ViewTransition>`, never `document.startViewTransition` + `flushSync`. Give persistent chrome (header, sidebar, composer) its own named `<ViewTransition>` so it doesn't slide. Express direction with `addTransitionType` (`nav-forward` / `nav-back`).
95
+ - **Named elements keep their aspect ratio** (`width: fit-content`). Otherwise set `object-fit: none; object-position: top left` on `::view-transition-old/new`.
96
+ - **Live content** (a streaming message, an avatar) hides the old snapshot and doesn't animate the new one. Target enter-only and exit-only parts with `:only-child`.
97
+ - **Size-changing groups run on the main thread.** If one janks, rewrite it to translate + scale and confirm in a performance trace.
98
+ - **Scrolling** [youtube/vPb7d28RFNE]:
99
+ - Every nested scroller (thread, trace panel, code block) gets `overscroll-behavior: contain`.
100
+ - `scroll-behavior: smooth` and programmatic smooth scrolling only under `prefers-reduced-motion: no-preference`; this covers MessageScroller's auto-follow and jump-to-latest.
101
+ - Scrollbars use `scrollbar-color` with `light-dark()` and are never `thin` on primary scrollers. The thumb takes the accent on `:focus-within`.
102
+ - Scroll shadows and edge fades use scroll-driven animations as progressive enhancement; prefer `scroll-state()` queries to JS scroll listeners.
103
+ - **Feedback:** hover and focus *raise* contrast; disabled is 50% opacity with no shadow. Never fade an element the user is about to click.
104
+ - **Slow-motion check** to end every motion pass: DevTools → Animations at 10–25%, scrub each transition, and inspect the `::view-transition` tree. A broken transition degrades to a plain fade that passes a full-speed glance.
105
+ - Scroll-driven animations only as progressive enhancement.
106
+ - A CSS transition before reaching for motion.
@@ -0,0 +1,121 @@
1
+ ## 5a. Motion graphics and video
2
+ Scope: anything rendered to MP4 (launch films, explainers, social clips, docs videos, UI motion captured as video). **§5's 300 ms caps and frequency gates do not apply here; these do.** Rendered video has different physics: the viewer can't interact, sees each beat once, and the clock is music or voice. Evidence:
3
+ `TimothyVang/frontend:reference/youtube/747ZnEtsRbg/` (Lukas Margerie's Opus 5.5 harness), `TimothyVang/frontend:reference/youtube/aD9X6Lc3dVk/` (Matt Penny's 10 repos), `TimothyVang/frontend:reference/github/motion-graphics/_batch-motion-graphics-repos.md` (engines, prompt packs, stack), and `TimothyVang/frontend:reference/youtube/channels/_batch-motion-graphics.md` (both creators' channels).
4
+
5
+ **The prompt is about 10% of the result; the harness is the other 90%:** brand assets, style rules, beat grid, springs, critique loop, sound. [youtube/747ZnEtsRbg 1:02]
6
+
7
+ 1. **Render contract.**
8
+ - Every frame is a pure function of time: `useCurrentFrame()` in Remotion, `seek(t)` in HyperFrames, `window.seek(t)` in plain HTML. No CSS transitions, timers, `requestAnimationFrame` accumulation, `Date.now()`, unseeded random, or integrated physics (bake physics to a per-frame table).
9
+ - Frames render alone and in parallel through headless Chrome, then ffmpeg.
10
+ - **One timeline file** is the single source of truth for picture, music, SFX, captions and checks. Write times in beats or sections; round to frames only at the end.
11
+ - Left alone, Opus builds a zero-dependency single-HTML pipeline, so **name the engine and install its skill**.
12
+ - **Cache every stage artifact to disk** (script, scene list, images, narration, timings) and render through a fixed template that only swaps inputs, so reruns are cheap and never regenerate approved assets by accident. [youtube/channels/_batch-motion-graphics pass 2]
13
+ - [github/motion-graphics/remotion-dev-remotion; github/motion-graphics/heygen-com-hyperframes; github/motion-graphics/lemomo-ai-lemo-opuscar; youtube/747ZnEtsRbg 2:19]
14
+ 2. **Plan in words, then gate:**
15
+ - Three storylines in words → a spec (goal, output, time, look, objects, motion, shots, **Banned**, QA) with **a number for every adjective** → a storyboard listing each shot's *reads* → a beat map.
16
+ - Show the beat map plus about 6 stills, or a contact sheet of one frame per beat, **before the full render**.
17
+ - Workflow gates: plan → rig → stills → animatic → full pass → polish → audio → render. [github/motion-graphics/heygen-com-hyperframes; github/motion-graphics/JohnHeibel-ClaudeAnimationBase; youtube/747ZnEtsRbg 16:42]
18
+ - **Re-edits start from scratch.** An agent that has seen the source quietly reuses its earlier cut, so say so explicitly ("make these motion graphics from scratch; don't look at any earlier edit of this source"). [youtube/channels/_batch-motion-graphics pass 2]
19
+ 3. **Director's brief** (the prompt skeleton every strong pack shares) [github/motion-graphics/yihui-dev-awesome-opus5-5-videos; youtube/747ZnEtsRbg 12:44, 17:44]:
20
+ - **Inputs:** product URL, real assets pulled with Playwright, fonts, one accent, format(s), music.
21
+ - **Direction:** the film in one line, references (keep their grammar, never their content), and a **Banned** list that grows after every render.
22
+ - **Structure:** BPM, bars, "something happens on every beat".
23
+ - **Build rules and gotchas.**
24
+ - **Gate.**
25
+ - **Deliverables:** final MP4, loop check, poster frame, contact sheet, source with a README.
26
+ 4. **Timing (video, not UI)** [github/motion-graphics/diffusionstudio-editor; github/motion-graphics/Vincentwei1021-video-shotcraft; github/motion-graphics/heygen-com-hyperframes]:
27
+
28
+ | Element | Duration |
29
+ | --- | --- |
30
+ | Entrance | about 400 ms |
31
+ | Exit | about 200 ms, 25–50% shorter than the entrance |
32
+ | Single move | ≤ 600 ms |
33
+ | Fast move | 0.3–0.6 s, with motion blur |
34
+ | Words / list items | 60–120 ms / 40–80 ms apart |
35
+ | Text hold | 0.3 s per word + 0.5 s (last line ≥ 2 s) |
36
+ | Wordmark hold | ≥ 1 s |
37
+ | Stillness before the payoff | 0.3–0.75 s |
38
+ | Something new | every 2–4 s; a slow zoom alone doesn't count, so cap stills at about 4 s or land a caption, graphic or cut inside longer shots |
39
+
40
+ **First drafts run too fast**: budget the holds first. Landed text is **dead still**; motion moves elsewhere (staged reveals, a camera with intent, the UI working).
41
+ 5. **Easing by role:**
42
+ - Arrivals long-tailed (`cubic-bezier(0.16, 1, 0.3, 1)` / `expo.out`); camera moves in-out; exits accelerate.
43
+ - Springs at damping 0.7–0.85 for a premium feel, 1.0 for product UI. Opacity and color never bounce.
44
+ - Choose one motion voice per brand (energy × tone preset) and keep it across entrances, transitions and holds. [github/motion-graphics/Vincentwei1021-video-shotcraft; github/motion-graphics/heygen-com-hyperframes]
45
+ 6. **Transitions have a cause:**
46
+ - Use 3–5 kinds per film, each carried by an on-screen object (zoom through a button, object becomes the world, morph, whip, iris from the click).
47
+ - Exit and entry vectors match; cut mid-motion. Worlds never crossfade.
48
+ - Hard cuts only on action, on the beat, or between layout forms (≤ 1/3 of seams).
49
+ - A strong pattern: **one element that never cuts**, where a button morphs through loader → check → chart and back into the button as a seamless loop. [youtube/747ZnEtsRbg 12:17; youtube/aD9X6Lc3dVk]
50
+ 7. **Beat sync** [github/motion-graphics/librosa-librosa; youtube/747ZnEtsRbg 14:49–15:04]:
51
+ - At 120 BPM, 1 beat = 0.5 s, 1 bar = 2 s, and 15 s = 30 beats. Scenes run 3–4 beats.
52
+ - Downbeats carry scene changes; beats carry SFX; onset peaks place the hits.
53
+ - Fit the beat grid with librosa (least-squares, ≤ 15 ms residual) into `beats.json`. Big moments (logo, CTA) land on downbeats.
54
+ - At most 3 full-frame impacts per film.
55
+ - Verify cut error ≤ 3 frames on the rendered file.
56
+ 8. **Sound is half the film:**
57
+ - Three layers: bed, foley on visible actions, music. Every effect has a visible cause: a click per cursor press, a whoosh per container morph, one riser → impact.
58
+ - Rotate takes. Cinematic timbres, never game or meme sounds.
59
+ - Master at −14 LUFS, ≤ −1 dBTP. SFX peaks land one frame after the picture.
60
+ - Use a licensed or user-supplied track by default; synthesize music in code only for stylized pieces, and measure it. [github/motion-graphics/_batch-motion-graphics-repos contradictions]
61
+ 9. **Launch films show the real product doing one real task:**
62
+ - Real UI only (captured at 2× or rendered from real components and tokens). Establish → isolate the action at 1.6–2× → return the result.
63
+ - The cursor is 4–7% of the frame, and its click fires the next beat.
64
+ - The first frame is the thumbnail (never black or a lone logo). The end card sits in the last 5–10%, with the CTA held 1.5–3 s.
65
+ - Creator reports favor results-based films over effects-heavy ones (claimed ~10× [unverified: no public benchmark or denominator]). [github/motion-graphics/heygen-com-hyperframes; github/motion-graphics/Vincentwei1021-video-shotcraft]
66
+ 10. **Type floors, measured on the rendered frame:**
67
+ - Captions ≥ 56 px effective at 1080; secondary text ≥ 28–32 px; headline ≥ 84 px at 1080 wide.
68
+ - ≤ 6 words a line, one line at a time; check at 360–480 px width.
69
+ - Rewrite the copy rather than shrink the type.
70
+ 11. **Review a film by looking, not by reading code:**
71
+ - Contact sheet → consecutive-frame strips around each key move and seam → full-resolution crops of text → one full-speed viewing with sound.
72
+ - Then a clean-context reviewer who gets only the storyboard and sheets.
73
+ - Write **timestamped notes** (`t · where · problem → change · what stays`) ranked P0–P2, and fix the worst three per round, for at least three rounds.
74
+ - **No numeric film scores** (Lukas's 7–8+ score loop is the dissent): a score finds nothing to fix.
75
+ - The model can't watch in real time, so a human watches the final cut. [github/motion-graphics/heygen-com-hyperframes; youtube/747ZnEtsRbg 18:42]
76
+ 12. **Stack:**
77
+ - **Remotion** for React/TS codebases (reuses existing components and tokens; its license is free for companies of up to 3 people, otherwise a company license).
78
+ - **HyperFrames** (Apache-2.0) as the permissive alternative.
79
+ - **Three.js / R3F** for 3D, Rapier baked per frame for physics, postprocessing sparingly.
80
+ - **librosa** for beats; Blender MCP for photoreal hero objects.
81
+ - One *motion* engine per composition. Compositing pre-rendered clips in an editor (CapCut, DaVinci) is fine. Full table: `TimothyVang/frontend:reference/github/motion-graphics/_batch-motion-graphics-repos.md`.
82
+ 13. **Pipeline safety:** deny `.env` reads, keep MCP sockets on localhost, disable skill telemetry, scope paid-API permissions. [github/motion-graphics/ahujasid-mcp-for-blender; github/motion-graphics/heygen-com-hyperframes]
83
+
84
+ **From the creators' channels** (101 videos from Lukas Margerie and Matt Penny, each read in full) [youtube/channels/_batch-motion-graphics]:
85
+ 14. **Keep a video manifest the agent rereads every run:**
86
+ - `design.md`: logo, hex palette, one typeface with weights, real UI screenshots.
87
+ - `frames.md`: how things move, i.e. text in and out, transition types, shot lengths, camera moves, pacing, subtitle style, SFX density.
88
+ - The Banned list.
89
+
90
+ Build it by reverse-engineering videos you already approved. **Lock the theme across generated stills:** pass the previous image (or a character or product reference) into each new generation as the style reference, because a style reference alone drifts. Fix palette, mood and font per video.
91
+ 15. **An asset bank with a dictionary:** each file maps to what it shows or sounds like and when to use it, covering real screenshots, logos, icons, licensed fonts, footage and SFX. Never AI-drawn logos or icons.
92
+ 16. **Reference grammar from frames:** download the reference, sample a frame every 0.5 s (denser where edits happen), then write a style guide and a shot list. Pick a reference in the same format.
93
+ 17. **Voice-over first.** Word-level timestamps place every graphic on its word; captions stay editable text. Overlays never cover the speaker's face (compute a face-safe zone). Split multi-speaker audio into one track per speaker that keeps silence while the other talks, so each avatar or layout lines up without manual cutting. SFX go in last, after QA.
94
+ 18. **Shot budget:**
95
+ - About 6–8 shots per 15 s; generated-video shots run 4–10 s.
96
+ - The hook lands within 3 s; edits are densest at the start.
97
+ - Generate one shot per call so a bad shot regenerates alone.
98
+ - Chain generated clips from each previous clip's real last frame.
99
+ - Iterate on stills, not video, and render a 15 s proof before a long cut.
100
+ - **One visual at a time:** a B-roll image never lands on top of an active motion graphic unless its placement is specified.
101
+ - **Narrated stills:** about 225 words per 90 s (2.5 words/s), structured hook → open loop → story → payoff. Cut silences longer than 0.4 s.
102
+ - **Camera and text instructions are requests, not guarantees.** Video models have zoomed in when asked to zoom out and burned in subtitles unless told "Don't put in subtitles". Constrain with start and end frames, and check direction and text on every clip.
103
+ 19. **Critique adds a fresh checker:** a separate agent checks overlaps, text size, spelling, the face zone, icons and dead stretches. Both creators score 1–10 and fix anything below 8. Keep §5a.11's timestamped notes as the record; a score may serve only as the stop condition. Expect many rounds (one showcased film took 163 calls and about 7 h).
104
+ 20. **Models and knobs:**
105
+ - Opus 5.5 on high is a practical default. Reserve Fable 5.2 for planning, frame-by-frame reference analysis, or multi-hour 3D builds (single-creator report: ~2× price, ~5× slower, and max effort scoring lower at ~3× cost [unverified: workload-specific, re-test on your own renders]).
106
+ - Tier models by task: the top model only for the motion-graphics and beat pass, where the hard part is choosing what to emphasize; cheaper tiers for setup, cuts, subtitles and images.
107
+ - Expose tweakable values (blur, opacity, timing) as editor or Remotion props instead of re-prompting.
108
+ - Once a look works, save it as a skill that asks for URL, duration and format, and update it after each revision round.
109
+ 21. **Scroll-scrubbed marketing sections (Persuade surfaces only):**
110
+ - Separate depth layers, or a scrubbed generated video, driven by scroll position, never timers.
111
+ - Sticky pinning: every ancestor stays `overflow: visible`.
112
+ - Parallax within about 15% speed difference; no hover or cursor effects on touch.
113
+ - Under `prefers-reduced-motion`, one poster frame per section with plain text and a working CTA.
114
+ - **Sticky video recipe:**
115
+ - A full-viewport video sits sticky at z 0 inside a fixed scroll runway (about 2,000 px).
116
+ - Text swaps by scroll variant (zero bounce, about 0.7 s).
117
+ - The next section overlaps with rounded top corners.
118
+ - Passed sections dim to opacity 0.2 through an exit state, because scroll transforms can't express exits.
119
+ - On phones, drop sticky and horizontal scroll entirely.
120
+ - This widens §5's "scroll-driven only as progressive enhancement" for marketing pages; product UI stays under §5.
121
+ 22. **Video embedded in product UI:** muted autoplay only when it's decorative, captions on, a pause control, and a poster frame under reduced motion.
@@ -0,0 +1,48 @@
1
+ ## 6. Typography and layout
2
+ [anthropic frontend-design skill; articles/emil-kowalski-*]
3
+ - **Fonts:**
4
+ - Choose typefaces deliberately for this brief.
5
+ - Use one or two families; if two, make them clearly distinct.
6
+ - Use a real type scale with intentional weights.
7
+ - **Text:**
8
+ - Body text about 65ch (never more than 80).
9
+ - Serif body gets slightly more line-height.
10
+ - `tabular-nums` for numeric columns.
11
+ - `…`, not `...`.
12
+ - Loosen tracking on any uppercase.
13
+ - Fallback fonts with a metric match to avoid layout shift.
14
+ - **Emphasis:** underlines only on links; bold for UI emphasis; italic for citation or stress.
15
+ - **Hierarchy by de-emphasis** [youtube/EjEYTRD-W-M; youtube/7Z9rrryIOC4]:
16
+ - Exactly three text tones (primary / secondary / tertiary). Reach for weight and color before size.
17
+ - Drop a label when the value's format already says what it is.
18
+ - Group headings are small, bold and soft.
19
+ - An app page title is about the size of its key values, not a marketing `h1`.
20
+ - For agent consoles: the answer is primary, the tool name secondary, trace metadata tertiary.
21
+ - **Action hierarchy:**
22
+ - One solid primary per view; secondary is outline or soft fill; tertiary is a text link.
23
+ - Repeated row actions get the soft treatment.
24
+ - Red is primary only inside the destructive confirm step. In a tool approval, Approve is primary and Deny secondary.
25
+ - **Icons:** one set, one style, one step lighter than the adjacent text.
26
+ - **Structure:**
27
+ - Structure is information: borders, numbering, eyebrows and dividers must encode something real.
28
+ - Separate things with spacing → alignment → a background tint → a border, in that order. Start too airy and remove space.
29
+ - Spacing on a 4 px grid. Schoger's 6/30 px steps are rejected.
30
+ - **Type scale:**
31
+ - App surfaces use a fixed scale (12/14/16/18/20/24/30/36/48), with body at 16/1.5 and tighter leading as size grows.
32
+ - Persuade surfaces may use a fluid `clamp()` scale.
33
+ - **Font mechanics** [youtube/n0iAYEpU0Fk]:
34
+ - Re-tune size and weight when swapping families, because x-height differs.
35
+ - `font-optical-sizing: auto`. Real italics only.
36
+ - `text-box: trim-both cap alphabetic` for optically centered badges and buttons, as progressive enhancement.
37
+ - If you use Inter: self-hosted 4.x, extra tracking below 14 px.
38
+ - **Layout by container, not viewport** [youtube/_njUxg5UfR0]:
39
+ - `@media` only for page chrome. Components use `container-type: inline-size` + `@container`; agent-console and IDE panes are user-resized.
40
+ - Content-aware variants use scoped `:has()` (never `:root:has()`).
41
+ - Logical properties for RTL.
42
+ - `cqw` + `clamp()` for in-between sizes.
43
+ - **Depth and finish** [github/pbakaus-impeccable; github/vercel-labs-web-interface-guidelines]:
44
+ - A 4–5 step elevation scale mapped to element type (input → dropdown → panel → modal): a tight ambient shadow plus a larger downward-offset direct shadow, alpha around .08, tinted toward the background hue. Raised panels are lighter than the page (white on about 2% darker). [youtube/7Z9rrryIOC4]
45
+ - Semi-transparent borders.
46
+ - Concentric radii: a child's radius is no larger than its parent's.
47
+ - Theme the browser surfaces too: `::selection`, caret, scrollbars, focus ring, `color-scheme`, `theme-color`.
48
+ - **More type hygiene:** `text-wrap: balance` on headings; about −0.02em tracking on large headings; no weight change on hover; `Intl.*` for numbers and dates; a non-breaking space in `10 MB` and `⌘ K`.
@@ -0,0 +1,26 @@
1
+ ## 6a. Color
2
+ [youtube/_batch-visual-design: kfVUlR9BnYQ, pQ0asU6mB1I, vGfTyHPWZLE, u5okJ0VvQwk]
3
+ 1. **OKLCH for everything.** HSL lightness lies about perceived brightness. Derive every state with relative color syntax rather than hand-picking swatches:
4
+ - Hover: `oklch(from var(--c) calc(l + 0.1) c h)`.
5
+ - Tint: `oklch(from var(--c) 90% calc(c / 2) h)`.
6
+ - Same-hue shadow: `oklch(from var(--c) l c h / .3)`.
7
+ - Gradients: `linear-gradient(in oklch, …)`.
8
+ 2. **Palettes are formulas.** One shared lightness scale for every hue (e.g. 98.5/95/92/87/80/75/68/59/44/39/25/15%). Chroma peaks mid-scale and tapers at both ends.
9
+ - Chroma budget: 0.05–0.1 muted; 0.1–0.2 for large areas; 0.2–0.3 vibrant; above 0.3 is P3-only and reserved for the one standout moment.
10
+ 3. **Neutrals carry the brand hue** at chroma of about 0.01–0.06. Dark backgrounds are tinted too, never `#000`.
11
+ 4. **Status colors share L and C and differ only in hue.** Check them in greyscale: all should read equally loud.
12
+ 5. **Text on color uses the surface's hue:** lighter on dark fills, darker on bright fills. Badges are a light tint with dark same-hue text.
13
+ 6. **Three token tiers:**
14
+ - Tier 1 primitives (`--color-blue-500`) are never used in components.
15
+ - Tier 2 semantic roles (`--bg-subtle`, `--fg-muted`, `--border-strong`, `--bg-knockout`) are what components consume.
16
+ - Tier 3 component tokens are rare.
17
+
18
+ A theme is a set of tier-2 assignments. **Rebrand test:** one token remap, zero component CSS changes. Mapping [INFERENCE]: Tailwind `@theme` palette = tier 1; shadcn `--primary` / `--muted-foreground` = tier 2.
19
+ 7. **Dark mode is a tier-2 remap with compensation, not an inversion:**
20
+ - A less saturated seed; secondary text lifted more than tertiary; accent tints more opaque.
21
+ - Lower grade or weight for light-on-dark text.
22
+ - A class for the user toggle, plus `prefers-color-scheme` for the OS setting.
23
+ - Inverted bands in a light page (a dark code block) get their own `knockout` tokens. They aren't a dark theme.
24
+ 8. **Verify contrast with a tool** on every role pair. Formulas make contrast predictable, not guaranteed. WCAG AA is the floor; APCA Lc targets help when choosing steps.
25
+ 9. **Lint it:** no raw palette utilities (`bg-zinc-*`, `text-blue-500`) or hex literals in component files.
26
+ 10. **Check support** for relative color syntax, `text-box`, style queries and anchor positioning before shipping without fallbacks.
@@ -0,0 +1,11 @@
1
+ ## 7. Copy
2
+ [anthropic frontend-design skill; vercel]
3
+ - Write from the user's side, in the user's terms ("notifications", not "webhook config").
4
+ - Sentence case (chosen for this repo over Vercel's Title Case), active voice, plain verbs, no filler.
5
+ - A CTA names its result ("Save changes", not "Submit"). The name stays consistent through the flow ("Publish" produces the toast "Published").
6
+ - Destructive actions use Verb + Noun and never "OK" or "Confirm". A dialog's title and its primary button share the verb ("Delete project?" → "Delete project"). Explain what deletion does *before* the confirm. Offer undo when it can honestly be supported. [articles/component-gallery/modal; articles/checklist-design]
7
+ - Errors say what happened and how to fix it; they don't apologize and aren't vague. Upload errors are specific ("The file must be smaller than 2 MB").
8
+ - Empty states invite the next action. There are three kinds: nothing yet (educate), no results (adjust the query), failed to load (plain, no jokes). [articles/checklist-design; articles/component-gallery/empty-state]
9
+ - **Accessible names:** distinguishing word first (usually a verb), 1–3 words, never the role word, no trailing period. A switch's label never changes with its state. [articles/wai-aria-apg]
10
+ - **Hedging tracks real reliability** ("is" vs "may"). No human persona framing for the agent: no "think", "understand" or "feel" in system copy, and no "Great question!". AI labels are verb-first and user-initiated ("Summarize with agent"); disclosure labels name the action ("Rewritten by agent"); attributions say "Because you…". [articles/microsoft-hax G2; articles/google-pair; articles/ai-ux/microsoft-agents-copilot-mcp-apps; articles/ai-ux/atlassian-rovo-ai-guidelines]
11
+ - In-progress labels end with `…` ("Saving…").
@@ -0,0 +1,63 @@
1
+ ## 8. Quality floor (always, unannounced)
2
+ [anthropic frontend-design skill; vercel; .claude/skills/web-design-guidelines]
3
+ - Responsive down to mobile. Visible keyboard focus. Reduced motion respected. Contrast at WCAG AA.
4
+ - Accessible names on icon buttons and inputs.
5
+ - 44 px minimum hit areas.
6
+ - Preserve user input through errors.
7
+ - Design every reachable state: loading, empty, sparse, populated, validation, error, permission, disabled, optimistic, stale, destructive, responsive.
8
+ - No nested modals, with one exception: a discard-changes confirm over a form dialog. Prefer inline disclosure to modals. Radios over a select for 2–5 options; a combobox only when the list needs search. [articles/component-gallery/modal; articles/component-gallery/combobox]
9
+ - **Focus and composite widgets** [articles/wai-aria-apg]:
10
+ - Composite widgets (toolbar, tabs, listbox, grid, tree) have one tab stop with arrow keys inside.
11
+ - Focus never falls to `body`: after a delete, the next item; after a close, the opener.
12
+ - Focus looks different from selection.
13
+ - Disabled items inside composites stay focusable via `aria-disabled`.
14
+ - No positive `tabindex`.
15
+ - Tooltips go only on interactive elements, wired via `aria-labelledby` / `aria-describedby`.
16
+ - Tab state lives in the URL.
17
+ - **Shortcuts:** avoid modifier + Tab / Enter / Space / Escape. Every shortcut target is also reachable by navigation, so ⌘K's command menu needs a visible trigger. [articles/wai-aria-apg]
18
+ - **Data tables** are a `<table>` unless cells are interactive, in which case they're an ARIA grid [articles/wai-aria-apg/grid; articles/component-gallery/table]:
19
+ - Right-align comparable numbers; start-align IDs; never center text.
20
+ - An empty state replaces the whole table, headers included.
21
+ - **Panes and scrolling:** panes work at 320–360 px and cap content width on wide windows. A scroll stays with the region where it started, so a hovered side pane never steals the wheel from a streaming thread. [articles/app-type-guides; articles/rauno]
22
+ - **Sensitive content** is blurred when the app is backgrounded. No telemetry without consent. [articles/rauno; articles/clig]
23
+ - **Accessibility, verified in the accessibility tree** [youtube/ob_M_qXeDVE]:
24
+ - Check role, name and state on every interactive element; do a screen-reader pass when semantics change.
25
+ - Name order: visible text → `<label>` / native attribute → `aria-labelledby` → `aria-label` last. No `title` (except on `iframe`). Decorative icons are `aria-hidden`.
26
+ - Custom checkboxes, radios and switches keep the native input positioned over the visual at hit-area size with `opacity: 0`. Never visually-hidden or off-canvas, because touch exploration can't find it.
27
+ - Disclosures expose state (`aria-expanded`, or native `<details>` / popover). Hover or focus content must be dismissible and hoverable (WCAG 1.4.13).
28
+ - A popover is not a modal. Anything with a backdrop is a dialog: trap focus, make the background inert, return focus to the opener.
29
+ - **AI is optional:** the core task works with AI off, and the UI discloses when data leaves the device. External links carry an icon and a destination label; regulated steps (payment, identity) hand off explicitly. [articles/ai-ux/apple-hig-generative-ai; articles/ai-ux/google-connected-apps-guidelines]
30
+ - **Focus after thread changes:** deleting a thread or artifact moves focus to the previous item; creating one moves it to its composer or first control. Repeated row buttons are named "Manage: {title}"; state goes in ARIA, never in the name. [articles/ai-ux/primer-copilot-accessibility-practices]
31
+ - **Agent-surface acceptance checks** [youtube/YNJvm7t3yq8; youtube/QrMcNe2jjt8]:
32
+ - Refreshing mid-stream resumes with no lost or duplicated tokens; so does going offline and back online.
33
+ - A second tab mirrors the in-flight run, and Stop from another tab works.
34
+ - Running each generative-UI request 3–4 times gives the same layout and labels.
35
+ - **Streaming performance** [youtube/uAmRtE52mYk]:
36
+ - Never hold the thread (messages, tool calls, token deltas) in one root context value. Use a store with per-message subscriptions.
37
+ - Enable React Compiler and virtualize long threads (in SvelteKit or other frameworks, use fine-grained reactive subscriptions and list virtualization).
38
+ - Park hidden panels with React `<Activity>` (or equivalent state-preserving visibility toggle in non-React frameworks).
39
+ - Use transitions or optimistic updates for non-urgent work.
40
+ - Stress-test with worst-case data: long names, one-letter names, huge counts, empty lists [.claude/skills/break-ui]:
41
+ - Decide per field whether text wraps, truncates at the end, truncates in the middle (filenames, emails) or clamps.
42
+ - Never truncate numbers.
43
+ - `min-w-0` on flex children.
44
+ - **Forms** [github/vercel-labs-web-interface-guidelines; github/raunofreiberg-interfaces]:
45
+ - Clickable labels; `autocomplete` plus the correct `type` / `inputmode`; inputs at least 16 px on mobile.
46
+ - Never block paste. Keep submit enabled until the request starts. In-place settings may disable Save until something changes; never disable it for validation. [articles/checklist-design]
47
+ - Validate on blur, never per keystroke; clear the error when the field regains focus. A single field or inline save focuses the field with the error; a multi-field submit focuses an error summary at the top that links to each field (GOV.UK). Warn about unsaved changes. [articles/app-type-guides; articles/checklist-design]
48
+ - Multi-step forms validate per step, keep later answers on Back, and end with a review step.
49
+ - **Feedback next to its trigger:**
50
+ - Copy confirms with an inline checkmark, not a toast.
51
+ - Optimistic updates roll back on failure.
52
+ - Async messages use `aria-live="polite"`.
53
+ - The URL reflects UI state.
54
+ - **Mobile baseline before the first component** [.claude/skills/mobile-native]:
55
+ - `viewport-fit=cover`, `interactive-widget=resizes-content`, a per-scheme `theme-color`.
56
+ - `touch-action: manipulation`, `100dvh`, safe-area insets.
57
+ - `overscroll-behavior` only under `(pointer: fine)`, to keep pull-to-refresh.
58
+ - **Native ports** (when an app ships native clients; optional private-repo detail in `TimothyVang/frontend:reference/articles/app-type-guides.md`):
59
+ - platform target sizes: 48 dp Android, 60 pt visionOS, 66 pt tvOS (44 px stays the web floor);
60
+ - native body text sizes: 13 pt macOS, 14 epx Windows;
61
+ - Wear OS black backgrounds (an exception to "never #000").
62
+
63
+ The full ~60 deltas from the free-source batch, including the ones not adopted here, are in `TimothyVang/frontend:reference/articles/_batch-free-sources.md`.
@@ -0,0 +1,13 @@
1
+ ## 9. Steering agents (meta)
2
+ [articles/vercel-agents-design-guidance; articles/anthropic-harness-*]
3
+ - Always-loaded `AGENTS.md` rules trigger more reliably than optional skills (one Vercel write-up cited 100% vs 53–79% [unverified: no primary eval URL archived]). Still keep `AGENTS.md` short (~200 lines max per `skill://agent-harnesses/references/delegation-efficiency.md`): inline only universal invariants and route detailed workflows to skills.
4
+ - "Explore the project first, then load the skill" works better than "MUST invoke the skill first".
5
+ - Write observable rules ("Destructive CTAs use Verb + Noun"), not adjectives ("clean", "polished").
6
+ - Criteria wording steers the look: words like "museum quality" pull every design toward one style.
7
+ - When a rule is mechanically checkable, make it a lint rule rather than more prose.
8
+ - **Prompt with vocabulary:** name effects (pop-in, stagger, morph, rubber-band, origin-aware) and moves (bolder, quieter, distill, polish). Narrow each request to one section and add a feel constraint ("count up, fast and professional"). [.claude/skills/animation-vocabulary; youtube/vjP8bNs8aok; youtube/r2P1v64pM28]
9
+ - Package house effects as parameterized skills (effect, intensity, personality) and improve them after each use. [youtube/TbZjOrrZIVk]
10
+ - If a project defines heavy explicit-only UI skills (for example animation review, library selection, or UI prototyping in its own `.claude/skills/` or `.agents/skills/` — not bundled in deepmodebot), load them by path so names like `prototype` do not collide with user-level skills.
11
+ - **Steer design revisions with named verbs** that have project-specific meanings (bolder = hierarchy, scale and type, never gradients, glass or neon; harden = devices, edge cases, performance). No auto mode: a human chooses each steer. [youtube/v42opQpCy60]
12
+ - **Use shapeof.ai pattern names as shared vocabulary** in prompts ("Action Plan", "Stream of Thought: plan / execution / evidence", "Sample response before Auto-fill"). [articles/ai-ux/shapeof-ai-pattern-library]
13
+ - **One flat accent means "agent acting now"** (§6a): never a gradient, never on idle UI. Brand color only on the primary CTA and badges; status colors only for operational status. [articles/ai-ux/atlassian-rovo-ai-guidelines; articles/ai-ux/openai-apps-sdk-ui-guidelines]
@@ -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.