guided-walkthrough
БесплатноЗапускает вложенные скриптыНе проверенAdd a guided walkthrough to a web UI: a step-by-step spotlight tour that dims the page, highlights one element at a time, and explains it in a small popover…
от amanaiproduct★ 80 звёзд на GitHubОб этом скилле
Guided walkthrough
A walkthrough answers "what am I looking at, and where do I start?" for someone who has never seen the interface. It spotlights one real element at a time and says what it is in a sentence or two. Done well it replaces a README. Done badly it is a wall of popovers people close on step two, so most of this skill is about what goes in the steps, not the mechanics.
The mechanics are bundled:
assets/tour.jsis the runner, as an ES module for projects with a bundler. It is framework-free and takes driver.js as an argument.assets/tour.global.jsis the same runner as a classic script, for a plain HTML page.assets/tour.cssthemes the popover from colour and radius tokens.assets/steps.example.jsshows the shape of a step list.
Copy them into the project, then write the steps. Do not rewrite the runner unless the project cannot use driver.js; it already handles the awkward parts described under "What the runner does".
1. Give the tour a place to happen
A tour falls apart when a step lands on an empty state: a chart with no data, a table with no rows, a tab that only appears after some action. Before writing any step, decide what state the tour runs in.
- If the interface always has content, tour the real thing.
- If it can be empty or its content varies, ship a small sample record that exercises every feature the tour mentions, and run the tour on that. Say so on every step with the
footnoteoption ("This tour uses sample data."). People should never mistake a demonstration for their own numbers. - Keep the tour on as few screens as possible. Each hop between routes is a moment where the reader loses their place.
- Do not tour a control that does nothing yet. Prototypes often have a filter or an export button with no behaviour behind it; a step describing it teaches something false. Leave it out and tell the user which controls you skipped and why.
2. Mark the targets
Add a data-tour="name" attribute to each element a step will point at, and select on that: [data-tour="filters"]. Class names and generated ids change when someone restyles or refactors; a data-tour attribute says "a tour depends on this" to whoever edits the markup next.
Mark the smallest container that is the thing being described. Highlighting a whole page section to talk about one button leaves the reader hunting. If a step needs to open a tab or menu first, give that control its own attribute too (data-tour="tab-table").
3. Write the steps
Steps are plain data: see assets/steps.example.js. Write them as a list first, read the list top to bottom as if you had never seen the product, then wire it up.
Order by what a newcomer needs, not by layout. Start with what the page is for, then the main thing to look at, then how to change what is shown, then where detail lives. Aim for roughly one step per main area: four is fine for a small page, and most interfaces need fewer than twelve. Do not pad. Past about fifteen, split it: a short main tour, with deeper tours started from the feature they explain.
Each step is one idea.
- The title names the thing, as the interface labels it: "Filters", "Step timeline". Not "Powerful filtering".
- The body says what it is and what the reader can do with it, in one to three sentences. Use the words on the screen. Bold the one control you want them to find.
- If the step performs an action for them, say so: "We just opened the Table tab, at the top of this panel." They see the result and learn where the control is. Silent changes are disorienting.
- Leave out anything they do not need on day one. A tour that explains every control teaches none of them.
A step that changes the page owns that change. If step four opens the Table tab, step three needs its own action that opens the Chart tab, or pressing Back from four shows the wrong view. Give every step whose view could have been altered an action that puts its view in place.
Put the popover where it does not cover what it describes. Set side per step. For a wide element near the top use bottom; for a left-hand list use right. A target taller than about half the window leaves no room above or below once it is scrolled to the middle, and the popover lands on top of it. Point the step at a smaller element inside it, such as the panel's heading or tab row.
Step text is inserted as HTML, so it can use <b> and <code>. For that reason it must be text you wrote. Never interpolate user data, names or anything fetched into a step; if a step must mention a live value, escape it first.
4. Wire it in
Install driver.js 1.x and load its stylesheet, then the bundled theme:
import { driver } from 'driver.js'
import 'driver.js/dist/driver.css'
import './tour.css'
import { startTour, startTourOnce } from './tour.js'
import { steps } from './tourSteps.js'
const run = () => startTour({ driver, steps, navigate, footnote: 'This tour uses sample data.' })
- `navigate
Установить guided-walkthrough в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл guided-walkthrough?
Add a guided walkthrough to a web UI: a step-by-step spotlight tour that dims the page, highlights one element at a time, and explains it in a small popover with Back, Next and Skip. Use whenever the user asks for a tour, walkthrough, onboarding, product tour, 'show me around', first-run guide or feature showcase for a dashboard, viewer, tool or app, and offer it when you finish building any interface with more than a few panels, since a new user will not know where to look. Works for React, Vue, Svelte and plain HTML.
Как установить скилл guided-walkthrough?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл guided-walkthrough запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic