一键导入
narrate-spec
Generate compelling AI narration for every step in a demo-machine spec. Use when a spec has no narration or needs better narration text.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate compelling AI narration for every step in a demo-machine spec. Use when a spec has no narration or needs better narration text.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a polished product demo video from a YAML spec using demo-machine. Use when the user wants to create, run, or update a demo video for their app.
Generate a complete demo-machine YAML spec by crawling a live web app. Give it a URL and description, get a ready-to-run spec.
Automatically fix a broken demo-machine spec by analyzing failure artifacts (screenshots, DOM, error logs). Use when a demo fails after a UI change.
AI quality review of a completed demo run. Analyzes event log, timing, and narration to flag issues and suggest improvements.
Convert an existing Playwright or Cypress E2E test file into a demo-machine YAML spec. Reuses test coverage as demo scripts.
Translate all narration text in a demo-machine spec to another language, producing a localized copy.
| name | narrate-spec |
| description | Generate compelling AI narration for every step in a demo-machine spec. Use when a spec has no narration or needs better narration text. |
| argument-hint | <spec-file> [--tone formal|casual|technical] |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash(node *), Bash(pnpm *) |
Generate compelling, coherent narration text for every step in a demo-machine YAML spec. Creates a narrative that flows naturally across chapters, explaining why the user is performing each action — not just describing the click.
$ARGUMENTS should include a path to an existing .demo.yaml file.--tone flag: formal (default), casual, or technical.*.demo.yaml files in the project.wait or intermediate click. Only add narration to steps where it provides value.narration field for chapter introductions when appropriate.wait steps (unless the wait is for something meaningful like "while the data loads")screenshot stepsassert steps (unless the assertion demonstrates a key feature)Read the spec file completely. Understand the app, the user journey, and the chapter organization.
Analyze the existing narration (if any). Note gaps, inconsistencies, or mechanical descriptions.
Generate narration for each chapter and step:
narration for chapter introductionsnarration for key action stepsApply the narration by editing the spec file. Only add/modify narration fields — do not change actions, selectors, or other step properties.
Validate the updated spec:
node dist/cli.js validate <spec.yaml>
Report what was added/changed and the overall narrative arc.
Before (no narration):
chapters:
- title: "Adding a Task"
steps:
- action: click
selector: "#task-input"
- action: type
selector: "#task-input"
text: "Design landing page"
- action: click
selector: "#add-btn"
- action: wait
timeout: 500
After (with narration):
chapters:
- title: "Adding a Task"
narration: "Now let's add our first task to the list."
steps:
- action: click
selector: "#task-input"
- action: type
selector: "#task-input"
text: "Design landing page"
narration: "We'll type in a task for designing the landing page."
- action: click
selector: "#add-btn"
narration: "Click Add to save it to our task list."
- action: wait
timeout: 500
Arguments: $ARGUMENTS