vc-extras 0.1.0 → 0.1.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 (249) hide show
  1. package/README.md +128 -71
  2. package/agent-install.mjs +159 -0
  3. package/agents/tester.md +23 -23
  4. package/install-extras.mjs +41 -109
  5. package/install-menu.mjs +22 -43
  6. package/install-skills.mjs +112 -112
  7. package/package.json +72 -28
  8. package/plugin-registry.mjs +73 -0
  9. package/plugins/config-ui/index.ts +159 -159
  10. package/plugins/config-ui/lib/arguments.mjs +24 -24
  11. package/plugins/config-ui/lib/documents.mjs +67 -67
  12. package/plugins/config-ui/lib/frontmatter.mjs +91 -91
  13. package/plugins/config-ui/lib/open.mjs +16 -16
  14. package/plugins/config-ui/lib/ownership.mjs +99 -99
  15. package/plugins/config-ui/lib/page.mjs +11 -11
  16. package/plugins/config-ui/lib/patch.mjs +35 -35
  17. package/plugins/config-ui/lib/paths.mjs +14 -14
  18. package/plugins/config-ui/lib/plugin-fields.mjs +86 -86
  19. package/plugins/config-ui/lib/plugin-validation.mjs +28 -28
  20. package/plugins/config-ui/lib/redaction.mjs +8 -8
  21. package/plugins/config-ui/lib/registry.mjs +282 -282
  22. package/plugins/config-ui/lib/secrets.mjs +44 -44
  23. package/plugins/config-ui/lib/server.mjs +250 -250
  24. package/plugins/config-ui/lib/sources.mjs +96 -96
  25. package/plugins/config-ui/lib/state.mjs +156 -156
  26. package/plugins/config-ui/lib/themes.mjs +113 -113
  27. package/plugins/config-ui/lib/writer.mjs +690 -690
  28. package/plugins/config-ui/project-local-owner.ts +106 -106
  29. package/plugins/config-ui/vc-extras.plugin.json +13 -0
  30. package/plugins/config-ui/web/app.mjs +997 -997
  31. package/plugins/config-ui/web/index.html +342 -342
  32. package/plugins/pi-blackhole/vc-extras.plugin.json +12 -0
  33. package/plugins/pi-btw/vc-extras.plugin.json +12 -0
  34. package/plugins/pi-claude-code/vc-extras.plugin.json +12 -0
  35. package/plugins/pi-fff/vc-extras.plugin.json +12 -0
  36. package/plugins/pi-jev-auto-mode/vc-extras.plugin.json +12 -0
  37. package/plugins/pi-mcp-adapter/vc-extras.plugin.json +12 -0
  38. package/plugins/pi-web-access/vc-extras.plugin.json +12 -0
  39. package/plugins/vc-ask/claude-hook.mjs +37 -0
  40. package/plugins/vc-ask/codex-native.mjs +28 -0
  41. package/plugins/vc-ask/host-channel.mjs +75 -0
  42. package/plugins/vc-ask/index.ts +57 -0
  43. package/plugins/vc-ask/native-questions.mjs +33 -0
  44. package/plugins/vc-ask/package.json +10 -0
  45. package/plugins/vc-ask/payload.ts +170 -0
  46. package/plugins/vc-ask/questionnaire/LICENSE.ask-user-question +21 -0
  47. package/plugins/vc-ask/questionnaire/UPSTREAM.md +104 -0
  48. package/plugins/vc-ask/questionnaire/answer-channel.ts +135 -0
  49. package/plugins/vc-ask/questionnaire/config.ts +180 -0
  50. package/plugins/vc-ask/questionnaire/events.ts +154 -0
  51. package/plugins/vc-ask/questionnaire/execute.ts +688 -0
  52. package/plugins/vc-ask/questionnaire/i18n.ts +73 -0
  53. package/plugins/vc-ask/questionnaire/inline-entry.ts +312 -0
  54. package/plugins/vc-ask/questionnaire/locales/de.json +43 -0
  55. package/plugins/vc-ask/questionnaire/locales/en.json +42 -0
  56. package/plugins/vc-ask/questionnaire/locales/es.json +43 -0
  57. package/plugins/vc-ask/questionnaire/locales/fr.json +43 -0
  58. package/plugins/vc-ask/questionnaire/locales/pt-BR.json +43 -0
  59. package/plugins/vc-ask/questionnaire/locales/pt.json +43 -0
  60. package/plugins/vc-ask/questionnaire/locales/ru.json +43 -0
  61. package/plugins/vc-ask/questionnaire/locales/uk.json +43 -0
  62. package/plugins/vc-ask/questionnaire/locales/zh.json +46 -0
  63. package/plugins/vc-ask/questionnaire/presentation.ts +11 -0
  64. package/plugins/vc-ask/questionnaire/question-preview.ts +6 -0
  65. package/plugins/vc-ask/questionnaire/rpc.ts +221 -0
  66. package/plugins/vc-ask/questionnaire/session-timeout.ts +67 -0
  67. package/plugins/vc-ask/questionnaire/state/build-questionnaire.ts +144 -0
  68. package/plugins/vc-ask/questionnaire/state/external-editor.ts +62 -0
  69. package/plugins/vc-ask/questionnaire/state/geometry.ts +131 -0
  70. package/plugins/vc-ask/questionnaire/state/key-router.ts +382 -0
  71. package/plugins/vc-ask/questionnaire/state/panel-router.ts +32 -0
  72. package/plugins/vc-ask/questionnaire/state/questionnaire-session.ts +642 -0
  73. package/plugins/vc-ask/questionnaire/state/row-intent.ts +143 -0
  74. package/plugins/vc-ask/questionnaire/state/selectors/contract.ts +24 -0
  75. package/plugins/vc-ask/questionnaire/state/selectors/derivations.ts +40 -0
  76. package/plugins/vc-ask/questionnaire/state/selectors/focus.ts +17 -0
  77. package/plugins/vc-ask/questionnaire/state/selectors/projections.ts +99 -0
  78. package/plugins/vc-ask/questionnaire/state/state-reducer.ts +455 -0
  79. package/plugins/vc-ask/questionnaire/state/state.ts +90 -0
  80. package/plugins/vc-ask/questionnaire/state/vertical.ts +158 -0
  81. package/plugins/vc-ask/questionnaire/timeout.ts +59 -0
  82. package/plugins/vc-ask/questionnaire/tool/external-answer.ts +103 -0
  83. package/plugins/vc-ask/questionnaire/tool/format-answer.ts +24 -0
  84. package/plugins/vc-ask/questionnaire/tool/normalize-params.ts +37 -0
  85. package/plugins/vc-ask/questionnaire/tool/response-envelope.ts +75 -0
  86. package/plugins/vc-ask/questionnaire/tool/types.ts +74 -0
  87. package/plugins/vc-ask/questionnaire/tool/validate-questionnaire.ts +75 -0
  88. package/plugins/vc-ask/questionnaire/view/card-theme.ts +245 -0
  89. package/plugins/vc-ask/questionnaire/view/components/inline-input.ts +66 -0
  90. package/plugins/vc-ask/questionnaire/view/components/multi-select-view.ts +177 -0
  91. package/plugins/vc-ask/questionnaire/view/components/option-list-view.ts +65 -0
  92. package/plugins/vc-ask/questionnaire/view/components/preview/markdown-content-cache.ts +101 -0
  93. package/plugins/vc-ask/questionnaire/view/components/preview/preview-block-renderer.ts +130 -0
  94. package/plugins/vc-ask/questionnaire/view/components/preview/preview-box-renderer.ts +86 -0
  95. package/plugins/vc-ask/questionnaire/view/components/preview/preview-layout-decider.ts +204 -0
  96. package/plugins/vc-ask/questionnaire/view/components/preview/preview-pane.ts +257 -0
  97. package/plugins/vc-ask/questionnaire/view/components/submit-picker.ts +65 -0
  98. package/plugins/vc-ask/questionnaire/view/components/tab-bar.ts +57 -0
  99. package/plugins/vc-ask/questionnaire/view/components/wrapping-select.ts +269 -0
  100. package/plugins/vc-ask/questionnaire/view/dialog-builder.ts +319 -0
  101. package/plugins/vc-ask/questionnaire/view/document-theme.ts +53 -0
  102. package/plugins/vc-ask/questionnaire/view/document-view.ts +306 -0
  103. package/plugins/vc-ask/questionnaire/view/panel-chrome.ts +133 -0
  104. package/plugins/vc-ask/questionnaire/view/props-adapter.ts +77 -0
  105. package/plugins/vc-ask/questionnaire/view/stateful-view.ts +24 -0
  106. package/plugins/vc-ask/questionnaire/view/tab-components.ts +16 -0
  107. package/plugins/vc-ask/questionnaire/view/tab-content-strategy.ts +280 -0
  108. package/plugins/vc-ask/questionnaire/view/vertical-view.ts +218 -0
  109. package/plugins/vc-ask/user-input-events.ts +34 -0
  110. package/plugins/vc-ask/vc-extras.plugin.json +18 -0
  111. package/plugins/vc-footer/agents/claude-code/adapter.mjs +29 -0
  112. package/plugins/vc-footer/agents/claude-code/cli.mjs +23 -0
  113. package/plugins/vc-footer/agents/claude-code/renderer.mjs +1 -0
  114. package/plugins/vc-footer/agents/claude-code/types.d.ts +38 -0
  115. package/plugins/vc-footer/agents/codex/adapter.mjs +13 -0
  116. package/plugins/vc-footer/agents/codex/mcp.mjs +45 -0
  117. package/plugins/vc-footer/agents/codex/native.mjs +19 -0
  118. package/plugins/vc-footer/agents/codex/renderer.mjs +2 -0
  119. package/plugins/vc-footer/agents/pi/adapter.mjs +23 -0
  120. package/plugins/vc-footer/agents/pi/index.js +84 -0
  121. package/plugins/vc-footer/agents/pi/project-local-owner.mjs +97 -0
  122. package/plugins/vc-footer/agents/pi/renderer.mjs +5 -0
  123. package/plugins/vc-footer/core/data.mjs +218 -0
  124. package/plugins/vc-footer/core/render.mjs +291 -0
  125. package/plugins/vc-footer/core/types.d.ts +29 -0
  126. package/plugins/vc-footer/package.json +22 -0
  127. package/plugins/vc-footer/vc-extras.plugin.json +32 -0
  128. package/skills/animate/LICENSE +21 -21
  129. package/skills/animate/RECIPES.md +324 -324
  130. package/skills/animate/SKILL.md +208 -208
  131. package/skills/animate/UPSTREAM.md +19 -19
  132. package/skills/animation-performance/LICENSE +21 -21
  133. package/skills/animation-performance/SKILL.md +223 -223
  134. package/skills/animation-performance/UPSTREAM.md +19 -19
  135. package/skills/answer-me-with-html/SKILL.md +174 -174
  136. package/skills/answer-me-with-html/scripts/am.mjs +12896 -12896
  137. package/skills/apple-design/LICENSE +21 -21
  138. package/skills/apple-design/SKILL.md +291 -291
  139. package/skills/apple-design/UPSTREAM.md +19 -19
  140. package/skills/bad-smell/SKILL.md +44 -44
  141. package/skills/commit/SKILL.md +90 -90
  142. package/skills/emil-design-eng/LICENSE +21 -21
  143. package/skills/emil-design-eng/SKILL.md +677 -677
  144. package/skills/emil-design-eng/UPSTREAM.md +19 -19
  145. package/skills/find-the-truth/SKILL.md +38 -38
  146. package/skills/find-the-truth/references/trace-method.md +48 -48
  147. package/skills/find-the-truth/references/truth-method.md +39 -39
  148. package/skills/gestures/LICENSE +21 -21
  149. package/skills/gestures/SKILL.md +107 -107
  150. package/skills/gestures/UPSTREAM.md +19 -19
  151. package/skills/humanizer-zh/LICENSE +21 -21
  152. package/skills/humanizer-zh/SKILL.md +409 -409
  153. package/skills/humanizer-zh/UPSTREAM.md +7 -7
  154. package/skills/impeccable/LICENSE +191 -191
  155. package/skills/impeccable/NOTICE.md +11 -11
  156. package/skills/impeccable/SKILL.md +89 -89
  157. package/skills/impeccable/licenses/modern-screenshot-MIT.txt +8 -8
  158. package/skills/impeccable/licenses/platform-design-skills-MIT.txt +21 -21
  159. package/skills/impeccable/reference/adapt.md +318 -318
  160. package/skills/impeccable/reference/adapt.native.md +58 -58
  161. package/skills/impeccable/reference/android.md +46 -46
  162. package/skills/impeccable/reference/animate.md +89 -89
  163. package/skills/impeccable/reference/audit.md +139 -139
  164. package/skills/impeccable/reference/audit.native.md +139 -139
  165. package/skills/impeccable/reference/bolder.md +33 -33
  166. package/skills/impeccable/reference/clarify.md +94 -94
  167. package/skills/impeccable/reference/colorize.md +86 -86
  168. package/skills/impeccable/reference/component-review.md +63 -63
  169. package/skills/impeccable/reference/craft-floor.md +44 -44
  170. package/skills/impeccable/reference/craft.md +5 -5
  171. package/skills/impeccable/reference/critique.md +819 -819
  172. package/skills/impeccable/reference/degraded/asset-producer.md +41 -41
  173. package/skills/impeccable/reference/degraded/documenter.md +23 -23
  174. package/skills/impeccable/reference/degraded/finish-reviewer.md +37 -37
  175. package/skills/impeccable/reference/degraded/manual-edit-applier.md +92 -92
  176. package/skills/impeccable/reference/delight.md +70 -70
  177. package/skills/impeccable/reference/distill.md +111 -111
  178. package/skills/impeccable/reference/doctor.md +54 -54
  179. package/skills/impeccable/reference/document.md +416 -416
  180. package/skills/impeccable/reference/extract.md +69 -69
  181. package/skills/impeccable/reference/generate.md +101 -101
  182. package/skills/impeccable/reference/harden.md +362 -362
  183. package/skills/impeccable/reference/hooks.md +114 -114
  184. package/skills/impeccable/reference/init.md +131 -131
  185. package/skills/impeccable/reference/ios.md +51 -51
  186. package/skills/impeccable/reference/layout.md +84 -84
  187. package/skills/impeccable/reference/live-setup.md +104 -104
  188. package/skills/impeccable/reference/live.md +327 -327
  189. package/skills/impeccable/reference/mode-operate.md +21 -21
  190. package/skills/impeccable/reference/mode-persuade.md +19 -19
  191. package/skills/impeccable/reference/mode-read.md +21 -21
  192. package/skills/impeccable/reference/new-work.md +152 -152
  193. package/skills/impeccable/reference/onboard.md +234 -234
  194. package/skills/impeccable/reference/operate.md +61 -61
  195. package/skills/impeccable/reference/optimize.md +257 -257
  196. package/skills/impeccable/reference/overdrive.md +127 -127
  197. package/skills/impeccable/reference/polish.md +105 -105
  198. package/skills/impeccable/reference/quieter.md +99 -99
  199. package/skills/impeccable/reference/region-map.md +26 -26
  200. package/skills/impeccable/reference/routing.md +24 -24
  201. package/skills/impeccable/reference/shape.md +59 -59
  202. package/skills/impeccable/reference/typeset.md +90 -90
  203. package/skills/impeccable/reference/visualize.md +47 -47
  204. package/skills/impeccable/scripts/VERSION +1 -1
  205. package/skills/impeccable/scripts/command-metadata.json +98 -98
  206. package/skills/impeccable/scripts/data/font-index-failures.json +120 -120
  207. package/skills/impeccable/scripts/engine-checksums.txt +9 -9
  208. package/skills/impeccable/scripts/impeccable +249 -249
  209. package/skills/impeccable/scripts/impeccable.cmd +278 -278
  210. package/skills/impeccable/scripts/live-browser-dom.js +320 -320
  211. package/skills/impeccable/scripts/live-browser-ignores.js +246 -246
  212. package/skills/impeccable/scripts/live-browser-session.js +183 -183
  213. package/skills/impeccable/scripts/live-browser.js +13862 -13862
  214. package/skills/impeccable/scripts/modern-screenshot.umd.js +14 -14
  215. package/skills/improve-animations/AUDIT.md +115 -115
  216. package/skills/improve-animations/LICENSE +21 -21
  217. package/skills/improve-animations/PLAN-TEMPLATE.md +73 -73
  218. package/skills/improve-animations/SKILL.md +110 -110
  219. package/skills/improve-animations/UPSTREAM.md +19 -19
  220. package/skills/pick-ui-library/LICENSE +21 -21
  221. package/skills/pick-ui-library/SKILL.md +85 -85
  222. package/skills/pick-ui-library/UPSTREAM.md +19 -19
  223. package/skills/review-animations/LICENSE +21 -21
  224. package/skills/review-animations/SKILL.md +120 -120
  225. package/skills/review-animations/STANDARDS.md +187 -187
  226. package/skills/review-animations/UPSTREAM.md +19 -19
  227. package/skills/test/SKILL.md +29 -29
  228. package/skills/test/references/test-method.md +60 -60
  229. package/skills/write-doc/SKILL.md +115 -115
  230. package/skills/write-doc/examples/result-report.md +53 -53
  231. package/skills/write-doc/examples/task-summary.md +45 -45
  232. package/skills/write-doc/references/terminology.md +147 -147
  233. package/specs/ask-host-protocol-v1.md +58 -0
  234. package/specs/design-demo.md +1102 -1102
  235. package/specs/frontend-immersive.md +28 -28
  236. package/specs/plugin-install-v2.md +123 -0
  237. package/specs/plugin-install.md +38 -0
  238. package/specs/web-modes/explore.md +31 -31
  239. package/specs/web-modes/risk.md +15 -15
  240. package/specs/web-modes/verify.md +16 -16
  241. package/vc-extras.mjs +46 -62
  242. package/plugins/essrj/context.ts +0 -47
  243. package/plugins/essrj/data.ts +0 -190
  244. package/plugins/essrj/index.ts +0 -139
  245. package/plugins/essrj/package.json +0 -12
  246. package/plugins/essrj/project-local-owner.ts +0 -106
  247. package/plugins/essrj/render.ts +0 -217
  248. package/plugins/essrj/types.ts +0 -40
  249. package/plugins.json +0 -38
@@ -1,208 +1,208 @@
1
- ---
2
- disable-model-invocation: true
3
- name: animate
4
- 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.
5
- ---
6
-
7
- # Building Animations
8
-
9
- ## Initial Response
10
-
11
- When this skill is first invoked without a specific question, respond only with:
12
-
13
- > I'm ready to build animations that feel right, my knowledge comes from Emil Kowalski's animation philosophy.
14
-
15
- Do not provide any other information until the user asks a question.
16
-
17
- 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`).
18
-
19
- ## Operating Posture
20
-
21
- 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.
22
-
23
- Two failure modes, and the first is worse:
24
-
25
- 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.
26
- 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.
27
-
28
- Never present motion options as a menu. Make the call, state the reasoning in one line, write the code.
29
-
30
- ## Hard Rules
31
-
32
- 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.
33
- 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.
34
- 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.
35
- 4. **Reduced motion and hover gating ship with the animation**, not as a follow-up.
36
- 5. **Cheapest tool that works.** Don't install a motion library for a fade.
37
-
38
- ## The Build Sequence
39
-
40
- ### 1. Should this animate at all?
41
-
42
- | Frequency | Decision |
43
- | --- | --- |
44
- | 100+ times/day (keyboard shortcuts, command palette toggle) | **No animation. Ever.** Stop here. |
45
- | Tens of times/day (hover effects, list navigation) | Near-imperceptible only — fast and subtle, or nothing |
46
- | Occasional (modals, drawers, toasts) | Standard animation |
47
- | Rare / first-time (onboarding, success, celebration) | The delight budget lives here |
48
-
49
- **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.
50
-
51
- 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.
52
-
53
- ### 2. What is the purpose?
54
-
55
- Name it in one of these words before continuing:
56
-
57
- - **Feedback** — confirming the interface heard the user
58
- - **Spatial consistency** — showing where something came from or went
59
- - **State indication** — making a state change legible
60
- - **Preventing a jarring change** — bridging content that would otherwise teleport
61
- - **Explanation** — demonstrating how something works (marketing/onboarding only)
62
- - **Delight** — allowed *only* at the rare/first-time tier
63
-
64
- Can't name it? Don't build it. "It looks cool" on a frequently-seen element is a reason to stop.
65
-
66
- 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.
67
-
68
- ### 3. Pick the tool — cheapest that works
69
-
70
- Walk down; stop at the first that fits.
71
-
72
- | Need | Tool |
73
- | --- | --- |
74
- | Hover, press, color, a state toggle you control with a class or attribute | **CSS transition** |
75
- | Entry animation on mount, no JS state | **CSS `@starting-style`** |
76
- | Predetermined motion that must stay smooth while the page is busy loading | **CSS animation** (runs off the main thread) |
77
- | Programmatic control with CSS performance, no library | **WAAPI** (`element.animate()`) |
78
- | Springs, layout animations, exit animations, gesture-driven values | **Motion** (`motion.dev`) |
79
-
80
- 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.
81
-
82
- 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.
83
-
84
- ### 4. Pick the properties
85
-
86
- - **`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.)
87
- - **Never `scale(0)`.** Start from `scale(0.9–0.97)` + `opacity: 0`. Nothing in the real world appears from nothing.
88
- - **`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.
89
- - **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.
90
- - **In Motion, newest versions hardware accelerate independent transforms like `x`/`y`/`scale`/`rotate`.**
91
-
92
- ```jsx
93
- <motion.div animate={{ x: 100 }} /> // motion 14.2+: hardware accelerated
94
- <motion.div animate={{ transform: "translateX(100px)" }} /> // hardware accelerated in every version
95
- ```
96
-
97
- - **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.
98
-
99
- ### 5. Easing and duration — or a spring
100
-
101
- **Easing**, in decision order:
102
-
103
- | Situation | Easing |
104
- | --- | --- |
105
- | Entering or exiting | `ease-out` |
106
- | Moving / morphing on screen | `ease-in-out` |
107
- | Hover / color change | `ease` |
108
- | Constant motion (marquee, progress) | `linear` |
109
- | Default | `ease-out` |
110
-
111
- **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.
112
-
113
- Built-in CSS easings are too weak. Use these:
114
-
115
- ```css
116
- --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for UI */
117
- --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* strong ease-in-out for on-screen movement */
118
- --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like drawer curve (Ionic) */
119
- ```
120
-
121
- 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.
122
-
123
- **Duration:**
124
-
125
- | Element | Duration |
126
- | --- | --- |
127
- | Button press feedback | 100–160ms |
128
- | Tooltips, small popovers | 125–200ms |
129
- | Dropdowns, selects | 150–250ms |
130
- | Modals, drawers | 200–500ms |
131
- | Marketing / explanatory | Can be longer |
132
-
133
- **UI animations stay under 300ms.** A 180ms dropdown feels more responsive than a 400ms one.
134
-
135
- **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:
136
-
137
- ```js
138
- { type: "spring", duration: 0.5, bounce: 0.2 } // Apple-style — easier to reason about
139
- { type: "spring", mass: 1, stiffness: 100, damping: 10 } // traditional physics — more control
140
- ```
141
-
142
- Keep bounce at 0.1–0.3, and avoid bounce in most UI — reserve it for drag-to-dismiss and playful interactions.
143
-
144
- ### 6. Interruption and exit
145
-
146
- - **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.
147
- - **Springs for gestures**, because they carry velocity through an interruption.
148
- - **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.
149
- - **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).
150
-
151
- ### 7. Reduced motion and pointer gating
152
-
153
- Ships with the animation, every time.
154
-
155
- ```css
156
- @media (prefers-reduced-motion: reduce) {
157
- .element { animation: fade 0.2s ease; } /* keep opacity/color, drop transform-based motion */
158
- }
159
-
160
- @media (hover: hover) and (pointer: fine) {
161
- .element:hover { transform: scale(1.05); } /* touch fires false hovers on tap */
162
- }
163
- ```
164
-
165
- ```jsx
166
- const reduce = useReducedMotion();
167
- const closedX = reduce ? 0 : '-100%';
168
- ```
169
-
170
- Reduced motion means **fewer and gentler** animations, not zero — keep transitions that aid comprehension, remove movement and position changes.
171
-
172
- ## Recipes
173
-
174
- 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.
175
-
176
- ## Never Ship
177
-
178
- Self-check before you finish. Each of these is an automatic block in `review-animations`:
179
-
180
- | Never | Instead |
181
- | --- | --- |
182
- | `transition: all` | Name the exact properties |
183
- | `transform: scale(0)` entrance | `scale(0.95)` + `opacity: 0` |
184
- | `ease-in` on a UI element | `ease-out` or a strong custom curve |
185
- | Built-in `ease-out` on a deliberate animation | `cubic-bezier(0.23, 1, 0.32, 1)` |
186
- | Animation on a keyboard shortcut or 100+/day action | No animation |
187
- | UI duration over 300ms with no reason | 150–250ms |
188
- | `transform-origin: center` on a trigger-anchored popover | `var(--transform-origin)` (modals exempt) |
189
- | Keyframes on toasts, toggles, rapidly-triggered elements | CSS transitions |
190
- | Animating `width`/`height`/`margin`/`padding`/`top`/`left` | `transform` / `opacity` |
191
- | Motion `x`/`y`/`scale` props under load on versions before 14.2 | Upgrade to 14.2+, or a full `transform` string |
192
- | Ungated `:hover` motion | `@media (hover: hover) and (pointer: fine)` |
193
- | Missing `prefers-reduced-motion` | Gentler variant, not zero |
194
- | Everything entering at once | 30–80ms stagger |
195
-
196
- ## Output
197
-
198
- Write the code. Then, in at most a few lines:
199
-
200
- - **The gate result** — frequency tier and the named purpose. If something in the request was rejected, say which and why.
201
- - **The ingredients** — tool, properties, curve, duration or spring config, in one line each.
202
- - **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.
203
-
204
- Don't pad this into a report. The code is the deliverable.
205
-
206
- ## Tone
207
-
208
- 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.
1
+ ---
2
+ disable-model-invocation: true
3
+ name: animate
4
+ 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.
5
+ ---
6
+
7
+ # Building Animations
8
+
9
+ ## Initial Response
10
+
11
+ When this skill is first invoked without a specific question, respond only with:
12
+
13
+ > I'm ready to build animations that feel right, my knowledge comes from Emil Kowalski's animation philosophy.
14
+
15
+ Do not provide any other information until the user asks a question.
16
+
17
+ 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`).
18
+
19
+ ## Operating Posture
20
+
21
+ 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.
22
+
23
+ Two failure modes, and the first is worse:
24
+
25
+ 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.
26
+ 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.
27
+
28
+ Never present motion options as a menu. Make the call, state the reasoning in one line, write the code.
29
+
30
+ ## Hard Rules
31
+
32
+ 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.
33
+ 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.
34
+ 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.
35
+ 4. **Reduced motion and hover gating ship with the animation**, not as a follow-up.
36
+ 5. **Cheapest tool that works.** Don't install a motion library for a fade.
37
+
38
+ ## The Build Sequence
39
+
40
+ ### 1. Should this animate at all?
41
+
42
+ | Frequency | Decision |
43
+ | --- | --- |
44
+ | 100+ times/day (keyboard shortcuts, command palette toggle) | **No animation. Ever.** Stop here. |
45
+ | Tens of times/day (hover effects, list navigation) | Near-imperceptible only — fast and subtle, or nothing |
46
+ | Occasional (modals, drawers, toasts) | Standard animation |
47
+ | Rare / first-time (onboarding, success, celebration) | The delight budget lives here |
48
+
49
+ **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.
50
+
51
+ 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.
52
+
53
+ ### 2. What is the purpose?
54
+
55
+ Name it in one of these words before continuing:
56
+
57
+ - **Feedback** — confirming the interface heard the user
58
+ - **Spatial consistency** — showing where something came from or went
59
+ - **State indication** — making a state change legible
60
+ - **Preventing a jarring change** — bridging content that would otherwise teleport
61
+ - **Explanation** — demonstrating how something works (marketing/onboarding only)
62
+ - **Delight** — allowed *only* at the rare/first-time tier
63
+
64
+ Can't name it? Don't build it. "It looks cool" on a frequently-seen element is a reason to stop.
65
+
66
+ 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.
67
+
68
+ ### 3. Pick the tool — cheapest that works
69
+
70
+ Walk down; stop at the first that fits.
71
+
72
+ | Need | Tool |
73
+ | --- | --- |
74
+ | Hover, press, color, a state toggle you control with a class or attribute | **CSS transition** |
75
+ | Entry animation on mount, no JS state | **CSS `@starting-style`** |
76
+ | Predetermined motion that must stay smooth while the page is busy loading | **CSS animation** (runs off the main thread) |
77
+ | Programmatic control with CSS performance, no library | **WAAPI** (`element.animate()`) |
78
+ | Springs, layout animations, exit animations, gesture-driven values | **Motion** (`motion.dev`) |
79
+
80
+ 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.
81
+
82
+ 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.
83
+
84
+ ### 4. Pick the properties
85
+
86
+ - **`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.)
87
+ - **Never `scale(0)`.** Start from `scale(0.9–0.97)` + `opacity: 0`. Nothing in the real world appears from nothing.
88
+ - **`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.
89
+ - **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.
90
+ - **In Motion, newest versions hardware accelerate independent transforms like `x`/`y`/`scale`/`rotate`.**
91
+
92
+ ```jsx
93
+ <motion.div animate={{ x: 100 }} /> // motion 14.2+: hardware accelerated
94
+ <motion.div animate={{ transform: "translateX(100px)" }} /> // hardware accelerated in every version
95
+ ```
96
+
97
+ - **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.
98
+
99
+ ### 5. Easing and duration — or a spring
100
+
101
+ **Easing**, in decision order:
102
+
103
+ | Situation | Easing |
104
+ | --- | --- |
105
+ | Entering or exiting | `ease-out` |
106
+ | Moving / morphing on screen | `ease-in-out` |
107
+ | Hover / color change | `ease` |
108
+ | Constant motion (marquee, progress) | `linear` |
109
+ | Default | `ease-out` |
110
+
111
+ **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.
112
+
113
+ Built-in CSS easings are too weak. Use these:
114
+
115
+ ```css
116
+ --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for UI */
117
+ --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* strong ease-in-out for on-screen movement */
118
+ --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like drawer curve (Ionic) */
119
+ ```
120
+
121
+ 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.
122
+
123
+ **Duration:**
124
+
125
+ | Element | Duration |
126
+ | --- | --- |
127
+ | Button press feedback | 100–160ms |
128
+ | Tooltips, small popovers | 125–200ms |
129
+ | Dropdowns, selects | 150–250ms |
130
+ | Modals, drawers | 200–500ms |
131
+ | Marketing / explanatory | Can be longer |
132
+
133
+ **UI animations stay under 300ms.** A 180ms dropdown feels more responsive than a 400ms one.
134
+
135
+ **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:
136
+
137
+ ```js
138
+ { type: "spring", duration: 0.5, bounce: 0.2 } // Apple-style — easier to reason about
139
+ { type: "spring", mass: 1, stiffness: 100, damping: 10 } // traditional physics — more control
140
+ ```
141
+
142
+ Keep bounce at 0.1–0.3, and avoid bounce in most UI — reserve it for drag-to-dismiss and playful interactions.
143
+
144
+ ### 6. Interruption and exit
145
+
146
+ - **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.
147
+ - **Springs for gestures**, because they carry velocity through an interruption.
148
+ - **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.
149
+ - **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).
150
+
151
+ ### 7. Reduced motion and pointer gating
152
+
153
+ Ships with the animation, every time.
154
+
155
+ ```css
156
+ @media (prefers-reduced-motion: reduce) {
157
+ .element { animation: fade 0.2s ease; } /* keep opacity/color, drop transform-based motion */
158
+ }
159
+
160
+ @media (hover: hover) and (pointer: fine) {
161
+ .element:hover { transform: scale(1.05); } /* touch fires false hovers on tap */
162
+ }
163
+ ```
164
+
165
+ ```jsx
166
+ const reduce = useReducedMotion();
167
+ const closedX = reduce ? 0 : '-100%';
168
+ ```
169
+
170
+ Reduced motion means **fewer and gentler** animations, not zero — keep transitions that aid comprehension, remove movement and position changes.
171
+
172
+ ## Recipes
173
+
174
+ 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.
175
+
176
+ ## Never Ship
177
+
178
+ Self-check before you finish. Each of these is an automatic block in `review-animations`:
179
+
180
+ | Never | Instead |
181
+ | --- | --- |
182
+ | `transition: all` | Name the exact properties |
183
+ | `transform: scale(0)` entrance | `scale(0.95)` + `opacity: 0` |
184
+ | `ease-in` on a UI element | `ease-out` or a strong custom curve |
185
+ | Built-in `ease-out` on a deliberate animation | `cubic-bezier(0.23, 1, 0.32, 1)` |
186
+ | Animation on a keyboard shortcut or 100+/day action | No animation |
187
+ | UI duration over 300ms with no reason | 150–250ms |
188
+ | `transform-origin: center` on a trigger-anchored popover | `var(--transform-origin)` (modals exempt) |
189
+ | Keyframes on toasts, toggles, rapidly-triggered elements | CSS transitions |
190
+ | Animating `width`/`height`/`margin`/`padding`/`top`/`left` | `transform` / `opacity` |
191
+ | Motion `x`/`y`/`scale` props under load on versions before 14.2 | Upgrade to 14.2+, or a full `transform` string |
192
+ | Ungated `:hover` motion | `@media (hover: hover) and (pointer: fine)` |
193
+ | Missing `prefers-reduced-motion` | Gentler variant, not zero |
194
+ | Everything entering at once | 30–80ms stagger |
195
+
196
+ ## Output
197
+
198
+ Write the code. Then, in at most a few lines:
199
+
200
+ - **The gate result** — frequency tier and the named purpose. If something in the request was rejected, say which and why.
201
+ - **The ingredients** — tool, properties, curve, duration or spring config, in one line each.
202
+ - **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.
203
+
204
+ Don't pad this into a report. The code is the deliverable.
205
+
206
+ ## Tone
207
+
208
+ 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.
@@ -1,19 +1,19 @@
1
- # Upstream
2
-
3
- - Repository: https://github.com/emilkowalski/skills
4
- - Commit: f7ce8c02d6e3c8f0d980a44c57bcc41a40254349 (2026-11-12)
5
- - Upstream path: `skills/animate/`
6
- - License: MIT (see `LICENSE` in this directory)
7
-
8
- Files copied verbatim: `SKILL.md`, `RECIPES.md`.
9
-
10
- The only local adaptation is the frontmatter `disable-model-invocation: true` added by
11
- `npm run sync:skills`, so the model sees this skill only through the
12
- `emma/skills/skills-router/SKILL.md` row and loads it on demand.
13
-
14
- ## Resync
15
-
16
- 1. Check out the recorded commit of the upstream repository.
17
- 2. Replace the upstream files here with `skills/animate/` from that commit; keep `LICENSE` and this file.
18
- 3. Run `npm run sync:skills` to restore the hidden frontmatter and the router row.
19
- 4. Keep the frontmatter `description` a single-line plain scalar; the router generator rejects block and folded scalars.
1
+ # Upstream
2
+
3
+ - Repository: https://github.com/emilkowalski/skills
4
+ - Commit: f7ce8c02d6e3c8f0d980a44c57bcc41a40254349 (2026-11-12)
5
+ - Upstream path: `skills/animate/`
6
+ - License: MIT (see `LICENSE` in this directory)
7
+
8
+ Files copied verbatim: `SKILL.md`, `RECIPES.md`.
9
+
10
+ The only local adaptation is the frontmatter `disable-model-invocation: true` added by
11
+ `npm run sync:skills`, so the model sees this skill only through the
12
+ `emma/skills/skills-router/SKILL.md` row and loads it on demand.
13
+
14
+ ## Resync
15
+
16
+ 1. Check out the recorded commit of the upstream repository.
17
+ 2. Replace the upstream files here with `skills/animate/` from that commit; keep `LICENSE` and this file.
18
+ 3. Run `npm run sync:skills` to restore the hidden frontmatter and the router row.
19
+ 4. Keep the frontmatter `description` a single-line plain scalar; the router generator rejects block and folded scalars.
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Emil Kowalski
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Emil Kowalski
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.