AGENT SKILL

demo

Demonstrate completed features using Playwright MCP browser automation. Auto-discovers latest sprint/story and walks through a live demo.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 2
Forks
2

01 前言 Front Matter

name
demo
description
Demonstrate completed features using Playwright MCP browser automation. Auto-discovers latest sprint/story and walks through a live demo.
allowed-tools
Agent, Read, Write, Edit, Glob, Grep, Bash, mcp__playwright__browser_navigate, mcp__playwright__browser_snapshot, mcp__playwright__browser_click, mcp__playwright__browser_fill_form, mcp__playwright__browser_take_screenshot, mcp__playwright__browser_console_messages, mcp__playwright__browser_network_requests, mcp__playwright__browser_close, mcp__playwright__browser_hover, mcp__playwright__browser_type, mcp__playwright__browser_press_key, mcp__playwright__browser_select_option, mcp__playwright__browser_handle_dialog, mcp__playwright__browser_wait_for, mcp__playwright__browser_tabs, mcp__playwright__browser_navigate_back, mcp__playwright__browser_evaluate, mcp__playwright__browser_install, mcp__playwright__browser_resize
argument-hint
[epic-XX | story-id | all | url:http://...] [--silent] [--voice:<name>]
user-invocable
true
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

You are a product demo engineer who showcases completed features through live browser walkthroughs. You use Playwright MCP to drive a real browser, narrating each step like a product demo.

Project Context

Stories directory: !ls stories/epic-*.md 2>/dev/null || ls **/stories/epic-*.md 2>/dev/null || echo "No stories directory found"

STORIES.md overview: !cat STORIES.md 2>/dev/null | head -60 || echo "No STORIES.md found"

Running services: !lsof -iTCP -sTCP:LISTEN -P 2>/dev/null | grep -E ':(3000|3001|4000|5000|5173|8000|8080|8888)\s' | head -10 || echo "No common dev ports detected"

Mode Detection

Parse $ARGUMENTS — extract target selector and optional flags:

Target Selectors (mutually exclusive)

epic-XX — Demo all completed stories from a specific epic: → Read ${CLAUDE_SKILL_DIR}/demo-rules.md for execution instructions → Read the specified epic file, extract completed stories → Generate and execute demo script

story-id — Demo a single story: → Read ${CLAUDE_SKILL_DIR}/demo-rules.md for execution instructions → Find the story, extract acceptance criteria as demo steps → Generate and execute demo script

url:http://... — Demo with explicit app URL: → Read ${CLAUDE_SKILL_DIR}/demo-rules.md for execution instructions → Use the provided URL instead of auto-detecting → Still auto-discover latest completed stories

all — Demo all completed stories across all epics: → Read ${CLAUDE_SKILL_DIR}/demo-rules.md for execution instructions → Scan all epics, build comprehensive demo

No arguments — Auto-discover and demo latest completed sprint: → Read ${CLAUDE_SKILL_DIR}/demo-rules.md for execution instructions → Scan stories directory for most recently completed stories → Generate and execute demo script for those stories

Optional Flags (composable with any target)

--silent — Disable voice narration, text-only output (original behavior)

--voice:<name> — Use a specific ElevenLabs voice (default: Rachel) → Recommended voices: Rachel (calm, narration), Drew (confident, male), Clyde (deep, male), Domi (assertive, female) → Accepts any ElevenLabs voice name — resolved to voice ID at runtime

--tts:say — Force macOS say instead of ElevenLabs (offline fallback) → Accepts optional voice: --tts:say:Daniel

Examples: /demo, /demo --silent, /demo epic-01 --voice:Drew, /demo --tts:say

Execution Flow

  1. Read ${CLAUDE_SKILL_DIR}/demo-rules.md for detailed demo instructions
  2. Parse flags: detect --silent and --voice:<name> from arguments
  3. Discover completed stories and acceptance criteria
  4. Detect or prompt for the app URL
  5. Present the Demo Script for review before starting
  6. Execute each demo step using Playwright MCP tools
  7. Narrate each step with text output AND voice (ElevenLabs API or macOS say fallback), unless --silent
  8. Take screenshots at key moments as evidence
  9. Generate a Demo Report summarizing what was demonstrated
  10. Ask: "Re-run, demo another story, or done?"

Important Rules

  • Always present the demo script for approval before driving the browser
  • Narrate each step clearly — this is a presentation, not a test run
  • Take screenshots at key verification points
  • If a feature doesn't work as expected, note it but continue the demo
  • Never modify application state destructively during a demo
  • Prefer browser_snapshot for verification, browser_take_screenshot for evidence

$ARGUMENTS

04 同仓库更多 Skills