Token导航 LogoToken导航

Agent Skill · 前端设计

guided-demo(引导演示)

guided-demo 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

guided-demo 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 8,105。

总安装 315周安装 13GitHub Stars 125下载 103核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:guided-demo(引导演示)
来源仓库:https://github.com/sammcj/agentic-coding
仓库路径:skills/guided-demo
安装命令:
npx skills add https://github.com/sammcj/agentic-coding --skill guided-demo
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sammcj/agentic-coding --skill guided-demo

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

引导演示技能处理 GitHub 协作信息。适合整理仓库状态、代码变更和协作事项。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。通过 npx 命令从 GitHub 仓库安装并使用该技能。安装前需确认权限范围和维护状态,注意可能触发联网或文件读写。

guided-demo 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/guided-demo

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sammcj/agentic-coding --skill guided-demo;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

guided-demo 怎么安装?

在终端执行 npx skills add https://github.com/sammcj/agentic-coding --skill guided-demo。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

guided-demo 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

guided-demo 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

guided-demo 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

guided-demo 用的人多吗?

公开数据是累计安装 315 次,近一周安装 13 次,下载 103 次,GitHub 125 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

guided-demo 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
guided-demo

引导演示 · 本页

315125操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Guided Demo Pattern

Add a self-narrating walkthrough to any HTML/web application. A declarative step array drives a setTimeout loop that toggles CSS classes on DOM elements and writes text character-by-character into a fixed panel. The engine overlays the existing page without modifying its code. When the demo stops, all state resets.

About 100 lines of JS and 30 lines of CSS for the core. Interstitials, speed controls, keyboard shortcuts, and progress bar are optional layering.

Before implementing

Ask the user these questions (skip any already answered in conversation):

  1. What are the sections? Tabs, routes, scroll positions, slide indices? Determines how section switching works.
  2. Framework? Vanilla HTML works directly. React/Vue/Svelte need the engine as a conditional overlay component, and querySelector must run after render.
  3. Presenter talking over it, or self-narrating? Talking over: shorter text, longer pauses. Self-narrating: detailed text, moderate pauses.
  4. Interactive elements to trigger? Map to step actions. Confirm CSS selectors are stable (not framework-generated hashes).
  5. Offline requirement? Keep everything in one file if so. No CDN dependencies without fallbacks.
  6. How many steps? Under 15 for a pitch, 20-30 for a detailed walkthrough. Over 40 loses attention.
  7. Touch device support needed? Most guided demos target desktop/laptop presentation contexts. The narrator panel has on-screen prev/play/next buttons that work on touch, but swipe gestures or mobile-specific layout are rarely needed.

Implementation

Read references/implementation.md for all code snippets (vanilla JS / static HTML). If the target application uses React with React Router, also read references/react-integration.md for React-specific patterns covering stale closures, route navigation timing, and component architecture. For other SPA frameworks (Vue, Svelte, etc.), the same concepts apply (poll for elements after route change, store timer-relevant state outside the reactivity system) but the implementation details differ.

The four required pieces are:

  1. Narrator panel - fixed-position bar with text container and progress bar
  2. Highlight class - outline (not border) with animated glow, no layout shift
  3. Typewriter function - recursive setTimeout, narration text set via textContent (never set user-authored narration via innerHTML), blinking cursor via CSS. The innerHTML = '' clearing before each tick is intentional and safe (no user content involved)
  4. Playback loop - playStep(idx) that switches sections, runs actions, highlights, types, and auto-advances

Step array

The single source of truth. Each step is a plain object:

const DEMO_SCRIPT = [
  { section: 0, target: '.card', text: "Narration text." },
  { section: 1, target: null, text: "Transition.", transition: true },
  { section: 1, target: '#el', text: "Detail.", action: 'open', actionTarget: 'panel-id' },
];

Properties: section (which view), target (CSS selector or null), text (narrator copy), transition (show interstitial), action/actionTarget (trigger UI change), delay (optional per-step pause override in ms, defaults to PAUSE_MS).

Timing defaults

ConstantDefaultWhen to adjust
TYPE_SPEED5ms/char3ms for long text, 15ms for dramatic short statements
PAUSE_MS3000ms4-5s if audience reads rather than listens
Speed range0.5x-2xBoth constants divided by multiplier

Writing narrator copy

The typewriter effect means each word lands individually, so writing style matters:

  • Short declarative sentences. Each step should make exactly one point.
  • Conversational tone, present tense. Address the audience directly.
  • Describe what the element means, not what the UI shows: "This column quantifies the cost impact" not "The cost is shown in this column".
  • No jargon the audience wouldn't know. Match terminology to the domain, not the implementation.
  • Under 30 words per step for presenter-led demos, up to 50 for self-narrating.

Keyboard controls

Gate all keyboard capture behind an isActive flag so it does not interfere with normal page interaction. Space = play/pause, arrows = step, M = toggle TTS narration, Escape = exit and reset.

Text-to-speech narration

Browser-native TTS using the speechSynthesis Web Speech API. Reads each step's narration aloud alongside the typewriter effect. Include in all guided demos but must be off by default - never start speaking without explicit user action. The user toggles TTS via a speaker icon in the control bar (dimmed when off, full opacity when on).

Key requirements:

  • Default off. The toggle icon renders in the control bar but TTS is muted until the user clicks it.
  • Voice selection. Voices load asynchronously in some browsers. Listen for speechSynthesis.addEventListener('voiceschanged',...) and cache the selected voice. Implement a preference cascade: filter speechSynthesis.getVoices() by predicate functions in priority order, returning the first match. Adjust the locale cascade to suit the project's target audience (e.g. en-AU, en-GB, en-US).
  • Playback integration. Call speakText() at the start of every step, before both the typewriter branch (auto-play) and the instant-text branch (paused/manual stepping). One call site, not two. Set utterance.rate to track the demo's speed setting.
  • Cancellation. speechSynthesis.cancel() must be called in: clearAllTimers(), stopDemo(), component unmount cleanup, and inside the mute toggle when muting. speakText() itself should cancel before speaking so stepping to a new step cuts off the previous utterance. Guard every speechSynthesis call with if ('speechSynthesis' in window) for SSR/test environments.
  • Keyboard shortcut. M to toggle. Gate behind the isActive flag and skip when focus is in form inputs, same as existing keyboard controls.

Step countdown indicator

A subtle progress bar that fills left-to-right during the pause after the typewriter text finishes, showing how much time remains before auto-advancing. Gives the viewer a sense of pacing without being distracting. Include in all guided demos.

Key design decisions:

  • CSS animation, not JS intervals. The fill uses a @keyframes animation with animation-duration set dynamically from the actual pause duration. No setInterval, no requestAnimationFrame. The browser handles smooth rendering.
  • Placement. Directly below the overall step progress bar (the "step X of Y" bar), above the narrator text. This keeps the two progress indicators visually grouped. Do not place it between the narrator text and the controls.
  • Cleanup via clearAllTimers(). Every action that interrupts the current step (manual step, pause, stop) calls clearAllTimers() first. Resetting the countdown there means you never need to clear it elsewhere.
  • No countdown on last step. The onDone callback only starts the countdown when stepIdx < script.length - 1. There is nothing to count down to on the final step.
  • Speed changes mid-countdown. The current bar keeps its original duration. The new speed applies to the next step's countdown. Restarting the animation mid-step to match the new speed is not worth the complexity.
  • Visual tuning. 2px height. Container background at rgba(255, 255, 255, 0.06) reads as a subtle track when empty. Fill colour should be the application's accent colour at 0.6-0.8 opacity. Use linear timing, not ease - the viewer reads it as a countdown and easing makes the remaining time harder to judge.

Optional: transition interstitials

Full-screen overlay with cycling status messages between sections. Simulates processing time. Define messages per section in a 2D array. Fade each message, then dismiss overlay via callback.

Optional: step actions

String-matched in executeStep(). Actions run before highlighting because elements inside collapsed panels can't be found by querySelector until the panel is open. Adding a new action is one if block. Keep it simple. Common patterns beyond expand/collapse: expandOne (open one panel, close all siblings - accordion style), call (trigger a named function like requestBriefing()), addClass/removeClass (toggle a CSS class on document.body for global state changes).

Gotchas

These are the failure points that come up repeatedly:

  • Layout shift: Use outline not border for highlighting. Outline does not affect box model.
  • Hidden elements: If target is inside a collapsed container, the action must open it first. This is why actions execute before highlighting.
  • Dynamic selectors: Framework-generated class names (.css-1a2b3c) break between builds. Use data-* attributes or IDs.
  • Scroll conflicts: scrollIntoView({block: 'center'}) conflicts with fixed headers/panels. Set scroll-padding-bottom on the scroll container to account for the narrator panel height.
  • Z-index: Narrator panel at 500+, interstitials at 490, highlighted elements at 2+. Check for conflicts with existing modals or dropdowns.
  • Cleanup on exit: Reset every piece of state the demo touched: close opened panels, remove highlights, clear timers. Missing cleanup leaves confusing UI state.
  • Form inputs: If the page has text inputs, textareas, or selects, the keyboard handler must skip them. Otherwise pressing Space in a text field triggers play/pause instead of typing. Check e.target.tagName and bail out for INPUT, TEXTAREA, SELECT.
  • ES modules: If using <script type="module">, all demo functions called from onclick must be on window.*.
  • Print: Hide demo panel and interstitial in @media print.
  • Accessibility: Narrator panel should have role="status" and aria-live="polite". Highlight outlines must meet contrast requirements.
  • TTS cancellation leaks: If speechSynthesis.cancel() is missing from any cleanup path (stop, step, mute, unmount), the previous utterance plays over the new one. Every function that clears timers must also cancel speech. Guard all speechSynthesis calls with if ('speechSynthesis' in window).
  • TTS voices async: speechSynthesis.getVoices() returns an empty array on first call in some browsers. Always listen for the voiceschanged event and cache the result.

Applicability

Works for: prototypes, PoCs, HTML slide decks, data storytelling dashboards, product demos, workshop facilitation, investor pitches, onboarding walkthroughs.

Does not replace: user testing tools, screen recorders, production onboarding tours (use a tour library with persistence and analytics for those).

For framework apps, mount the demo engine as a conditional overlay component and pass the script array as a prop. For single-file demos, inline everything for offline/USB-stick distribution.

平台分布

Codex

31.4%
按下载量换算32

Claude

31.42%
按下载量换算32

Cursor

19.27%
按下载量换算20

Gemini CLI

8.34%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills