Remove Slide Skill
Remove a slide from the deck and renumber remaining slides.
Auto-invoke triggers
- •"remove slide"
- •"delete slide"
- •"drop slide"
Workflow
Step 1: Identify Slide
Ask which slide to remove by:
- •Number (e.g., "slide 5")
- •Name (e.g., "client-testimonial")
- •ID from config (e.g., "quote")
If ambiguous, list all slides and ask user to confirm.
Step 2: Preview and Confirm
Show the user:
- •Slide number and filename
- •Slide title from config
- •Template being used
Ask for confirmation before proceeding.
Step 3: Delete Slide File
Remove src/deck/slides/NN-name.tsx
Step 4: Update config.ts
In src/deck/config.ts:
- •Remove the import statement for the deleted slide
- •Remove the config entry from
SLIDE_CONFIGarray
Step 5: Renumber Remaining Slides
For all slides after the deleted position:
- •Rename slide files (decrement NN prefix)
- •Update export names in each renamed file
- •Update imports in config.ts
- •Update component references in SLIDE_CONFIG
Step 6: Verify
Run pnpm build to ensure no errors.
Current Slides Reference
Check src/deck/config.ts for current slide list. Format:
code
01-title.tsx -> Slide01Title 02-intro.tsx -> Slide02Intro ...
Example
User: "Remove slide 5"
Current state:
code
04-features.tsx 05-stats.tsx <- TO DELETE 06-timeline.tsx 07-comparison.tsx
After removal:
code
04-features.tsx 05-timeline.tsx <- Renamed from 06 06-comparison.tsx <- Renamed from 07
Changes made:
- •Delete
src/deck/slides/05-stats.tsx - •Rename
06-timeline.tsxto05-timeline.tsx, update export toSlide05Timeline - •Rename
07-comparison.tsxto06-comparison.tsx, update export toSlide06Comparison - •Update all imports and config entries in
config.ts
Safety
Always ask for confirmation before deleting. The slide content cannot be recovered after deletion.