Files
claude-code-skills-reference/demos
daymade acd4bb2dfc fix: Correct ppt-creator demo errors and add ui-designer demo
**ppt-creator demo fixes:**
- Fixed incorrect stage grouping: "Stage 1-7" → accurate stages (2, 3, 4, 6, 7, 8)
- Corrected file descriptions:
  - refs.md: "speaker notes" → "citations & sources" ✓
  - notes.md: Now correctly shown as speaker notes ✓
- Added missing deliverable: notes.md (was omitted before)
- Removed incorrect sub-stage numbering (8b-8c, 8d, 8e)
- Added /output/ path prefix for all deliverables
- Increased height: 700 → 800 for better visibility
- File size: 295KB → 496KB (more comprehensive animation)

**Detailed error analysis:**
1. Line 21: "Stage 1-7: Content Preparation" was factually wrong
   - Stage 1: Structure Goals
   - Stage 2: Storyline (Pyramid Principle)
   - Stage 3: Outline & Slide Titles
   - Stage 4: Evidence & Charts
   - Stage 5: Layout & Accessibility (skipped in demo for brevity)
   - Stage 6: Speaker Notes
   - Stage 7: Self-Check & Scoring
   - Fixed by showing individual stages with accurate descriptions

2. Line 27: refs.md described as "speaker notes" - WRONG
   - Actual: refs.md = citations and data sources (SKILL.md line 37)
   - Actual: notes.md = speaker notes
   - Fixed by showing both files with correct descriptions

3. Missing /output/ path: All deliverables should show /output/ prefix
   - Fixed: All files now show as /output/slides.md, etc.

**ui-designer demo created:**
- 6-step workflow visualization
- Shows complete design system extraction process
- Accurate file paths and Task tool usage
- Demonstrates all key deliverables:
  - documents/designs/saas-dashboard_design_system.md
  - documents/ux-design/app_design_prompt_{timestamp}.md
  - React component implementations
- File size: 262KB

**Verification:**
✓ All stage numbers match SKILL.md workflow (lines 60-78)
✓ All deliverable filenames match SKILL.md line 33-38
✓ All ui-designer steps match SKILL.md lines 22-100
✓ Both demos tested and rendering correctly
2025-10-26 12:28:15 +08:00
..

Skill Demonstrations

This directory contains automated demonstrations of each skill using VHS (Video Home System) by Charmbracelet.

VHS allows you to write terminal recordings as code, making demos reproducible, version-controllable, and typo-free.

📁 Demo Structure

demos/
├── skill-creator/
│   ├── init-skill.tape          # Initialize a new skill
│   ├── validate-skill.tape       # Validate skill quality
│   └── package-skill.tape        # Package for distribution
├── github-ops/
│   └── create-pr.tape            # Create pull requests
├── markdown-tools/
│   └── convert-docs.tape         # Convert documents
└── generate_all_demos.sh         # Generate all GIFs

🎬 Generating Demos

Prerequisites

Install VHS:

macOS:

brew install vhs

Linux (with Go):

go install github.com/charmbracelet/vhs@latest

Or download from: https://github.com/charmbracelet/vhs/releases

Generate All Demos

./generate_all_demos.sh

This will:

  1. Find all .tape files
  2. Generate corresponding .gif files
  3. Report success/failure for each demo

Generate a Specific Demo

vhs < skill-creator/init-skill.tape

This creates demos/skill-creator/init-skill.gif.

📝 Creating New Demos

VHS Tape File Format

A .tape file consists of commands that VHS executes in a virtual terminal:

# Output configuration
Output demos/my-skill/my-demo.gif

# Terminal settings
Set FontSize 16
Set Width 1400
Set Height 700
Set Theme "Dracula"
Set Padding 20

# Demo script
Type "echo Hello World" Sleep 500ms
Enter
Sleep 2s

Common VHS Commands

Command Description Example
Output Set output file path Output demos/skill/demo.gif
Set FontSize Set terminal font size Set FontSize 18
Set Width/Height Set terminal dimensions Set Width 1400
Set Theme Set color theme Set Theme "Dracula"
Type Type text Type "ls -la"
Type@<speed> Type with custom speed Type@500ms "slow typing"
Enter Press Enter key Enter
Sleep Pause execution Sleep 2s
Ctrl+C Send Ctrl+C Ctrl+C

Demo Guidelines

When creating new demos:

  1. Keep demos short - Under 30 seconds ideally
  2. Use readable font size - 16-18pt minimum
  3. Show realistic usage - Practical, real-world examples
  4. Add brief comments - Explain what's happening
  5. Use consistent theme - Dracula theme recommended
  6. Test before committing - Generate and review the GIF

Example: Creating a New Demo

  1. Create the tape file:
touch demos/my-skill/my-workflow.tape
  1. Write the demo script:
Output demos/my-skill/my-workflow.gif

Set FontSize 16
Set Width 1400
Set Height 700
Set Theme "Dracula"
Set Padding 20

Type "# My Skill Demo" Sleep 500ms Enter
Sleep 1s

Type "echo 'Step 1: Setup'" Sleep 500ms
Enter
Sleep 2s

Type "echo 'Step 2: Execute'" Sleep 500ms
Enter
Sleep 2s
  1. Generate the GIF:
vhs < demos/my-skill/my-workflow.tape
  1. Review the output:
open demos/my-skill/my-workflow.gif  # macOS
xdg-open demos/my-skill/my-workflow.gif  # Linux

🎨 Themes

VHS supports various themes. We use "Dracula" for consistency, but you can try:

  • Dracula (default)
  • Nord
  • Monokai
  • Solarized Dark
  • Tokyo Night

📚 Resources

🔧 Troubleshooting

VHS not found

Ensure VHS is in your PATH:

which vhs

Permission denied

Make the generation script executable:

chmod +x generate_all_demos.sh

Demo generation fails

Check the tape file syntax:

vhs validate < demos/my-skill/my-demo.tape

GIF file too large

Reduce dimensions or duration:

Set Width 1200  # Smaller width
Set Height 600  # Smaller height
Sleep 1s        # Shorter pauses

📝 Adding Demos to README

After generating demos, add them to the main README.md:

### skill-creator - Skill Development Toolkit

<div align="center">
  <img src="./demos/skill-creator/init-skill.gif" alt="Initialize Skill Demo" width="800"/>
</div>

Guide for creating effective Claude Code skills...

Pro Tip: Demos are automatically regenerated by CI/CD when tape files change (coming soon!).