Unverified Commit 5d1bbce4 authored by Aurora Scharff's avatar Aurora Scharff Committed by GitHub

docs: link View Transitions skill on skills.sh and clarify the example prompt (#96863)

## What

Updates the [Designing view
transitions](/docs/app/guides/view-transitions) guide so the
`vercel-react-view-transitions` skill points to its **skills.sh** page
instead of the GitHub source, and reframes the sample prompt as an
example.

## Changes

- Link the skill to
`https://skills.sh/vercel-labs/agent-skills/vercel-react-view-transitions`
instead of the `github.com/vercel-labs/agent-skills/...` source tree.
- Use the skills.sh install form (`npx skills add
vercel-labs/agent-skills --skill ...`), consistent with the other skills
referenced in the docs.
- Frame the prompt as "a prompt like this" and add a sentence making
clear the example is not required, readers can prompt for whatever they
want to achieve and the skill guides the agent through the relevant
patterns.

## Why

The skills.sh page is the canonical place to view and install the skill.
The old wording read as if the one prompt was the only way to invoke the
skill.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------
Co-authored-by: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
parent d470d189
...@@ -12,22 +12,28 @@ React's `<ViewTransition>` component integrates with the browser's [View Transit ...@@ -12,22 +12,28 @@ React's `<ViewTransition>` component integrates with the browser's [View Transit
This guide walks through four patterns that cover the most common cases: morphing shared elements, animating loading states, adding directional navigation, and crossfading content within the same route. This guide walks through four patterns that cover the most common cases: morphing shared elements, animating loading states, adding directional navigation, and crossfading content within the same route.
## Use the vercel-react-view-transitions skill ## Add view transitions with an agent
The [`vercel-react-view-transitions`](https://github.com/vercel-labs/agent-skills/tree/main/skills/react-view-transitions) skill teaches a coding agent the patterns in this guide, plus the CSS recipes and troubleshooting for applying them to an existing app. The [`vercel-react-view-transitions`](https://skills.sh/vercel-labs/agent-skills/vercel-react-view-transitions) skill teaches a coding agent the patterns in this guide, plus the CSS recipes and troubleshooting for applying them to an existing app.
Install the skill: Install the skill:
```bash filename="Terminal" ```bash filename="Terminal"
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-view-transitions npx skills add vercel-labs/agent-skills --skill vercel-react-view-transitions
``` ```
Then give the agent this prompt: Then prompt the agent with something like:
```prompt ```prompt
Add view transitions to this app using the vercel-react-view-transitions skill. Add view transitions to this app using the vercel-react-view-transitions skill.
``` ```
Or prompt for a specific transition, such as:
- Morphing a thumbnail into a hero image
- Sliding between routes forward and back
- Crossfading content within the same route
To apply the patterns yourself, follow the walkthrough below. To apply the patterns yourself, follow the walkthrough below.
## Example ## Example
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment