@istmx/skills 1.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 (210) hide show
  1. package/README.md +49 -0
  2. package/bin/cli.js +251 -0
  3. package/istm/SKILL.md +65 -0
  4. package/istm-animate/SKILL.md +87 -0
  5. package/istm-animate/animations/animation_utils.md +280 -0
  6. package/istm-animate/animations/animations.md +220 -0
  7. package/istm-animate/animations/core_motion.md +250 -0
  8. package/istm-animate/animations/examples/README.md +29 -0
  9. package/istm-animate/animations/examples/nuxt/app/app.vue +3 -0
  10. package/istm-animate/animations/examples/nuxt/app/composables/useGSAP.ts +91 -0
  11. package/istm-animate/animations/examples/nuxt/app/pages/index.vue +55 -0
  12. package/istm-animate/animations/examples/nuxt/nuxt.config.ts +4 -0
  13. package/istm-animate/animations/examples/nuxt/package.json +18 -0
  14. package/istm-animate/animations/examples/react/App.jsx +46 -0
  15. package/istm-animate/animations/examples/react/index.html +12 -0
  16. package/istm-animate/animations/examples/react/main.jsx +9 -0
  17. package/istm-animate/animations/examples/react/package.json +21 -0
  18. package/istm-animate/animations/examples/react/vite.config.js +7 -0
  19. package/istm-animate/animations/examples/vanilla/index.html +33 -0
  20. package/istm-animate/animations/examples/vanilla/main.js +36 -0
  21. package/istm-animate/animations/examples/vue/app.vue +47 -0
  22. package/istm-animate/animations/examples/vue/index.html +15 -0
  23. package/istm-animate/animations/examples/vue/main.js +9 -0
  24. package/istm-animate/animations/examples/vue/package.json +19 -0
  25. package/istm-animate/animations/examples/vue/vite.config.js +7 -0
  26. package/istm-animate/animations/framework_motion.md +262 -0
  27. package/istm-animate/animations/motion.csv +17 -0
  28. package/istm-animate/animations/motion.md +11 -0
  29. package/istm-animate/animations/motion_catalog.json +226 -0
  30. package/istm-animate/animations/motion_performance.md +75 -0
  31. package/istm-animate/animations/motion_plugins.md +429 -0
  32. package/istm-animate/animations/react_animations.md +132 -0
  33. package/istm-animate/animations/scroll_trigger_effects.md +291 -0
  34. package/istm-animate/animations/timeline_sequencing.md +103 -0
  35. package/istm-architecture/SKILL.md +109 -0
  36. package/istm-architecture/frameworks/angular.csv +51 -0
  37. package/istm-architecture/frameworks/astro.csv +54 -0
  38. package/istm-architecture/frameworks/avalonia.csv +57 -0
  39. package/istm-architecture/frameworks/flutter.csv +53 -0
  40. package/istm-architecture/frameworks/javafx.csv +76 -0
  41. package/istm-architecture/frameworks/jetpack-compose.csv +53 -0
  42. package/istm-architecture/frameworks/laravel.csv +51 -0
  43. package/istm-architecture/frameworks/nextjs.csv +53 -0
  44. package/istm-architecture/frameworks/nuxtjs.csv +59 -0
  45. package/istm-architecture/frameworks/react-native.csv +52 -0
  46. package/istm-architecture/frameworks/react.csv +54 -0
  47. package/istm-architecture/frameworks/svelte.csv +54 -0
  48. package/istm-architecture/frameworks/swiftui.csv +51 -0
  49. package/istm-architecture/frameworks/uwp.csv +56 -0
  50. package/istm-architecture/frameworks/vue.csv +50 -0
  51. package/istm-architecture/frameworks/winui.csv +60 -0
  52. package/istm-architecture/frameworks/wpf.csv +57 -0
  53. package/istm-architecture/templates/agents.md +229 -0
  54. package/istm-architecture/templates/architecture.md +111 -0
  55. package/istm-architecture/templates/design.md +138 -0
  56. package/istm-architecture/templates/project-overview.md +215 -0
  57. package/istm-awwward-designer/SKILL.md +43 -0
  58. package/istm-awwward-designer/libraries/threejs.csv +54 -0
  59. package/istm-awwward-designer/references/accessibility.md +774 -0
  60. package/istm-awwward-designer/references/anim-anti-patterns.md +576 -0
  61. package/istm-awwward-designer/references/animation-map.md +166 -0
  62. package/istm-awwward-designer/references/animation-standards.md +86 -0
  63. package/istm-awwward-designer/references/anti-patterns.md +191 -0
  64. package/istm-awwward-designer/references/color-systems.md +604 -0
  65. package/istm-awwward-designer/references/css-performance.md +477 -0
  66. package/istm-awwward-designer/references/descender-safety.md +490 -0
  67. package/istm-awwward-designer/references/design-audit.md +93 -0
  68. package/istm-awwward-designer/references/font-loading.md +378 -0
  69. package/istm-awwward-designer/references/image-optimization.md +440 -0
  70. package/istm-awwward-designer/references/invention-gate.md +356 -0
  71. package/istm-awwward-designer/references/micro-interactions.md +825 -0
  72. package/istm-awwward-designer/references/page-transitions.md +365 -0
  73. package/istm-awwward-designer/references/performance-standards.md +79 -0
  74. package/istm-awwward-designer/references/quality-gate.md +103 -0
  75. package/istm-awwward-designer/references/responsive-design.md +778 -0
  76. package/istm-awwward-designer/references/scoring-guide.md +201 -0
  77. package/istm-awwward-designer/references/scroll-patterns.md +668 -0
  78. package/istm-awwward-designer/references/stitch-brief.md +124 -0
  79. package/istm-awwward-designer/references/tech-stack.md +204 -0
  80. package/istm-awwward-designer/references/technical-audit.md +133 -0
  81. package/istm-awwward-designer/references/technique-families.md +293 -0
  82. package/istm-awwward-designer/references/testing.md +535 -0
  83. package/istm-awwward-designer/references/text-animation.md +585 -0
  84. package/istm-awwward-designer/references/typography.md +504 -0
  85. package/istm-awwward-designer/references/usability-audit.md +108 -0
  86. package/istm-awwward-designer/references/visual-standards.md +97 -0
  87. package/istm-design/SKILL.md +98 -0
  88. package/istm-design/colors/color_theory.md +293 -0
  89. package/istm-design/colors/colors.csv +193 -0
  90. package/istm-design/colors/colors_catalog.json +4034 -0
  91. package/istm-design/colors/palette.json +21 -0
  92. package/istm-design/styles/design_system.md +288 -0
  93. package/istm-design/styles/html-tailwind.csv +56 -0
  94. package/istm-design/styles/nuxt-ui.csv +71 -0
  95. package/istm-design/styles/product_design.md +55 -0
  96. package/istm-design/styles/shadcn.csv +61 -0
  97. package/istm-design/styles/style.md +12 -0
  98. package/istm-design/styles/styles.csv +85 -0
  99. package/istm-design/styles/styles_catalog.json +2018 -0
  100. package/istm-design/styles/ui-reasoning.csv +162 -0
  101. package/istm-design/styles/uno.csv +60 -0
  102. package/istm-design/typography/font_and_font.md +10 -0
  103. package/istm-design/typography/google-fonts.csv +1924 -0
  104. package/istm-design/typography/sans_serif_fonts.md +112 -0
  105. package/istm-design/typography/typography.csv +75 -0
  106. package/istm-design/typography/typography_catalog.json +964 -0
  107. package/istm-design/ux/app-interface.csv +31 -0
  108. package/istm-design/ux/charts.csv +26 -0
  109. package/istm-design/ux/icons.csv +106 -0
  110. package/istm-design/ux/landing.csv +35 -0
  111. package/istm-design/ux/products.csv +193 -0
  112. package/istm-design/ux/react-performance.csv +45 -0
  113. package/istm-design/ux/responsive_rules.md +62 -0
  114. package/istm-design/ux/storytelling.md +47 -0
  115. package/istm-design/ux/ux-guidelines.csv +100 -0
  116. package/istm-design/ux/ux_guidelines.json +1190 -0
  117. package/istm-system-design/SKILL.md +88 -0
  118. package/istm-system-design/principles/01-architecture-patterns.md +24 -0
  119. package/istm-system-design/principles/02-database-selection.md +32 -0
  120. package/istm-system-design/principles/03-api-design.md +25 -0
  121. package/istm-system-design/principles/04-authentication-security.md +23 -0
  122. package/istm-system-design/principles/05-caching-performance.md +21 -0
  123. package/istm-system-design/principles/06-asynchronous-processing.md +17 -0
  124. package/istm-system-design/principles/07-infrastructure-deployment.md +22 -0
  125. package/istm-system-design/principles/08-low-level-design.md +35 -0
  126. package/istm-system-design/principles/09-state-management.md +14 -0
  127. package/istm-system-design/principles/10-error-handling-and-logging.md +26 -0
  128. package/istm-system-design/principles/11-testing-strategy.md +18 -0
  129. package/istm-system-design/principles/12-seo-and-web-vitals.md +18 -0
  130. package/istm-system-design/stacks/SETUP.md +82 -0
  131. package/istm-system-design/stacks/STACK.md +67 -0
  132. package/istm-system-design/stacks/WORKFLOW.md +84 -0
  133. package/istm-system-design/templates/api-route.ts.template +32 -0
  134. package/istm-system-design/templates/migrations.md.template +30 -0
  135. package/istm-system-design/templates/schema.drizzle.ts.template +17 -0
  136. package/istm-system-design/templates/schema.prisma.template +28 -0
  137. package/istm-system-design/templates/trpc-router.ts.template +22 -0
  138. package/istm-system-design/templates/zod-validators.ts.template +14 -0
  139. package/istm-workflow/istm-audit/SKILL.md +108 -0
  140. package/istm-workflow/istm-audit/agent-prompt.md +393 -0
  141. package/istm-workflow/istm-audit/agents/openai.yaml +7 -0
  142. package/istm-workflow/istm-audit/modes/area.md +19 -0
  143. package/istm-workflow/istm-audit/modes/gapfill.md +12 -0
  144. package/istm-workflow/istm-audit/modes/greenfield.md +24 -0
  145. package/istm-workflow/istm-audit/modes/tool-skills.md +39 -0
  146. package/istm-workflow/istm-audit/modes/whole-repo.md +5 -0
  147. package/istm-workflow/istm-audit/patterns/clean-architecture.md +15 -0
  148. package/istm-workflow/istm-audit/patterns/domain-driven.md +16 -0
  149. package/istm-workflow/istm-audit/patterns/functional.md +16 -0
  150. package/istm-workflow/istm-audit/patterns/solid-oop.md +17 -0
  151. package/istm-workflow/istm-check/SKILL.md +52 -0
  152. package/istm-workflow/istm-check/agents/openai.yaml +7 -0
  153. package/istm-workflow/istm-check/modes/review.md +156 -0
  154. package/istm-workflow/istm-check/modes/verify.md +197 -0
  155. package/istm-workflow/istm-check/review-agent-prompt.md +57 -0
  156. package/istm-workflow/istm-check/review-guide.md +133 -0
  157. package/istm-workflow/istm-craft/SKILL.md +37 -0
  158. package/istm-workflow/istm-craft/agent-modes/architecture.md +73 -0
  159. package/istm-workflow/istm-craft/agent-modes/cross-cutting.md +65 -0
  160. package/istm-workflow/istm-craft/agent-modes/enhancement.md +45 -0
  161. package/istm-workflow/istm-craft/agent-modes/feature.md +85 -0
  162. package/istm-workflow/istm-craft/agent-prompt.md +249 -0
  163. package/istm-workflow/istm-craft/agents/openai.yaml +7 -0
  164. package/istm-workflow/istm-craft/internal/after-subagent.md +90 -0
  165. package/istm-workflow/istm-craft/internal/design-conversation.md +140 -0
  166. package/istm-workflow/istm-craft/internal/tool-discovery.md +58 -0
  167. package/istm-workflow/istm-craft/spec-template.md +278 -0
  168. package/istm-workflow/istm-debug/SKILL.md +102 -0
  169. package/istm-workflow/istm-debug/agents/openai.yaml +7 -0
  170. package/istm-workflow/istm-develop/SKILL.md +144 -0
  171. package/istm-workflow/istm-develop/agents/openai.yaml +7 -0
  172. package/istm-workflow/istm-develop/checklist.md +95 -0
  173. package/istm-workflow/istm-develop/flow/build.md +133 -0
  174. package/istm-workflow/istm-develop/flow/git.md +34 -0
  175. package/istm-workflow/istm-develop/logical-guide.md +99 -0
  176. package/istm-workflow/istm-develop/ui/existing.md +23 -0
  177. package/istm-workflow/istm-develop/ui/generate.md +131 -0
  178. package/istm-workflow/istm-develop/ui/image.md +41 -0
  179. package/istm-workflow/istm-develop/ui/implementation.md +281 -0
  180. package/istm-workflow/istm-develop/ui/mcp.md +11 -0
  181. package/istm-workflow/istm-develop/ui-guide.md +164 -0
  182. package/istm-workflow/istm-document/SKILL.md +123 -0
  183. package/istm-workflow/istm-document/agent-prompt.md +57 -0
  184. package/istm-workflow/istm-document/agents/openai.yaml +7 -0
  185. package/istm-workflow/istm-document/templates/changelog.md +54 -0
  186. package/istm-workflow/istm-document/templates/postmortem.md +58 -0
  187. package/istm-workflow/istm-document/templates/pr.md +43 -0
  188. package/istm-workflow/istm-document/templates/release-note.md +41 -0
  189. package/istm-workflow/istm-scope/SKILL.md +100 -0
  190. package/istm-workflow/istm-scope/agents/openai.yaml +7 -0
  191. package/istm-workflow/istm-scope/approaches/facade.md +33 -0
  192. package/istm-workflow/istm-scope/approaches/journey.md +31 -0
  193. package/istm-workflow/istm-scope/approaches/skateboard.md +33 -0
  194. package/istm-workflow/istm-scope/approaches/tracer-bullet.md +34 -0
  195. package/istm-workflow/istm-scope/modes/add.md +14 -0
  196. package/istm-workflow/istm-scope/modes/plan-brownfield.md +11 -0
  197. package/istm-workflow/istm-scope/modes/plan-greenfield.md +20 -0
  198. package/istm-workflow/istm-scope/modes/plan-monorepo.md +8 -0
  199. package/istm-workflow/istm-scope/modes/plan.md +120 -0
  200. package/istm-workflow/istm-scope/modes/replan.md +13 -0
  201. package/istm-workflow/istm-scope/scope-template.md +148 -0
  202. package/istm-workflow/istm-sync/SKILL.md +166 -0
  203. package/istm-workflow/istm-sync/agent-prompt.md +211 -0
  204. package/istm-workflow/istm-sync/agents/openai.yaml +7 -0
  205. package/istm-workflow/istm-test/SKILL.md +233 -0
  206. package/istm-workflow/istm-test/agent-prompt.md +62 -0
  207. package/istm-workflow/istm-test/agents/openai.yaml +7 -0
  208. package/istm-workflow/istm-test/modes/setup.md +97 -0
  209. package/istm-workflow/istm-test/writing-guide.md +196 -0
  210. package/package.json +35 -0
@@ -0,0 +1,166 @@
1
+ # Animation Map: Schema & Reference
2
+
3
+ The animation map is the primary output of the Invention Gate. It defines WHAT moves, WHERE it moves, and HOW it moves — for every section of the site. The Enhancement Layer reads this map and implements it on top of the Stitch-generated project output.
4
+
5
+ ---
6
+
7
+ ## Schema
8
+
9
+ The animation map is a structured document with these sections:
10
+
11
+ ### 1. Global Settings
12
+
13
+ ```yaml
14
+ tier: 2 # 1 | 2 | 2.5 | 3
15
+ easing_language: "slow, heavy, deliberate" # derived from brand metaphor
16
+ scroll_behavior: lenis # lenis preferred for Tier 2+; any non-touch-hijacking impl acceptable
17
+ page_transitions: tanstack-router # TanStack Router hooks + GSAP
18
+ signature_interaction: "liquid cursor that pools on hover" # one unique interaction
19
+ ```
20
+
21
+ ### 2. Per-Page Animation Assignments
22
+
23
+ For each page in the site, list every section and its animation treatment:
24
+
25
+ ```yaml
26
+ home:
27
+ hero:
28
+ type: webgl_overlay # webgl_overlay | scroll_reveal | scroll_pin | static
29
+ description: "WebGL particle field, overlaid on Stitch hero design"
30
+ trigger: page_load
31
+ section_work:
32
+ type: scroll_pin
33
+ description: "Horizontal scroll gallery, ScrollTrigger pin"
34
+ trigger: scroll_enter
35
+ section_about:
36
+ type: scroll_reveal
37
+ description: "Character stagger on headline, fade-up on body"
38
+ trigger: scroll_enter
39
+ footer:
40
+ type: static
41
+ description: "No animation. Lenis snap point."
42
+
43
+ work:
44
+ hero:
45
+ type: scroll_reveal
46
+ description: "Title reveal with character split, stagger 0.03s"
47
+ trigger: page_load
48
+ project_grid:
49
+ type: scroll_reveal
50
+ description: "Cards fade-up with stagger on scroll"
51
+ trigger: scroll_enter
52
+ ```
53
+
54
+ ### 3. WebGL/3D Overlay Zones (Tier 2.5+ only)
55
+
56
+ For sections where a WebGL canvas overlays on top of Stitch's design:
57
+
58
+ ```yaml
59
+ webgl_overlays:
60
+ - page: home
61
+ section: hero
62
+ canvas_position: "absolute, full-section, z-index above Stitch HTML"
63
+ scene_type: "particle field"
64
+ interaction: "particles respond to cursor position"
65
+ mobile_fallback: "hide canvas, show Stitch design only"
66
+ - page: work
67
+ section: project_detail_hero
68
+ canvas_position: "absolute, full-width, behind text"
69
+ scene_type: "noise displacement plane"
70
+ interaction: "scroll-driven distortion intensity"
71
+ mobile_fallback: "static gradient"
72
+ ```
73
+
74
+ ### 4. Animated Text Targets
75
+
76
+ List every text element that requires character or word-level animation:
77
+
78
+ ```yaml
79
+ animated_text_targets:
80
+ - selector: "h1"
81
+ split: chars
82
+ animation: stagger_reveal
83
+ stagger: 0.03
84
+ - selector: ".section-title"
85
+ split: words
86
+ animation: fade_up
87
+ stagger: 0.05
88
+ ```
89
+
90
+ ### 5. Scroll-Pinned Sections
91
+
92
+ List every section that gets pinned during scroll:
93
+
94
+ ```yaml
95
+ scroll_pins:
96
+ - section: ".horizontal-gallery"
97
+ pin: true
98
+ scrub: 1
99
+ description: "Horizontal scroll within pinned container"
100
+ - section: ".hero"
101
+ pin: true
102
+ scrub: false
103
+ description: "Hero stays fixed while content scrolls over"
104
+ ```
105
+
106
+ ---
107
+
108
+ ## Easing Language
109
+
110
+ The easing language is derived from the brand metaphor during the Invention Gate. It defines the motion personality of the entire site.
111
+
112
+ ### Derivation Process
113
+
114
+ 1. Extract the brand's physical qualities from the metaphor (heavy/light, fast/slow, rigid/fluid, mechanical/organic)
115
+ 2. Map to easing characteristics:
116
+
117
+ | Brand Quality | Easing Direction |
118
+ |---|---|
119
+ | Heavy, monumental | Long ease-out, no bounce. `power4.out` |
120
+ | Light, airy | Short ease-in-out, slight overshoot. `back.out(1.2)` |
121
+ | Precise, mechanical | Linear or stepped. `steps(8)` |
122
+ | Organic, fluid | Custom cubic-bezier with asymmetric curves. `power2.inOut` |
123
+ | Energetic, fast | Quick ease-in, snap to position. `power3.in` |
124
+ | Contemplative, slow | Very long duration (1.2s+), gentle ease-out. `power1.out` |
125
+
126
+ 3. Define 3 named easings for the project:
127
+ - `ease-primary`: main interaction easing (buttons, links, hover)
128
+ - `ease-reveal`: content reveal easing (scroll enters, page loads)
129
+ - `ease-transition`: page transition easing (TanStack Router + GSAP)
130
+
131
+ ---
132
+
133
+ ## Section Architecture Patterns
134
+
135
+ The animation map's per-page structure follows one of these patterns:
136
+
137
+ ### Linear (Default)
138
+ Sections flow top-to-bottom. Each section triggers independently on scroll entry. Standard for most sites.
139
+
140
+ ### Cyclical
141
+ Sections loop back to the beginning — last section connects visually/thematically to the first. Good for portfolio sites where "work" cycles back to "home."
142
+
143
+ ### Branching
144
+ A central hub (usually hero) with sections that expand on interaction rather than scroll. Good for exploratory/interactive experiences.
145
+
146
+ ### Portal
147
+ Each section is a self-contained world. Page transitions between sections are dramatic (full-screen wipes, 3D camera moves). Good for narrative/storytelling sites.
148
+
149
+ Choose the pattern during the Invention Gate based on brand metaphor and content structure. The pattern determines ScrollTrigger configuration and the TanStack Router transition style.
150
+
151
+ ---
152
+
153
+ ## How the Enhancement Layer Uses This Map
154
+
155
+ 1. Read the animation map
156
+ 2. Read Stitch's DESIGN.md (for color/type tokens to maintain visual coherence in animations)
157
+ 3. Read the TanStack Start output from build_site
158
+ 4. For each page:
159
+ a. Identify sections by semantic HTML structure
160
+ b. Match sections to animation map assignments
161
+ c. Implement animations using the specified type, trigger, and easing
162
+ 5. Implement global concerns:
163
+ a. Smooth scroll instance (Lenis preferred, `smoothTouch: false`) if required by tier
164
+ b. TanStack Router transition hooks + animation library (global, using `ease-transition`)
165
+ c. WebGL/3D overlays (where specified)
166
+ 6. Run site-wide — never page-by-page. TanStack Router transitions and Lenis require global context in `__root.tsx`.
@@ -0,0 +1,86 @@
1
+ # Animation Standards
2
+
3
+ > **Priority order:** DESIGN.md → Animation map easings → This reference.
4
+
5
+ ---
6
+
7
+ ## Animation Philosophy: 3 Pillars
8
+
9
+ 1. **Intentionality** — Every animation has a reason. It reveals hierarchy, guides attention, or confirms interaction. If you can't state its purpose in one sentence, remove it.
10
+ 2. **Narrative Coherence** — Animations tell a story. The page enters with purpose, content reveals in a logical sequence, and interactions feel like natural cause-and-effect.
11
+ 3. **Performance Integrity** — Premium feel requires 60fps. GPU-accelerated only. Main thread blocking is a hard failure.
12
+
13
+ ---
14
+
15
+ ## Animation Complexity Matrix
16
+
17
+ | Level | Type | Duration | Complexity | When to Use |
18
+ |-------|------|----------|------------|-------------|
19
+ | **CSS** | Micro-interactions | 0.15–0.4s | Low | Hover states, button feedback, toggles, form focus |
20
+ | **JS-Scroll** | Scroll-triggered reveals | 0.5–1.2s | Medium | Section reveals, staggered content, parallax |
21
+ | **JS-Advanced** | Scroll + interaction combos | 0.4–1.5s | Med-High | Horizontal scroll galleries, pinned sections |
22
+ | **JS-Transitions** | Page transitions | 0.4–0.8s/phase | High | Multi-page sites |
23
+
24
+ ---
25
+
26
+ ## Easing Selection: The 3 Easings
27
+
28
+ | Easing | Curve | Use For |
29
+ |--------|-------|---------|
30
+ | `ease-primary` | `cubic-bezier(0.16, 1, 0.3, 1)` / GSAP `power4.out` | Section reveals, card entrances, modal open |
31
+ | `ease-reveal` | `cubic-bezier(0.22, 1, 0.36, 1)` / GSAP `power3.out` | Hero headlines, full-page load sequences |
32
+ | `ease-transition` | `cubic-bezier(0.65, 0, 0.35, 1)` / GSAP `power2.inOut` | Page transitions, clip-path wipes |
33
+
34
+ **Never use `linear` easing for anything user-facing.**
35
+
36
+ ### Brand → Curve Mapping
37
+
38
+ | Brand Personality | Curve |
39
+ |------------------|-------|
40
+ | Bold/Assertive | `power4.out` / `cubic-bezier(0.16, 1, 0.3, 1)` |
41
+ | Elegant/Luxury | `power3.out` / `cubic-bezier(0.22, 1, 0.36, 1)` |
42
+ | Playful/Creative | `back.out` / `cubic-bezier(0.34, 1.56, 0.64, 1)` |
43
+ | Tech/SaaS | `power2.out` / `cubic-bezier(0.25, 1, 0.5, 1)` |
44
+ | Minimal/Quiet | `power1.out` / `cubic-bezier(0.25, 0, 0.5, 1)` |
45
+
46
+ ---
47
+
48
+ ## Timing Cheat Sheet
49
+
50
+ | Context | Duration | Easing | Stagger |
51
+ |---------|----------|--------|---------|
52
+ | Hero reveal | 0.8–1.2s | ease-reveal | 100–150ms/item |
53
+ | Section fade-up | 0.6–0.8s | ease-primary | 50–100ms/item |
54
+ | Scroll-triggered image | 0.8–1.0s | ease-primary | — |
55
+ | Micro-interaction (hover) | 0.2–0.4s | ease-primary | — |
56
+ | Page leave | 0.3–0.5s | ease-transition | — |
57
+ | Page enter | 0.5–0.8s | ease-primary | — |
58
+ | Text char reveal | 0.04–0.08s/char | ease-reveal | 20–40ms stagger |
59
+
60
+ ---
61
+
62
+ ## Key Animation Rules
63
+
64
+ ### DO:
65
+ - Use scoped animation contexts (`gsap.context()` or equivalent) for cleanup
66
+ - Kill scroll trigger instances and smooth scroll on unmount/page transition
67
+ - Stagger reveals to create visual rhythm
68
+ - Use `autoAlpha` instead of separate opacity tweens
69
+ - Add `will-change` only during active animation, remove after
70
+
71
+ ### DON'T:
72
+ - `transition: all` — ever, for any reason
73
+ - Animate `width`, `height`, `margin`, `top`, `left`, `font-size`
74
+ - Use `setInterval`/`setTimeout` for animation loops
75
+ - Initialize multiple ScrollTrigger instances on the same element
76
+ - Forget `ScrollTrigger.refresh()` after DOM mutations
77
+
78
+ ---
79
+
80
+ ## See Also
81
+
82
+ - `references/scroll-patterns.md` — Scroll-triggered reveals, galleries, parallax
83
+ - `references/page-transitions.md` — TanStack Router transitions
84
+ - `references/text-animation.md` — SplitType, variable font animation
85
+ - `references/micro-interactions.md` — Button arcs, magnetic effects, cursor
86
+ - `references/anim-anti-patterns.md` — Animation anti-patterns
@@ -0,0 +1,191 @@
1
+ # Anti-Patterns: Interaction & Code Pattern Blacklist
2
+
3
+ **TIER 1 — FORBIDDEN** — Never use. No exceptions. No workarounds.
4
+
5
+ **TIER 2 — OVERUSED** — Document the twist before using. If you can't, don't.
6
+
7
+ **TIER 3 — ENCOURAGED** — Signal technical ambition. Use with restraint and purpose.
8
+
9
+ ---
10
+
11
+ ## TIER 1: FORBIDDEN
12
+
13
+ ### 1. `transition: all`
14
+
15
+ **What it is:** Using `transition: all 0.3s ease` on a parent element.
16
+
17
+ **Instead:** Specify exactly what transitions: `transition: transform 0.3s, opacity 0.3s`. Use separate transitions per element when needed. Use GSAP for multi-property animations.
18
+
19
+ **Test:** Search the project for `transition: all`. Delete every match.
20
+
21
+ ---
22
+
23
+ ### 2. Mixed Icon Libraries (Icon Verification Reference)
24
+
25
+ **What it is:** Using more than one icon library — Font Awesome alongside Heroicons, Lucide mixed with Phosphor — or random inline SVG from the internet.
26
+
27
+ **The rule:** Lucide exclusively. One library, one visual language, always. If a needed icon doesn't exist in Lucide, draw it as a minimal inline SVG matching Lucide's stroke conventions (`stroke-width="1.5"`, `stroke-linecap="round"`, `stroke-linejoin="round"`, no fill, `viewBox="0 0 24 24"`).
28
+
29
+ **Verification search terms:** `font-awesome`, `heroicons`, `phosphor`, `feather`, `tabler`. Any match is a violation.
30
+
31
+ ---
32
+
33
+ ### 3. `overflow: hidden` on Hero Without Descender Safety
34
+
35
+ **What it is:** Using `overflow: hidden` on a hero container with display text (>48px) without implementing the Descender Safety Protocol.
36
+
37
+ **Instead:**
38
+ - `overflow: visible` on all text elements — never `overflow: clip` (clip ignores `padding-bottom`)
39
+ - `overflow: hidden` on section containers (respects child padding)
40
+ - `padding-bottom: var(--descender-clearance)` on all display text
41
+
42
+ **Test:** Screenshot every headline. Any letters (g, y, q, p) cut off at the bottom? Fix before launch.
43
+
44
+ ---
45
+
46
+ ## TIER 2: OVERUSED (Requires Documented Twist)
47
+
48
+ ### 1. `mix-blend-mode: difference` Cursor
49
+
50
+ **Standard usage:** Custom cursor that inverts colors under the cursor.
51
+
52
+ **How to reinvent it:** Context-aware cursor that changes blend mode based on element type (text vs. image vs. interactive), transitioning smoothly between states.
53
+
54
+ Use Context7 to fetch current API docs before implementing.
55
+
56
+ ---
57
+
58
+ ### 2. GSAP `y: 40px` Stagger Reveal on Text
59
+
60
+ **Standard usage:** Text chars or words slide up 40px, fade in, staggered by 0.05s.
61
+
62
+ **How to reinvent it:** Direction and timing carry meaning. Direction maps to narrative momentum; timing maps to letter anatomy or weight.
63
+
64
+ Use Context7 to fetch current API docs before implementing.
65
+
66
+ ---
67
+
68
+ ### 3. Standard Magnetic Button
69
+
70
+ **Standard usage:** Button follows cursor and sticks on hover, returns on leave.
71
+
72
+ **How to reinvent it:** Physics-based material properties — button material determines damping and elasticity on release.
73
+
74
+ Use Context7 to fetch current API docs before implementing.
75
+
76
+ ---
77
+
78
+ ### 4. SplitType with Identical Stagger Timing
79
+
80
+ **Standard usage:** Every character animates with the same 0.05s stagger — mechanical feel.
81
+
82
+ **How to reinvent it:** Stagger timing reflects letter anatomy — ascenders animate first, descenders last.
83
+
84
+ Use Context7 to fetch current API docs before implementing.
85
+
86
+ ---
87
+
88
+ ### 5. Standard Mesh Gradient (Shader Behavior Pattern)
89
+
90
+ **Standard usage:** Animated mesh gradient as background, morphing between color states.
91
+
92
+ **How to reinvent it:** Generative gradient driven by time, scroll velocity, or session data — never identical between visits. Static animated gradient loops are forbidden. Data-driven gradients are acceptable.
93
+
94
+ Use Context7 to fetch current API docs before implementing.
95
+
96
+ ---
97
+
98
+ ### 6. Parallax Background Image
99
+
100
+ **Standard usage:** Background image moves slower than foreground content.
101
+
102
+ **How to reinvent it:** Parallax speed carries meaning — maps to content importance or thematic weight. More important content moves slower.
103
+
104
+ Use Context7 to fetch current API docs before implementing.
105
+
106
+ ---
107
+
108
+ ### 7. Marquee / Infinite Ticker
109
+
110
+ **Standard usage:** Horizontally scrolling strip of repeating text or logos — infinitely looping.
111
+
112
+ **Gate questions — all three must be yes before using:**
113
+ 1. Is the content genuinely worth repeating in motion? Real client names, real project titles, real testimonials — not generic copy or made-up brand descriptions.
114
+ 2. Does perpetual motion fit the brand's emotional trigger from the Invention Gate? Check Metaphor 3.
115
+ 3. Does the marquee content differ from what the page already communicates elsewhere?
116
+
117
+ **If any answer is no:** Do not use the marquee.
118
+
119
+ **How to reinvent it (if all three yes):** Speed responds to scroll velocity, direction reverses on hover, variable font weight increases as items pass the center point, content changes by time of day.
120
+
121
+ ---
122
+
123
+ ## TIER 3: ENCOURAGED
124
+
125
+ These patterns signal genuine technical depth. Use with purpose — if you can't articulate why this brand needs this technique, it doesn't.
126
+
127
+ ### 1. MSDF 3D Text Rendering
128
+ Text rendered as 3D geometry in WebGL — exists in three-dimensional space with depth, lighting, and camera perspective. Use for hero moments or key brand statements only. Never body copy or navigation.
129
+
130
+ ### 2. DOM-to-Shader Sync
131
+ CSS custom properties, scroll position, or cursor coordinates piped into GLSL shader uniforms in real-time. The sync should feel inevitable — if removing it wouldn't change the user's experience, the connection is pointless. One or two well-chosen connections create coherence; five create noise.
132
+
133
+ ### 3. Scroll-Velocity Shaders
134
+ Scroll *speed* (not position) drives a GLSL uniform. Fast scrolling creates one visual state; slow scrolling creates another; stopping creates a third. The velocity response should feel physical — like dragging through water. Reduce or disable on touch devices rather than producing a broken version.
135
+
136
+ ### 4. Cinematic Timeline Sequencing
137
+ Multi-track, precisely timed animation orchestration — Theatre.js or complex GSAP timeline nesting. Every element in the sequence must have a reason to move when it does. Study film title sequences for rhythm; the best web animations borrow from motion design, not from other websites.
138
+
139
+ ### 5. FBO (Framebuffer Object) Particles
140
+ Particle simulations running entirely on the GPU via framebuffer objects. More particles is not better — beauty is in behavior: flocking, attractor response, formation and dissolution. Ensure the system serves the narrative.
141
+
142
+ ### 6. Gaussian Splatting on the Web
143
+ 3D Gaussian splatting displayed in a WebGL context. Use for moments that benefit from spatial exploration: product showcases, architectural walkthroughs. Treat loading as part of the design. Provide a mobile fallback — splat rendering is GPU-intensive.
144
+
145
+ ### 7. Variable Font Axes as Living Typography
146
+ Font axes (`wght`, `wdth`, `slnt`, or custom) driven in real-time by scroll velocity, cursor position, or data feeds. Smooth input values aggressively. Limit to one or two axes per interaction — animating all axes simultaneously looks chaotic. Push beyond simple weight animation: use custom axes, per-character SplitType control, or unexpected data sources.
147
+
148
+ ### 8. Generative Variation
149
+ Procedural algorithms ensure no two visits produce identical output. The variation must be *bounded* — every generated output should look intentional, not random. Seed-based generation (URL or timestamp determines output) lets users share specific variations.
150
+
151
+ ### 9. Generative WebAudio
152
+ Sound generated or modulated in real-time based on interaction or visual state — not a pre-recorded track. Always opt-in with a visible persistent mute toggle. Ambient and textural is almost always better than melodic. Test on both speakers and headphones.
153
+
154
+ ### 10. Canvas Text Decomposition
155
+ Text rendered to a hidden canvas, pixel data extracted and used to drive particle systems or per-pixel animations. The text must remain legible at its rest state. The decomposition effect must feel purposeful — test performance on lower-end devices.
156
+
157
+ ### 11. Physics-Driven UI
158
+ 2D or 3D physics engines (Matter.js, Rapier.js, Cannon.js) powering interface interactions. Use for specific moments — a 404 page, an interactive grid, a loading sequence — not applied to everything. Tune parameters (gravity, restitution, friction) to feel right, not realistic.
159
+
160
+ ### 12. WebGPU Compute Shaders
161
+ WebGPU compute shaders for fluid simulations, complex particles, or real-time image processing. Always provide a WebGL fallback — WebGPU support is limited to Chrome and Edge. Frame the fallback as a first-class experience.
162
+
163
+ ### 13. View Transitions API (Native Browser)
164
+ Browser-native page transitions without JavaScript animation libraries. Use where simplicity is a virtue — content sites, portfolios with clean layouts. For highly choreographed multi-element transitions, TanStack Router hooks + GSAP still offer more control.
165
+
166
+ ### 14. Image Sequences with Alpha Compositing
167
+ Pre-rendered animation frames composited on 2D canvas — JPEG color data combined with PNG alpha. Keep sequences short (2-5 seconds), loop seamlessly. Scroll-scrubbed sequences are significantly more engaging than auto-looping.
168
+
169
+ ---
170
+
171
+ ## Decision Tree
172
+
173
+ When designing an interaction:
174
+
175
+ 1. **Is this a forbidden pattern?** → STOP. Redesign.
176
+ 2. **Is this an overused pattern (Tier 2)?** → Proceed only with a documented twist. Write it in the animation map before building.
177
+ 3. **Is this an encouraged pattern (Tier 3)?** → Implement if technical confidence and timeline allow.
178
+ 4. **Is this something new?** → Verify it's not a forbidden or overused pattern underneath.
179
+
180
+ ---
181
+
182
+ ## Audit Checklist
183
+
184
+ Before launch:
185
+
186
+ - [ ] No `transition: all` anywhere in the codebase
187
+ - [ ] No mixed icon libraries — Lucide only (search: `font-awesome`, `heroicons`, `phosphor`, `feather`, `tabler`)
188
+ - [ ] No `overflow: hidden` on hero without descender safety protocol
189
+ - [ ] If marquee present: all three gate questions answered yes, twist documented
190
+ - [ ] Every Tier 2 pattern has documented twist in the animation map
191
+ - [ ] At least one Tier 3 pattern if targeting high distinction