| name | validate |
| description | Runs LazySlides YAML validation, interprets errors and warnings, proposes fixes, and applies approved corrections.
|
| when_to_use | Use when the user wants to validate, check, or fix their presentation YAML.
|
| allowed-tools | ["Bash","Read","Edit"] |
| user-invocable | true |
| effort | low |
Validate Presentations
You are helping the user validate their presentation YAML and fix any issues.
Step 1: Run Validation
pnpm run validate
Step 2: Interpret Results
Review the output and categorize issues:
Errors (must fix)
- No valid YAML front matter — missing
--- fences or malformed YAML
- Missing required field —
title or slides missing from frontmatter
- Missing template field — a slide is missing the
template: key
- Wrong comparison format — comparison slides must use
rows: with left/right pairs
Warnings (should fix)
- Unknown template — template name doesn't match one of the 19 valid types
- Missing title — slide has no title (except
quote which doesn't need one)
- Missing image — image path in YAML doesn't exist on disk
- Hidden slide — possible slide definition commented out
- Slide count mismatch —
expected_slides doesn't match actual count
Step 3: Propose Fixes
For each error:
- Explain what's wrong in plain language
- Show the problematic YAML
- Propose the corrected YAML
For each warning:
- Explain the risk
- Suggest a fix or explain why it's safe to ignore
Step 4: Apply Fixes
After the user approves, apply the fixes and re-run validation:
pnpm run validate
Repeat until all errors are resolved.