@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
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: istm-animate
3
3
  allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
4
- description: "The dedicated motion and animation orchestrator for the @istmx/skills framework. Handles advanced choreography, GSAP timelines, scroll-jacking, and high-performance physics-based animations. Requires a foundational design layout to animate."
4
+ description: "The dedicated motion orchestrator and executor for @istmx/skills. Merges Emil Kowalski's design-engineering standards with the 'cast' pipeline. Operates in Dual-Mode: acts as a planner (writing specs) or an executor (physically injecting motion code like GSAP/Framer Motion/Compose into components)."
5
5
  ---
6
6
 
7
7
  ## Output style (plain words, no dashes, no hyphens)
@@ -12,76 +12,46 @@ Write everything this skill produces, files and messages alike, in plain simple
12
12
 
13
13
  ## What this skill does
14
14
 
15
- The master motion orchestrator: takes static layouts generated by `/istm-design` and injects premium, high-performance animations into them.
15
+ The master motion orchestrator and executor. It bridges human creativity and elite design-engineering math.
16
16
 
17
- - Choreography: Defines sequences, staggered reveals, and scroll-linked animations.
18
- - Tool Selection: Defaults to GSAP for complex timelines and scroll-jacking. Falls back to Framer Motion or CSS keyframes for component-level physics if explicitly requested.
19
- - Performance Enforcement: Strictly enforces hardware-accelerated properties (transform, opacity) and absolutely forbids animating properties that trigger layout thrashing (width, height, top, left).
20
-
21
- Does not design the static UI (/istm-design owns that), or build backend logic (/istm-system-design owns that).
22
-
23
- **CRITICAL RULE: NEVER WRITE APPLICATION CODE (HTML/CSS/JS/React).** You are an architect. You ONLY write the blueprint file (`.istm-context/animate.md`). If the user asks you to build a page or implement the animations in code, you must refuse, write the blueprint instead, and instruct the user to run `/develop` to build the code.
17
+ - **Dual-Mode Execution**:
18
+ - **Context Phase (Day Zero)**: Operates as an architect. Uses the Discovery Gate (Interview) to lock in the exact easing curves, durations, and triggers. Writes the blueprint (`.istm-context/animate.md`).
19
+ - **Execution Phase (Day-to-Day)**: Operates as an executor. If asked to "animate this button" or "add a scroll reveal", it bypasses blueprint generation, asks how you want to preview it, and writes the actual animation code instantly (GSAP, Framer Motion, SwiftUI, or Compose) without needing `/istm-develop`.
20
+ - **The Cast Pipeline**: Scan stack -> Evaluate scope -> Propose interaction thesis -> Implement -> Mini-audit.
21
+ - **Auditing**: Can scan the codebase to find animation opportunities and point out what *should not* be animated based on premium design-engineering standards.
24
22
 
23
+ Does not build system architecture (/istm-architecture owns that) or generate full UI design systems (/istm-design owns that).
25
24
 
26
25
  ## Blueprint file convention
27
26
 
28
- Durable animation context lives in the `.istm-context/` directory. This skill specifically owns the hydration and enforcement of:
29
-
30
- - `animate.md` (or appending motion rules to `design.md` depending on project structure): The animation timelines, scroll-trigger logic, and performance constraints.
31
-
32
- ## Scope
27
+ You READ the foundational blueprints:
28
+ - `.istm-context/design.md`
29
+ - `references/vocabulary.md`, `references/review.md`, `references/opportunities.md`, `references/animate.md`, `references/recipes.md`, `references/design-engineering.md`
33
30
 
34
- The `--library` flag forces a specific animation library (e.g., `--library=framer-motion`). With no argument, the `Pre-flight` signals below route to Phase 0 (ambiguous), or Phase 1 (greenfield animation generation).
31
+ You WRITE the motion feature specs (if in Context Phase):
32
+ - `.istm-context/animate.md`
35
33
 
36
- ## Acts vs asks
34
+ ## Scope and Stack Detection
37
35
 
38
- Phase 1 asks motion questions (subtle vs aggressive, scroll-linked vs time-based) via MCQ before generating the animation blueprints. Phase 2 acts immediately; it scans the repo for existing animation libraries (`gsap`, `framer-motion`) in `package.json` and reverse-engineers the motion strategy.
39
-
40
- ## Artifact ownership
41
-
42
- The `animate.md` file holds the content. Create it if missing. When writing the animation rules, inject precise timeline logic, easing curves, and trigger points. You own the enforcement of these physics; all interactive components must respect these curves.
36
+ Automatically detects the stack across Web (GSAP, Framer Motion, CSS), Android (Compose), and Apple (SwiftUI). Loads the appropriate framework intel from `frameworks/` and `mobile/`.
43
37
 
44
38
  ## Execution
45
39
 
46
- The main thread compiles the animation strategy. It must first verify that design tokens exist, as animation cannot exist without a layout.
47
-
48
40
  ### `Pre-flight` (main thread does this before anything else)
41
+ 1. Read the user's prompt and scan the stack.
42
+ 2. If the request is a vague setup ("setup animation rules"), execute the Context Phase.
43
+ 3. If the request is an implementation command ("animate this hero section"), execute the Execution Phase (Cast Pipeline).
49
44
 
50
- Gather signals to determine the execution path:
51
-
52
- 1. Flag check: Was a specific library requested? → `LIBRARY_FLAG`.
53
- 2. Context files: Is `animate.md` or motion logic already hydrated in `.istm-context/`? → `ANIMATION_EXISTS`.
54
- 3. Source count: Are `gsap` or other animation libraries present in `package.json`? → `HAS_ANIMATION_LIBS`.
55
-
56
- Pick the phase based on these signals:
57
-
58
- | Condition | Phase |
59
- |---|---|
60
- | `HAS_ANIMATION_LIBS` is present | Phase 2 (Reverse-engineer the existing motion system). |
61
- | `ANIMATION_EXISTS` | Phase 3 (Gap-fill: analyze the prompt against existing timelines and update only what changed). |
62
- | No flag, no animation logic (or raw prompt) | Phase 1 (Greenfield: execute Motion Interview and generate timelines). |
63
- | No flag, no animation logic, but `HAS_ANIMATION_LIBS` | Phase 0 (Ambiguous: ask if they want to override existing timelines or document them). |
64
-
65
- ### Route to the selected phase
66
-
67
- - Phase 1 (Greenfield Setup): Evaluate the desired motion vibe (snappy, buttery smooth, elastic). Interview the user on scroll preferences. Generate a comprehensive `animate.md` with strict easing variables and timeline choreographies.
68
- - Phase 2 (Reverse Engineering): Do not interview. Read `package.json` and root component files. Reverse-engineer the active easing curves and scroll triggers. Hydrate `animate.md`.
69
- - Phase 3 (Gap Fill): Read existing `animate.md`. Identify missing choreographies. Update blueprints carefully.
70
-
71
- ### Phase 0: Classify (only when `pre-flight` is ambiguous)
72
-
73
- Don't guess. Ask once via your agent's interactive option picker (`AskUserQuestion`), or plain text.
74
- - question: "I see existing animation libraries, but no `animate.md` blueprint. How should I proceed?"
75
- - header: "Animation state"
76
- - options: 1. `Reverse-Engineer from Code`, "I will read your components and generate the motion tokens." → Phase 2. 2. `Start Fresh from Prompt`, "I will interview you and overwrite the animation system." → Phase 1.
77
-
78
- ### After all phases
79
-
80
- If no tokens were written when they should have been, report the failure. Relay the report: what motion library was chosen, what easing curves were locked in, and the scroll strategy.
45
+ ### The Cast Pipeline (Execution Phase)
46
+ 1. **Scan Stack**: Determine if Web, Android, or Apple.
47
+ 2. **Evaluate Scope**: Analyze the component to animate.
48
+ 3. **Propose Interaction Thesis**: Use `references/vocabulary.md` to propose exact easing, physics, and intent. **Discovery Gate:** Ask the user if they want to preview it as an Artifact, Live Preview, or Inline text.
49
+ 4. **Implement**: Write the physical code into the project files.
50
+ 5. **Mini-Audit**: Run a quick audit (reduced-motion check, exit animations, memory leak prevention).
81
51
 
82
52
  ## Absolute Motion Enforcement Rules
83
53
 
84
- 1. **Hardware Acceleration**: Only animate `transform` (translate, scale, rotate) and `opacity`. An error MUST be thrown if an implementation agent attempts to animate layout properties (`width`, `height`, `margin`, `padding`).
85
- 2. **Custom Easing**: Never use generic `ease-in-out`. Explicitly define custom cubic-bezier curves (e.g., `power3.out` in GSAP, or `[0.76, 0, 0.24, 1]`) to ensure a premium feel.
86
- 3. **Scroll-Jacking Restraint**: If scroll-jacking is implemented, it MUST be attached to a `ScrollTrigger` with a defined start and end point. Infinite scrolling traps are forbidden.
87
- 4. **Cleanup**: Every component that mounts a GSAP timeline or physics listener MUST explicitly kill the timeline/listener on unmount to prevent memory leaks.
54
+ 1. **Hardware Acceleration**: Only animate `transform` (translate, scale, rotate) and `opacity`.
55
+ 2. **Custom Easing**: Explicitly define custom curves (e.g., `power3.out`). Never use generic `ease-in-out`.
56
+ 3. **Scroll-Jacking Restraint**: Scroll-jacking MUST be attached to a defined start and end point. Infinite scrolling traps are forbidden.
57
+ 4. **Cleanup**: Every component that mounts a timeline/listener MUST explicitly kill it on unmount.
@@ -0,0 +1,284 @@
1
+ ---
2
+ name: motion-principles
3
+ description: "Motion design foundation - timing, easing, enter/exit patterns, accessibility, performance."
4
+ ---
5
+
6
+ # Motion Principles
7
+
8
+ > The foundation. Loaded by every creative skill invocation.
9
+ > Concise rules here. Deep-dive in `references/`.
10
+
11
+ ---
12
+
13
+ ## Timing Rules
14
+
15
+ | Context | Duration | Why |
16
+ |---|---|---|
17
+ | Micro-interaction (toggle, hover, focus) | 100-150ms | Instant feedback, no perceived delay |
18
+ | UI transition (modal, drawer, tab switch) | 200-300ms | Smooth but never sluggish |
19
+ | Page/route transition | 300-500ms | Establishes spatial narrative |
20
+ | Scroll-driven / 3D | Free (progress-based) | Tied to user input, no fixed duration |
21
+
22
+ **Frequency rule:** The more often an animation plays, the shorter and subtler it must be.
23
+ A button hover (1000x/day) = 100ms opacity. An onboarding reveal (1x ever) = 600ms+ full choreography.
24
+
25
+ ---
26
+
27
+ ## Easing Cheat Sheet
28
+
29
+ | Action | Easing | Why |
30
+ |---|---|---|
31
+ | Element enters | `ease-out` / spring | Decelerates into resting position (natural arrival) |
32
+ | Element exits | `ease-in` | Accelerates away (gets out of the way) |
33
+ | Element moves between states | `ease-in-out` | Smooth start and stop |
34
+ | Scroll-synced | `linear` / `none` | Matches 1:1 with input, no lag perception |
35
+ | Bouncy/playful | spring (underdamped) | Overshoot creates life |
36
+ | Snappy UI | `cubic-bezier(0.2, 0, 0, 1)` | Fast start, smooth land |
37
+
38
+ > **Exit is always more subtle than enter.**
39
+ > Enter: 300ms ease-out, full choreography. Exit: 200ms ease-in, opacity only.
40
+
41
+ ### Native easing equivalents (cross-platform)
42
+
43
+ | Web (CSS / JS) | SwiftUI | Compose |
44
+ |---|---|---|
45
+ | `cubic-bezier(0.2, 0, 0, 1)` | `.spring(response: 0.4, dampingFraction: 0.85)` or `.snappy` | `spring(stiffness = Spring.StiffnessMedium, dampingRatio = 0.85f)` |
46
+ | `ease-out` | `.easeOut(duration: 0.3)` | `tween(durationMillis = 300, easing = LinearOutSlowInEasing)` |
47
+ | `ease-in` | `.easeIn(duration: 0.2)` | `tween(durationMillis = 200, easing = FastOutLinearInEasing)` |
48
+ | spring (bouncy) | `.bouncy` (iOS 17+) | `spring(stiffness = Spring.StiffnessLow, dampingRatio = Spring.DampingRatioMediumBouncy)` |
49
+ | spring (smooth) | `.smooth` (iOS 17+) | `spring(stiffness = Spring.StiffnessMedium, dampingRatio = Spring.DampingRatioNoBouncy)` |
50
+
51
+ ---
52
+
53
+ ## Accessibility (Non-Negotiable)
54
+
55
+ ### Reduced motion - MANDATORY
56
+
57
+ Every animated component must respect the user's reduced-motion preference. No exceptions, regardless of platform.
58
+
59
+ | Platform | API |
60
+ |---|---|
61
+ | Web CSS | `@media (prefers-reduced-motion: reduce)` |
62
+ | Web JS | `window.matchMedia('(prefers-reduced-motion: reduce)')` |
63
+ | SwiftUI | `@Environment(\.accessibilityReduceMotion) var reduceMotion` |
64
+ | UIKit | `UIAccessibility.isReduceMotionEnabled` (+ `reduceMotionStatusDidChangeNotification`) |
65
+ | Compose | Custom helper using `Settings.Global.ANIMATOR_DURATION_SCALE` (deep-dive in `mobile-principles/references/accessibility-mobile.md`) |
66
+
67
+ **CSS:**
68
+ ```css
69
+ @media (prefers-reduced-motion: reduce) {
70
+ *, *::before, *::after {
71
+ animation-duration: 0.01ms !important;
72
+ animation-iteration-count: 1 !important;
73
+ transition-duration: 0.01ms !important;
74
+ scroll-behavior: auto !important;
75
+ }
76
+ }
77
+ ```
78
+
79
+ **SwiftUI:**
80
+ ```swift
81
+ struct AnimatedView: View {
82
+ @Environment(\.accessibilityReduceMotion) var reduceMotion
83
+ @State var visible = false
84
+
85
+ var body: some View {
86
+ Text("Hello")
87
+ .opacity(visible ? 1 : 0)
88
+ .animation(reduceMotion ? .none : .spring(response: 0.4, dampingFraction: 0.85), value: visible)
89
+ }
90
+ }
91
+ ```
92
+
93
+ **Compose:**
94
+ ```kotlin
95
+ @Composable
96
+ fun rememberReduceMotion(): Boolean {
97
+ val context = LocalContext.current
98
+ return remember {
99
+ Settings.Global.getFloat(context.contentResolver, Settings.Global.ANIMATOR_DURATION_SCALE, 1f) == 0f
100
+ }
101
+ }
102
+
103
+ @Composable
104
+ fun AnimatedComponent(visible: Boolean) {
105
+ val reduce = rememberReduceMotion()
106
+ val alpha by animateFloatAsState(
107
+ targetValue = if (visible) 1f else 0f,
108
+ animationSpec = if (reduce) snap() else spring(stiffness = Spring.StiffnessMedium)
109
+ )
110
+ }
111
+ ```
112
+
113
+ ### Other a11y requirements
114
+ - Focus indicators must never be hidden by animations
115
+ - Animated content must meet WCAG contrast ratios at every frame (no mid-transition fading to invisible text)
116
+ - Looping animations: provide a pause mechanism
117
+
118
+ ---
119
+
120
+ ## Universal "Do Not" Rules
121
+
122
+ ### 1. Never animate width/height/top/left
123
+
124
+ Triggers layout recalculation every frame = jank.
125
+
126
+ ```css
127
+ /* BAD */
128
+ .drawer { transition: height 0.3s ease; }
129
+ .drawer.open { height: 400px; }
130
+
131
+ /* GOOD */
132
+ .drawer { transition: transform 0.3s ease-out; transform: translateY(100%); }
133
+ .drawer.open { transform: translateY(0); }
134
+ ```
135
+
136
+ **SwiftUI equivalent (BAD vs GOOD):**
137
+ ```swift
138
+ // BAD - animates frame (causes layout pass)
139
+ .frame(height: open ? 400 : 0)
140
+ .animation(.easeInOut, value: open)
141
+
142
+ // GOOD - animates transform via offset
143
+ .offset(y: open ? 0 : 400)
144
+ .animation(.spring(), value: open)
145
+ ```
146
+
147
+ **Compose equivalent (BAD vs GOOD):**
148
+ ```kotlin
149
+ // BAD - animates size (full layout pass)
150
+ val height by animateDpAsState(if (open) 400.dp else 0.dp)
151
+
152
+ // GOOD - animates Y offset via graphicsLayer
153
+ val translation by animateFloatAsState(if (open) 0f else 400f)
154
+ Box(modifier = Modifier.graphicsLayer { translationY = translation })
155
+ ```
156
+
157
+ ### 2. Never scale to 0
158
+
159
+ `scale(0)` causes elements to vanish in a black hole. Always keep a minimum.
160
+
161
+ ```css
162
+ /* BAD */
163
+ .modal-exit { transform: scale(0); }
164
+
165
+ /* GOOD */
166
+ .modal-exit { transform: scale(0.95); opacity: 0; }
167
+ ```
168
+
169
+ **SwiftUI equivalent:**
170
+ ```swift
171
+ // BAD
172
+ .scaleEffect(visible ? 1.0 : 0.0)
173
+
174
+ // GOOD
175
+ .scaleEffect(visible ? 1.0 : 0.95)
176
+ .opacity(visible ? 1.0 : 0.0)
177
+ ```
178
+
179
+ **Compose equivalent:**
180
+ ```kotlin
181
+ // BAD
182
+ Modifier.graphicsLayer { scaleX = if (visible) 1f else 0f; scaleY = if (visible) 1f else 0f }
183
+
184
+ // GOOD
185
+ Modifier.graphicsLayer {
186
+ scaleX = if (visible) 1f else 0.95f
187
+ scaleY = if (visible) 1f else 0.95f
188
+ alpha = if (visible) 1f else 0f
189
+ }
190
+ ```
191
+
192
+ ### 3. Never ease-in on an entry
193
+
194
+ Ease-in = slow start. An entering element that hesitates feels broken.
195
+
196
+ ```css
197
+ /* BAD */
198
+ .card-enter { animation: fadeIn 0.3s ease-in; }
199
+
200
+ /* GOOD */
201
+ .card-enter { animation: fadeIn 0.3s ease-out; }
202
+ /* OR spring via JS for natural feel */
203
+ ```
204
+
205
+ ### 4. Never exceed 500ms on a UI interaction
206
+
207
+ Modals, dropdowns, tooltips, tabs -- users are waiting. Respect their time.
208
+
209
+ ```js
210
+ // BAD
211
+ gsap.to(modal, { opacity: 1, y: 0, duration: 0.8 });
212
+
213
+ // GOOD
214
+ gsap.to(modal, { opacity: 1, y: 0, duration: 0.25, ease: "power2.out" });
215
+ ```
216
+
217
+ **SwiftUI:**
218
+ ```swift
219
+ // BAD
220
+ .animation(.easeInOut(duration: 0.8), value: state)
221
+
222
+ // GOOD
223
+ .animation(.spring(response: 0.25, dampingFraction: 0.85), value: state)
224
+ ```
225
+
226
+ **Compose:**
227
+ ```kotlin
228
+ // BAD
229
+ animateContentSize(animationSpec = tween(800))
230
+
231
+ // GOOD
232
+ animateContentSize(animationSpec = spring(stiffness = Spring.StiffnessMediumLow))
233
+ ```
234
+
235
+ ### 5. Never skip prefers-reduced-motion
236
+
237
+ This is an accessibility requirement, not a nice-to-have.
238
+
239
+ ```js
240
+ // BAD
241
+ gsap.from('.hero-title', { opacity: 0, y: 40, duration: 0.6 });
242
+
243
+ // GOOD
244
+ const prefersReduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
245
+ if (!prefersReduced) {
246
+ gsap.from('.hero-title', { opacity: 0, y: 40, duration: 0.6 });
247
+ }
248
+ ```
249
+
250
+ > See the cross-platform Reduced Motion section above for SwiftUI / Compose equivalents.
251
+
252
+ ---
253
+
254
+ ## Performance Checklist
255
+
256
+ - Only animate `transform` and `opacity` (composite-only properties)
257
+ - Use `will-change` sparingly and remove it after animation completes
258
+ - Prefer `requestAnimationFrame` over `setTimeout`/`setInterval` for JS animations
259
+ - For scroll-driven: CSS `animation-timeline` > JS `IntersectionObserver` > scroll listeners
260
+ - Test on low-end devices (throttle CPU 4x in DevTools)
261
+
262
+ ---
263
+
264
+ ## Quick Reference: Loading Sub-skills
265
+
266
+ | Need | Load |
267
+ |---|---|
268
+ | Easing deep-dive, spring configs | `references/easing-guide.md` |
269
+ | Copy-paste enter/exit patterns | `references/enter-exit-recipes.md` |
270
+ | Designer-weighted style choice | `references/designers.md` |
271
+ | Mobile UX context | `../mobile-principles/SKILL.md` |
272
+ | Desktop UX context | `../desktop-principles/SKILL.md` |
273
+ | GSAP specifics | `../gsap/SKILL.md` |
274
+ | Framer Motion specifics | `../framer-motion/SKILL.md` |
275
+ | CSS-only animations | `../css-native/SKILL.md` |
276
+ | Three.js / R3F | `../threejs-r3f/SKILL.md` |
277
+ | Canvas / generative | `../canvas-generative/SKILL.md` |
278
+ | Compose Android animations | `../compose-motion/SKILL.md` |
279
+ | Compose Multiplatform | `../compose-multiplatform/SKILL.md` |
280
+ | SwiftUI iOS/macOS animations | `../swiftui-motion/SKILL.md` |
281
+ | Compose advanced graphics | `../compose-graphics/SKILL.md` |
282
+ | SwiftUI advanced graphics | `../swiftui-graphics/SKILL.md` |
283
+ | Visual / motion / a11y audit | `../design-audit/SKILL.md` |
284
+ | UI/UX intelligence (84 styles, 192 palettes) | `../ui-ux-pro-max/SKILL.md` |
@@ -0,0 +1,127 @@
1
+ # Designer Reference Profiles
2
+
3
+ Three design philosophies that define modern motion on the web.
4
+ Use this to calibrate the animation intensity and style for a given project.
5
+
6
+ ---
7
+
8
+ ## Emil Kowalski
9
+
10
+ ### Philosophy
11
+
12
+ Motion should be invisible. The best animation is one the user never consciously notices -- it just makes the interface feel "right." Every millisecond of duration and every pixel of displacement must earn its place. If removing an animation makes the UI feel the same, the animation was wrong.
13
+
14
+ ### Signatures
15
+
16
+ - **Micro-transitions:** opacity + translateY(2-6px), never more
17
+ - **Ultra-short springs:** stiffness 400+, damping 30+, near-zero overshoot
18
+ - **Durations:** 100-200ms, rarely exceeds 250ms
19
+ - **Easing:** ease-out or critically-damped springs
20
+ - **No blur, no scale, no rotation** on standard UI elements
21
+ - **Stagger:** 30-50ms, barely perceptible
22
+ - **Exit:** faster than enter, often just opacity fade in 100ms
23
+
24
+ ### When to Channel Kowalski
25
+
26
+ - User performs an action 10+ times per session
27
+ - The animation accompanies a frequent interaction (toggle, dropdown, tab)
28
+ - The product's identity is "fast" or "professional"
29
+ - You want the UI to feel polished without anyone being able to point at why
30
+
31
+ ### Key Principle
32
+
33
+ > "The animation should feel like it was always there."
34
+
35
+ ---
36
+
37
+ ## Jakub Krehel
38
+
39
+ ### Philosophy
40
+
41
+ Motion is a storytelling medium. Every transition should feel intentional and crafted -- like a camera movement in film. Blur, scale, and layered timing create depth and dimensionality. The interface isn't flat; it's a stage where elements perform choreographed entrances and exits.
42
+
43
+ ### Signatures
44
+
45
+ - **Layered transitions:** opacity + translateY(8-16px) + blur(4-8px) simultaneously
46
+ - **Blur as depth cue:** entering elements are "out of focus" then sharpen
47
+ - **Medium springs:** stiffness 150-250, damping 15-25, gentle overshoot
48
+ - **Durations:** 300-500ms, comfortable for storytelling
49
+ - **Stagger:** 60-100ms, clearly visible choreography
50
+ - **Clip-path reveals:** sections revealed through geometric masks
51
+ - **Parallax layers:** foreground/background at different scroll speeds
52
+ - **Exit:** mirrors enter but compressed (60-70% of enter duration), blur increases
53
+
54
+ ### When to Channel Krehel
55
+
56
+ - First impression matters (landing pages, portfolios, hero sections)
57
+ - The product's identity is "premium" or "crafted"
58
+ - Content is consumed, not manipulated (editorial, showcase)
59
+ - You have room for 300ms+ without blocking user flow
60
+
61
+ ### Key Principle
62
+
63
+ > "Every element deserves a moment on stage."
64
+
65
+ ---
66
+
67
+ ## Jhey Tompkins
68
+
69
+ ### Philosophy
70
+
71
+ The web should spark joy. Animation is not just functional polish -- it's personality, surprise, and delight. Scale, rotation, color shifts, and elastic physics make interfaces feel alive and playful. Rules exist to be bent (not broken). The unexpected is the reward.
72
+
73
+ ### Signatures
74
+
75
+ - **Scale + rotation combos:** elements spin, bounce, pop in
76
+ - **Elastic/bounce easing:** intentional overshoot, wobble
77
+ - **Color shifts:** hue rotation, gradient animations during transitions
78
+ - **SVG path animations:** morphing shapes, drawing strokes
79
+ - **3D transforms:** perspective flips, card rotations
80
+ - **Easter eggs:** hover states that surprise, scroll-triggered delights
81
+ - **Custom properties animations:** `@property` for animating gradients, counters
82
+ - **Durations:** 400-800ms, the animation IS the experience
83
+ - **Stagger:** 60-100ms with bounce, creates a "wave" effect
84
+
85
+ ### When to Channel Jhey
86
+
87
+ - The brand is playful, young, or creative
88
+ - Onboarding flows where engagement > speed
89
+ - Marketing pages where "wow factor" converts
90
+ - Game UI, kids apps, creative tools
91
+ - Easter eggs and micro-delights in any product
92
+
93
+ ### Key Principle
94
+
95
+ > "If it doesn't make you smile, animate it differently."
96
+
97
+ ---
98
+
99
+ ## Weighting Table by Project Type
100
+
101
+ Use this to decide which philosophy drives the motion design. **Primary** sets the overall feel, **Secondary** adds depth in key moments, **Selective** is used sparingly for specific contexts.
102
+
103
+ | Project Type | Primary | Secondary | Selective |
104
+ |---|---|---|---|
105
+ | SaaS / Productivity | Kowalski | Krehel | Jhey (onboarding, empty states) |
106
+ | Portfolio / Creative | Krehel | Jhey | Kowalski (nav, forms) |
107
+ | E-commerce | Kowalski | Krehel (product pages) | Jhey (promos, seasonal) |
108
+ | Landing page | Krehel | Jhey (CTAs, social proof) | Kowalski (pricing, FAQ) |
109
+ | Kids / Playful | Jhey | Krehel (storytelling) | Kowalski (forms, settings) |
110
+ | Developer tools | Kowalski | -- | Krehel (docs, changelog) |
111
+ | Editorial / Magazine | Krehel | Kowalski (reading UI) | Jhey (interactive pieces) |
112
+ | Dashboard / Analytics | Kowalski | -- | Krehel (data viz transitions) |
113
+ | Mobile app (React Native) | Kowalski | Krehel (onboarding) | Jhey (achievements) |
114
+
115
+ ### How to Read the Table
116
+
117
+ - **Primary (70-80% of animations):** This style governs the default motion language. Every component starts here.
118
+ - **Secondary (15-25%):** Used for key moments -- first impressions, important state changes, section transitions.
119
+ - **Selective (5-10%):** Reserved for specific contexts noted in parentheses. Overuse kills the effect.
120
+
121
+ ### Mixing Styles -- Rules
122
+
123
+ 1. **Never mix styles within a single animation.** One element = one philosophy.
124
+ 2. **Transition between styles at section boundaries.** Hero (Krehel) then content area (Kowalski) = fine.
125
+ 3. **The more interactive the element, the more Kowalski it should be.** Buttons, inputs, toggles are always snappy.
126
+ 4. **The more "look at me" the element, the more Jhey it can be.** Badges, confetti, achievements, celebrations.
127
+ 5. **When in doubt, go Kowalski.** Subtle is always safer than expressive.