@cohortapp/agent-sdk 2.11.15 → 2.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/.env.example +37 -22
  2. package/README.md +2 -0
  3. package/bin/maestro.mjs +117 -39
  4. package/bin/maestro.test.mjs +175 -5
  5. package/docs/guides/front-door-session.md +313 -0
  6. package/docs/guides/mac-mini.md +100 -28
  7. package/docs/guides/org-onboarding.md +1 -1
  8. package/docs/guides/setup-wizard.md +9 -5
  9. package/docs/runbooks/cohort-cutover.md +11 -1
  10. package/docs/runbooks/mac-mini-bootstrap.md +38 -63
  11. package/lib/cadence-bus-requeue.test.mjs +83 -0
  12. package/lib/cadence-bus.mjs +43 -7
  13. package/lib/channels/inbox-item.mjs +59 -2
  14. package/lib/cli/board.mjs +285 -0
  15. package/lib/cli/board.test.mjs +227 -0
  16. package/lib/cli/design.mjs +185 -0
  17. package/lib/cli/design.test.mjs +270 -0
  18. package/lib/cli/doctor-checks.mjs +441 -0
  19. package/lib/cli/doctor-checks.test.mjs +336 -0
  20. package/lib/cli/global-setup-extras.mjs +454 -0
  21. package/lib/cli/global-setup-extras.test.mjs +462 -0
  22. package/lib/cli/inbox.mjs +304 -0
  23. package/lib/cli/inbox.test.mjs +230 -0
  24. package/lib/cli/session-ack.mjs +63 -0
  25. package/lib/cli/session-ack.test.mjs +63 -0
  26. package/lib/cli/session.mjs +760 -0
  27. package/lib/cli/session.test.mjs +613 -0
  28. package/lib/collective/global-config.mjs +209 -6
  29. package/lib/collective/global-config.test.mjs +145 -0
  30. package/lib/collective/global-skills.mjs +145 -0
  31. package/lib/collective/global-skills.test.mjs +126 -0
  32. package/lib/collective/presence.mjs +4 -3
  33. package/lib/collective/vendor-skills.mjs +305 -0
  34. package/lib/collective/vendor-skills.test.mjs +306 -0
  35. package/lib/comms/send-gate.mjs +115 -0
  36. package/lib/comms/send-gate.test.mjs +113 -0
  37. package/lib/design/design-md.mjs +793 -0
  38. package/lib/design/design-md.test.mjs +318 -0
  39. package/lib/design/fixtures/DESIGN.golden.md +238 -0
  40. package/lib/design/fixtures/PRODUCT.golden.md +67 -0
  41. package/lib/design/fixtures/foundation.json +133 -0
  42. package/lib/design/refresh-gate.mjs +154 -0
  43. package/lib/design/refresh-gate.test.mjs +144 -0
  44. package/lib/design/write.mjs +275 -0
  45. package/lib/design/write.test.mjs +241 -0
  46. package/lib/feature-init.mjs +2 -2
  47. package/lib/mcp/server.test.mjs +9 -4
  48. package/lib/model-router/spawn.test.mjs +21 -0
  49. package/lib/org/board-mine-cache.mjs +99 -0
  50. package/lib/org/board-mine-cache.test.mjs +53 -0
  51. package/lib/org/board.mjs +11 -0
  52. package/lib/org/board.test.mjs +11 -1
  53. package/lib/org/client.mjs +36 -0
  54. package/lib/org/client.test.mjs +46 -0
  55. package/lib/org/inbound/directedness.mjs +18 -2
  56. package/lib/org/inbound/directedness.test.mjs +58 -0
  57. package/lib/org/inbound/index.mjs +8 -1
  58. package/lib/org/inbound/index.test.mjs +22 -0
  59. package/lib/org/mesh-directives.test.mjs +110 -0
  60. package/lib/org/mesh.mjs +61 -1
  61. package/lib/org/protocol.checksum +1 -1
  62. package/lib/org/protocol.mjs +52 -0
  63. package/lib/org/protocol.test.mjs +12 -1
  64. package/lib/org/registry.mjs +3 -2
  65. package/lib/org/tool-surface.mjs +120 -0
  66. package/lib/org/tool-surface.test.mjs +118 -5
  67. package/lib/prompts/parallelism.mjs +79 -0
  68. package/lib/prompts/parallelism.test.mjs +177 -0
  69. package/lib/security/external-content.mjs +1 -1
  70. package/lib/security/external-content.test.mjs +17 -0
  71. package/lib/session/config.mjs +137 -0
  72. package/lib/session/config.test.mjs +92 -0
  73. package/lib/session/feed-core.mjs +229 -0
  74. package/lib/session/feed-core.test.mjs +198 -0
  75. package/lib/session/first-run.mjs +126 -0
  76. package/lib/session/first-run.test.mjs +121 -0
  77. package/lib/session/frontdoor.mjs +266 -0
  78. package/lib/session/frontdoor.test.mjs +205 -0
  79. package/lib/session/handoffs.mjs +295 -0
  80. package/lib/session/handoffs.test.mjs +183 -0
  81. package/lib/session/identity.mjs +220 -0
  82. package/lib/session/identity.test.mjs +180 -0
  83. package/lib/session/inbox-claims.mjs +434 -0
  84. package/lib/session/inbox-claims.test.mjs +286 -0
  85. package/lib/session/launch-args.mjs +161 -0
  86. package/lib/session/launch-args.test.mjs +157 -0
  87. package/lib/session/liveness.mjs +174 -0
  88. package/lib/session/liveness.test.mjs +100 -0
  89. package/lib/session/status-summary.mjs +172 -0
  90. package/lib/session/status-summary.test.mjs +118 -0
  91. package/lib/session-permissions.mjs +39 -3
  92. package/lib/session-permissions.test.mjs +20 -0
  93. package/lib/setup/claude-probe.mjs +161 -24
  94. package/lib/setup/claude-probe.test.mjs +187 -0
  95. package/lib/setup/sections/learning.mjs +2 -1
  96. package/lib/setup/sections/model.mjs +104 -24
  97. package/lib/setup/sections/model.test.mjs +240 -0
  98. package/lib/setup/sections/org.mjs +27 -2
  99. package/lib/setup/sections/org.test.mjs +35 -2
  100. package/lib/setup/sections/verify.mjs +5 -0
  101. package/lib/setup/state.mjs +30 -10
  102. package/lib/setup/state.test.mjs +24 -1
  103. package/lib/singleton.js +11 -3
  104. package/lib/singleton.test.mjs +16 -0
  105. package/lib/subagents/lock.mjs +1 -1
  106. package/lib/telemetry/collect.mjs +270 -6
  107. package/lib/telemetry/collect.test.mjs +196 -1
  108. package/lib/upgrade/global-refresh.mjs +108 -0
  109. package/lib/upgrade/global-refresh.test.mjs +65 -0
  110. package/lib/upgrade/launchd-reconcile.mjs +327 -0
  111. package/lib/upgrade/launchd-reconcile.test.mjs +272 -0
  112. package/lib/upgrade/post-steps.mjs +151 -0
  113. package/lib/upgrade/post-steps.test.mjs +200 -0
  114. package/lib/upgrade/verify.mjs +215 -0
  115. package/lib/upgrade/verify.test.mjs +164 -0
  116. package/lib/voice/outbound.mjs +3 -2
  117. package/lib/voice/post-call-brief.mjs +2 -1
  118. package/lib/voice/session-rotation.mjs +6 -1
  119. package/lib/voice/session-rotation.test.mjs +114 -0
  120. package/package.json +3 -3
  121. package/plugins/maestro-skills/plugin.json +25 -1
  122. package/plugins/maestro-skills/skills/board-work.md +63 -0
  123. package/plugins/maestro-skills/skills/cohort-design.md +153 -0
  124. package/plugins/maestro-skills/skills/inbound-triage.md +80 -0
  125. package/plugins/maestro-skills/skills/main-session.md +102 -0
  126. package/plugins/maestro-skills/skills/peer-sessions.md +65 -0
  127. package/plugins/maestro-skills/skills/persona-discipline.md +75 -0
  128. package/plugins/maestro-skills/vendor/emilkowalski/LICENSE +21 -0
  129. package/plugins/maestro-skills/vendor/emilkowalski/UPSTREAM.json +70 -0
  130. package/plugins/maestro-skills/vendor/emilkowalski/skills/animate/RECIPES.md +324 -0
  131. package/plugins/maestro-skills/vendor/emilkowalski/skills/animate/SKILL.md +199 -0
  132. package/plugins/maestro-skills/vendor/emilkowalski/skills/animation-vocabulary/SKILL.md +173 -0
  133. package/plugins/maestro-skills/vendor/emilkowalski/skills/apple-design/SKILL.md +282 -0
  134. package/plugins/maestro-skills/vendor/emilkowalski/skills/emil-design-eng/SKILL.md +674 -0
  135. package/plugins/maestro-skills/vendor/emilkowalski/skills/find-animation-opportunities/SKILL.md +132 -0
  136. package/plugins/maestro-skills/vendor/emilkowalski/skills/improve-animations/AUDIT.md +115 -0
  137. package/plugins/maestro-skills/vendor/emilkowalski/skills/improve-animations/PLAN-TEMPLATE.md +73 -0
  138. package/plugins/maestro-skills/vendor/emilkowalski/skills/improve-animations/SKILL.md +101 -0
  139. package/plugins/maestro-skills/vendor/emilkowalski/skills/prototype/PICKER.md +197 -0
  140. package/plugins/maestro-skills/vendor/emilkowalski/skills/prototype/SKILL.md +90 -0
  141. package/plugins/maestro-skills/vendor/emilkowalski/skills/review-animations/SKILL.md +112 -0
  142. package/plugins/maestro-skills/vendor/emilkowalski/skills/review-animations/STANDARDS.md +187 -0
  143. package/plugins/maestro-skills/vendor/impeccable/LICENSE +191 -0
  144. package/plugins/maestro-skills/vendor/impeccable/NOTICE.md +11 -0
  145. package/plugins/maestro-skills/vendor/impeccable/SKILL.md +86 -0
  146. package/plugins/maestro-skills/vendor/impeccable/UPSTREAM.json +201 -0
  147. package/plugins/maestro-skills/vendor/impeccable/agents/impeccable-asset-producer.md +42 -0
  148. package/plugins/maestro-skills/vendor/impeccable/agents/impeccable-documenter.md +29 -0
  149. package/plugins/maestro-skills/vendor/impeccable/agents/impeccable-finish-reviewer.md +43 -0
  150. package/plugins/maestro-skills/vendor/impeccable/agents/impeccable-manual-edit-applier.md +97 -0
  151. package/plugins/maestro-skills/vendor/impeccable/reference/adapt.md +312 -0
  152. package/plugins/maestro-skills/vendor/impeccable/reference/adapt.native.md +58 -0
  153. package/plugins/maestro-skills/vendor/impeccable/reference/android.md +46 -0
  154. package/plugins/maestro-skills/vendor/impeccable/reference/animate.md +89 -0
  155. package/plugins/maestro-skills/vendor/impeccable/reference/audit.md +136 -0
  156. package/plugins/maestro-skills/vendor/impeccable/reference/audit.native.md +139 -0
  157. package/plugins/maestro-skills/vendor/impeccable/reference/bolder.md +33 -0
  158. package/plugins/maestro-skills/vendor/impeccable/reference/clarify.md +94 -0
  159. package/plugins/maestro-skills/vendor/impeccable/reference/colorize.md +86 -0
  160. package/plugins/maestro-skills/vendor/impeccable/reference/craft-floor.md +44 -0
  161. package/plugins/maestro-skills/vendor/impeccable/reference/craft.md +5 -0
  162. package/plugins/maestro-skills/vendor/impeccable/reference/critique.md +806 -0
  163. package/plugins/maestro-skills/vendor/impeccable/reference/degraded/asset-producer.md +37 -0
  164. package/plugins/maestro-skills/vendor/impeccable/reference/degraded/documenter.md +24 -0
  165. package/plugins/maestro-skills/vendor/impeccable/reference/degraded/finish-reviewer.md +38 -0
  166. package/plugins/maestro-skills/vendor/impeccable/reference/degraded/manual-edit-applier.md +92 -0
  167. package/plugins/maestro-skills/vendor/impeccable/reference/delight.md +70 -0
  168. package/plugins/maestro-skills/vendor/impeccable/reference/distill.md +111 -0
  169. package/plugins/maestro-skills/vendor/impeccable/reference/doctor.md +54 -0
  170. package/plugins/maestro-skills/vendor/impeccable/reference/document.md +416 -0
  171. package/plugins/maestro-skills/vendor/impeccable/reference/extract.md +69 -0
  172. package/plugins/maestro-skills/vendor/impeccable/reference/harden.md +336 -0
  173. package/plugins/maestro-skills/vendor/impeccable/reference/hooks.md +111 -0
  174. package/plugins/maestro-skills/vendor/impeccable/reference/init.md +131 -0
  175. package/plugins/maestro-skills/vendor/impeccable/reference/ios.md +51 -0
  176. package/plugins/maestro-skills/vendor/impeccable/reference/layout.md +84 -0
  177. package/plugins/maestro-skills/vendor/impeccable/reference/live-setup.md +104 -0
  178. package/plugins/maestro-skills/vendor/impeccable/reference/live.md +325 -0
  179. package/plugins/maestro-skills/vendor/impeccable/reference/new-work.md +147 -0
  180. package/plugins/maestro-skills/vendor/impeccable/reference/onboard.md +234 -0
  181. package/plugins/maestro-skills/vendor/impeccable/reference/operate.md +61 -0
  182. package/plugins/maestro-skills/vendor/impeccable/reference/optimize.md +258 -0
  183. package/plugins/maestro-skills/vendor/impeccable/reference/overdrive.md +127 -0
  184. package/plugins/maestro-skills/vendor/impeccable/reference/polish.md +105 -0
  185. package/plugins/maestro-skills/vendor/impeccable/reference/quieter.md +99 -0
  186. package/plugins/maestro-skills/vendor/impeccable/reference/routing.md +24 -0
  187. package/plugins/maestro-skills/vendor/impeccable/reference/shape.md +59 -0
  188. package/plugins/maestro-skills/vendor/impeccable/reference/typeset.md +80 -0
  189. package/plugins/maestro-skills/vendor/impeccable/reference/visualize.md +46 -0
  190. package/plugins/maestro-skills/vendor/taste-skill/LICENSE +21 -0
  191. package/plugins/maestro-skills/vendor/taste-skill/UPSTREAM.json +37 -0
  192. package/plugins/maestro-skills/vendor/taste-skill/skills/minimalist-skill/SKILL.md +85 -0
  193. package/plugins/maestro-skills/vendor/taste-skill/skills/redesign-skill/SKILL.md +178 -0
  194. package/plugins/maestro-skills/vendor/taste-skill/skills/soft-skill/SKILL.md +98 -0
  195. package/plugins/maestro-skills/vendor/taste-skill/skills/taste-skill/SKILL.md +1206 -0
  196. package/plugins/maestro-skills/vendor/unlazy/LICENSE +21 -0
  197. package/plugins/maestro-skills/vendor/unlazy/SECURITY.md +72 -0
  198. package/plugins/maestro-skills/vendor/unlazy/SKILL.md +104 -0
  199. package/plugins/maestro-skills/vendor/unlazy/UPSTREAM.json +94 -0
  200. package/plugins/maestro-skills/vendor/unlazy/references/dispatch.md +82 -0
  201. package/plugins/maestro-skills/vendor/unlazy/references/gates.md +149 -0
  202. package/plugins/maestro-skills/vendor/unlazy/references/method.md +49 -0
  203. package/plugins/maestro-skills/vendor/unlazy/references/orchestration.md +107 -0
  204. package/plugins/maestro-skills/vendor/unlazy/references/parallel.md +133 -0
  205. package/plugins/maestro-skills/vendor/unlazy/references/token-economy.md +48 -0
  206. package/plugins/maestro-skills/vendor/unlazy/scripts/dispatch-check.mjs +139 -0
  207. package/plugins/maestro-skills/vendor/unlazy/scripts/gate-check.mjs +960 -0
  208. package/plugins/maestro-skills/vendor/unlazy/scripts/gate-lint.mjs +245 -0
  209. package/plugins/maestro-skills/vendor/unlazy/scripts/lib/check-supervisor.mjs +46 -0
  210. package/plugins/maestro-skills/vendor/unlazy/scripts/lib/dispatch.mjs +293 -0
  211. package/plugins/maestro-skills/vendor/unlazy/scripts/lib/gates.mjs +953 -0
  212. package/plugins/maestro-skills/vendor/unlazy/scripts/lib/process-tree.mjs +161 -0
  213. package/plugins/maestro-skills/vendor/unlazy/scripts/lib/regex-worker.mjs +9 -0
  214. package/plugins/maestro-skills/vendor/unlazy/templates/PLAN.md +116 -0
  215. package/plugins/maestro-skills/vendor/unlazy/templates/gates-leaf.md +51 -0
  216. package/plugins/maestro-skills/vendor/unlazy/templates/gates-node.md +51 -0
  217. package/scaffold/CLAUDE.md +24 -0
  218. package/scripts/ci/check-durable-write-seam.mjs +147 -0
  219. package/scripts/ci/check-durable-write-seam.test.mjs +90 -0
  220. package/scripts/ci/check-skill-packs.mjs +388 -0
  221. package/scripts/ci/check-skill-packs.test.mjs +495 -0
  222. package/scripts/ci/check.mjs +6 -0
  223. package/scripts/collective/hook-runner.mjs +39 -4
  224. package/scripts/collective/hook-runner.test.mjs +85 -2
  225. package/scripts/daemon/agent-daemon-board-mine.test.mjs +96 -0
  226. package/scripts/daemon/agent-daemon-design.test.mjs +238 -0
  227. package/scripts/daemon/agent-daemon-frontdoor.test.mjs +60 -0
  228. package/scripts/daemon/agent-daemon.mjs +249 -10
  229. package/scripts/daemon/agent-daemon.test.mjs +73 -0
  230. package/scripts/daemon/assurance-e2e.test.mjs +141 -6
  231. package/scripts/daemon/assurance.mjs +461 -37
  232. package/scripts/daemon/assurance.test.mjs +408 -43
  233. package/scripts/daemon/cadence-consumer-frontdoor.test.mjs +393 -0
  234. package/scripts/daemon/cadence-consumer.mjs +289 -89
  235. package/scripts/daemon/cadence-handlers.mjs +53 -0
  236. package/scripts/daemon/classifier.mjs +1 -1
  237. package/scripts/daemon/dispatcher-resume.test.mjs +166 -0
  238. package/scripts/daemon/dispatcher.mjs +127 -19
  239. package/scripts/daemon/health.mjs +12 -1
  240. package/scripts/daemon/inbox-deferral-session.test.mjs +49 -0
  241. package/scripts/daemon/inbox-deferral.mjs +6 -0
  242. package/scripts/daemon/lib/self-echo.mjs +201 -0
  243. package/scripts/daemon/lib/self-echo.test.mjs +153 -0
  244. package/scripts/daemon/maestro-daemon.mjs +3 -0
  245. package/scripts/daemon/prompt-builder.mjs +19 -3
  246. package/scripts/daemon/responder.mjs +51 -40
  247. package/scripts/daemon/sdk-version.mjs +51 -0
  248. package/scripts/daemon/sdk-version.test.mjs +31 -0
  249. package/scripts/hooks/pre-send-audit.sh +97 -4
  250. package/scripts/hooks/pre-send-audit.test.mjs +140 -1
  251. package/scripts/local-triggers/autoupdate.sh +243 -19
  252. package/scripts/local-triggers/autoupdate.test.mjs +518 -0
  253. package/scripts/local-triggers/generate-plists.sh +24 -1
  254. package/scripts/local-triggers/generate-plists.test.mjs +49 -11
  255. package/scripts/org/send-orgmail.first-contact.test.mjs +102 -0
  256. package/scripts/org/send-orgmail.mjs +27 -3
  257. package/scripts/poller/inbox-privilege-injection.test.mjs +167 -0
  258. package/scripts/poller/slack-poller.mjs +13 -1
  259. package/scripts/poller/utils.mjs +46 -1
  260. package/scripts/poller-launchd/install.sh +19 -11
  261. package/scripts/poller-launchd/install.test.mjs +243 -0
  262. package/scripts/poller-launchd/launchd-poller-wrapper.sh +92 -0
  263. package/scripts/poller-launchd/migrate.sh +66 -0
  264. package/scripts/poller-launchd/poller.plist.template +4 -2
  265. package/scripts/session/feed.mjs +237 -0
  266. package/scripts/session/feed.test.mjs +196 -0
  267. package/scripts/session/supervisor-sh.test.mjs +218 -0
  268. package/scripts/session/supervisor.mjs +328 -0
  269. package/scripts/session/supervisor.sh +141 -0
  270. package/scripts/session/supervisor.test.mjs +482 -0
  271. package/scripts/setup/configure-macos.sh +250 -55
  272. package/scripts/setup/configure-macos.test.mjs +306 -0
  273. package/scripts/setup/init-agent.sh +112 -7
  274. package/scripts/setup/init-agent.test.mjs +220 -1
  275. package/scripts/vendor/skill-packs.mjs +354 -0
  276. package/scripts/vendor/sync-skill-packs.mjs +242 -0
  277. package/scripts/vendor/sync-skill-packs.test.mjs +103 -0
  278. package/scripts/watchdog/memory-watchdog.sh +37 -1
  279. package/scripts/watchdog/memory-watchdog.test.mjs +64 -0
  280. package/scripts/setup/boot-claude-session.sh +0 -94
@@ -0,0 +1,70 @@
1
+ {
2
+ "repo": "emilkowalski/skills",
3
+ "sha": "d23d7f88a2e21c9e4b1418c7abe420f5c1052ba7",
4
+ "date": "2026-08-21",
5
+ "license": "MIT",
6
+ "files": [
7
+ {
8
+ "path": "LICENSE",
9
+ "sha256": "4ff5bdb7887ec1435c9cab0e8d1a7caee704d894d65c2a008ccc68b1cc2f260b"
10
+ },
11
+ {
12
+ "path": "skills/animate/RECIPES.md",
13
+ "sha256": "21ff63d84391db8d96ecdf9170095f55a42c836ccc36fd3269c4772bab031ba2"
14
+ },
15
+ {
16
+ "path": "skills/animate/SKILL.md",
17
+ "sha256": "f6317335da2662e92270dc0a6128bea95d7216cd751f86628e3ac6b72804e805"
18
+ },
19
+ {
20
+ "path": "skills/animation-vocabulary/SKILL.md",
21
+ "sha256": "d718b48fe3c7898804d588f050a2e266d82c9f5ef51da256c8cb8b5951527757"
22
+ },
23
+ {
24
+ "path": "skills/apple-design/SKILL.md",
25
+ "sha256": "11840b24a11d7f94f39c6aaab074750ae4e4de4ef54ee4b1dd97e16ebd485e61"
26
+ },
27
+ {
28
+ "path": "skills/emil-design-eng/SKILL.md",
29
+ "sha256": "e71de849347050c2c573c1cf24d742d5a13459557ecffa6e562f08006f46b5b7"
30
+ },
31
+ {
32
+ "path": "skills/find-animation-opportunities/SKILL.md",
33
+ "sha256": "91c1243164057fbf824088d12faea937878a757a7ac653e8288b775e8b27b882"
34
+ },
35
+ {
36
+ "path": "skills/improve-animations/AUDIT.md",
37
+ "sha256": "551c8473e20e5f4774680bc24d45e1c68e50992582720905c6b077756b7b5a55"
38
+ },
39
+ {
40
+ "path": "skills/improve-animations/PLAN-TEMPLATE.md",
41
+ "sha256": "0a08ac8e23fd2082d7ffb86aeed7b789de77328c3cf874b16f1a755f2ef0a6ad"
42
+ },
43
+ {
44
+ "path": "skills/improve-animations/SKILL.md",
45
+ "sha256": "68f17bbc4671593d2f43dba26a679243e2153ba5f26965fb7d59df52842534ff"
46
+ },
47
+ {
48
+ "path": "skills/prototype/PICKER.md",
49
+ "sha256": "31a55eec94715cc79942e91e172e539e3031dcd5e2e5ee7c1446cf2caee960a6"
50
+ },
51
+ {
52
+ "path": "skills/prototype/SKILL.md",
53
+ "sha256": "2ad8401c4deaddb54947fb65247f790e7b3d8784e35312bcbedbfb1d59cd89ce"
54
+ },
55
+ {
56
+ "path": "skills/review-animations/SKILL.md",
57
+ "sha256": "61cf8ac0c4c8e1f63385298c546b16c65ca9aec34abddcd04e821c16712d671d"
58
+ },
59
+ {
60
+ "path": "skills/review-animations/STANDARDS.md",
61
+ "sha256": "e7d3605034acda54ca13e43aec9e64d65b53de20f75b11b8d694e373012fbe07"
62
+ }
63
+ ],
64
+ "omitted": [
65
+ "skills/pick-ui-library — library choice is Cohort's, settled in the product repo",
66
+ "skills/ask-sonner — a single third-party toast library's API",
67
+ "skills/write-swift, skills/animate-expo — native platforms this fleet does not ship"
68
+ ],
69
+ "notes": "MIT. Motion and design-engineering craft. Precedence sits below Cohort's DESIGN.md for tokens and type; these govern easing, duration and restraint."
70
+ }
@@ -0,0 +1,324 @@
1
+ # Animation Recipes
2
+
3
+ Ready-to-build implementations for the cases that come up most. Start from the recipe, then adapt — don't rebuild from scratch.
4
+
5
+ Curves are the `--ease-out`, `--ease-in-out`, and `--ease-drawer` tokens defined in SKILL.md.
6
+
7
+ ---
8
+
9
+ ## Button press
10
+
11
+ Any pressable element. Instant feedback that the interface heard the user.
12
+
13
+ ```css
14
+ .button {
15
+ transition: transform 160ms var(--ease-out);
16
+ }
17
+
18
+ .button:active {
19
+ transform: scale(0.97);
20
+ }
21
+ ```
22
+
23
+ `scale()` scales children too — the label and icons come along, which is what makes it read as a physical press.
24
+
25
+ No hover gating needed here: `:active` is a real press on touch. Gate any `:hover` styling separately.
26
+
27
+ ---
28
+
29
+ ## Dropdown, popover, menu, select
30
+
31
+ Scales out of its trigger, not out of thin air.
32
+
33
+ ```css
34
+ .popover {
35
+ transform-origin: var(--transform-origin); /* Base UI supplies this */
36
+ transition:
37
+ opacity 200ms var(--ease-out),
38
+ transform 200ms var(--ease-out);
39
+ }
40
+
41
+ .popover[data-starting-style],
42
+ .popover[data-ending-style] {
43
+ opacity: 0;
44
+ transform: scale(0.95);
45
+ }
46
+ ```
47
+
48
+ The `transform-origin` is the whole point — the panel should look like it came out of the thing you clicked.
49
+
50
+ ---
51
+
52
+ ## Tooltip
53
+
54
+ Same shape as a popover, faster, plus the detail most implementations miss.
55
+
56
+ ```css
57
+ .tooltip {
58
+ transform-origin: var(--transform-origin);
59
+ transition:
60
+ transform 125ms var(--ease-out),
61
+ opacity 125ms var(--ease-out);
62
+ }
63
+
64
+ .tooltip[data-starting-style],
65
+ .tooltip[data-ending-style] {
66
+ opacity: 0;
67
+ transform: scale(0.97);
68
+ }
69
+
70
+ /* Once one tooltip is open, neighbours open instantly */
71
+ .tooltip[data-instant] {
72
+ transition-duration: 0ms;
73
+ }
74
+ ```
75
+
76
+ The initial delay prevents accidental activation. After that, skipping both the delay and the animation makes the whole toolbar feel faster.
77
+
78
+ ---
79
+
80
+ ## Modal
81
+
82
+ The one popover that stays centered.
83
+
84
+ ```css
85
+ .modal {
86
+ transform-origin: center; /* exempt — not anchored to a trigger */
87
+ transition:
88
+ opacity 250ms var(--ease-out),
89
+ transform 250ms var(--ease-out);
90
+ }
91
+
92
+ .modal[data-starting-style],
93
+ .modal[data-ending-style] {
94
+ opacity: 0;
95
+ transform: scale(0.96);
96
+ }
97
+
98
+ .backdrop {
99
+ transition: opacity 250ms var(--ease-out);
100
+ }
101
+ ```
102
+
103
+ Animate the backdrop's opacity alongside it so they read as one surface.
104
+
105
+ ---
106
+
107
+ ## Drawer / sheet
108
+
109
+ ```css
110
+ .drawer {
111
+ transform: translateY(0);
112
+ transition: transform 500ms var(--ease-drawer);
113
+ }
114
+
115
+ .drawer[data-closed] {
116
+ transform: translateY(100%);
117
+ }
118
+ ```
119
+
120
+ This is how Vaul hides a drawer before animating it in.
121
+
122
+ Add drag and it becomes a gesture problem — see **Drag to dismiss** below.
123
+
124
+ ---
125
+
126
+ ## Toast
127
+
128
+ ```css
129
+ .toast {
130
+ opacity: 1;
131
+ transform: translateY(0);
132
+ transition:
133
+ opacity 400ms ease,
134
+ transform 400ms ease;
135
+
136
+ @starting-style {
137
+ opacity: 0;
138
+ transform: translateY(100%);
139
+ }
140
+ }
141
+ ```
142
+
143
+ - `ease` rather than `ease-out`, slightly slower than typical UI: Sonner reads as elegant partly because its motion is tuned to the component's personality rather than to the generic UI budget.
144
+ - If `@starting-style` isn't available, fall back to the mount flag:
145
+
146
+ ```jsx
147
+ useEffect(() => { setMounted(true); }, []);
148
+ // <div data-mounted={mounted}>
149
+ ```
150
+
151
+ When toasts stack and the list reflows, the opacity change has to work against the height change. There's no formula for that pair — adjust until it feels right, then check it again the next day.
152
+
153
+ ---
154
+
155
+ ## Accordion / collapse
156
+
157
+ ```css
158
+ .content {
159
+ overflow: hidden;
160
+ transition:
161
+ height 200ms var(--ease-out),
162
+ opacity 200ms var(--ease-out);
163
+ }
164
+ ```
165
+
166
+ Keep it short — this is one of the few animations that costs layout on every frame, so a long duration is expensive as well as sluggish. Measure the content height in JS (or use a headless primitive that supplies it) rather than animating to `auto`.
167
+
168
+ ---
169
+
170
+ ## Stagger a group entrance
171
+
172
+ For a list or grid the user sees occasionally — not for a list they scroll past all day.
173
+
174
+ ```css
175
+ .item {
176
+ opacity: 0;
177
+ transform: translateY(8px);
178
+ animation: fadeIn 300ms var(--ease-out) forwards;
179
+ }
180
+
181
+ .item:nth-child(2) { animation-delay: 50ms; }
182
+ .item:nth-child(3) { animation-delay: 100ms; }
183
+ .item:nth-child(4) { animation-delay: 150ms; }
184
+
185
+ @keyframes fadeIn {
186
+ to {
187
+ opacity: 1;
188
+ transform: translateY(0);
189
+ }
190
+ }
191
+ ```
192
+
193
+ Stagger is decorative — it must never block interaction while it plays.
194
+
195
+ ---
196
+
197
+ ## Hold to confirm
198
+
199
+ For destructive actions where a plain click is too easy to fire by accident.
200
+
201
+ ```css
202
+ .overlay {
203
+ clip-path: inset(0 100% 0 0);
204
+ transition: clip-path 200ms var(--ease-out); /* release: snappy */
205
+ }
206
+
207
+ .button:active .overlay {
208
+ clip-path: inset(0 0 0 0);
209
+ transition: clip-path 2s linear; /* press: slow and deliberate */
210
+ }
211
+
212
+ .button:active {
213
+ transform: scale(0.97);
214
+ }
215
+ ```
216
+
217
+ `linear` is correct here — the fill is a progress indicator, and progress shouldn't ease.
218
+
219
+ ---
220
+
221
+ ## Tab indicator with a color transition
222
+
223
+ Timing individual color transitions across a tab list never quite lands. Clip instead.
224
+
225
+ Duplicate the tab list. Style the copy as the active state — different background, different text color. Clip the copy so only the active tab shows, and animate the clip on change:
226
+
227
+ ```css
228
+ .tabs-active-copy {
229
+ clip-path: inset(0 60% 0 20%); /* driven by the active tab's position */
230
+ transition: clip-path 250ms var(--ease-in-out);
231
+ }
232
+ ```
233
+
234
+ The text and background change together, in perfect sync, because they're one element being revealed rather than two colors being interpolated.
235
+
236
+ ---
237
+
238
+ ## Scroll reveal
239
+
240
+ Marketing surfaces only. Don't do this to functional UI a user visits daily.
241
+
242
+ ```css
243
+ .reveal {
244
+ clip-path: inset(0 0 100% 0);
245
+ transition: clip-path 600ms var(--ease-in-out);
246
+ }
247
+
248
+ .reveal[data-visible] {
249
+ clip-path: inset(0 0 0 0);
250
+ }
251
+ ```
252
+
253
+ Trigger with `IntersectionObserver`, or Motion's `useInView` with `{ once: true, margin: "-100px" }`. Fire it once — re-animating on every scroll-by is an interface fighting its reader.
254
+
255
+ ---
256
+
257
+ ## Drag to dismiss
258
+
259
+ The gesture recipe. Springs, not durations, because the user can reverse mid-motion.
260
+
261
+ ```js
262
+ // Dismiss on a flick, not just on distance
263
+ const timeTaken = Date.now() - dragStartTime.current;
264
+ const velocity = Math.abs(swipeAmount) / timeTaken;
265
+
266
+ if (Math.abs(swipeAmount) >= SWIPE_THRESHOLD || velocity > 0.11) {
267
+ dismiss();
268
+ }
269
+ ```
270
+
271
+ ```js
272
+ // Set transform on the dragged element directly.
273
+ // Driving it through a CSS variable on the parent recalcs styles for every child.
274
+ element.style.transform = `translateY(${distance}px)`;
275
+ ```
276
+
277
+ Four details that separate a good drag from a bad one:
278
+
279
+ - **Pointer capture** once the drag starts, so it continues when the pointer leaves the element's bounds.
280
+ - **Multi-touch protection** — `if (isDragging) return` on new touch points, or switching fingers mid-drag makes the element jump.
281
+ - **Damping past boundaries** — dragging beyond a natural edge moves the element less the further it goes. Real things slow before they stop.
282
+ - **Friction, not a wall** — allow the over-drag with rising resistance rather than refusing it.
283
+
284
+ Settle with a spring so an interrupted drag keeps its velocity:
285
+
286
+ ```js
287
+ { type: "spring", duration: 0.5, bounce: 0.2 }
288
+ ```
289
+
290
+ ---
291
+
292
+ ## Masking a crossfade that won't settle
293
+
294
+ When two states overlap visibly during a transition and no amount of easing or duration tuning fixes it, blur the seam:
295
+
296
+ ```css
297
+ .content {
298
+ transition:
299
+ filter 200ms ease,
300
+ opacity 200ms ease;
301
+ }
302
+
303
+ .content.transitioning {
304
+ filter: blur(2px);
305
+ opacity: 0.7;
306
+ }
307
+ ```
308
+
309
+ Without blur the eye reads two distinct objects swapping. Blur blends them into one perceived transformation. Keep it under 20px — heavy blur is expensive, especially in Safari.
310
+
311
+ ---
312
+
313
+ ## Programmatic, without a library
314
+
315
+ When the motion needs JS control but not a dependency, WAAPI gives you CSS-grade performance:
316
+
317
+ ```js
318
+ element.animate(
319
+ [{ clipPath: 'inset(0 0 100% 0)' }, { clipPath: 'inset(0 0 0 0)' }],
320
+ { duration: 1000, fill: 'forwards', easing: 'cubic-bezier(0.77, 0, 0.175, 1)' }
321
+ );
322
+ ```
323
+
324
+ Hardware-accelerated, interruptible, no bundle cost.
@@ -0,0 +1,199 @@
1
+ ---
2
+ name: animate
3
+ description: Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations.
4
+ ---
5
+
6
+ # Building Animations
7
+
8
+ A construction skill. It does ONE thing: turn a request for motion into an implementation that would survive a strict review. It does not audit a codebase (that's `improve-animations`), critique a diff (that's `review-animations`), hunt for places that could animate (that's `find-animation-opportunities`), or build for React Native (that's `animate-expo`).
9
+
10
+ ## Operating Posture
11
+
12
+ You are a senior design engineer building the animation yourself. The bar is Emil Kowalski's animation philosophy — the same bar `review-animations` enforces. Write it so it passes that review the first time.
13
+
14
+ Two failure modes, and the first is worse:
15
+
16
+ 1. **Animating something that shouldn't animate.** The gate below exists to produce zero lines of code sometimes. That's a success, not a dodge.
17
+ 2. **Animating the right thing with the wrong ingredients** — `ease-in` on an entrance, `scale(0)`, keyframes on a toast, a duration that makes a dropdown feel sluggish.
18
+
19
+ Never present motion options as a menu. Make the call, state the reasoning in one line, write the code.
20
+
21
+ ## Hard Rules
22
+
23
+ 1. **Run the sequence in order.** Steps 1 and 2 gate everything. Don't reach for a curve before you know whether it animates at all.
24
+ 2. **No approximated values.** Every curve, duration, and spring config comes from the tables below. Never invent `cubic-bezier(0.4, 0, 0.2, 1)` because it looks familiar.
25
+ 3. **Extend the codebase's tokens, don't fork them.** If `--ease-out` or a duration scale already exists, use it. Adding a parallel system is a defect.
26
+ 4. **Reduced motion and hover gating ship with the animation**, not as a follow-up.
27
+ 5. **Cheapest tool that works.** Don't install a motion library for a fade.
28
+
29
+ ## The Build Sequence
30
+
31
+ ### 1. Should this animate at all?
32
+
33
+ | Frequency | Decision |
34
+ | --- | --- |
35
+ | 100+ times/day (keyboard shortcuts, command palette toggle) | **No animation. Ever.** Stop here. |
36
+ | Tens of times/day (hover effects, list navigation) | Near-imperceptible only — fast and subtle, or nothing |
37
+ | Occasional (modals, drawers, toasts) | Standard animation |
38
+ | Rare / first-time (onboarding, success, celebration) | The delight budget lives here |
39
+
40
+ **Keyboard-initiated actions are a disqualifier, not a judgment call.** Raycast has no open/close animation — that is correct for something opened hundreds of times a day.
41
+
42
+ If the request fails this gate, say so plainly and don't write the animation. Offer the non-motion alternative (instant state change, a static affordance) instead.
43
+
44
+ ### 2. What is the purpose?
45
+
46
+ Name it in one of these words before continuing:
47
+
48
+ - **Feedback** — confirming the interface heard the user
49
+ - **Spatial consistency** — showing where something came from or went
50
+ - **State indication** — making a state change legible
51
+ - **Preventing a jarring change** — bridging content that would otherwise teleport
52
+ - **Explanation** — demonstrating how something works (marketing/onboarding only)
53
+ - **Delight** — allowed *only* at the rare/first-time tier
54
+
55
+ Can't name it? Don't build it. "It looks cool" on a frequently-seen element is a reason to stop.
56
+
57
+ Also check **function**: data the user is reading or acting on should not move for style. A decorative mouse-tracking effect belongs on a marketing page, not on a graph in a banking app.
58
+
59
+ ### 3. Pick the tool — cheapest that works
60
+
61
+ Walk down; stop at the first that fits.
62
+
63
+ | Need | Tool |
64
+ | --- | --- |
65
+ | Hover, press, color, a state toggle you control with a class or attribute | **CSS transition** |
66
+ | Entry animation on mount, no JS state | **CSS `@starting-style`** |
67
+ | Predetermined motion that must stay smooth while the page is busy loading | **CSS animation** (runs off the main thread) |
68
+ | Programmatic control with CSS performance, no library | **WAAPI** (`element.animate()`) |
69
+ | Springs, layout animations, exit animations, gesture-driven values | **Motion** (`motion.dev`) |
70
+
71
+ CSS animations beat JS under load — they run off the main thread, while `requestAnimationFrame`-based animation drops frames while the browser loads, scripts, or paints. Use CSS for predetermined motion, JS for dynamic and interruptible motion.
72
+
73
+ If the task needs a *component* rather than an animation — a toast, a drawer, a command menu, a dropdown — stop and invoke `pick-ui-library`. Hand-rolling those is how you end up with a `<div>` dropdown and no focus management.
74
+
75
+ ### 4. Pick the properties
76
+
77
+ - **`transform` and `opacity` only.** They skip layout and paint and run on the GPU. `width`/`height`/`margin`/`padding`/`top`/`left` trigger all three. (`clip-path` is the sanctioned fourth — see RECIPES.md. `height` is tolerated only for accordions, where there's no transform equivalent.)
78
+ - **Never `scale(0)`.** Start from `scale(0.9–0.97)` + `opacity: 0`. Nothing in the real world appears from nothing.
79
+ - **`transform-origin` at the trigger** for popovers, dropdowns, menus, tooltips — `var(--transform-origin)` in Base UI. **Modals are exempt**; they're not anchored to a trigger, so they stay centered.
80
+ - **Percentages in `translate()`** are relative to the element's own size — `translateY(100%)` moves by its own height whatever the content. Prefer over hardcoded pixels.
81
+ - **In Motion, use the full transform string.** `x`/`y`/`scale` shorthands are not hardware-accelerated and drop frames under load:
82
+
83
+ ```jsx
84
+ <motion.div animate={{ x: 100 }} /> // drops frames under load
85
+ <motion.div animate={{ transform: "translateX(100px)" }} /> // hardware accelerated
86
+ ```
87
+
88
+ - **Never drive a child's transform from a CSS variable on the parent** — it recalculates styles for every child. Set `transform` on the element directly.
89
+
90
+ ### 5. Easing and duration — or a spring
91
+
92
+ **Easing**, in decision order:
93
+
94
+ | Situation | Easing |
95
+ | --- | --- |
96
+ | Entering or exiting | `ease-out` |
97
+ | Moving / morphing on screen | `ease-in-out` |
98
+ | Hover / color change | `ease` |
99
+ | Constant motion (marquee, progress) | `linear` |
100
+ | Default | `ease-out` |
101
+
102
+ **Never `ease-in` on UI.** It starts slow, delaying the exact moment the user is watching. `ease-out` at 200ms *feels* faster than `ease-in` at 200ms.
103
+
104
+ Built-in CSS easings are too weak. Use these:
105
+
106
+ ```css
107
+ --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for UI */
108
+ --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* strong ease-in-out for on-screen movement */
109
+ --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like drawer curve (Ionic) */
110
+ ```
111
+
112
+ Need a curve that isn't here? Take it from [easing.dev](https://easing.dev/) or [easings.co](https://easings.co/). Don't hand-roll one.
113
+
114
+ **Duration:**
115
+
116
+ | Element | Duration |
117
+ | --- | --- |
118
+ | Button press feedback | 100–160ms |
119
+ | Tooltips, small popovers | 125–200ms |
120
+ | Dropdowns, selects | 150–250ms |
121
+ | Modals, drawers | 200–500ms |
122
+ | Marketing / explanatory | Can be longer |
123
+
124
+ **UI animations stay under 300ms.** A 180ms dropdown feels more responsive than a 400ms one.
125
+
126
+ **Reach for a spring instead** when the motion is drag with momentum, an element that should feel alive, a gesture the user can interrupt or reverse, or decorative mouse-tracking:
127
+
128
+ ```js
129
+ { type: "spring", duration: 0.5, bounce: 0.2 } // Apple-style — easier to reason about
130
+ { type: "spring", mass: 1, stiffness: 100, damping: 10 } // traditional physics — more control
131
+ ```
132
+
133
+ Keep bounce at 0.1–0.3, and avoid bounce in most UI — reserve it for drag-to-dismiss and playful interactions.
134
+
135
+ ### 6. Interruption and exit
136
+
137
+ - **Transitions, not keyframes, for anything triggered rapidly** — toasts, toggles, anything a user can fire twice in a second. Transitions retarget from the current value; keyframes restart from zero.
138
+ - **Springs for gestures**, because they carry velocity through an interruption.
139
+ - **Exit the way it entered.** A toast that slides in from the bottom leaves through the bottom. Symmetric paths are what make swipe-to-dismiss feel obvious.
140
+ - **Asymmetric timing where the user is deciding.** Slow on the deliberate phase (a hold-to-confirm press: 2s linear), snappy on the system response (release: 200ms ease-out).
141
+
142
+ ### 7. Reduced motion and pointer gating
143
+
144
+ Ships with the animation, every time.
145
+
146
+ ```css
147
+ @media (prefers-reduced-motion: reduce) {
148
+ .element { animation: fade 0.2s ease; } /* keep opacity/color, drop transform-based motion */
149
+ }
150
+
151
+ @media (hover: hover) and (pointer: fine) {
152
+ .element:hover { transform: scale(1.05); } /* touch fires false hovers on tap */
153
+ }
154
+ ```
155
+
156
+ ```jsx
157
+ const reduce = useReducedMotion();
158
+ const closedX = reduce ? 0 : '-100%';
159
+ ```
160
+
161
+ Reduced motion means **fewer and gentler** animations, not zero — keep transitions that aid comprehension, remove movement and position changes.
162
+
163
+ ## Recipes
164
+
165
+ For ready-to-build implementations of the common cases — button press, dropdown, tooltip, modal, drawer, toast, accordion, stagger, hold-to-confirm, tab indicator, scroll reveal, drag-to-dismiss — see [RECIPES.md](RECIPES.md). Load it whenever the request matches one of those components; start from the recipe rather than from a blank file.
166
+
167
+ ## Never Ship
168
+
169
+ Self-check before you finish. Each of these is an automatic block in `review-animations`:
170
+
171
+ | Never | Instead |
172
+ | --- | --- |
173
+ | `transition: all` | Name the exact properties |
174
+ | `transform: scale(0)` entrance | `scale(0.95)` + `opacity: 0` |
175
+ | `ease-in` on a UI element | `ease-out` or a strong custom curve |
176
+ | Built-in `ease-out` on a deliberate animation | `cubic-bezier(0.23, 1, 0.32, 1)` |
177
+ | Animation on a keyboard shortcut or 100+/day action | No animation |
178
+ | UI duration over 300ms with no reason | 150–250ms |
179
+ | `transform-origin: center` on a trigger-anchored popover | `var(--transform-origin)` (modals exempt) |
180
+ | Keyframes on toasts, toggles, rapidly-triggered elements | CSS transitions |
181
+ | Animating `width`/`height`/`margin`/`padding`/`top`/`left` | `transform` / `opacity` |
182
+ | Motion `x`/`y`/`scale` props under load | Full `transform` string |
183
+ | Ungated `:hover` motion | `@media (hover: hover) and (pointer: fine)` |
184
+ | Missing `prefers-reduced-motion` | Gentler variant, not zero |
185
+ | Everything entering at once | 30–80ms stagger |
186
+
187
+ ## Output
188
+
189
+ Write the code. Then, in at most a few lines:
190
+
191
+ - **The gate result** — frequency tier and the named purpose. If something in the request was rejected, say which and why.
192
+ - **The ingredients** — tool, properties, curve, duration or spring config, in one line each.
193
+ - **What to feel-check** — if the result depends on feel you can't judge from code (a crossfade, a spring's bounce, the opacity/height balance in an entering list), say so and point at the check: play it at 2–5× duration or in the DevTools animation inspector, step it frame by frame, test gestures on a real device, and look again the next day with fresh eyes.
194
+
195
+ Don't pad this into a report. The code is the deliverable.
196
+
197
+ ## Tone
198
+
199
+ Opinionated and brief. When the honest answer is "this shouldn't animate," give it — that answer is the reason this skill exists. When feel genuinely can't be settled from code, say so instead of guessing at a value.