@luci-dev/skills 0.0.0-stage → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/benchmark.d.ts +48 -0
- package/dist/benchmark.d.ts.map +1 -0
- package/dist/benchmark.js +84 -0
- package/dist/benchmark.js.map +1 -0
- package/dist/discovery.d.ts +105 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +271 -0
- package/dist/discovery.js.map +1 -0
- package/dist/drafts.d.ts +20 -0
- package/dist/drafts.d.ts.map +1 -0
- package/dist/drafts.js +57 -0
- package/dist/drafts.js.map +1 -0
- package/dist/github.d.ts +49 -0
- package/dist/github.d.ts.map +1 -0
- package/dist/github.js +93 -0
- package/dist/github.js.map +1 -0
- package/dist/import.d.ts +80 -0
- package/dist/import.d.ts.map +1 -0
- package/dist/import.js +286 -0
- package/dist/import.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/licenses.d.ts +30 -0
- package/dist/licenses.d.ts.map +1 -0
- package/dist/licenses.js +116 -0
- package/dist/licenses.js.map +1 -0
- package/dist/linter.d.ts +35 -0
- package/dist/linter.d.ts.map +1 -0
- package/dist/linter.js +262 -0
- package/dist/linter.js.map +1 -0
- package/dist/lss.d.ts +74 -0
- package/dist/lss.d.ts.map +1 -0
- package/dist/lss.js +273 -0
- package/dist/lss.js.map +1 -0
- package/dist/orchestrator.d.ts +164 -0
- package/dist/orchestrator.d.ts.map +1 -0
- package/dist/orchestrator.js +370 -0
- package/dist/orchestrator.js.map +1 -0
- package/dist/packs.d.ts +50 -0
- package/dist/packs.d.ts.map +1 -0
- package/dist/packs.js +166 -0
- package/dist/packs.js.map +1 -0
- package/dist/preferences.d.ts +18 -0
- package/dist/preferences.d.ts.map +1 -0
- package/dist/preferences.js +57 -0
- package/dist/preferences.js.map +1 -0
- package/dist/project.d.ts +45 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +183 -0
- package/dist/project.js.map +1 -0
- package/dist/rankability.d.ts +51 -0
- package/dist/rankability.d.ts.map +1 -0
- package/dist/rankability.js +217 -0
- package/dist/rankability.js.map +1 -0
- package/dist/registry.d.ts +82 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +300 -0
- package/dist/registry.js.map +1 -0
- package/dist/trust.d.ts +13 -0
- package/dist/trust.d.ts.map +1 -0
- package/dist/trust.js +41 -0
- package/dist/trust.js.map +1 -0
- package/dist/types.d.ts +44 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/library/3d/threejs/LICENSE.txt +21 -0
- package/library/3d/threejs/NOTICE.md +7 -0
- package/library/3d/threejs/SKILL.md +102 -0
- package/library/3d/threejs/luci.json +39 -0
- package/library/accessibility/accessibility-baseline/SKILL.md +51 -0
- package/library/accessibility/accessibility-baseline/luci.json +33 -0
- package/library/accessibility/fixing-accessibility/NOTICE.md +6 -0
- package/library/accessibility/fixing-accessibility/SKILL.md +141 -0
- package/library/accessibility/fixing-accessibility/luci.json +36 -0
- package/library/animation-motion/animation-systems/LICENSE.txt +21 -0
- package/library/animation-motion/animation-systems/NOTICE.md +7 -0
- package/library/animation-motion/animation-systems/SKILL.md +192 -0
- package/library/animation-motion/animation-systems/luci.json +32 -0
- package/library/animation-motion/animejs/SKILL.md +64 -0
- package/library/animation-motion/animejs/luci.json +12 -0
- package/library/animation-motion/motion-dev/SKILL.md +69 -0
- package/library/animation-motion/motion-dev/luci.json +13 -0
- package/library/animation-motion/react-view-transitions/AGENTS.md +1380 -0
- package/library/animation-motion/react-view-transitions/NOTICE.md +6 -0
- package/library/animation-motion/react-view-transitions/README.md +44 -0
- package/library/animation-motion/react-view-transitions/SKILL.md +334 -0
- package/library/animation-motion/react-view-transitions/luci.json +40 -0
- package/library/animation-motion/react-view-transitions/metadata.json +12 -0
- package/library/animation-motion/react-view-transitions/references/css-recipes.md +312 -0
- package/library/animation-motion/react-view-transitions/references/implementation.md +170 -0
- package/library/animation-motion/react-view-transitions/references/nextjs.md +233 -0
- package/library/animation-motion/react-view-transitions/references/patterns.md +274 -0
- package/library/animation-motion/react-view-transitions/references/troubleshooting.md +47 -0
- package/library/code-quality/code-review/NOTICE.md +6 -0
- package/library/code-quality/code-review/SKILL.md +94 -0
- package/library/code-quality/code-review/agents/openai.yaml +3 -0
- package/library/code-quality/code-review/luci.json +33 -0
- package/library/components/company-logos/LICENSE.txt +21 -0
- package/library/components/company-logos/NOTICE.md +7 -0
- package/library/components/company-logos/SKILL.md +27 -0
- package/library/components/company-logos/luci.json +38 -0
- package/library/components/container-lines/LICENSE.txt +21 -0
- package/library/components/container-lines/NOTICE.md +7 -0
- package/library/components/container-lines/SKILL.md +124 -0
- package/library/components/container-lines/luci.json +48 -0
- package/library/design-systems/build-design-system/NOTICE.md +6 -0
- package/library/design-systems/build-design-system/SKILL.md +78 -0
- package/library/design-systems/build-design-system/luci.json +29 -0
- package/library/design-systems/build-design-system/references/components.md +46 -0
- package/library/design-systems/build-design-system/references/glossary.md +77 -0
- package/library/design-systems/build-design-system/references/taste.md +37 -0
- package/library/design-systems/build-design-system/references/tokens.md +59 -0
- package/library/design-systems/build-design-system/references/traps.md +128 -0
- package/library/design-systems/build-design-system/scripts/capture-guard.mjs +470 -0
- package/library/design-systems/build-design-system/scripts/capture.mjs +355 -0
- package/library/design-systems/build-design-system/scripts/check-system.mjs +1883 -0
- package/library/design-systems/build-design-system/scripts/find-chromium.mjs +137 -0
- package/library/design-systems/build-design-system/scripts/oklch.mjs +221 -0
- package/library/design-systems/build-design-system/scripts/pixdiff.mjs +186 -0
- package/library/design-systems/component-docs/NOTICE.md +6 -0
- package/library/design-systems/component-docs/SKILL.md +50 -0
- package/library/design-systems/component-docs/luci.json +30 -0
- package/library/design-systems/component-docs/references/doc-format.md +85 -0
- package/library/design-systems/create-design-md/NOTICE.md +6 -0
- package/library/design-systems/create-design-md/SKILL.md +259 -0
- package/library/design-systems/create-design-md/luci.json +38 -0
- package/library/design-systems/design-system-boss/NOTICE.md +6 -0
- package/library/design-systems/design-system-boss/SKILL.md +58 -0
- package/library/design-systems/design-system-boss/luci.json +29 -0
- package/library/design-systems/design-system-boss/playbooks/build.md +10 -0
- package/library/design-systems/design-system-boss/playbooks/component.md +9 -0
- package/library/design-systems/design-system-boss/playbooks/migrate.md +11 -0
- package/library/design-systems/design-system-boss/playbooks/review.md +9 -0
- package/library/design-systems/migrate-design-system/NOTICE.md +6 -0
- package/library/design-systems/migrate-design-system/SKILL.md +62 -0
- package/library/design-systems/migrate-design-system/luci.json +33 -0
- package/library/design-systems/migrate-design-system/references/correct.md +37 -0
- package/library/design-systems/migrate-design-system/references/lessons.md +69 -0
- package/library/design-systems/migrate-design-system/references/parity.md +44 -0
- package/library/design-systems/migrate-design-system/references/running-many-agents.md +52 -0
- package/library/design-systems/migrate-design-system/scripts/bodies-check.mjs +215 -0
- package/library/design-systems/migrate-design-system/scripts/land.mjs +433 -0
- package/library/design-systems/migrate-design-system/scripts/legacy.mjs +283 -0
- package/library/design-systems/migrate-design-system/scripts/parity.mjs +173 -0
- package/library/design-systems/token-mapping/NOTICE.md +6 -0
- package/library/design-systems/token-mapping/SKILL.md +46 -0
- package/library/design-systems/token-mapping/luci.json +25 -0
- package/library/design-systems/token-mapping/references/mapping-rules.md +54 -0
- package/library/design-systems/ui-review/NOTICE.md +6 -0
- package/library/design-systems/ui-review/SKILL.md +53 -0
- package/library/design-systems/ui-review/luci.json +29 -0
- package/library/design-systems/ui-review/references/criteria.md +49 -0
- package/library/frontend/composition-patterns/AGENTS.md +946 -0
- package/library/frontend/composition-patterns/NOTICE.md +6 -0
- package/library/frontend/composition-patterns/README.md +60 -0
- package/library/frontend/composition-patterns/SKILL.md +86 -0
- package/library/frontend/composition-patterns/luci.json +33 -0
- package/library/frontend/composition-patterns/metadata.json +11 -0
- package/library/frontend/composition-patterns/rules/_sections.md +29 -0
- package/library/frontend/composition-patterns/rules/_template.md +24 -0
- package/library/frontend/composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
- package/library/frontend/composition-patterns/rules/architecture-compound-components.md +112 -0
- package/library/frontend/composition-patterns/rules/patterns-children-over-render-props.md +87 -0
- package/library/frontend/composition-patterns/rules/patterns-explicit-variants.md +100 -0
- package/library/frontend/composition-patterns/rules/react19-no-forwardref.md +42 -0
- package/library/frontend/composition-patterns/rules/state-context-interface.md +191 -0
- package/library/frontend/composition-patterns/rules/state-decouple-implementation.md +113 -0
- package/library/frontend/composition-patterns/rules/state-lift-state.md +125 -0
- package/library/frontend/design-mobile-apps/NOTICE.md +6 -0
- package/library/frontend/design-mobile-apps/SKILL.md +121 -0
- package/library/frontend/design-mobile-apps/designing.md +56 -0
- package/library/frontend/design-mobile-apps/endpoints.md +362 -0
- package/library/frontend/design-mobile-apps/implementing.md +213 -0
- package/library/frontend/design-mobile-apps/luci.json +31 -0
- package/library/frontend/design-mobile-apps/styling/nativewind.md +57 -0
- package/library/frontend/design-mobile-apps/styling/stylesheet.md +28 -0
- package/library/frontend/design-mobile-apps/styling/uniwind.md +38 -0
- package/library/frontend/frontend-design/LICENSE.txt +202 -0
- package/library/frontend/frontend-design/NOTICE.md +6 -0
- package/library/frontend/frontend-design/SKILL.md +81 -0
- package/library/frontend/frontend-design/luci.json +43 -0
- package/library/frontend/react-native-skills/AGENTS.md +2897 -0
- package/library/frontend/react-native-skills/NOTICE.md +6 -0
- package/library/frontend/react-native-skills/README.md +165 -0
- package/library/frontend/react-native-skills/SKILL.md +119 -0
- package/library/frontend/react-native-skills/luci.json +33 -0
- package/library/frontend/react-native-skills/metadata.json +16 -0
- package/library/frontend/react-native-skills/rules/_sections.md +86 -0
- package/library/frontend/react-native-skills/rules/_template.md +28 -0
- package/library/frontend/react-native-skills/rules/animation-derived-value.md +53 -0
- package/library/frontend/react-native-skills/rules/animation-gesture-detector-press.md +95 -0
- package/library/frontend/react-native-skills/rules/animation-gpu-properties.md +65 -0
- package/library/frontend/react-native-skills/rules/design-system-compound-components.md +66 -0
- package/library/frontend/react-native-skills/rules/fonts-config-plugin.md +71 -0
- package/library/frontend/react-native-skills/rules/imports-design-system-folder.md +68 -0
- package/library/frontend/react-native-skills/rules/js-hoist-intl.md +61 -0
- package/library/frontend/react-native-skills/rules/list-performance-callbacks.md +44 -0
- package/library/frontend/react-native-skills/rules/list-performance-function-references.md +132 -0
- package/library/frontend/react-native-skills/rules/list-performance-images.md +53 -0
- package/library/frontend/react-native-skills/rules/list-performance-inline-objects.md +97 -0
- package/library/frontend/react-native-skills/rules/list-performance-item-expensive.md +94 -0
- package/library/frontend/react-native-skills/rules/list-performance-item-memo.md +82 -0
- package/library/frontend/react-native-skills/rules/list-performance-item-types.md +104 -0
- package/library/frontend/react-native-skills/rules/list-performance-virtualize.md +67 -0
- package/library/frontend/react-native-skills/rules/monorepo-native-deps-in-app.md +46 -0
- package/library/frontend/react-native-skills/rules/monorepo-single-dependency-versions.md +63 -0
- package/library/frontend/react-native-skills/rules/navigation-native-navigators.md +188 -0
- package/library/frontend/react-native-skills/rules/react-compiler-destructure-functions.md +50 -0
- package/library/frontend/react-native-skills/rules/react-compiler-reanimated-shared-values.md +48 -0
- package/library/frontend/react-native-skills/rules/react-state-dispatcher.md +91 -0
- package/library/frontend/react-native-skills/rules/react-state-fallback.md +56 -0
- package/library/frontend/react-native-skills/rules/react-state-minimize.md +65 -0
- package/library/frontend/react-native-skills/rules/rendering-no-falsy-and.md +74 -0
- package/library/frontend/react-native-skills/rules/rendering-text-in-text-component.md +36 -0
- package/library/frontend/react-native-skills/rules/scroll-position-no-state.md +82 -0
- package/library/frontend/react-native-skills/rules/state-ground-truth.md +80 -0
- package/library/frontend/react-native-skills/rules/ui-expo-image.md +66 -0
- package/library/frontend/react-native-skills/rules/ui-image-gallery.md +104 -0
- package/library/frontend/react-native-skills/rules/ui-measure-views.md +78 -0
- package/library/frontend/react-native-skills/rules/ui-menus.md +174 -0
- package/library/frontend/react-native-skills/rules/ui-native-modals.md +77 -0
- package/library/frontend/react-native-skills/rules/ui-pressable.md +61 -0
- package/library/frontend/react-native-skills/rules/ui-safe-area-scroll.md +65 -0
- package/library/frontend/react-native-skills/rules/ui-scrollview-content-inset.md +45 -0
- package/library/frontend/react-native-skills/rules/ui-styling.md +87 -0
- package/library/frontend/tailwindcss/LICENSE.txt +21 -0
- package/library/frontend/tailwindcss/NOTICE.md +7 -0
- package/library/frontend/tailwindcss/SKILL.md +83 -0
- package/library/frontend/tailwindcss/luci.json +39 -0
- package/library/frontend-frameworks/react-best-practices/NOTICE.md +6 -0
- package/library/frontend-frameworks/react-best-practices/SKILL.md +151 -0
- package/library/frontend-frameworks/react-best-practices/luci.json +39 -0
- package/library/general/algorithmic-art/LICENSE.txt +202 -0
- package/library/general/algorithmic-art/NOTICE.md +6 -0
- package/library/general/algorithmic-art/SKILL.md +409 -0
- package/library/general/algorithmic-art/luci.json +27 -0
- package/library/general/algorithmic-art/templates/generator_template.js +223 -0
- package/library/general/algorithmic-art/templates/viewer.html +599 -0
- package/library/general/canvas-design/LICENSE.txt +202 -0
- package/library/general/canvas-design/NOTICE.md +6 -0
- package/library/general/canvas-design/SKILL.md +134 -0
- package/library/general/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/library/general/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/library/general/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/library/general/canvas-design/luci.json +29 -0
- package/library/index.json +2507 -0
- package/library/interaction/animation-on-scroll/LICENSE.txt +21 -0
- package/library/interaction/animation-on-scroll/NOTICE.md +7 -0
- package/library/interaction/animation-on-scroll/SKILL.md +115 -0
- package/library/interaction/animation-on-scroll/luci.json +38 -0
- package/library/micro-interactions/masked-reveal/LICENSE.txt +21 -0
- package/library/micro-interactions/masked-reveal/NOTICE.md +7 -0
- package/library/micro-interactions/masked-reveal/SKILL.md +187 -0
- package/library/micro-interactions/masked-reveal/luci.json +63 -0
- package/library/micro-interactions/micro-interaction/NOTICE.md +6 -0
- package/library/micro-interactions/micro-interaction/SKILL.md +177 -0
- package/library/micro-interactions/micro-interaction/luci.json +52 -0
- package/library/micro-interactions/micro-interaction/references/css-recipes.md +142 -0
- package/library/micro-interactions/micro-interaction/references/framer-motion-recipes.md +187 -0
- package/library/micro-interactions/micro-interaction/scripts/README.md +42 -0
- package/library/micro-interactions/micro-interaction/scripts/contact-sheet.sh +17 -0
- package/library/micro-interactions/micro-interaction/scripts/seek-shot.sh +21 -0
- package/library/performance/fixing-motion-performance/NOTICE.md +6 -0
- package/library/performance/fixing-motion-performance/SKILL.md +156 -0
- package/library/performance/fixing-motion-performance/luci.json +30 -0
- package/library/seo/fixing-metadata/NOTICE.md +6 -0
- package/library/seo/fixing-metadata/SKILL.md +111 -0
- package/library/seo/fixing-metadata/luci.json +36 -0
- package/library/shadcn-ui/migrate-radix-to-base/NOTICE.md +6 -0
- package/library/shadcn-ui/migrate-radix-to-base/SKILL.md +178 -0
- package/library/shadcn-ui/migrate-radix-to-base/class-mapping.md +62 -0
- package/library/shadcn-ui/migrate-radix-to-base/consumer-props.md +58 -0
- package/library/shadcn-ui/migrate-radix-to-base/disclosure.md +353 -0
- package/library/shadcn-ui/migrate-radix-to-base/display-misc.md +410 -0
- package/library/shadcn-ui/migrate-radix-to-base/form-controls.md +390 -0
- package/library/shadcn-ui/migrate-radix-to-base/luci.json +33 -0
- package/library/shadcn-ui/migrate-radix-to-base/menus.md +409 -0
- package/library/shadcn-ui/migrate-radix-to-base/overlays.md +459 -0
- package/library/shadcn-ui/migrate-radix-to-base/universal-patterns.md +286 -0
- package/library/shadcn-ui/migrate-radix-to-base/wrapper-shapes.md +110 -0
- package/library/shadcn-ui/shadcn/NOTICE.md +6 -0
- package/library/shadcn-ui/shadcn/SKILL.md +187 -0
- package/library/shadcn-ui/shadcn/agents/openai.yml +5 -0
- package/library/shadcn-ui/shadcn/assets/shadcn-small.png +0 -0
- package/library/shadcn-ui/shadcn/assets/shadcn.png +0 -0
- package/library/shadcn-ui/shadcn/assets/showcase/color-pair.tsx +126 -0
- package/library/shadcn-ui/shadcn/assets/showcase/preview-states.css +14 -0
- package/library/shadcn-ui/shadcn/assets/showcase/state-matrix.tsx +72 -0
- package/library/shadcn-ui/shadcn/cli.md +290 -0
- package/library/shadcn-ui/shadcn/customization.md +211 -0
- package/library/shadcn-ui/shadcn/design-system-page.md +268 -0
- package/library/shadcn-ui/shadcn/design-system.md +386 -0
- package/library/shadcn-ui/shadcn/evals/evals.json +126 -0
- package/library/shadcn-ui/shadcn/luci.json +34 -0
- package/library/shadcn-ui/shadcn/mcp.md +105 -0
- package/library/shadcn-ui/shadcn/references/updating-components.md +91 -0
- package/library/shadcn-ui/shadcn/references/workflow.md +31 -0
- package/library/shadcn-ui/shadcn/registry.md +277 -0
- package/library/shadcn-ui/shadcn/rules/base-vs-radix.md +306 -0
- package/library/shadcn-ui/shadcn/rules/chat.md +507 -0
- package/library/shadcn-ui/shadcn/rules/composition.md +213 -0
- package/library/shadcn-ui/shadcn/rules/forms.md +192 -0
- package/library/shadcn-ui/shadcn/rules/icons.md +101 -0
- package/library/shadcn-ui/shadcn/rules/styling.md +185 -0
- package/library/shadcn-ui/shadcn/scripts/showcase-coverage.mjs +53 -0
- package/library/systems/baseline-ui/NOTICE.md +6 -0
- package/library/systems/baseline-ui/SKILL.md +90 -0
- package/library/systems/baseline-ui/luci.json +35 -0
- package/library/testing/tdd/NOTICE.md +6 -0
- package/library/testing/tdd/SKILL.md +43 -0
- package/library/testing/tdd/agents/openai.yaml +3 -0
- package/library/testing/tdd/luci.json +29 -0
- package/library/testing/tdd/mocking.md +59 -0
- package/library/testing/tdd/tests.md +77 -0
- package/library/testing/webapp-testing/LICENSE.txt +202 -0
- package/library/testing/webapp-testing/NOTICE.md +6 -0
- package/library/testing/webapp-testing/SKILL.md +100 -0
- package/library/testing/webapp-testing/examples/console_logging.py +35 -0
- package/library/testing/webapp-testing/examples/element_discovery.py +40 -0
- package/library/testing/webapp-testing/examples/static_html_automation.py +33 -0
- package/library/testing/webapp-testing/luci.json +33 -0
- package/library/testing/webapp-testing/scripts/with_server.py +106 -0
- package/library/ui-ux/improve-ui/NOTICE.md +6 -0
- package/library/ui-ux/improve-ui/SKILL.md +127 -0
- package/library/ui-ux/improve-ui/agents/openai.yaml +13 -0
- package/library/ui-ux/improve-ui/luci.json +47 -0
- package/library/ui-ux/improve-ui/references/plan-template.md +55 -0
- package/library/ui-ux/landing-page/LICENSE.txt +21 -0
- package/library/ui-ux/landing-page/NOTICE.md +7 -0
- package/library/ui-ux/landing-page/SKILL.md +213 -0
- package/library/ui-ux/landing-page/luci.json +47 -0
- package/library/ui-ux/pricing-page/LICENSE.txt +21 -0
- package/library/ui-ux/pricing-page/NOTICE.md +7 -0
- package/library/ui-ux/pricing-page/SKILL.md +217 -0
- package/library/ui-ux/pricing-page/luci.json +47 -0
- package/library/ui-ux/prototype/LOGIC.md +67 -0
- package/library/ui-ux/prototype/NOTICE.md +6 -0
- package/library/ui-ux/prototype/SKILL.md +31 -0
- package/library/ui-ux/prototype/UI.md +112 -0
- package/library/ui-ux/prototype/agents/openai.yaml +3 -0
- package/library/ui-ux/prototype/luci.json +33 -0
- package/library/ui-ux/theme-factory/LICENSE.txt +202 -0
- package/library/ui-ux/theme-factory/NOTICE.md +6 -0
- package/library/ui-ux/theme-factory/SKILL.md +62 -0
- package/library/ui-ux/theme-factory/luci.json +35 -0
- package/library/ui-ux/theme-factory/themes/arctic-frost.md +19 -0
- package/library/ui-ux/theme-factory/themes/botanical-garden.md +19 -0
- package/library/ui-ux/theme-factory/themes/desert-rose.md +19 -0
- package/library/ui-ux/theme-factory/themes/forest-canopy.md +19 -0
- package/library/ui-ux/theme-factory/themes/golden-hour.md +19 -0
- package/library/ui-ux/theme-factory/themes/midnight-galaxy.md +19 -0
- package/library/ui-ux/theme-factory/themes/modern-minimalist.md +19 -0
- package/library/ui-ux/theme-factory/themes/ocean-depths.md +19 -0
- package/library/ui-ux/theme-factory/themes/sunset-boulevard.md +19 -0
- package/library/ui-ux/theme-factory/themes/tech-innovation.md +19 -0
- package/package.json +21 -3
- package/packs/design-system-build.json +10 -0
- package/packs/design-system.json +16 -0
- package/packs/marketing.json +11 -0
- package/packs/motion.json +12 -0
- package/packs/ui.json +13 -0
- package/README.md +0 -3
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Notice
|
|
2
|
+
|
|
3
|
+
This skill comes from https://github.com/vercel-labs/agent-skills (`skills/react-view-transitions/SKILL.md`).
|
|
4
|
+
Licence: MIT (evidence: declared in original SKILL.md, https://github.com/vercel-labs/agent-skills/blob/main/skills/react-view-transitions/SKILL.md, checked 2026-11-08).
|
|
5
|
+
|
|
6
|
+
Luci converted it to the Luci Skill Standard: SKILL.md metadata keys and luci.json. The instructions are unchanged.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# React View Transitions Skill
|
|
2
|
+
|
|
3
|
+
An agent skill for implementing smooth, native-feeling animations using React's View Transition API.
|
|
4
|
+
|
|
5
|
+
## What This Skill Covers
|
|
6
|
+
|
|
7
|
+
- **`<ViewTransition>` component** — animation triggers (enter, exit, update, share), placement rules, View Transition Classes
|
|
8
|
+
- **`addTransitionType`** — tagging transitions for directional or context-specific animations
|
|
9
|
+
- **Shared element transitions** — morphing elements across different views
|
|
10
|
+
- **View Transition Events** — imperative JavaScript animations via the Web Animations API
|
|
11
|
+
- **CSS pseudo-elements** — `::view-transition-old`, `::view-transition-new`, `::view-transition-group`
|
|
12
|
+
- **Next.js integration** — `transitionTypes` on `next/link` and `useRouter`, App Router patterns
|
|
13
|
+
- **Accessibility** — `prefers-reduced-motion` handling
|
|
14
|
+
- **Ready-to-use CSS recipes** — fade, slide, scale, directional navigation
|
|
15
|
+
|
|
16
|
+
## Skill Structure
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
react-view-transitions/
|
|
20
|
+
├── SKILL.md # Core skill (always loaded)
|
|
21
|
+
├── AGENTS.md # Full compiled document (all references expanded)
|
|
22
|
+
└── references/
|
|
23
|
+
├── implementation.md # Step-by-step implementation workflow
|
|
24
|
+
├── patterns.md # Real-world patterns and events API
|
|
25
|
+
├── troubleshooting.md # Symptom-driven debugging
|
|
26
|
+
├── nextjs.md # Next.js-specific patterns
|
|
27
|
+
└── css-recipes.md # Copy-paste CSS animations
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
Install via [skills.sh](https://skills.sh):
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-view-transitions
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Resources
|
|
39
|
+
|
|
40
|
+
- [React `<ViewTransition>` docs](https://react.dev/reference/react/ViewTransition)
|
|
41
|
+
- [React `addTransitionType` docs](https://react.dev/reference/react/addTransitionType)
|
|
42
|
+
- [Next.js View Transitions guide](https://nextjs.org/docs/app/guides/view-transitions)
|
|
43
|
+
- [Next.js `<Link>` `transitionTypes`](https://nextjs.org/docs/app/api-reference/components/link#transitiontypes)
|
|
44
|
+
- [Next.js App Router Playground (view transitions)](https://github.com/vercel/next-app-router-playground/tree/main/app/view-transitions) — Vercel's reference implementation
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "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
|
+
luci-title: "vercel-react-view-transitions"
|
|
7
|
+
luci-category: "animation-motion"
|
|
8
|
+
luci-author: "vercel"
|
|
9
|
+
luci-version: "1.0.0"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# React View Transitions
|
|
13
|
+
|
|
14
|
+
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.
|
|
15
|
+
|
|
16
|
+
## When to Animate
|
|
17
|
+
|
|
18
|
+
Every `<ViewTransition>` should communicate a spatial relationship or continuity. If you can't articulate what it communicates, don't add it.
|
|
19
|
+
|
|
20
|
+
Implement **all** applicable patterns from this list, in this order:
|
|
21
|
+
|
|
22
|
+
| Priority | Pattern | What it communicates |
|
|
23
|
+
|----------|---------|---------------------|
|
|
24
|
+
| 1 | **Shared element** (`name`) | "Same thing — going deeper" |
|
|
25
|
+
| 2 | **Suspense reveal** | "Data loaded" |
|
|
26
|
+
| 3 | **List identity** (per-item `key`) | "Same items, new arrangement" |
|
|
27
|
+
| 4 | **State change** (`enter`/`exit`) | "Something appeared/disappeared" |
|
|
28
|
+
| 5 | **Route change** (page-level) | "Going to a new place" |
|
|
29
|
+
|
|
30
|
+
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.
|
|
31
|
+
|
|
32
|
+
### Choosing Animation Style
|
|
33
|
+
|
|
34
|
+
| Context | Animation | Why |
|
|
35
|
+
|---------|-----------|-----|
|
|
36
|
+
| Hierarchical navigation (list → detail) | Type-keyed `nav-forward` / `nav-back` | Communicates spatial depth |
|
|
37
|
+
| Lateral navigation (tab-to-tab) | Bare `<ViewTransition>` (fade) or `default="none"` | No depth to communicate |
|
|
38
|
+
| Suspense reveal | `enter`/`exit` string props | Content arriving |
|
|
39
|
+
| Revalidation / background refresh | `default="none"` | Silent — no animation needed |
|
|
40
|
+
|
|
41
|
+
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.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Availability
|
|
46
|
+
|
|
47
|
+
- **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.
|
|
48
|
+
- **Without Next.js:** Use stable `react` and `react-dom` 19.3 or newer (`ViewTransition` and `addTransitionType` became stable in React 19.3). Earlier stable React versions do not include these APIs.
|
|
49
|
+
- Browser support: Chromium 125+ (React needs the v2 object form of `startViewTransition`), Firefox 144+, Safari 18.2+. Graceful degradation on unsupported browsers.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Implementation Workflow
|
|
54
|
+
|
|
55
|
+
When adding view transitions to an existing app, **follow [references/implementation.md](references/implementation.md) step by step.** Start with the audit — do not skip it. Use [references/css-recipes.md](references/css-recipes.md) for the applicable CSS and adapt it to the app.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Core Concepts
|
|
60
|
+
|
|
61
|
+
### The `<ViewTransition>` Component
|
|
62
|
+
|
|
63
|
+
```jsx
|
|
64
|
+
import { ViewTransition } from 'react';
|
|
65
|
+
|
|
66
|
+
<ViewTransition>
|
|
67
|
+
<Component />
|
|
68
|
+
</ViewTransition>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
React auto-assigns a unique `view-transition-name` and calls `document.startViewTransition` behind the scenes. Never call `startViewTransition` yourself.
|
|
72
|
+
|
|
73
|
+
### Animation Triggers
|
|
74
|
+
|
|
75
|
+
| Trigger | When it fires |
|
|
76
|
+
|---------|--------------|
|
|
77
|
+
| **enter** | `<ViewTransition>` first inserted during a Transition |
|
|
78
|
+
| **exit** | `<ViewTransition>` first removed during a Transition |
|
|
79
|
+
| **update** | DOM mutations inside a `<ViewTransition>`, or the boundary itself changing size/position due to an immediate sibling. With nested VTs, mutation applies to the innermost one |
|
|
80
|
+
| **share** | Named VT unmounts and another with same `name` mounts in the same Transition |
|
|
81
|
+
|
|
82
|
+
Only `startTransition`, `useDeferredValue`, or `Suspense` activate VTs. Regular `setState` does not animate.
|
|
83
|
+
|
|
84
|
+
### Critical Placement Rule
|
|
85
|
+
|
|
86
|
+
`<ViewTransition>` only activates enter/exit if it appears **before any DOM nodes**:
|
|
87
|
+
|
|
88
|
+
```jsx
|
|
89
|
+
// Works
|
|
90
|
+
<ViewTransition enter="auto" exit="auto">
|
|
91
|
+
<div>Content</div>
|
|
92
|
+
</ViewTransition>
|
|
93
|
+
|
|
94
|
+
// Broken — div wraps the VT, suppressing enter/exit
|
|
95
|
+
<div>
|
|
96
|
+
<ViewTransition enter="auto" exit="auto">
|
|
97
|
+
<div>Content</div>
|
|
98
|
+
</ViewTransition>
|
|
99
|
+
</div>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Styling with View Transition Classes
|
|
105
|
+
|
|
106
|
+
### Props
|
|
107
|
+
|
|
108
|
+
Values: `"auto"` (browser cross-fade), `"none"` (disabled), `"class-name"` (custom CSS), or `{ [type]: value }` for type-specific animations.
|
|
109
|
+
|
|
110
|
+
```jsx
|
|
111
|
+
<ViewTransition default="none" enter="slide-in" exit="slide-out" share="morph" />
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
If `default` is `"none"`, all triggers are off unless explicitly listed.
|
|
115
|
+
|
|
116
|
+
### CSS Pseudo-Elements
|
|
117
|
+
|
|
118
|
+
- `::view-transition-old(.class)` — outgoing snapshot
|
|
119
|
+
- `::view-transition-new(.class)` — incoming snapshot
|
|
120
|
+
- `::view-transition-group(.class)` — container
|
|
121
|
+
- `::view-transition-image-pair(.class)` — old + new pair
|
|
122
|
+
|
|
123
|
+
See [references/css-recipes.md](references/css-recipes.md) for ready-to-use animation recipes.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Transition Types
|
|
128
|
+
|
|
129
|
+
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:
|
|
130
|
+
|
|
131
|
+
```jsx
|
|
132
|
+
startTransition(() => {
|
|
133
|
+
addTransitionType('nav-forward');
|
|
134
|
+
addTransitionType('select-item');
|
|
135
|
+
router.push('/detail/1');
|
|
136
|
+
});
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Pass an object to map types to CSS classes. Works on `enter`, `exit`, **and** `share`:
|
|
140
|
+
|
|
141
|
+
```jsx
|
|
142
|
+
<ViewTransition
|
|
143
|
+
enter={{ 'nav-forward': 'slide-from-right', 'nav-back': 'slide-from-left', default: 'none' }}
|
|
144
|
+
exit={{ 'nav-forward': 'slide-to-left', 'nav-back': 'slide-to-right', default: 'none' }}
|
|
145
|
+
share={{ 'nav-forward': 'morph-forward', 'nav-back': 'morph-back', default: 'morph' }}
|
|
146
|
+
default="none"
|
|
147
|
+
>
|
|
148
|
+
<Page />
|
|
149
|
+
</ViewTransition>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
`enter` and `exit` don't have to be symmetric. For example, fade in but slide out directionally:
|
|
153
|
+
|
|
154
|
+
```jsx
|
|
155
|
+
<ViewTransition
|
|
156
|
+
enter={{ 'nav-forward': 'fade-in', 'nav-back': 'fade-in', default: 'none' }}
|
|
157
|
+
exit={{ 'nav-forward': 'nav-forward', 'nav-back': 'nav-back', default: 'none' }}
|
|
158
|
+
default="none"
|
|
159
|
+
>
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**TypeScript:** `ViewTransitionClassPerType` requires a `default` key in the object.
|
|
163
|
+
|
|
164
|
+
For apps with multiple pages, extract the type-keyed VT into a reusable wrapper:
|
|
165
|
+
|
|
166
|
+
```jsx
|
|
167
|
+
export function DirectionalTransition({ children }: { children: React.ReactNode }) {
|
|
168
|
+
return (
|
|
169
|
+
<ViewTransition
|
|
170
|
+
enter={{ 'nav-forward': 'nav-forward', 'nav-back': 'nav-back', default: 'none' }}
|
|
171
|
+
exit={{ 'nav-forward': 'nav-forward', 'nav-back': 'nav-back', default: 'none' }}
|
|
172
|
+
default="none"
|
|
173
|
+
>
|
|
174
|
+
{children}
|
|
175
|
+
</ViewTransition>
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### `router.back()` and Browser Back Button
|
|
181
|
+
|
|
182
|
+
`router.back()` and the browser's back/forward buttons carry **no transition types**, so type-keyed animations (directional slides) resolve to their `default` and don't play — untyped shared-element morphs still apply. For typed animations, use `router.push()` with an explicit URL.
|
|
183
|
+
|
|
184
|
+
### Types and Suspense
|
|
185
|
+
|
|
186
|
+
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.
|
|
187
|
+
|
|
188
|
+
### Shared Element Readiness
|
|
189
|
+
|
|
190
|
+
A shared element transition can pair elements only when both the old and new views are rendered in the same Transition. If incoming content suspends, only its fallback exists for that update; the resolved content appears in a later Suspense transition and can be animated separately.
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Shared Element Transitions
|
|
195
|
+
|
|
196
|
+
Same `name` on two VTs — one unmounting, one mounting — creates a shared element morph:
|
|
197
|
+
|
|
198
|
+
```jsx
|
|
199
|
+
<ViewTransition name="hero-image">
|
|
200
|
+
<img src="/thumb.jpg" onClick={() => startTransition(() => onSelect())} />
|
|
201
|
+
</ViewTransition>
|
|
202
|
+
|
|
203
|
+
// On the other view — same name
|
|
204
|
+
<ViewTransition name="hero-image">
|
|
205
|
+
<img src="/full.jpg" />
|
|
206
|
+
</ViewTransition>
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
- 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.
|
|
210
|
+
- `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.
|
|
211
|
+
- Two ways a wired-up morph silently never fires: (1) `default="none"` with no explicit `share` prop — share resolves to none; (2) type-keyed `share` where the navigation never adds the type — a plain link click resolves the map's `default`. Every link that should morph must add the type (`transitionTypes` on `next/link`, or `addTransitionType`).
|
|
212
|
+
- Never use a fade-out exit on pages with shared morphs — use a directional slide instead.
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## Common Patterns
|
|
217
|
+
|
|
218
|
+
### Enter/Exit
|
|
219
|
+
|
|
220
|
+
```jsx
|
|
221
|
+
{show && (
|
|
222
|
+
<ViewTransition enter="fade-in" exit="fade-out"><Panel /></ViewTransition>
|
|
223
|
+
)}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### List Reorder
|
|
227
|
+
|
|
228
|
+
```jsx
|
|
229
|
+
{items.map(item => (
|
|
230
|
+
<ViewTransition key={item.id}><ItemCard item={item} /></ViewTransition>
|
|
231
|
+
))}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Trigger inside `startTransition`. Avoid wrapper `<div>`s between list and VT.
|
|
235
|
+
|
|
236
|
+
### Layout Displacement Morph
|
|
237
|
+
|
|
238
|
+
Only content inside an activated boundary animates position — everything else teleports to its new layout spot. Wrap the sibling content below a growing/shrinking list in a bare `<ViewTransition>` so it glides instead of jumping. See [Layout Displacement Morph](references/patterns.md#layout-displacement-morph).
|
|
239
|
+
|
|
240
|
+
### Composing Shared Elements with List Identity
|
|
241
|
+
|
|
242
|
+
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:
|
|
243
|
+
|
|
244
|
+
```jsx
|
|
245
|
+
{items.map(item => (
|
|
246
|
+
<ViewTransition key={item.id}> {/* list identity */}
|
|
247
|
+
<Link href={`/items/${item.id}`}>
|
|
248
|
+
<ViewTransition name={`item-image-${item.id}`} share="morph"> {/* shared element */}
|
|
249
|
+
<Image src={item.image} />
|
|
250
|
+
</ViewTransition>
|
|
251
|
+
<p>{item.name}</p>
|
|
252
|
+
</Link>
|
|
253
|
+
</ViewTransition>
|
|
254
|
+
))}
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
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.
|
|
258
|
+
|
|
259
|
+
### Force Re-Enter with `key`
|
|
260
|
+
|
|
261
|
+
```jsx
|
|
262
|
+
<ViewTransition key={searchParams.toString()} enter="slide-up" default="none">
|
|
263
|
+
<ResultsGrid />
|
|
264
|
+
</ViewTransition>
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
**Caution:** If wrapping `<Suspense>`, changing `key` remounts the boundary and refetches.
|
|
268
|
+
|
|
269
|
+
### Suspense Fallback to Content
|
|
270
|
+
|
|
271
|
+
Simple cross-fade:
|
|
272
|
+
```jsx
|
|
273
|
+
<ViewTransition>
|
|
274
|
+
<Suspense fallback={<Skeleton />}><Content /></Suspense>
|
|
275
|
+
</ViewTransition>
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
Directional reveal:
|
|
279
|
+
```jsx
|
|
280
|
+
<Suspense fallback={<ViewTransition exit="slide-down"><Skeleton /></ViewTransition>}>
|
|
281
|
+
<ViewTransition enter="slide-up" default="none"><Content /></ViewTransition>
|
|
282
|
+
</Suspense>
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
For more patterns, see [references/patterns.md](references/patterns.md).
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## How Multiple VTs Interact
|
|
290
|
+
|
|
291
|
+
Every VT matching the trigger fires simultaneously in a single `document.startViewTransition`. VTs in **different** transitions (navigation vs later Suspense resolve) don't compete.
|
|
292
|
+
|
|
293
|
+
### Use `default="none"` Deliberately
|
|
294
|
+
|
|
295
|
+
Without it, every VT fires the browser cross-fade on **every** transition — Suspense resolves, `useDeferredValue` updates, background revalidations. Use `default="none"` on named/shared elements and type-keyed page VTs.
|
|
296
|
+
|
|
297
|
+
But it also turns off `update` (layout/reflow morphs) and `share` (a named pair with no explicit `share` prop never morphs). Keyed list items and displaced siblings *want* update — leave them bare or set `update="auto"`.
|
|
298
|
+
|
|
299
|
+
### Two Patterns Coexist
|
|
300
|
+
|
|
301
|
+
**Pattern A — Directional slides:** Type-keyed VT on each page, fires during navigation.
|
|
302
|
+
**Pattern B — Suspense reveals:** Simple string props, fires when data loads (no type).
|
|
303
|
+
|
|
304
|
+
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.
|
|
305
|
+
|
|
306
|
+
### Nested VT Limitation
|
|
307
|
+
|
|
308
|
+
When a parent VT mounts/unmounts **as one unit** with nested VTs inside it, the nested ones do not fire their own enter/exit — only the outermost VT animates. (A child VT mounted inside a *persistent* parent VT fires enter/exit normally.) Per-item staggered animations during page navigation are not currently available in Next.js; see [troubleshooting](references/troubleshooting.md) for the upstream experimental status.
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## Next.js Integration
|
|
313
|
+
|
|
314
|
+
For Next.js integration (`transitionTypes` on `next/link` and `useRouter`, App Router patterns, Server Components), see [references/nextjs.md](references/nextjs.md).
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## Accessibility
|
|
319
|
+
|
|
320
|
+
Always add the reduced motion CSS from [references/css-recipes.md](references/css-recipes.md#reduced-motion) to your global stylesheet.
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Reference Files
|
|
325
|
+
|
|
326
|
+
- **[references/implementation.md](references/implementation.md)** — Step-by-step implementation workflow.
|
|
327
|
+
- **[references/patterns.md](references/patterns.md)** — Patterns, animation timing, and events API.
|
|
328
|
+
- **[references/troubleshooting.md](references/troubleshooting.md)** — Symptom-driven debugging and runtime limitations.
|
|
329
|
+
- **[references/css-recipes.md](references/css-recipes.md)** — Ready-to-use CSS animation recipes.
|
|
330
|
+
- **[references/nextjs.md](references/nextjs.md)** — Next.js App Router patterns and Server Component details.
|
|
331
|
+
|
|
332
|
+
## Full Compiled Document
|
|
333
|
+
|
|
334
|
+
For the complete guide with all reference files expanded: `AGENTS.md`
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lss": 1,
|
|
3
|
+
"lastVerified": "2026-11-08",
|
|
4
|
+
"source": {
|
|
5
|
+
"repo": "vercel-labs/agent-skills",
|
|
6
|
+
"path": "skills/react-view-transitions/SKILL.md",
|
|
7
|
+
"licenseVerified": true,
|
|
8
|
+
"licenseStatus": "open",
|
|
9
|
+
"licenseEvidence": "declared in original SKILL.md",
|
|
10
|
+
"licenseUrl": "https://github.com/vercel-labs/agent-skills/blob/main/skills/react-view-transitions/SKILL.md",
|
|
11
|
+
"licenseCheckedAt": "2026-11-08"
|
|
12
|
+
},
|
|
13
|
+
"summary": "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…",
|
|
14
|
+
"whenToUse": [
|
|
15
|
+
"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 ",
|
|
16
|
+
"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."
|
|
17
|
+
],
|
|
18
|
+
"verification": [
|
|
19
|
+
"Does the VT mount/unmount on this navigation, or does it stay mounted (same-route)?",
|
|
20
|
+
"For named VTs: does a shared pair form? If not, does enter/exit provide a fallback?",
|
|
21
|
+
"Does default=\"none\" block an animation you actually want?",
|
|
22
|
+
"Do persistent elements stay static (not sliding with page content)?",
|
|
23
|
+
"Do Suspense reveals animate independently from directional navigations?"
|
|
24
|
+
],
|
|
25
|
+
"domains": [
|
|
26
|
+
"web",
|
|
27
|
+
"design"
|
|
28
|
+
],
|
|
29
|
+
"derived": [
|
|
30
|
+
"domains",
|
|
31
|
+
"summary",
|
|
32
|
+
"verification",
|
|
33
|
+
"whenToUse"
|
|
34
|
+
],
|
|
35
|
+
"keywords": [
|
|
36
|
+
"suspense reveal",
|
|
37
|
+
"nav-forward",
|
|
38
|
+
"cross-fade"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"organization": "Vercel Engineering",
|
|
4
|
+
"date": "March 2026",
|
|
5
|
+
"abstract": "Guide for implementing smooth, native-feeling animations using React's View Transition API. Covers the <ViewTransition> component, addTransitionType, CSS view transition pseudo-elements, shared element transitions, JavaScript animations via Web Animations API, and Next.js integration including the transitionTypes prop on next/link. Includes ready-to-use CSS animation recipes and real-world patterns from production Next.js apps.",
|
|
6
|
+
"references": [
|
|
7
|
+
"https://react.dev/reference/react/ViewTransition",
|
|
8
|
+
"https://react.dev/reference/react/addTransitionType",
|
|
9
|
+
"https://nextjs.org/docs/app/api-reference/config/next-config-js/viewTransition",
|
|
10
|
+
"https://github.com/vercel/next-app-router-playground/tree/main/app/view-transitions"
|
|
11
|
+
]
|
|
12
|
+
}
|