natureco-cli 5.18.3 → 5.19.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 (154) hide show
  1. package/package.json +1 -1
  2. package/skills/airunway-aks-setup/SKILL.md +73 -0
  3. package/skills/algorithmic-art/SKILL.md +405 -0
  4. package/skills/appinsights-instrumentation/SKILL.md +76 -0
  5. package/skills/azure-ai/SKILL.md +71 -0
  6. package/skills/azure-aigateway/SKILL.md +129 -0
  7. package/skills/azure-cloud-migrate/SKILL.md +52 -0
  8. package/skills/azure-compliance/SKILL.md +108 -0
  9. package/skills/azure-compute/SKILL.md +46 -0
  10. package/skills/azure-cost/SKILL.md +45 -0
  11. package/skills/azure-deploy/SKILL.md +97 -0
  12. package/skills/azure-diagnostics/SKILL.md +151 -0
  13. package/skills/azure-enterprise-infra-planner/SKILL.md +54 -0
  14. package/skills/azure-hosted-copilot-sdk/SKILL.md +89 -0
  15. package/skills/azure-kubernetes/SKILL.md +153 -0
  16. package/skills/azure-kusto/SKILL.md +231 -0
  17. package/skills/azure-messaging/SKILL.md +57 -0
  18. package/skills/azure-prepare/SKILL.md +165 -0
  19. package/skills/azure-quotas/SKILL.md +276 -0
  20. package/skills/azure-rbac/SKILL.md +17 -0
  21. package/skills/azure-reliability/SKILL.md +387 -0
  22. package/skills/azure-resource-lookup/SKILL.md +108 -0
  23. package/skills/azure-resource-visualizer/SKILL.md +183 -0
  24. package/skills/azure-storage/SKILL.md +100 -0
  25. package/skills/azure-upgrade/SKILL.md +91 -0
  26. package/skills/azure-validate/SKILL.md +72 -0
  27. package/skills/brainstorming/SKILL.md +159 -0
  28. package/skills/brand-guidelines/SKILL.md +73 -0
  29. package/skills/brandkit/SKILL.md +798 -0
  30. package/skills/brutalist-skill/SKILL.md +92 -0
  31. package/skills/canvas-design/SKILL.md +130 -0
  32. package/skills/cavecrew/SKILL.md +82 -0
  33. package/skills/caveman-commit/SKILL.md +65 -0
  34. package/skills/caveman-help/SKILL.md +63 -0
  35. package/skills/caveman-review/SKILL.md +55 -0
  36. package/skills/caveman-stats/SKILL.md +10 -0
  37. package/skills/claude-api/SKILL.md +356 -0
  38. package/skills/composition-patterns/SKILL.md +89 -0
  39. package/skills/decision-mapping/SKILL.md +84 -0
  40. package/skills/deploy-to-vercel/SKILL.md +296 -0
  41. package/skills/design-an-interface/SKILL.md +94 -0
  42. package/skills/design-doc-mermaid/SKILL.md +498 -0
  43. package/skills/develop-userscripts/SKILL.md +84 -0
  44. package/skills/doc-coauthoring/SKILL.md +375 -0
  45. package/skills/documentation/SKILL.md +109 -0
  46. package/skills/docx/SKILL.md +590 -0
  47. package/skills/edit-article/SKILL.md +15 -0
  48. package/skills/entra-agent-id/SKILL.md +356 -0
  49. package/skills/entra-app-registration/SKILL.md +191 -0
  50. package/skills/faceless-explainer/SKILL.md +202 -0
  51. package/skills/fastify/SKILL.md +75 -0
  52. package/skills/general-video/SKILL.md +143 -0
  53. package/skills/git-guardrails-claude-code/SKILL.md +95 -0
  54. package/skills/github-actions-docs/SKILL.md +98 -0
  55. package/skills/gpt-tasteskill/SKILL.md +74 -0
  56. package/skills/grill-me/SKILL.md +7 -0
  57. package/skills/grilling/SKILL.md +10 -0
  58. package/skills/handoff/SKILL.md +16 -0
  59. package/skills/hyperframes/SKILL.md +152 -0
  60. package/skills/hyperframes-animation/SKILL.md +82 -0
  61. package/skills/hyperframes-cli/SKILL.md +109 -0
  62. package/skills/hyperframes-core/SKILL.md +78 -0
  63. package/skills/hyperframes-creative/SKILL.md +68 -0
  64. package/skills/hyperframes-media/SKILL.md +97 -0
  65. package/skills/image-to-code-skill/SKILL.md +1228 -0
  66. package/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
  67. package/skills/imagegen-frontend-web/SKILL.md +987 -0
  68. package/skills/implement/SKILL.md +15 -0
  69. package/skills/init/SKILL.md +91 -0
  70. package/skills/internal-comms/SKILL.md +32 -0
  71. package/skills/lark-approval/SKILL.md +56 -0
  72. package/skills/lark-base/SKILL.md +157 -0
  73. package/skills/lark-doc/SKILL.md +81 -0
  74. package/skills/lark-shared/SKILL.md +168 -0
  75. package/skills/lark-workflow-meeting-summary/SKILL.md +122 -0
  76. package/skills/linting-neostandard-eslint9/SKILL.md +64 -0
  77. package/skills/loop-me/SKILL.md +32 -0
  78. package/skills/microsoft-foundry/SKILL.md +262 -0
  79. package/skills/migrate-to-shoehorn/SKILL.md +118 -0
  80. package/skills/minimalist-skill/SKILL.md +85 -0
  81. package/skills/motion-graphics/SKILL.md +170 -0
  82. package/skills/music-to-video/SKILL.md +197 -0
  83. package/skills/node/SKILL.md +94 -0
  84. package/skills/nodejs-core/SKILL.md +156 -0
  85. package/skills/oauth/SKILL.md +186 -0
  86. package/skills/obsidian-vault/SKILL.md +59 -0
  87. package/skills/octocat/SKILL.md +93 -0
  88. package/skills/openclaw-secure-linux-cloud/SKILL.md +157 -0
  89. package/skills/opensource-guide-coach/SKILL.md +218 -0
  90. package/skills/output-skill/SKILL.md +49 -0
  91. package/skills/pdf/SKILL.md +314 -0
  92. package/skills/pptx/SKILL.md +232 -0
  93. package/skills/pr-to-video/SKILL.md +235 -0
  94. package/skills/product-launch-video/SKILL.md +205 -0
  95. package/skills/python-appservice-deploy/SKILL.md +36 -0
  96. package/skills/qa/SKILL.md +130 -0
  97. package/skills/react-best-practices/SKILL.md +149 -0
  98. package/skills/react-native-skills/SKILL.md +121 -0
  99. package/skills/react-view-transitions/SKILL.md +320 -0
  100. package/skills/readme-i18n/SKILL.md +176 -0
  101. package/skills/redesign-skill/SKILL.md +178 -0
  102. package/skills/remotion/SKILL.md +364 -0
  103. package/skills/request-refactor-plan/SKILL.md +68 -0
  104. package/skills/resolving-merge-conflicts/SKILL.md +14 -0
  105. package/skills/running-claude-code-via-litellm-copilot/SKILL.md +263 -0
  106. package/skills/scaffold-exercises/SKILL.md +106 -0
  107. package/skills/secure-linux-web-hosting/SKILL.md +162 -0
  108. package/skills/setup-pre-commit/SKILL.md +91 -0
  109. package/skills/shadcn/SKILL.md +267 -0
  110. package/skills/simple/SKILL.md +52 -0
  111. package/skills/skill-creator/SKILL.md +485 -0
  112. package/skills/skill-optimizer/SKILL.md +47 -0
  113. package/skills/skills-cli/SKILL.md +281 -0
  114. package/skills/slack-gif-creator/SKILL.md +254 -0
  115. package/skills/snipgrapher/SKILL.md +58 -0
  116. package/skills/soft-skill/SKILL.md +98 -0
  117. package/skills/stitch-skill/SKILL.md +184 -0
  118. package/skills/supabase/SKILL.md +135 -0
  119. package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
  120. package/skills/systematic-debugging/SKILL.md +296 -0
  121. package/skills/talking-head-recut/SKILL.md +1191 -0
  122. package/skills/taste-skill/SKILL.md +1206 -0
  123. package/skills/taste-skill-v1/SKILL.md +226 -0
  124. package/skills/tdd/SKILL.md +108 -0
  125. package/skills/teach/SKILL.md +140 -0
  126. package/skills/test-driven-development/SKILL.md +371 -0
  127. package/skills/theme-factory/SKILL.md +59 -0
  128. package/skills/to-prd/SKILL.md +75 -0
  129. package/skills/typescript-magician/SKILL.md +117 -0
  130. package/skills/tzst/SKILL.md +68 -0
  131. package/skills/ubiquitous-language/SKILL.md +93 -0
  132. package/skills/use-my-browser/SKILL.md +110 -0
  133. package/skills/using-superpowers/SKILL.md +121 -0
  134. package/skills/vercel-cli-with-tokens/SKILL.md +353 -0
  135. package/skills/vercel-optimize/SKILL.md +322 -0
  136. package/skills/viral-instagram-reels/SKILL.md +180 -0
  137. package/skills/viral-short-form/SKILL.md +147 -0
  138. package/skills/viral-short-form-ideas/SKILL.md +184 -0
  139. package/skills/viral-tiktok-content/SKILL.md +180 -0
  140. package/skills/web-artifacts-builder/SKILL.md +74 -0
  141. package/skills/web-design-guidelines/SKILL.md +39 -0
  142. package/skills/webapp-testing/SKILL.md +96 -0
  143. package/skills/website-to-video/SKILL.md +145 -0
  144. package/skills/writing-beats/SKILL.md +67 -0
  145. package/skills/writing-fragments/SKILL.md +79 -0
  146. package/skills/writing-great-skills/SKILL.md +82 -0
  147. package/skills/writing-guidelines/SKILL.md +39 -0
  148. package/skills/writing-plans/SKILL.md +174 -0
  149. package/skills/writing-shape/SKILL.md +79 -0
  150. package/skills/xdrop/SKILL.md +78 -0
  151. package/skills/xget/SKILL.md +87 -0
  152. package/skills/xlsx/SKILL.md +292 -0
  153. package/src/tools/skills_download.js +217 -0
  154. package/src/utils/tools.js +2 -2
@@ -0,0 +1,320 @@
1
+ ---
2
+ name: vercel-react-view-transitions
3
+ description: Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.
4
+ license: MIT
5
+ metadata:
6
+ author: vercel
7
+ version: "1.0.0"
8
+ ---
9
+
10
+ # React View Transitions
11
+
12
+ Animate between UI states using the browser's native `document.startViewTransition`. Declare *what* with `<ViewTransition>`, trigger *when* with `startTransition` / `useDeferredValue` / `Suspense`, control *how* with CSS classes. Unsupported browsers skip animations gracefully.
13
+
14
+ ## When to Animate
15
+
16
+ Every `<ViewTransition>` should communicate a spatial relationship or continuity. If you can't articulate what it communicates, don't add it.
17
+
18
+ Implement **all** applicable patterns from this list, in this order:
19
+
20
+ | Priority | Pattern | What it communicates |
21
+ |----------|---------|---------------------|
22
+ | 1 | **Shared element** (`name`) | "Same thing — going deeper" |
23
+ | 2 | **Suspense reveal** | "Data loaded" |
24
+ | 3 | **List identity** (per-item `key`) | "Same items, new arrangement" |
25
+ | 4 | **State change** (`enter`/`exit`) | "Something appeared/disappeared" |
26
+ | 5 | **Route change** (layout-level) | "Going to a new place" |
27
+
28
+ This is an implementation order, not a "pick one" list. Implement every pattern that fits the app. Only skip a pattern if the app has no use case for it.
29
+
30
+ ### Choosing Animation Style
31
+
32
+ | Context | Animation | Why |
33
+ |---------|-----------|-----|
34
+ | Hierarchical navigation (list → detail) | Type-keyed `nav-forward` / `nav-back` | Communicates spatial depth |
35
+ | Lateral navigation (tab-to-tab) | Bare `<ViewTransition>` (fade) or `default="none"` | No depth to communicate |
36
+ | Suspense reveal | `enter`/`exit` string props | Content arriving |
37
+ | Revalidation / background refresh | `default="none"` | Silent — no animation needed |
38
+
39
+ Reserve directional slides for hierarchical navigation (list → detail) and ordered sequences (prev/next photo, carousel, paginated results). For ordered sequences, the direction communicates position: "next" slides from right, "previous" from left. Lateral/unordered navigation (tab-to-tab) should not use directional slides — it falsely implies spatial depth.
40
+
41
+ ---
42
+
43
+ ## Availability
44
+
45
+ - **Next.js:** Do **not** install `react@canary` — the App Router already bundles React canary internally. `ViewTransition` works out of the box. `npm ls react` may show a stable-looking version; this is expected.
46
+ - **Without Next.js:** Install `react@canary react-dom@canary` (`ViewTransition` is not in stable React).
47
+ - Browser support: Chromium 111+, Firefox 144+, Safari 18.2+. Graceful degradation on unsupported browsers.
48
+
49
+ ---
50
+
51
+ ## Implementation Workflow
52
+
53
+ When adding view transitions to an existing app, **follow `references/implementation.md` step by step.** Start with the audit — do not skip it. Copy the CSS recipes from `references/css-recipes.md` into the global stylesheet — do not write your own animation CSS.
54
+
55
+ ---
56
+
57
+ ## Core Concepts
58
+
59
+ ### The `<ViewTransition>` Component
60
+
61
+ ```jsx
62
+ import { ViewTransition } from 'react';
63
+
64
+ <ViewTransition>
65
+ <Component />
66
+ </ViewTransition>
67
+ ```
68
+
69
+ React auto-assigns a unique `view-transition-name` and calls `document.startViewTransition` behind the scenes. Never call `startViewTransition` yourself.
70
+
71
+ ### Animation Triggers
72
+
73
+ | Trigger | When it fires |
74
+ |---------|--------------|
75
+ | **enter** | `<ViewTransition>` first inserted during a Transition |
76
+ | **exit** | `<ViewTransition>` first removed during a Transition |
77
+ | **update** | DOM mutations inside a `<ViewTransition>`. With nested VTs, mutation applies to the innermost one |
78
+ | **share** | Named VT unmounts and another with same `name` mounts in the same Transition |
79
+
80
+ Only `startTransition`, `useDeferredValue`, or `Suspense` activate VTs. Regular `setState` does not animate.
81
+
82
+ ### Critical Placement Rule
83
+
84
+ `<ViewTransition>` only activates enter/exit if it appears **before any DOM nodes**:
85
+
86
+ ```jsx
87
+ // Works
88
+ <ViewTransition enter="auto" exit="auto">
89
+ <div>Content</div>
90
+ </ViewTransition>
91
+
92
+ // Broken — div wraps the VT, suppressing enter/exit
93
+ <div>
94
+ <ViewTransition enter="auto" exit="auto">
95
+ <div>Content</div>
96
+ </ViewTransition>
97
+ </div>
98
+ ```
99
+
100
+ ---
101
+
102
+ ## Styling with View Transition Classes
103
+
104
+ ### Props
105
+
106
+ Values: `"auto"` (browser cross-fade), `"none"` (disabled), `"class-name"` (custom CSS), or `{ [type]: value }` for type-specific animations.
107
+
108
+ ```jsx
109
+ <ViewTransition default="none" enter="slide-in" exit="slide-out" share="morph" />
110
+ ```
111
+
112
+ If `default` is `"none"`, all triggers are off unless explicitly listed.
113
+
114
+ ### CSS Pseudo-Elements
115
+
116
+ - `::view-transition-old(.class)` — outgoing snapshot
117
+ - `::view-transition-new(.class)` — incoming snapshot
118
+ - `::view-transition-group(.class)` — container
119
+ - `::view-transition-image-pair(.class)` — old + new pair
120
+
121
+ See `references/css-recipes.md` for ready-to-use animation recipes.
122
+
123
+ ---
124
+
125
+ ## Transition Types
126
+
127
+ Tag transitions with `addTransitionType` so VTs can pick different animations based on context. Call it multiple times to stack types — different VTs in the tree react to different types:
128
+
129
+ ```jsx
130
+ startTransition(() => {
131
+ addTransitionType('nav-forward');
132
+ addTransitionType('select-item');
133
+ router.push('/detail/1');
134
+ });
135
+ ```
136
+
137
+ Pass an object to map types to CSS classes. Works on `enter`, `exit`, **and** `share`:
138
+
139
+ ```jsx
140
+ <ViewTransition
141
+ enter={{ 'nav-forward': 'slide-from-right', 'nav-back': 'slide-from-left', default: 'none' }}
142
+ exit={{ 'nav-forward': 'slide-to-left', 'nav-back': 'slide-to-right', default: 'none' }}
143
+ share={{ 'nav-forward': 'morph-forward', 'nav-back': 'morph-back', default: 'morph' }}
144
+ default="none"
145
+ >
146
+ <Page />
147
+ </ViewTransition>
148
+ ```
149
+
150
+ `enter` and `exit` don't have to be symmetric. For example, fade in but slide out directionally:
151
+
152
+ ```jsx
153
+ <ViewTransition
154
+ enter={{ 'nav-forward': 'fade-in', 'nav-back': 'fade-in', default: 'none' }}
155
+ exit={{ 'nav-forward': 'nav-forward', 'nav-back': 'nav-back', default: 'none' }}
156
+ default="none"
157
+ >
158
+ ```
159
+
160
+ **TypeScript:** `ViewTransitionClassPerType` requires a `default` key in the object.
161
+
162
+ For apps with multiple pages, extract the type-keyed VT into a reusable wrapper:
163
+
164
+ ```jsx
165
+ export function DirectionalTransition({ children }: { children: React.ReactNode }) {
166
+ return (
167
+ <ViewTransition
168
+ enter={{ 'nav-forward': 'nav-forward', 'nav-back': 'nav-back', default: 'none' }}
169
+ exit={{ 'nav-forward': 'nav-forward', 'nav-back': 'nav-back', default: 'none' }}
170
+ default="none"
171
+ >
172
+ {children}
173
+ </ViewTransition>
174
+ );
175
+ }
176
+ ```
177
+
178
+ ### `router.back()` and Browser Back Button
179
+
180
+ `router.back()` and the browser's back/forward buttons do **not** trigger view transitions (`popstate` is synchronous, incompatible with `startViewTransition`). Use `router.push()` with an explicit URL instead.
181
+
182
+ ### Types and Suspense
183
+
184
+ Types are available during navigation but **not** during subsequent Suspense reveals (separate transitions, no type). Use type maps for page-level enter/exit; use simple string props for Suspense reveals.
185
+
186
+ ---
187
+
188
+ ## Shared Element Transitions
189
+
190
+ Same `name` on two VTs — one unmounting, one mounting — creates a shared element morph:
191
+
192
+ ```jsx
193
+ <ViewTransition name="hero-image">
194
+ <img src="/thumb.jpg" onClick={() => startTransition(() => onSelect())} />
195
+ </ViewTransition>
196
+
197
+ // On the other view — same name
198
+ <ViewTransition name="hero-image">
199
+ <img src="/full.jpg" />
200
+ </ViewTransition>
201
+ ```
202
+
203
+ - Only one VT with a given `name` can be mounted at a time — use unique names (`photo-${id}`). Watch for reusable components: if a component with a named VT is rendered in both a modal/popover *and* a page, both mount simultaneously and break the morph. Either make the name conditional (via a prop) or move the named VT out of the shared component into the specific consumer.
204
+ - `share` takes precedence over `enter`/`exit`. Think through each navigation path: when no matching pair forms (e.g., the target page doesn't have the same name), `enter`/`exit` fires instead. Consider whether the element needs a fallback animation for those paths.
205
+ - Never use a fade-out exit on pages with shared morphs — use a directional slide instead.
206
+
207
+ ---
208
+
209
+ ## Common Patterns
210
+
211
+ ### Enter/Exit
212
+
213
+ ```jsx
214
+ {show && (
215
+ <ViewTransition enter="fade-in" exit="fade-out"><Panel /></ViewTransition>
216
+ )}
217
+ ```
218
+
219
+ ### List Reorder
220
+
221
+ ```jsx
222
+ {items.map(item => (
223
+ <ViewTransition key={item.id}><ItemCard item={item} /></ViewTransition>
224
+ ))}
225
+ ```
226
+
227
+ Trigger inside `startTransition`. Avoid wrapper `<div>`s between list and VT.
228
+
229
+ ### Composing Shared Elements with List Identity
230
+
231
+ Shared elements and list identity are independent concerns — don't confuse one for the other. When a list item contains a shared element (e.g., an image that morphs into a detail view), use two nested `<ViewTransition>` boundaries:
232
+
233
+ ```jsx
234
+ {items.map(item => (
235
+ <ViewTransition key={item.id}> {/* list identity */}
236
+ <Link href={`/items/${item.id}`}>
237
+ <ViewTransition name={`item-image-${item.id}`} share="morph"> {/* shared element */}
238
+ <Image src={item.image} />
239
+ </ViewTransition>
240
+ <p>{item.name}</p>
241
+ </Link>
242
+ </ViewTransition>
243
+ ))}
244
+ ```
245
+
246
+ The outer VT handles list reorder/enter animations. The inner VT handles the cross-route shared element morph. Missing either layer means that animation silently doesn't happen.
247
+
248
+ ### Force Re-Enter with `key`
249
+
250
+ ```jsx
251
+ <ViewTransition key={searchParams.toString()} enter="slide-up" default="none">
252
+ <ResultsGrid />
253
+ </ViewTransition>
254
+ ```
255
+
256
+ **Caution:** If wrapping `<Suspense>`, changing `key` remounts the boundary and refetches.
257
+
258
+ ### Suspense Fallback to Content
259
+
260
+ Simple cross-fade:
261
+ ```jsx
262
+ <ViewTransition>
263
+ <Suspense fallback={<Skeleton />}><Content /></Suspense>
264
+ </ViewTransition>
265
+ ```
266
+
267
+ Directional reveal:
268
+ ```jsx
269
+ <Suspense fallback={<ViewTransition exit="slide-down"><Skeleton /></ViewTransition>}>
270
+ <ViewTransition enter="slide-up" default="none"><Content /></ViewTransition>
271
+ </Suspense>
272
+ ```
273
+
274
+ For more patterns, see `references/patterns.md`.
275
+
276
+ ---
277
+
278
+ ## How Multiple VTs Interact
279
+
280
+ Every VT matching the trigger fires simultaneously in a single `document.startViewTransition`. VTs in **different** transitions (navigation vs later Suspense resolve) don't compete.
281
+
282
+ ### Use `default="none"` Liberally
283
+
284
+ Without it, every VT fires the browser cross-fade on **every** transition — Suspense resolves, `useDeferredValue` updates, background revalidations. Always use `default="none"` and explicitly enable only desired triggers.
285
+
286
+ ### Two Patterns Coexist
287
+
288
+ **Pattern A — Directional slides:** Type-keyed VT on each page, fires during navigation.
289
+ **Pattern B — Suspense reveals:** Simple string props, fires when data loads (no type).
290
+
291
+ They coexist because they fire at different moments. `default="none"` on both prevents cross-interference. Always pair `enter` with `exit`. Place directional VTs in page components, not layouts.
292
+
293
+ ### Nested VT Limitation
294
+
295
+ When a parent VT exits, nested VTs inside it do **not** fire their own enter/exit — only the outermost VT animates. Per-item staggered animations during page navigation are not possible today. See [react#36135](https://github.com/facebook/react/pull/36135) for an experimental opt-in fix.
296
+
297
+ ---
298
+
299
+ ## Next.js Integration
300
+
301
+ For Next.js setup (`experimental.viewTransition` flag, `transitionTypes` prop on `next/link`, App Router patterns, Server Components), see `references/nextjs.md`.
302
+
303
+ ---
304
+
305
+ ## Accessibility
306
+
307
+ Always add the reduced motion CSS from `references/css-recipes.md` to your global stylesheet.
308
+
309
+ ---
310
+
311
+ ## Reference Files
312
+
313
+ - **`references/implementation.md`** — Step-by-step implementation workflow.
314
+ - **`references/patterns.md`** — Patterns, animation timing, events API, troubleshooting.
315
+ - **`references/css-recipes.md`** — Ready-to-use CSS animation recipes.
316
+ - **`references/nextjs.md`** — Next.js App Router patterns and Server Component details.
317
+
318
+ ## Full Compiled Document
319
+
320
+ For the complete guide with all reference files expanded: `AGENTS.md`
@@ -0,0 +1,176 @@
1
+ ---
2
+ name: readme-i18n
3
+ description: Use when the user wants to translate a repository README, make a repo multilingual, localize docs, add a language switcher, internationalize the README, or update localized README variants in a GitHub-style repository.
4
+ ---
5
+
6
+ Localize a repository `README.md` without breaking the repo mechanics around it.
7
+
8
+ The default job is translate + wire-up:
9
+
10
+ - read the source-of-truth README
11
+ - create localized sibling files such as `README.zh.md`
12
+ - preserve GitHub-flavored Markdown structure and repo-specific tokens
13
+ - add or update a shared language selector near the top of every variant
14
+
15
+ This skill is for multilingual README workflows, not general website/app i18n.
16
+
17
+ ## Inputs
18
+
19
+ Expect these inputs when available:
20
+
21
+ - source README path, default `README.md`
22
+ - source language, default inferred or English
23
+ - one or more target languages
24
+ - optional glossary or do-not-translate list
25
+ - optional filename override if the repo already uses a different multilingual naming pattern
26
+
27
+ If target languages are not named, inspect existing translated files, selectors, filenames, issues, or prior repo conventions. If that still leaves the target languages unclear, ask once. Do not invent target languages.
28
+
29
+ ## Defaults And Decision Rules
30
+
31
+ - Treat the root `README.md` as the source-of-truth unless the user explicitly says otherwise.
32
+ - If the source language is ambiguous, ask once. Otherwise assume English.
33
+ - Keep section order aligned with the source README. Only make a small heading wording adjustment when needed to produce a valid localized anchor.
34
+ - Output localized siblings with `README.<bcp47-tag>.md` naming unless the repo already has a different established pattern that should be preserved.
35
+ - Update an existing language selector in place. Do not duplicate it.
36
+ - Translate only human-language content.
37
+ - Preserve project names, package names, commands, CLI flags, option names, environment variables, URLs, file paths, inline code, code fences, HTML attributes, and badge/image URLs.
38
+ - Badge alt text or visible labels may be translated only when the change does not require changing the badge URL, query params, or image source.
39
+ - If a glossary or do-not-translate list is provided, apply it consistently across every target language.
40
+
41
+ ## Workflow
42
+
43
+ ### 1. Establish the source README and languages
44
+
45
+ - Confirm the source README path. Default to `README.md`.
46
+ - Identify the source language from the file contents and repo context.
47
+ - Determine target languages from the request or existing repo pattern.
48
+ - Note any glossary terms, product names, or phrases that must stay untranslated.
49
+
50
+ ### 2. Audit the Markdown structure before translating
51
+
52
+ Read the source README once as structure, not prose. Open [`references/preservation-checklist.md`](./references/preservation-checklist.md) and inventory the elements most likely to break:
53
+
54
+ - headings and heading levels
55
+ - badge rows, shields URLs, and image links
56
+ - tables and alignment rows
57
+ - raw HTML blocks and inline HTML
58
+ - GitHub alerts or admonitions such as `> [!NOTE]`
59
+ - code fences, inline code, commands, and config snippets
60
+ - intra-document anchors such as `(#installation)`
61
+ - relative links to files, docs, screenshots, or other README variants
62
+
63
+ If the README already has localized siblings, inspect them too before choosing filenames or selector style.
64
+
65
+ ### 3. Translate only the prose layer
66
+
67
+ Translate:
68
+
69
+ - paragraph text
70
+ - list item prose
71
+ - table cell prose
72
+ - visible text inside HTML blocks
73
+ - image alt text when safe
74
+ - selector labels and other human-facing labels
75
+
76
+ Do not translate:
77
+
78
+ - fenced code blocks
79
+ - inline code spans
80
+ - shell commands
81
+ - flags such as `--help`
82
+ - env vars such as `OPENAI_API_KEY`
83
+ - URLs
84
+ - file paths
85
+ - repo/package/project identifiers
86
+ - badge and image URLs
87
+
88
+ When in doubt, preserve the literal token and translate the surrounding sentence instead.
89
+
90
+ ### 4. Preserve structure while writing the localized README
91
+
92
+ - Keep the same heading hierarchy and section order as the source.
93
+ - Keep the same number of code fences unless the user explicitly asks to rewrite examples.
94
+ - Preserve table shape, list nesting, HTML wrappers, and Markdown comments.
95
+ - Preserve relative links unless a link intentionally needs to point at a localized sibling README.
96
+
97
+ ### 5. Rewrite localized anchors and anchor-dependent links
98
+
99
+ When a translated heading changes, GitHub will generate a different heading ID. After translating headings:
100
+
101
+ - rewrite every same-file `(#...)` link so it matches the localized heading slug in that file
102
+ - preserve custom explicit anchors such as `<a id="...">` unless the file already uses localized explicit IDs
103
+ - verify that every intra-document anchor target resolves to an existing heading or explicit anchor
104
+
105
+ Prefer a small heading wording adjustment over a broken anchor. The section order should still match the source README.
106
+
107
+ ### 6. Write sibling files using the repo's naming pattern
108
+
109
+ Default to sibling filenames like:
110
+
111
+ - `README.zh.md`
112
+ - `README.es.md`
113
+ - `README.fr.md`
114
+
115
+ If the repo already uses a different multilingual naming pattern, keep using it consistently rather than forcing the default pattern.
116
+
117
+ ### 7. Insert or update the language selector
118
+
119
+ Open [`references/language-selector-reference.md`](./references/language-selector-reference.md) before editing selectors.
120
+
121
+ Placement:
122
+
123
+ - keep the selector near the top of the file
124
+ - if the README starts with a title, badges, hero image, or short intro block, place the selector immediately after that opening cluster
125
+
126
+ Behavior:
127
+
128
+ - update an existing selector block in place if one already exists
129
+ - if you add a new selector, use the canonical marker comments from the reference file so later runs can update it deterministically
130
+ - emphasize the current language and link the other variants
131
+ - keep selector order and labels consistent across every README variant
132
+
133
+ ### 8. Final verification
134
+
135
+ Before finishing, verify:
136
+
137
+ - localized filenames follow the chosen pattern
138
+ - every README variant contains exactly one selector block
139
+ - code fence counts are preserved
140
+ - badge/image URLs and relative file links still point to the original targets unless intentionally localized
141
+ - every `(#...)` link resolves inside its own file
142
+ - the localized README still feels structurally identical to the source
143
+
144
+ ## Output
145
+
146
+ Produce:
147
+
148
+ - one localized sibling README per target language
149
+ - an updated selector block in every README variant
150
+ - a brief note to the user covering created or updated files, any assumptions, and any terms intentionally left untranslated
151
+
152
+ ## Maintenance Note
153
+
154
+ Keep `README.md` as the canonical source unless the user says otherwise. When the source README changes later, update each localized sibling by diffing the changed prose, then re-check selectors, filenames, and anchor links instead of reformatting the whole file from scratch.
155
+
156
+ ## Example Prompts
157
+
158
+ **Example 1**
159
+
160
+ `Translate this README into Chinese and add a language switcher. Keep badge URLs, code fences, and all commands exactly as they are.`
161
+
162
+ **Example 2**
163
+
164
+ `Make the repo multilingual. Add Spanish and Chinese README variants, keep the internal anchor links working, and wire the selector into every file.`
165
+
166
+ **Example 3**
167
+
168
+ `We already have README.zh.md. Add README.es.md and update the existing selector in place instead of adding a second one.`
169
+
170
+ ## Common Mistakes
171
+
172
+ - Translating fenced code blocks or inline code instead of only the prose around them
173
+ - Duplicating the language selector instead of updating the existing block
174
+ - Translating a heading but forgetting to rewrite same-file `(#...)` links
175
+ - Changing badge URLs or image sources while trying to translate visible labels
176
+ - Reordering sections in the localized README even though the source README is the authority
@@ -0,0 +1,178 @@
1
+ ---
2
+ name: redesign-existing-projects
3
+ description: Upgrades existing websites and apps to premium quality. Audits current design, identifies generic AI patterns, and applies high-end design standards without breaking functionality. Works with any CSS framework or vanilla CSS.
4
+ ---
5
+
6
+ # Redesign Skill
7
+
8
+ ## How This Works
9
+
10
+ When applied to an existing project, follow this sequence:
11
+
12
+ 1. **Scan** — Read the codebase. Identify the framework, styling method (Tailwind, vanilla CSS, styled-components, etc.), and current design patterns.
13
+ 2. **Diagnose** — Run through the audit below. List every generic pattern, weak point, and missing state you find.
14
+ 3. **Fix** — Apply targeted upgrades working with the existing stack. Do not rewrite from scratch. Improve what's there.
15
+
16
+ ## Design Audit
17
+
18
+ ### Typography
19
+
20
+ Check for these problems and fix them:
21
+
22
+ - **Browser default fonts or Inter everywhere.** Replace with a font that has character. Good options: `Geist`, `Outfit`, `Cabinet Grotesk`, `Satoshi`. For editorial/creative projects, pair a serif header with a sans-serif body.
23
+ - **Headlines lack presence.** Increase size for display text, tighten letter-spacing, reduce line-height. Headlines should feel heavy and intentional.
24
+ - **Body text too wide.** Limit paragraph width to roughly 65 characters. Increase line-height for readability.
25
+ - **Only Regular (400) and Bold (700) weights used.** Introduce Medium (500) and SemiBold (600) for more subtle hierarchy.
26
+ - **Numbers in proportional font.** Use a monospace font or enable tabular figures (`font-variant-numeric: tabular-nums`) for data-heavy interfaces.
27
+ - **Missing letter-spacing adjustments.** Use negative tracking for large headers, positive tracking for small caps or labels.
28
+ - **All-caps subheaders everywhere.** Try lowercase italics, sentence case, or small-caps instead.
29
+ - **Orphaned words.** Single words sitting alone on the last line. Fix with `text-wrap: balance` or `text-wrap: pretty`.
30
+
31
+ ### Color and Surfaces
32
+
33
+ - **Pure `#000000` background.** Replace with off-black, dark charcoal, or tinted dark (`#0a0a0a`, `#121212`, or a dark navy).
34
+ - **Oversaturated accent colors.** Keep saturation below 80%. Desaturate accents so they blend with neutrals instead of screaming.
35
+ - **More than one accent color.** Pick one. Remove the rest. Consistency beats variety.
36
+ - **Mixing warm and cool grays.** Stick to one gray family. Tint all grays with a consistent hue (warm or cool, not both).
37
+ - **Purple/blue "AI gradient" aesthetic.** This is the most common AI design fingerprint. Replace with neutral bases and a single, considered accent.
38
+ - **Generic `box-shadow`.** Tint shadows to match the background hue. Use colored shadows (e.g., dark blue shadow on a blue background) instead of pure black at low opacity.
39
+ - **Flat design with zero texture.** Add subtle noise, grain, or micro-patterns to backgrounds. Pure flat vectors feel sterile.
40
+ - **Perfectly even gradients.** Break the uniformity with radial gradients, noise overlays, or mesh gradients instead of standard linear 45-degree fades.
41
+ - **Inconsistent lighting direction.** Audit all shadows to ensure they suggest a single, consistent light source.
42
+ - **Random dark sections in a light mode page (or vice versa).** A single dark-background section breaking an otherwise light page looks like a copy-paste accident. Either commit to a full dark mode or keep a consistent background tone throughout. If contrast is needed, use a slightly darker shade of the same palette — not a sudden jump to `#111` in the middle of a cream page.
43
+ - **Empty, flat sections with no visual depth.** Sections that are just text on a plain background feel unfinished. Add high-quality background imagery (blurred, overlaid, or masked), subtle patterns, or ambient gradients. Use reliable placeholder sources like `https://picsum.photos/seed/{name}/1920/1080` when real assets are not available. Experiment with background images behind hero sections, feature blocks, or CTAs — even a subtle full-width photo at low opacity adds presence.
44
+
45
+ ### Layout
46
+
47
+ - **Everything centered and symmetrical.** Break symmetry with offset margins, mixed aspect ratios, or left-aligned headers over centered content.
48
+ - **Three equal card columns as feature row.** This is the most generic AI layout. Replace with a 2-column zig-zag, asymmetric grid, horizontal scroll, or masonry layout.
49
+ - **Using `height: 100vh` for full-screen sections.** Replace with `min-height: 100dvh` to prevent layout jumping on mobile browsers (iOS Safari viewport bug).
50
+ - **Complex flexbox percentage math.** Replace with CSS Grid for reliable multi-column structures.
51
+ - **No max-width container.** Add a container constraint (around 1200-1440px) with auto margins so content doesn't stretch edge-to-edge on wide screens.
52
+ - **Cards of equal height forced by flexbox.** Allow variable heights or use masonry when content varies in length.
53
+ - **Uniform border-radius on everything.** Vary the radius: tighter on inner elements, softer on containers.
54
+ - **No overlap or depth.** Elements sit flat next to each other. Use negative margins to create layering and visual depth.
55
+ - **Symmetrical vertical padding.** Top and bottom padding are always identical. Adjust optically — bottom padding often needs to be slightly larger.
56
+ - **Dashboard always has a left sidebar.** Try top navigation, a floating command menu, or a collapsible panel instead.
57
+ - **Missing whitespace.** Double the spacing. Let the design breathe. Dense layouts work for data dashboards, not for marketing pages.
58
+ - **Buttons not bottom-aligned in card groups.** When cards have different content lengths, CTAs end up at random heights. Pin buttons to the bottom of each card so they form a clean horizontal line regardless of content above.
59
+ - **Feature lists starting at different vertical positions.** In pricing tables or comparison cards, the list of features should start at the same Y position across all columns. Use consistent spacing above the list or fixed-height title/price blocks.
60
+ - **Inconsistent vertical rhythm in side-by-side elements.** When placing cards, columns, or panels next to each other, align shared elements (titles, descriptions, prices, buttons) across all items. Misaligned baselines make the layout look broken.
61
+ - **Mathematical alignment that looks optically wrong.** Centering by the math doesn't always look centered to the eye. Icons next to text, play buttons in circles, or text in buttons often need 1-2px optical adjustments to feel right.
62
+
63
+ ### Interactivity and States
64
+
65
+ - **No hover states on buttons.** Add background shift, slight scale, or translate on hover.
66
+ - **No active/pressed feedback.** Add a subtle `scale(0.98)` or `translateY(1px)` on press to simulate a physical click.
67
+ - **Instant transitions with zero duration.** Add smooth transitions (200-300ms) to all interactive elements.
68
+ - **Missing focus ring.** Ensure visible focus indicators for keyboard navigation. This is an accessibility requirement, not optional.
69
+ - **No loading states.** Replace generic circular spinners with skeleton loaders that match the layout shape.
70
+ - **No empty states.** An empty dashboard showing nothing is a missed opportunity. Design a composed "getting started" view.
71
+ - **No error states.** Add clear, inline error messages for forms. Do not use `window.alert()`.
72
+ - **Dead links.** Buttons that link to `#`. Either link to real destinations or visually disable them.
73
+ - **No indication of current page in navigation.** Style the active nav link differently so users know where they are.
74
+ - **Scroll jumping.** Anchor clicks jump instantly. Add `scroll-behavior: smooth`.
75
+ - **Animations using `top`, `left`, `width`, `height`.** Switch to `transform` and `opacity` for GPU-accelerated, smooth animation.
76
+
77
+ ### Content
78
+
79
+ - **Generic names like "John Doe" or "Jane Smith".** Use diverse, realistic-sounding names.
80
+ - **Fake round numbers like `99.99%`, `50%`, `$100.00`.** Use organic, messy data: `47.2%`, `$99.00`, `+1 (312) 847-1928`.
81
+ - **Placeholder company names like "Acme Corp", "Nexus", "SmartFlow".** Invent contextual, believable brand names.
82
+ - **AI copywriting cliches.** Never use "Elevate", "Seamless", "Unleash", "Next-Gen", "Game-changer", "Delve", "Tapestry", or "In the world of...". Write plain, specific language.
83
+ - **Exclamation marks in success messages.** Remove them. Be confident, not loud.
84
+ - **"Oops!" error messages.** Be direct: "Connection failed. Please try again."
85
+ - **Passive voice.** Use active voice: "We couldn't save your changes" instead of "Mistakes were made."
86
+ - **All blog post dates identical.** Randomize dates to appear real.
87
+ - **Same avatar image for multiple users.** Use unique assets for every distinct person.
88
+ - **Lorem Ipsum.** Never use placeholder latin text. Write real draft copy.
89
+ - **Title Case On Every Header.** Use sentence case instead.
90
+
91
+ ### Component Patterns
92
+
93
+ - **Generic card look (border + shadow + white background).** Remove the border, or use only background color, or use only spacing. Cards should exist only when elevation communicates hierarchy.
94
+ - **Always one filled button + one ghost button.** Add text links or tertiary styles to reduce visual noise.
95
+ - **Pill-shaped "New" and "Beta" badges.** Try square badges, flags, or plain text labels.
96
+ - **Accordion FAQ sections.** Use a side-by-side list, searchable help, or inline progressive disclosure.
97
+ - **3-card carousel testimonials with dots.** Replace with a masonry wall, embedded social posts, or a single rotating quote.
98
+ - **Pricing table with 3 towers.** Highlight the recommended tier with color and emphasis, not just extra height.
99
+ - **Modals for everything.** Use inline editing, slide-over panels, or expandable sections instead of popups for simple actions.
100
+ - **Avatar circles exclusively.** Try squircles or rounded squares for a less generic look.
101
+ - **Light/dark toggle always a sun/moon switch.** Use a dropdown, system preference detection, or integrate it into settings.
102
+ - **Footer link farm with 4 columns.** Simplify. Focus on main navigational paths and legally required links.
103
+
104
+ ### Iconography
105
+
106
+ - **Lucide or Feather icons exclusively.** These are the "default" AI icon choice. Use Phosphor, Heroicons, or a custom set for differentiation.
107
+ - **Rocketship for "Launch", shield for "Security".** Replace cliche metaphors with less obvious icons (bolt, fingerprint, spark, vault).
108
+ - **Inconsistent stroke widths across icons.** Audit all icons and standardize to one stroke weight.
109
+ - **Missing favicon.** Always include a branded favicon.
110
+ - **Stock "diverse team" photos.** Use real team photos, candid shots, or a consistent illustration style instead of uncanny stock imagery.
111
+
112
+ ### Code Quality
113
+
114
+ - **Div soup.** Use semantic HTML: `<nav>`, `<main>`, `<article>`, `<aside>`, `<section>`.
115
+ - **Inline styles mixed with CSS classes.** Move all styling to the project's styling system.
116
+ - **Hardcoded pixel widths.** Use relative units (`%`, `rem`, `em`, `max-width`) for flexible layouts.
117
+ - **Missing alt text on images.** Describe image content for screen readers. Never leave `alt=""` or `alt="image"` on meaningful images.
118
+ - **Arbitrary z-index values like `9999`.** Establish a clean z-index scale in the theme/variables.
119
+ - **Commented-out dead code.** Remove all debug artifacts before shipping.
120
+ - **Import hallucinations.** Check that every import actually exists in `package.json` or the project dependencies.
121
+ - **Missing meta tags.** Add proper `<title>`, `description`, `og:image`, and social sharing meta tags.
122
+
123
+ ### Strategic Omissions (What AI Typically Forgets)
124
+
125
+ - **No legal links.** Add privacy policy and terms of service links in the footer.
126
+ - **No "back" navigation.** Dead ends in user flows. Every page needs a way back.
127
+ - **No custom 404 page.** Design a helpful, branded "page not found" experience.
128
+ - **No form validation.** Add client-side validation for emails, required fields, and format checks.
129
+ - **No "skip to content" link.** Essential for keyboard users. Add a hidden skip-link.
130
+ - **No cookie consent.** If required by jurisdiction, add a compliant consent banner.
131
+
132
+ ## Upgrade Techniques
133
+
134
+ When upgrading a project, pull from these high-impact techniques to replace generic patterns:
135
+
136
+ ### Typography Upgrades
137
+ - **Variable font animation.** Interpolate weight or width on scroll or hover for text that feels alive.
138
+ - **Outlined-to-fill transitions.** Text starts as a stroke outline and fills with color on scroll entry or interaction.
139
+ - **Text mask reveals.** Large typography acting as a window to video or animated imagery behind it.
140
+
141
+ ### Layout Upgrades
142
+ - **Broken grid / asymmetry.** Elements that deliberately ignore column structure — overlapping, bleeding off-screen, or offset with calculated randomness.
143
+ - **Whitespace maximization.** Aggressive use of negative space to force focus on a single element.
144
+ - **Parallax card stacks.** Sections that stick and physically stack over each other during scroll.
145
+ - **Split-screen scroll.** Two halves of the screen sliding in opposite directions.
146
+
147
+ ### Motion Upgrades
148
+ - **Smooth scroll with inertia.** Decouple scrolling from browser defaults for a heavier, cinematic feel.
149
+ - **Staggered entry.** Elements cascade in with slight delays, combining Y-axis translation with opacity fade. Never mount everything at once.
150
+ - **Spring physics.** Replace linear easing with spring-based motion for a natural, weighty feel on all interactive elements.
151
+ - **Scroll-driven reveals.** Content entering through expanding masks, wipes, or draw-on SVG paths tied to scroll progress.
152
+
153
+ ### Surface Upgrades
154
+ - **True glassmorphism.** Go beyond `backdrop-filter: blur`. Add a 1px inner border and a subtle inner shadow to simulate edge refraction.
155
+ - **Spotlight borders.** Card borders that illuminate dynamically under the cursor.
156
+ - **Grain and noise overlays.** A fixed, pointer-events-none overlay with subtle noise to break digital flatness.
157
+ - **Colored, tinted shadows.** Shadows that carry the hue of the background rather than using generic black.
158
+
159
+ ## Fix Priority
160
+
161
+ Apply changes in this order for maximum visual impact with minimum risk:
162
+
163
+ 1. **Font swap** — biggest instant improvement, lowest risk
164
+ 2. **Color palette cleanup** — remove clashing or oversaturated colors
165
+ 3. **Hover and active states** — makes the interface feel alive
166
+ 4. **Layout and spacing** — proper grid, max-width, consistent padding
167
+ 5. **Replace generic components** — swap cliche patterns for modern alternatives
168
+ 6. **Add loading, empty, and error states** — makes it feel finished
169
+ 7. **Polish typography scale and spacing** — the premium final touch
170
+
171
+ ## Rules
172
+
173
+ - Work with the existing tech stack. Do not migrate frameworks or styling libraries.
174
+ - Do not break existing functionality. Test after every change.
175
+ - Before importing any new library, check the project's dependency file first.
176
+ - If the project uses Tailwind, check the version (v3 vs v4) before modifying config.
177
+ - If the project has no framework, use vanilla CSS.
178
+ - Keep changes reviewable and focused. Small, targeted improvements over big rewrites.