@istmx/skills 1.1.0 → 2.0.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 (153) hide show
  1. package/CODE_OF_CONDUCT.md +47 -0
  2. package/LICENSE +30 -0
  3. package/README.md +48 -22
  4. package/bin/cli.js +130 -119
  5. package/istm-animate/SKILL.md +28 -58
  6. package/istm-animate/core/motion-principles/SKILL.md +284 -0
  7. package/istm-animate/core/motion-principles/references/designers.md +127 -0
  8. package/istm-animate/core/motion-principles/references/easing-guide.md +231 -0
  9. package/istm-animate/core/motion-principles/references/enter-exit-recipes.md +466 -0
  10. package/istm-animate/frameworks/canvas-generative/SKILL.md +325 -0
  11. package/istm-animate/frameworks/canvas-generative/references/algorithms.md +925 -0
  12. package/istm-animate/frameworks/css-native/SKILL.md +319 -0
  13. package/istm-animate/frameworks/css-native/references/modern-css.md +465 -0
  14. package/istm-animate/frameworks/framer-motion/SKILL.md +187 -0
  15. package/istm-animate/frameworks/framer-motion/references/api.md +312 -0
  16. package/istm-animate/frameworks/gsap/SKILL.md +188 -0
  17. package/istm-animate/frameworks/gsap/references/core.md +218 -0
  18. package/istm-animate/frameworks/gsap/references/plugins.md +371 -0
  19. package/istm-animate/frameworks/gsap/references/scrolltrigger.md +325 -0
  20. package/istm-animate/frameworks/gsap/references/timeline.md +218 -0
  21. package/istm-animate/frameworks/threejs-r3f/SKILL.md +243 -0
  22. package/istm-animate/frameworks/threejs-r3f/references/scene-setup.md +392 -0
  23. package/istm-animate/frameworks/threejs-r3f/references/shaders.md +446 -0
  24. package/istm-animate/mobile/android/compose-graphics/SKILL.md +503 -0
  25. package/istm-animate/mobile/android/compose-graphics/references/agsl-recipes.md +356 -0
  26. package/istm-animate/mobile/android/compose-graphics/references/canvas-generative.md +282 -0
  27. package/istm-animate/mobile/android/compose-graphics/references/m3-expressive-deep.md +303 -0
  28. package/istm-animate/mobile/android/compose-motion/SKILL.md +359 -0
  29. package/istm-animate/mobile/android/compose-motion/references/gestures-compose.md +273 -0
  30. package/istm-animate/mobile/android/compose-motion/references/recomposition-and-anim.md +196 -0
  31. package/istm-animate/mobile/android/compose-motion/references/shared-transitions.md +281 -0
  32. package/istm-animate/mobile/android/compose-multiplatform/SKILL.md +311 -0
  33. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-interop.md +288 -0
  34. package/istm-animate/mobile/android/compose-multiplatform/references/cmp-platform-quirks.md +156 -0
  35. package/istm-animate/mobile/apple/swiftui-graphics/SKILL.md +408 -0
  36. package/istm-animate/mobile/apple/swiftui-graphics/references/canvas-swiftui.md +239 -0
  37. package/istm-animate/mobile/apple/swiftui-graphics/references/liquid-glass-deep.md +252 -0
  38. package/istm-animate/mobile/apple/swiftui-graphics/references/metal-recipes.md +382 -0
  39. package/istm-animate/mobile/apple/swiftui-motion/SKILL.md +379 -0
  40. package/istm-animate/mobile/apple/swiftui-motion/references/gestures-swiftui.md +336 -0
  41. package/istm-animate/mobile/apple/swiftui-motion/references/phase-keyframe-deep.md +231 -0
  42. package/istm-animate/mobile/apple/swiftui-motion/references/springs-cheatsheet.md +129 -0
  43. package/istm-animate/references/animate.md +199 -0
  44. package/istm-animate/references/audit.md +115 -0
  45. package/istm-animate/references/design-engineering.md +674 -0
  46. package/istm-animate/references/improve.md +101 -0
  47. package/istm-animate/references/opportunities.md +132 -0
  48. package/istm-animate/references/plan-template.md +73 -0
  49. package/istm-animate/references/recipes.md +324 -0
  50. package/istm-animate/references/review.md +112 -0
  51. package/istm-animate/references/standards.md +187 -0
  52. package/istm-animate/references/vocabulary.md +173 -0
  53. package/istm-architecture/SKILL.md +10 -1
  54. package/istm-awwward-designer/SKILL.md +28 -20
  55. package/istm-design/SKILL.md +31 -58
  56. package/istm-design/core/design-audit/SKILL.md +248 -0
  57. package/istm-design/core/desktop-principles/SKILL.md +363 -0
  58. package/istm-design/core/desktop-principles/references/keyboard-patterns.md +137 -0
  59. package/istm-design/core/desktop-principles/references/multi-window.md +105 -0
  60. package/istm-design/core/mobile-principles/SKILL.md +289 -0
  61. package/istm-design/core/mobile-principles/references/accessibility-mobile.md +175 -0
  62. package/istm-design/core/mobile-principles/references/gestures-deep.md +220 -0
  63. package/istm-design/core/ui-ux-pro-max/SKILL.md +392 -0
  64. package/istm-design/core/ui-ux-pro-max/UPSTREAM.md +23 -0
  65. package/istm-design/core/ui-ux-pro-max/data/app-interface.csv +31 -0
  66. package/istm-design/core/ui-ux-pro-max/data/charts.csv +26 -0
  67. package/istm-design/core/ui-ux-pro-max/data/colors.csv +193 -0
  68. package/istm-design/core/ui-ux-pro-max/data/google-fonts.csv +1924 -0
  69. package/istm-design/core/ui-ux-pro-max/data/icons.csv +106 -0
  70. package/istm-design/core/ui-ux-pro-max/data/landing.csv +35 -0
  71. package/istm-design/core/ui-ux-pro-max/data/motion.csv +17 -0
  72. package/istm-design/core/ui-ux-pro-max/data/products.csv +193 -0
  73. package/istm-design/core/ui-ux-pro-max/data/react-performance.csv +45 -0
  74. package/istm-design/core/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  75. package/istm-design/core/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  76. package/istm-design/core/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
  77. package/istm-design/core/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  78. package/istm-design/core/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
  79. package/istm-design/core/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
  80. package/istm-design/core/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  81. package/istm-design/core/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  82. package/istm-design/core/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
  83. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxt-ui.csv +71 -0
  84. package/istm-design/core/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
  85. package/istm-design/core/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  86. package/istm-design/core/ui-ux-pro-max/data/stacks/react.csv +54 -0
  87. package/istm-design/core/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
  88. package/istm-design/core/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
  89. package/istm-design/core/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  90. package/istm-design/core/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  91. package/istm-design/core/ui-ux-pro-max/data/stacks/uno.csv +60 -0
  92. package/istm-design/core/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
  93. package/istm-design/core/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  94. package/istm-design/core/ui-ux-pro-max/data/stacks/winui.csv +60 -0
  95. package/istm-design/core/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
  96. package/istm-design/core/ui-ux-pro-max/data/styles.csv +85 -0
  97. package/istm-design/core/ui-ux-pro-max/data/typography.csv +75 -0
  98. package/istm-design/core/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
  99. package/istm-design/core/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  100. package/istm-design/core/ui-ux-pro-max/references/pro-rules.md +109 -0
  101. package/istm-design/core/ui-ux-pro-max/references/quick-reference.md +240 -0
  102. package/istm-design/core/ui-ux-pro-max/scripts/core.py +464 -0
  103. package/istm-design/core/ui-ux-pro-max/scripts/design_system.py +1371 -0
  104. package/istm-design/core/ui-ux-pro-max/scripts/search.py +162 -0
  105. package/istm-design/core/ui-ux-pro-max/scripts/tests/test_core.py +134 -0
  106. package/istm-design/core/ui-ux-pro-max/scripts/validate_data.py +114 -0
  107. package/istm-design/references/apple-design.md +282 -0
  108. package/istm-design/references/generation-guide.md +209 -0
  109. package/istm-design/references/pick-ui-library.md +77 -0
  110. package/istm-design/references/picker.md +197 -0
  111. package/istm-design/references/prototype.md +90 -0
  112. package/istm-design/references/schema.md +366 -0
  113. package/istm-workflow/istm-audit/SKILL.md +7 -7
  114. package/istm-workflow/istm-audit/agent-prompt.md +20 -20
  115. package/istm-workflow/istm-audit/modes/area.md +1 -1
  116. package/istm-workflow/istm-audit/modes/greenfield.md +4 -4
  117. package/istm-workflow/istm-audit/modes/tool-skills.md +1 -1
  118. package/istm-workflow/istm-check/SKILL.md +10 -10
  119. package/istm-workflow/istm-check/modes/review.md +9 -9
  120. package/istm-workflow/istm-check/modes/verify.md +19 -19
  121. package/istm-workflow/istm-check/review-agent-prompt.md +2 -2
  122. package/istm-workflow/istm-check/review-guide.md +4 -4
  123. package/istm-workflow/istm-craft/SKILL.md +20 -11
  124. package/istm-workflow/istm-craft/agent-modes/architecture.md +1 -1
  125. package/istm-workflow/istm-craft/agent-prompt.md +8 -8
  126. package/istm-workflow/istm-craft/internal/after-subagent.md +11 -11
  127. package/istm-workflow/istm-craft/internal/design-conversation.md +9 -9
  128. package/istm-workflow/istm-craft/internal/tool-discovery.md +2 -2
  129. package/istm-workflow/istm-craft/spec-template.md +18 -18
  130. package/istm-workflow/istm-debug/SKILL.md +6 -6
  131. package/istm-workflow/istm-develop/SKILL.md +31 -16
  132. package/istm-workflow/istm-develop/checklist.md +1 -1
  133. package/istm-workflow/istm-develop/flow/build.md +21 -21
  134. package/istm-workflow/istm-develop/flow/git.md +4 -4
  135. package/istm-workflow/istm-develop/logical-guide.md +5 -5
  136. package/istm-workflow/istm-develop/ui/implementation.md +2 -2
  137. package/istm-workflow/istm-develop/ui-guide.md +3 -3
  138. package/istm-workflow/istm-document/SKILL.md +6 -6
  139. package/istm-workflow/istm-document/templates/postmortem.md +1 -1
  140. package/istm-workflow/istm-scope/SKILL.md +20 -20
  141. package/istm-workflow/istm-scope/modes/add.md +1 -1
  142. package/istm-workflow/istm-scope/modes/plan-brownfield.md +2 -2
  143. package/istm-workflow/istm-scope/modes/plan-greenfield.md +4 -4
  144. package/istm-workflow/istm-scope/modes/plan-monorepo.md +3 -3
  145. package/istm-workflow/istm-scope/modes/plan.md +16 -16
  146. package/istm-workflow/istm-scope/modes/replan.md +2 -2
  147. package/istm-workflow/istm-scope/scope-template.md +29 -29
  148. package/istm-workflow/istm-sync/SKILL.md +37 -25
  149. package/istm-workflow/istm-sync/agent-prompt.md +37 -19
  150. package/istm-workflow/istm-test/SKILL.md +12 -12
  151. package/istm-workflow/istm-test/modes/setup.md +6 -6
  152. package/istm-workflow/istm-test/writing-guide.md +1 -1
  153. package/package.json +1 -1
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: istm-animate
3
+ description: Reviews animation and motion code against a high craft bar derived from istmX's design engineering philosophy. Default to flagging; approval is earned.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Reviewing Animations
8
+
9
+ A specialized review skill. It does ONE thing: review animation and motion code against a high craft bar. It does not write features, fix unrelated bugs, or review non-motion code. If asked to review general code, decline and point to a general review skill.
10
+
11
+ ## Operating Posture
12
+
13
+ You are a senior design engineer with a brutal eye for craft. Your bias is toward **motion that feels right**, not motion that merely runs. A transition that "works" but feels sluggish, lands from the wrong origin, fires too often, or drops frames is a regression, not a pass. Default to flagging. Approval is earned, not assumed.
14
+
15
+ The substantive bar comes from istmX's animation philosophy (animations.dev). The review *method* — non-negotiable standards, escalation triggers, a remedial hierarchy, tiered output, and explicit approval criteria — is adapted from aggressive code-quality review.
16
+
17
+ For the full rule catalog (easing curves, duration tables, spring config, gestures, clip-path, performance, a11y), see [STANDARDS.md](STANDARDS.md). Load it whenever a finding needs a precise value or citation.
18
+
19
+ ## The Ten Non-Negotiable Standards
20
+
21
+ Every animation in the diff is measured against these. A violation is a finding.
22
+
23
+ 1. **Justified motion.** Every animation must answer "why does this animate?" — spatial consistency, state indication, feedback, explanation, or preventing a jarring change. "It looks cool" on a frequently-seen element is a block.
24
+
25
+ 2. **Frequency-appropriate.** Match motion to how often it's seen. Keyboard-initiated and 100+/day actions get **no** animation. Tens/day gets reduced motion. Occasional gets standard. Rare/first-time can have delight.
26
+
27
+ 3. **Responsive easing.** Entering/exiting elements use `ease-out` or a strong custom curve. `ease-in` on UI is a block — it delays the moment the user watches most. Built-in CSS easings are too weak; expect custom cubic-beziers.
28
+
29
+ 4. **Sub-300ms UI.** UI animations stay under 300ms; anything slower on a UI element needs justification or it's a finding. Per-element budgets live in [STANDARDS.md](STANDARDS.md).
30
+
31
+ 5. **Origin & physical correctness.** Popovers/dropdowns/tooltips scale from their trigger (`transform-origin`), not center. Never animate from `scale(0)` — start from `scale(0.9–0.97)` + opacity (Modals are exempt — they stay centered.)
32
+
33
+ 6. **Interruptibility.** Rapidly-triggered or gesture-driven motion (toasts, toggles, drags) must be interruptible — CSS transitions or springs that retarget from current state, not keyframes that restart from zero.
34
+
35
+ 7. **GPU-only properties.** Animate `transform` and `opacity` only. Animating `width`/`height`/`margin`/`padding`/`top`/`left` (or Framer Motion `x`/`y`/`scale` shorthands under load) is a performance finding.
36
+
37
+ 8. **Accessibility.** `prefers-reduced-motion` is honored (gentler, not zero — keep opacity/color, drop movement). Hover animations are gated behind `@media (hover: hover) and (pointer: fine)`.
38
+
39
+ 9. **Asymmetric enter/exit.** Deliberate actions (a press, a hold, a destructive confirm) animate slower; system responses snap. Symmetric timing on a press-and-release or hold interaction is a finding.
40
+
41
+ 10. **Cohesion.** Motion matches the component's personality and the rest of the product — playful can be bouncier, a dashboard stays crisp. Mismatched personality, or a jarring crossfade where a subtle blur would bridge two states, is a finding. When unsure whether motion feels right, the strongest move is often to delete it.
42
+
43
+ ## Aggressive Escalation Triggers
44
+
45
+ Flag these on sight, hard:
46
+
47
+ - `transition: all` (unbounded property animation)
48
+ - `scale(0)` or pure-fade entrances with no initial transform
49
+ - `ease-in` on any UI interaction; weak built-in easing on a deliberate animation
50
+ - Animation on a keyboard shortcut, command-palette toggle, or 100+/day action
51
+ - UI duration > 300ms with no stated reason
52
+ - `transform-origin: center` on a trigger-anchored popover/dropdown/tooltip
53
+ - Keyframes on toasts, toggles, or anything added/triggered rapidly
54
+ - Animating layout properties (`width`/`height`/`margin`/`padding`/`top`/`left`)
55
+ - Framer Motion `x`/`y`/`scale` props on motion that runs while the page is busy
56
+ - Updating a CSS variable on a parent to drive a child transform (style recalc storm)
57
+ - Missing `prefers-reduced-motion` handling on movement
58
+ - Ungated `:hover` motion
59
+ - Symmetric enter/exit timing on a press-and-release or hold interaction
60
+ - Everything-at-once entrance where a 30–80ms stagger belongs
61
+
62
+ ## Remedial Preference Hierarchy
63
+
64
+ When proposing fixes, prefer earlier moves over later ones:
65
+
66
+ 1. **Delete the animation** (high-frequency / no purpose / keyboard-triggered).
67
+ 2. **Reduce it** — shorter duration, smaller transform, fewer animated properties.
68
+ 3. **Fix the easing** — swap `ease-in`→`ease-out`/custom curve; use a strong cubic-bezier.
69
+ 4. **Fix the origin/physicality** — correct `transform-origin`; replace `scale(0)` with `scale(0.95)`+opacity.
70
+ 5. **Make it interruptible** — keyframes → transitions, or a spring for gesture-driven motion.
71
+ 6. **Move it to the GPU** — layout props → `transform`/`opacity`; shorthand → full `transform` string; WAAPI for programmatic CSS.
72
+ 7. **Asymmetric timing** — slow the deliberate phase, snap the response.
73
+ 8. **Polish** — blur to mask crossfades, stagger for groups, `@starting-style` for entry, spring for "alive" elements.
74
+ 9. **Accessibility & cohesion** — add reduced-motion + hover gating; tune to match the component's personality.
75
+
76
+ ## Required Output Format
77
+
78
+ Two parts, in this order.
79
+
80
+ ### Part 1 — Findings table (REQUIRED)
81
+
82
+ A single markdown table. One row per issue. Never a "Before:/After:" list.
83
+
84
+ | Before | After | Why |
85
+ | --- | --- | --- |
86
+ | `transition: all 300ms` | `transition: transform 200ms ease-out` | Specify exact properties; `all` animates unintended properties off-GPU |
87
+ | `transform: scale(0)` | `transform: scale(0.95); opacity: 0` | Nothing appears from nothing — `scale(0)` looks like it came from nowhere |
88
+ | `ease-in` on dropdown | `ease-out` + custom curve | `ease-in` delays the moment the user watches most; feels sluggish |
89
+ | `transform-origin: center` on popover | `var(--transform-origin)` (Base UI) | Popovers scale from their trigger, not center (modals are exempt) |
90
+
91
+ ### Part 2 — Verdict (REQUIRED)
92
+
93
+ Group remaining commentary by impact tier, highest first. Omit empty tiers.
94
+
95
+ 1. **Feel-breaking regressions** — sluggish easing, comes-from-nowhere, fires on high-frequency/keyboard actions.
96
+ 2. **Missed simplifications** — animations that should be removed or drastically reduced.
97
+ 3. **Performance** — non-GPU properties, dropped-frame risks, recalc storms.
98
+ 4. **Interruptibility & timing** — keyframes where transitions/springs belong; symmetric timing that should be asymmetric.
99
+ 5. **Origin, physicality & cohesion** — wrong origin, mismatched personality, jarring crossfades.
100
+ 6. **Accessibility** — reduced-motion and pointer/hover gating.
101
+
102
+ Close with an explicit decision:
103
+
104
+ - **Block** — any feel-breaking regression, animation on a keyboard/high-frequency action, `scale(0)`/`ease-in` on UI, or a non-GPU animation with an easy GPU fix.
105
+ - **Approve** — no feel-breaking regressions, no obvious motion that should be deleted, durations and easing within bounds, interruptibility handled where needed, reduced-motion respected.
106
+
107
+ Be specific and cite `file:line`. When a value is needed (a curve, a duration, a spring config), pull the exact one from [STANDARDS.md](STANDARDS.md) rather than approximating.
108
+
109
+ ## Guidelines
110
+
111
+ - Prefer CSS transitions/`@starting-style`/WAAPI for predetermined motion; JS/springs for dynamic, interruptible, gesture-driven motion.
112
+ - When unsure whether motion feels right, recommend reviewing it in slow motion / frame-by-frame and with fresh eyes the next day rather than guessing.
@@ -0,0 +1,187 @@
1
+ # Animation Standards Reference
2
+
3
+ The precise values, curves, and rules behind the review. Cite these in findings instead of approximating. Distilled from istmX's design engineering philosophy.
4
+
5
+ ## Should it animate? (frequency table)
6
+
7
+ | Frequency | Decision |
8
+ | --- | --- |
9
+ | 100+ times/day (keyboard shortcuts, command palette toggle) | No animation. Ever. |
10
+ | Tens of times/day (hover effects, list navigation) | Remove or drastically reduce |
11
+ | Occasional (modals, drawers, toasts) | Standard animation |
12
+ | Rare / first-time (onboarding, feedback, celebrations) | Can add delight |
13
+
14
+ **Never animate keyboard-initiated actions** — they repeat hundreds of times daily; animation makes them feel slow and disconnected. (Raycast has no open/close animation — correct for something used hundreds of times a day.)
15
+
16
+ Valid purposes for motion: spatial consistency, state indication, explanation, feedback, preventing jarring change. "It looks cool" on a frequently-seen element is not valid.
17
+
18
+ ## Easing
19
+
20
+ Decision order:
21
+ - Entering or exiting → **`ease-out`** (starts fast, feels responsive)
22
+ - Moving / morphing on screen → **`ease-in-out`**
23
+ - Hover / color change → **`ease`**
24
+ - Constant motion (marquee, progress) → **`linear`**
25
+ - Default → **`ease-out`**
26
+
27
+ **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.
28
+
29
+ Built-in CSS easings are too weak. Use strong custom curves:
30
+
31
+ ```css
32
+ --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* strong ease-out for UI */
33
+ --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* strong ease-in-out for on-screen movement */
34
+ --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like drawer curve (Ionic) */
35
+ ```
36
+
37
+ Find curves at [easing.dev](https://easing.dev/) or [easings.co](https://easings.co/) — don't hand-roll from scratch.
38
+
39
+ ## Duration
40
+
41
+ | Element | Duration |
42
+ | --- | --- |
43
+ | Button press feedback | 100–160ms |
44
+ | Tooltips, small popovers | 125–200ms |
45
+ | Dropdowns, selects | 150–250ms |
46
+ | Modals, drawers | 200–500ms |
47
+ | Marketing / explanatory | Can be longer |
48
+
49
+ **Rule: UI animations stay under 300ms.** A 180ms dropdown feels more responsive than a 400ms one. Faster spinners make load feel faster (same actual time). Instant tooltips after the first (skip delay + animation) make a toolbar feel faster.
50
+
51
+ ## Physicality
52
+
53
+ - **Never `scale(0)`.** Start from `scale(0.9–0.97)` + `opacity: 0`. Nothing in the real world appears from nothing.
54
+ - **Origin-aware popovers.** Scale from the trigger, not center:
55
+ ```css
56
+ .popover { transform-origin: var(--transform-origin); } /* Base UI */
57
+ ```
58
+ **Modals are exempt** — they appear centered in the viewport, keep `transform-origin: center`.
59
+ - **Button press feedback.** `transform: scale(0.97)` on `:active`, `transition: transform 160ms ease-out`. Subtle (0.95–0.98). Applies to any pressable element.
60
+
61
+ ## Springs
62
+
63
+ Feel natural because they simulate physics; no fixed duration — they settle on parameters. Use for: drag with momentum, "alive" elements (Dynamic Island), interruptible gestures, decorative mouse-tracking.
64
+
65
+ ```js
66
+ // Apple-style (easier to reason about) — recommended
67
+ { type: "spring", duration: 0.5, bounce: 0.2 }
68
+
69
+ // Traditional physics (more control)
70
+ { type: "spring", mass: 1, stiffness: 100, damping: 10 }
71
+ ```
72
+
73
+ Keep bounce subtle (0.1–0.3); avoid bounce in most UI — reserve for drag-to-dismiss and playful interactions. Springs maintain velocity when interrupted (keyframes restart from zero), so they're ideal for gestures users may reverse mid-motion.
74
+
75
+ Mouse interactions: interpolate with `useSpring` rather than tying value directly to mouse position (direct = artificial, no momentum). Only do this when the motion is decorative.
76
+
77
+ ## Interruptibility
78
+
79
+ CSS **transitions** can be interrupted and retargeted mid-animation; **keyframes** restart from zero. For anything triggered rapidly (toasts being added, toggles), transitions are smoother.
80
+
81
+ ```css
82
+ /* Interruptible — good for dynamic UI */
83
+ .toast { transition: transform 400ms ease; }
84
+
85
+ /* Not interruptible — avoid for dynamic UI */
86
+ @keyframes slideIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
87
+ ```
88
+
89
+ Use `@starting-style` for entry without JS:
90
+
91
+ ```css
92
+ .toast {
93
+ opacity: 1; transform: translateY(0);
94
+ transition: opacity 400ms ease, transform 400ms ease;
95
+ @starting-style { opacity: 0; transform: translateY(100%); }
96
+ }
97
+ ```
98
+
99
+ Legacy fallback: `useEffect(() => setMounted(true), [])` + `data-mounted` attribute.
100
+
101
+ ## Asymmetric timing
102
+
103
+ Slow where the user is deciding, fast where the system responds.
104
+
105
+ ```css
106
+ .overlay { transition: clip-path 200ms ease-out; } /* release: fast */
107
+ .button:active .overlay { transition: clip-path 2s linear; } /* press: slow, deliberate */
108
+ ```
109
+
110
+ ## Performance
111
+
112
+ - **Only animate `transform` and `opacity`** — they skip layout/paint and run on the GPU. `padding`/`margin`/`height`/`width`/`top`/`left` trigger all three rendering steps.
113
+ - **Don't drive child transforms via a CSS variable on the parent** — it recalcs styles for all children. Set `transform` directly on the element.
114
+ ```js
115
+ element.style.setProperty('--swipe-amount', `${d}px`); // bad: recalc on all children
116
+ element.style.transform = `translateY(${d}px)`; // good: only this element
117
+ ```
118
+ - **Framer Motion shorthands are NOT hardware-accelerated.** `x`/`y`/`scale` run on the main thread via rAF and drop frames under load. Use the full transform string:
119
+ ```jsx
120
+ <motion.div animate={{ x: 100 }} /> // drops frames under load
121
+ <motion.div animate={{ transform: "translateX(100px)" }} /> // hardware accelerated
122
+ ```
123
+ - **CSS animations beat JS under load** — they run off the main thread; rAF-based animations stutter while the browser loads/scripts/paints. Use CSS for predetermined motion, JS for dynamic/interruptible.
124
+ - **WAAPI** gives JS control with CSS performance (hardware-accelerated, interruptible, no library):
125
+ ```js
126
+ element.animate([{ clipPath: 'inset(0 0 100% 0)' }, { clipPath: 'inset(0 0 0 0)' }],
127
+ { duration: 1000, fill: 'forwards', easing: 'cubic-bezier(0.77, 0, 0.175, 1)' });
128
+ ```
129
+
130
+ ## Transforms & clip-path
131
+
132
+ - **`translate` percentages** are relative to the element's own size — `translateY(100%)` moves by the element's height regardless of dimensions (how Sonner/Vaul position toasts/drawers). Prefer over hardcoded px.
133
+ - **`scale()` scales children too** (font, icons, content) — a feature for press feedback.
134
+ - **3D**: `rotateX/Y` + `transform-style: preserve-3d` for depth/orbit/flip without JS.
135
+ - **`clip-path: inset(t r b l)`** is a powerful animation tool: each value eats in from that side. Uses: reveal-on-scroll (`inset(0 0 100% 0)` → `inset(0 0 0 0)`), hold-to-delete overlay, seamless tab color transitions (duplicate + clip the active copy), comparison sliders.
136
+
137
+ ## Gestures & drag
138
+
139
+ - **Momentum dismissal**: don't require crossing a distance threshold — compute velocity (`Math.abs(distance)/elapsedMs`); dismiss if `> ~0.11`. A flick should be enough.
140
+ - **Damping at boundaries**: dragging past a natural edge moves less the further you go (real things slow before stopping).
141
+ - **Pointer capture** once dragging starts, so it continues when the pointer leaves bounds.
142
+ - **Multi-touch protection**: ignore extra touch points after the drag begins (`if (isDragging) return`) — prevents jumps.
143
+ - **Friction over hard stops** — allow over-drag with rising resistance rather than an invisible wall.
144
+
145
+ ## Masking imperfect crossfades
146
+
147
+ When a crossfade shows two overlapping states despite tuning easing/duration, add subtle `filter: blur(2px)` during the transition to blend them into one perceived transformation. Keep blur < 20px (heavy blur is expensive, especially Safari).
148
+
149
+ ## Stagger
150
+
151
+ Stagger group entrances; 30–80ms between items. Longer delays feel slow. Stagger is decorative — never block interaction while it plays.
152
+
153
+ ```css
154
+ .item { opacity: 0; transform: translateY(8px); animation: fadeIn 300ms ease-out forwards; }
155
+ .item:nth-child(2) { animation-delay: 50ms; }
156
+ .item:nth-child(3) { animation-delay: 100ms; }
157
+ @keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
158
+ ```
159
+
160
+ ## Accessibility
161
+
162
+ ```css
163
+ @media (prefers-reduced-motion: reduce) {
164
+ .element { animation: fade 0.2s ease; } /* keep opacity/color, drop transform-based motion */
165
+ }
166
+ @media (hover: hover) and (pointer: fine) {
167
+ .element:hover { transform: scale(1.05); } /* gate hover motion — touch fires false hovers on tap */
168
+ }
169
+ ```
170
+
171
+ ```jsx
172
+ const reduce = useReducedMotion();
173
+ const closedX = reduce ? 0 : '-100%';
174
+ ```
175
+
176
+ Reduced motion means fewer and gentler animations, not zero — keep transitions that aid comprehension, remove movement/position changes.
177
+
178
+ ## Debugging (recommend in reviews when feel is uncertain)
179
+
180
+ - **Slow motion**: bump duration 2–5× or use DevTools animation inspector. Check colors crossfade cleanly, easing doesn't stop abruptly, `transform-origin` is right, coordinated properties stay in sync.
181
+ - **Frame-by-frame**: Chrome DevTools Animations panel reveals timing drift between coordinated properties.
182
+ - **Real devices** for gestures (drawers, swipe) — connect a phone, hit the dev server by IP, use Safari remote devtools.
183
+ - **Fresh eyes next day** — imperfections invisible during development surface later.
184
+
185
+ ## Cohesion
186
+
187
+ Match motion to the component's personality: playful can be bouncier; a professional dashboard should be crisp and fast. Sonner feels right partly because easing, duration, design, and even the name are in harmony — slightly slower, `ease` rather than `ease-out`, to feel elegant. Opacity + height in entering/exiting lists is trial and error; there's no formula — adjust until it feels right.
@@ -0,0 +1,173 @@
1
+ ---
2
+ name: istm-animate
3
+ description: Reverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover opens" → Pop in; "the iOS rubber-band scroll" → Rubber-banding). Use when the user asks "what's it called when…", or describes a motion effect without knowing its name and wants the right word to prompt an AI or designer with. For naming an effect, not designing or building one.
4
+ ---
5
+
6
+ # Animation Vocabulary
7
+
8
+ Turn a vague description of a motion or effect into the precise term, so the user knows what to ask for.
9
+
10
+ ## Quick Start
11
+
12
+ The user describes an effect loosely. You return the matching term(s) in this format:
13
+
14
+ ```
15
+ **Stagger** — Animate several items one after another with a small delay between each, creating a cascade.
16
+ ```
17
+
18
+ If several terms could fit, list the best match first, then 1–2 alternates with a one-line note on how they differ.
19
+
20
+ ## Instructions
21
+
22
+ 1. **Read for intent, not keywords.** Users describe what they *see* or *feel* ("springy", "slides off", "draws itself in"), not the technical name. Map the sensation to the glossary below.
23
+ 2. **Quote the glossary verbatim.** Its descriptions are authoritative — use them as-is, don't paraphrase.
24
+ 3. **Disambiguate close terms.** When two compete (*Clip-path* vs *Mask*, *Pop in* vs *Bounce*, *Shared element transition* vs *Layout animation*), contrast them so the user can pick.
25
+ 4. **When nothing matches exactly,** name the closest term and say plainly it's an approximation, or describe the effect in the glossary's vocabulary (e.g. "that's a *stagger* of *scale-in* entrances").
26
+ 5. **Stay within this glossary.** If a term genuinely isn't here, say so rather than inventing one — though you may explain the concept using these words.
27
+ 6. **Keep it tight.** A naming question wants a name, not an essay. Lead with the term; expand only if asked.
28
+
29
+ ## Examples
30
+
31
+ **Example 1 — feel-based**
32
+ User: "What's it called when a popover seems to grow out of the button you clicked instead of from its middle?"
33
+ Output:
34
+ ```
35
+ **Origin-aware animation** — An element animates out of its trigger, like a popover growing from the button that opened it instead of from its own center which is the default in CSS.
36
+ ```
37
+
38
+ **Example 2 — disambiguation**
39
+ User: "The thing where one image turns into another image."
40
+ Output:
41
+ ```
42
+ **Morph** — One shape smoothly turns into another shape, e.g. Dynamic Island.
43
+
44
+ Close alternates:
45
+ - **Crossfade** — if they simply fade over each other in the same spot.
46
+ - **Shared element transition** — if an element travels and transforms from one position into another.
47
+ ```
48
+
49
+ **Example 3 — physics feel**
50
+ User: "That iOS scroll where it resists and snaps back when you pull too far."
51
+ Output:
52
+ ```
53
+ **Rubber-banding** — Resistance and snap-back when you drag past a boundary (the iOS overscroll feel).
54
+ ```
55
+
56
+ ## Glossary
57
+
58
+ _A curated snapshot mirroring the project's `/vocabulary` page; keep the two in sync when either changes._
59
+
60
+ ### Entrances & Exits — how elements appear and disappear
61
+ - **Fade in / Fade out** — Element appears or disappears by changing opacity.
62
+ - **Slide in** — Element enters by sliding in from off-screen (left, right, top, or bottom).
63
+ - **Scale in** — Element grows from smaller to full size as it appears, often paired with a fade.
64
+ - **Pop in** — Element appears with a slight overshoot, like it bounces into place.
65
+ - **Reveal** — Content is uncovered gradually, often by animating a clip-path or mask.
66
+ - **Enter / Exit** — The animation an element plays when it's added to or removed from the screen.
67
+
68
+ ### Sequencing & Timing — coordinating multiple elements or moments
69
+ - **Keyframes** — Defined points in an animation (0%, 50%, 100%) that the browser fills the gaps between.
70
+ - **Interpolation / Tween** — Generating all the in-between frames between a start and end value, so motion is continuous.
71
+ - **Stagger** — Animate several items one after another with a small delay between each, creating a cascade.
72
+ - **Orchestration** — Deliberately timing multiple animations so they feel like one coordinated motion.
73
+ - **Delay** — Time before an animation starts.
74
+ - **Duration** — How long an animation takes.
75
+ - **Fill mode** — Whether an element keeps its first or last frame's styles before the animation starts or after it ends (e.g. forwards).
76
+ - **Stepped animation** — An animation that is divided into discrete steps, like a countdown timer.
77
+
78
+ ### Movement & Transforms — changing an element's position, size, or angle
79
+ - **Translate** — Move an element along the X or Y axis.
80
+ - **Scale** — Make an element bigger or smaller.
81
+ - **Rotate** — Spin an element around a point.
82
+ - **Skew** — Slant an element along the X or Y axis, shearing it out of its rectangular shape.
83
+ - **3D tilt / Flip** — Rotate in 3D space (rotateX / rotateY) to add depth.
84
+ - **Perspective** — How strong the 3D effect looks — a lower value exaggerates depth, like the viewer is closer.
85
+ - **Transform origin** — The anchor point a scale or rotation grows or spins from.
86
+ - **Origin-aware animation** — An element animates out of its trigger, like a popover growing from the button that opened it instead of from its own center which is the default in CSS.
87
+
88
+ ### Transitions Between States — connecting one state, view, or element to another
89
+ - **Crossfade** — One element fades out as another fades in, in the same spot.
90
+ - **Continuity transition** — A change that keeps the user oriented by visually connecting before and after. For example, making the same rectangle bigger and smaller.
91
+ - **Morph** — One shape smoothly turns into another shape, e.g. Dynamic Island.
92
+ - **Shared element transition** — An element travels and transforms from one position into another, like a thumbnail expanding into a card.
93
+ - **Layout animation** — When an element's size or position changes, it animates to the new spot instead of snapping.
94
+ - **Accordion / Collapse** — A section smoothly expands and collapses its height to show or hide content.
95
+ - **Direction-aware transition** — Content slides one way going forward and the opposite way going back, so navigation has a sense of direction.
96
+
97
+ ### Scroll — motion tied to scrolling or navigating between views
98
+ - **Scroll reveal** — Elements fade or slide into place as they enter the viewport.
99
+ - **Scroll-driven animation** — An animation whose progress is tied directly to scroll position.
100
+ - **Parallax** — Background and foreground move at different speeds while scrolling, creating depth.
101
+ - **Page transition** — An animation that plays when navigating from one page or route to another.
102
+ - **View transition** — The browser morphs between two states or pages, connecting shared elements.
103
+
104
+ ### Feedback & Interaction — responding to the user's actions
105
+ - **Hover effect** — Visual change when the cursor moves over an element.
106
+ - **Press / Tap feedback** — A subtle scale-down when an element is clicked, so it feels physical.
107
+ - **Hold to confirm** — A progress effect that fills up while the user holds a button.
108
+ - **Drag** — Moving an element by grabbing it, often with momentum when released.
109
+ - **Drag to reorder** — Dragging items in a list to rearrange them, while the others shift to make room.
110
+ - **Swipe to dismiss** — Dragging an element off-screen to close it, like a drawer or toast.
111
+ - **Rubber-banding** — Resistance and snap-back when you drag past a boundary (the iOS overscroll feel).
112
+ - **Shake / Wiggle** — A quick side-to-side jitter signaling an error or rejected input.
113
+ - **Ripple** — A circle expanding from the point of a tap, confirming the press.
114
+
115
+ ### Easing — how speed changes over an animation
116
+ - **Easing** — The rate at which an animation speeds up or slows down.
117
+ - **Ease-out** — Starts fast, ends slow. The default for most UI and anything responding to the user.
118
+ - **Ease-in** — Starts slow, ends fast. Usually avoided; can feel sluggish.
119
+ - **Ease-in-out** — Slow, fast, slow. Good for elements already on screen moving from A to B.
120
+ - **Linear** — Constant speed. Avoid for UI; reserve for spinners or marquees.
121
+ - **Cubic-bezier** — A custom easing curve you define for precise control.
122
+ - **Asymmetric easing** — A curve that accelerates and decelerates at different rates. Feels more alive than a symmetric one.
123
+
124
+ ### Spring Animations — physics-based motion as an alternative to fixed-duration easing
125
+ - **Spring** — Motion driven by physics (tension, mass, damping) rather than a set duration.
126
+ - **Stiffness / Tension** — How strongly the spring pulls toward its target. Higher feels snappier.
127
+ - **Damping** — How quickly a spring settles. Lower damping means more bounce and oscillation.
128
+ - **Mass** — How heavy the animated element feels. More mass makes it slower and more sluggish.
129
+ - **Bounce** — A spring that overshoots and settles, adding playfulness.
130
+ - **Perceptual duration** — How long a spring feels finished, even though it keeps micro-settling underneath.
131
+ - **Momentum** — Motion that carries velocity, especially after a drag or interruption.
132
+ - **Velocity** — How fast and in which direction an element is moving. A spring carries it into the next animation when interrupted, so a flicked element keeps its speed.
133
+ - **Interruptible animation** — An animation that can be smoothly redirected mid-flight instead of finishing first.
134
+
135
+ ### Looping & Ambient Motion — animations that run on their own
136
+ - **Marquee** — Text or content that scrolls continuously in a loop.
137
+ - **Loop** — An animation that repeats, a set number of times or infinitely.
138
+ - **Alternate (yoyo)** — A loop that plays forward then reverses each iteration, instead of jumping back to the start.
139
+ - **Orbit** — An element circling around another in a continuous path.
140
+ - **Pulse** — A gentle repeating scale or opacity change to draw attention.
141
+ - **Float** — A gentle, continuous up-and-down drift that makes a static element feel alive and weightless.
142
+ - **Idle animation** — Subtle motion that plays while an element is just sitting there, waiting to be interacted with.
143
+
144
+ ### Polish & Effects — the small touches that separate good from great
145
+ - **Blur** — A blur filter used to soften an element or mask tiny imperfections.
146
+ - **Clip-path** — Clipping an element to a shape, used for reveals, masks, and before/after sliders.
147
+ - **Mask** — Hiding or revealing parts of an element using a shape or gradient — like clip-path, but with soft, fadeable edges.
148
+ - **Before / after slider** — A draggable divider that wipes between two overlaid images to compare them.
149
+ - **Line drawing** — An SVG path that draws itself in, like an invisible pen tracing it.
150
+ - **Text morph** — Text that animates character by character when it changes, drawing attention to the new value.
151
+ - **Skeleton / Shimmer** — A placeholder with a moving sheen shown while content loads.
152
+ - **Number ticker** — Digits rolling or counting up to a value.
153
+ - **Tabular numbers** — Fixed-width digits so numbers don't shift around as they change. Essential for tickers, timers, and counters.
154
+ - **Typewriter** — Text appearing one character at a time, as if being typed.
155
+
156
+ ### Performance — what keeps motion smooth instead of stuttering
157
+ - **Frame rate (FPS)** — Frames drawn per second. 60fps is the baseline for smooth motion; 120fps on newer displays.
158
+ - **Jank** — Visible stutter when the browser drops frames because it can't keep up with the animation.
159
+ - **Dropped frame** — A frame the browser missed its deadline to draw, causing a tiny hitch in motion.
160
+ - **Compositing** — Letting the GPU move or fade an element on its own layer without redoing layout or paint.
161
+ - **will-change** — A CSS hint that an element is about to animate, so the browser can promote it to its own layer ahead of time.
162
+ - **Layout thrashing** — Animating properties like width, height, top, or left that force the browser to recalculate layout every frame, causing jank.
163
+
164
+ ### Principles to Know — concepts that guide when and how to animate
165
+ - **Purposeful animation** — Motion should serve a function — orient, give feedback, show relationships — not just decorate.
166
+ - **Anticipation** — A small wind-up in the opposite direction before a move, hinting at what's about to happen.
167
+ - **Follow-through** — Parts of an element keep moving and settle slightly after the main motion stops, adding weight.
168
+ - **Squash & stretch** — Deforming an element as it moves to convey weight, speed, and flexibility.
169
+ - **Perceived performance** — The right animation makes an interface feel faster, even when it isn't.
170
+ - **Frequency of use** — The more often a user sees an animation, the shorter and subtler it should be.
171
+ - **Spatial consistency** — Animating so an element keeps its identity and position across states, so users never lose track of where things went.
172
+ - **Hardware acceleration** — Animating transform and opacity lets the GPU keep motion smooth.
173
+ - **Reduced motion** — Respecting the user's prefers-reduced-motion setting by toning down or removing motion.
@@ -20,6 +20,15 @@ The master context orchestrator: evaluates user prompts, resolves structural amb
20
20
 
21
21
  Does not create production application code (the implementation agent owns that), audit for accessibility (/audit owns that), or write the feature scope (/scope owns that).
22
22
 
23
+
24
+ ## Folder Structure & Component Architecture
25
+
26
+ 1. **Just-In-Time Scaffolding**: Never create massive folder trees upfront. Folders should only be created when a specific feature is being built.
27
+ 2. **Respect Stack Conventions**: Do not blindly force a `src/app/` structure if a framework (like Next.js) already uses a root `app/` structure. Analyze the existing structure first.
28
+ 3. **Private vs Public Components**: Strictly enforce Feature-Based Architecture:
29
+ - **Public Components**: Reusable, generic UI components (buttons, inputs) belong in `shared/components/` (or `components/ui/` for shadcn).
30
+ - **Private Components**: Components specific to a single feature (e.g., `LoginForm`) MUST stay inside that feature's directory (`features/auth/components/`).
31
+
23
32
  ## Blueprint file convention (The 4 Pillars)
24
33
 
25
34
  Durable context lives in the `.istm-context/` directory. These files govern all future logic:
@@ -71,7 +80,7 @@ Pick the phase based on these signals:
71
80
 
72
81
  ### Route to the selected phase
73
82
 
74
- - Phase 1 (Greenfield Setup): Evaluate the domain (e-commerce, real-time, etc.). Identify missing context (Auth, DB). Interview the user. Apply Smart Defaults. Hydrate templates.
83
+ - Phase 1 (Greenfield Setup): Evaluate the domain (e-commerce, real-time, etc.). Identify missing context (Auth, DB). Interview the user. Apply Smart Defaults. Hydrate templates. **CRITICAL: When generating `design.md`, analyze the user's prompt to extract their exact aesthetic vision (e.g., massive fonts, vibrant colors). Do NOT force them to pick from generic styles like minimal or brutalist.**
75
84
  - Phase 2 (Reverse Engineering): Do not interview. Read `package.json`, `tsconfig.json`, and root schemas. Reverse-engineer the tech stack. Hydrate templates.
76
85
  - Phase 3 (Gap Fill): Read existing blueprints. Identify what the new prompt requires. Update existing blueprints carefully.
77
86
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: istm-awwward-designer
3
3
  allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
4
- description: "The premium frontend execution engine. This skill WRITES CODE. It takes blueprints from `/istm-design` and `/istm-animate` and builds Awwwards-winning React/GSAP/WebGL experiences."
4
+ description: "The premium frontend orchestrator and executor. Translates human design ideas into highly technical Awwwards-level GSAP/WebGL universes. Operates in Dual-Mode: generates the MASTER.md blueprint and physically writes the execution code using the 'paint' pipeline."
5
5
  ---
6
6
 
7
7
  ## Output style (plain words, no dashes, no hyphens)
@@ -12,32 +12,40 @@ Write everything this skill produces in plain simple language. Keep technical te
12
12
 
13
13
  ## What this skill does
14
14
 
15
- This is the ultimate execution engine. **THIS SKILL WRITES APPLICATION CODE.**
15
+ The ultimate Premium Visual Universe orchestrator and executor.
16
16
 
17
- Unlike `/istm-design` and `/istm-animate` (which only write markdown blueprints), `/istm-awwward-designer` is an expert UI developer. It reads the blueprints from `.istm-context/` and physically builds the high-end, award-winning frontend components.
18
-
19
- - **Teaches & Implements GSAP**: It writes complex GSAP timelines, `ScrollTrigger` logic, and staggered reveals.
20
- - **Physics Integration**: It mounts and configures `Lenis` for buttery smooth scroll-jacking.
21
- - **Asset Fallbacks**: It creates stunning typography-driven designs even without images, using extreme scaling and brutalist logic.
22
- - **WebGL**: Implements Three.js canvas backgrounds if requested.
17
+ - **Dual-Mode Execution**:
18
+ - **Context Phase (Day Zero)**: Builds a complete visual universe from scratch. Brainstorm first, implement second. Writes the `MASTER.md` design system.
19
+ - **Execution Phase (Day-to-Day)**: Translates the visual universe into flawless execution code, bypassing `/istm-develop`.
20
+ - **The Paint Pipeline**: Brainstorm -> Define visual + interaction thesis -> Generate design system (`MASTER.md`) -> Implement -> Full audit.
21
+ - **Teaches & Implements**: Writes complex GSAP timelines, `ScrollTrigger` logic, stagger values, precise easing curves, and WebGL components directly into the codebase.
23
22
 
24
23
  ## Blueprint file convention
25
24
 
26
- You do NOT write blueprints. You READ them.
27
- Before writing code, you must read:
28
- - `.istm-context/design.md`: For UI tokens, colors, and typography.
29
- - `.istm-context/animate.md`: For the required motion physics and easing.
25
+ You READ the foundational blueprints:
26
+ - `.istm-context/design.md`
27
+ - `.istm-context/agents.md`
28
+
29
+ You WRITE the overarching universe spec:
30
+ - `.istm-context/MASTER.md` (or `.istm-context/specs/NNNN-motion-<feature>.md` if scoped).
30
31
 
31
- ## Awwwards References Library
32
+ ## Execution
32
33
 
33
- You have a vast library of technical standards and anti-patterns available. **Before building complex interactions, you MUST read the exact technical documentation located in `skills/istm-awwward-designer/references/`.**
34
+ ### `Pre-flight` (main thread does this before anything else)
35
+ 1. Read the user's prompt.
36
+ 2. If the request is for a full redesign or starting from scratch, execute the Context Phase (Paint Pipeline - Full).
37
+ 3. If the request is localized (e.g., "build this specific premium hero section"), execute the Implementation Phase.
34
38
 
35
- Specifically, use your read tools to check files like `animation-standards.md`, `anti-patterns.md`, `scroll-patterns.md`, and `tech-stack.md` inside that directory to ensure your GSAP logic perfectly meets Awwwards criteria.
39
+ ### The Paint Pipeline
40
+ 1. **Brainstorm (Discovery Gate)**: Mandatory creative direction session. Ask questions to establish the visual and interaction thesis. Show the user the proposed identity.
41
+ 2. **Define Thesis**: Lock in the interaction mechanics and visual aesthetic.
42
+ 3. **Generate Design System**: Write the `MASTER.md` file integrating the stack-aware rules.
43
+ 4. **Implement**: Physically write the React components, CSS, GSAP, or WebGL logic.
44
+ 5. **Full Audit**: Run a massive post-implementation audit checking for motion gaps, accessibility, responsive performance, and memory leaks.
36
45
 
37
46
  ## Absolute Awwwards Execution Rules
38
47
 
39
- 1. **Write The Code**: Your primary job is to generate the React components, CSS, and GSAP logic directly into the project folder (e.g., `src/components/`).
40
- 2. **Teach by Doing**: Do not just tell the user how to animate. Write the actual `useEffect` hooks, `ScrollTrigger` setups, and CSS classes to prove it.
41
- 3. **Anti-Template Directive**: Never use standard UI component libraries. The output must be bespoke and custom-coded.
42
- 4. **DOM Performance**: Because GSAP and WebGL are heavy, you must use `will-change: transform` and avoid animating layout properties. Animate `transform` and `opacity` only.
43
- 5. **No Slop**: Generic components will be rejected. You are building premium, high-contrast, motion-heavy interfaces.
48
+ 1. **Translate Human to Tech**: When the user says "smooth", you code `ease: power4.out`. When they say "scroll reveal", you code `ScrollTrigger: { start: "top 80%", toggleActions: "play none none reverse" }`.
49
+ 2. **DOM Performance Strictness**: Mandate `will-change: transform`. Absolutely forbid animating layout properties (`width`, `height`, `top`, `left`). Animate `transform` and `opacity` only.
50
+ 3. **Cleanup Mandate**: Every component involving a GSAP timeline, Lenis smooth scrolling, or physics listener MUST explicitly kill the timeline/listener on unmount.
51
+ 4. **Asset Fallbacks**: Define stunning typography-driven design specs even without images, using extreme scaling and brutalist logic.