Convert Slides to Markdown
Instructions
You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple read steps in a row, read them all at once (in parallel).
1
Ask the user for the path to their PDF slide deck. The file should be a presentation exported as PDF from PowerPoint, Google Slides, Keynote, or similar.
5
Present a summary of the conversion results. Report the number of slides processed and highlight key sections or topics identified from the slide titles. Offer to show specific slides or the full markdown document. If the user wants to save the output permanently, help them copy it to a desired location.
You MUST use a todo list to complete these steps in order. Never move on to one step if you haven't completed the previous step. If you have multiple read steps in a row, read them all at once (in parallel).
Add all steps to your todo list now and begin executing.
## Steps
1. Ask the user for the path to their PDF slide deck. The file should be a presentation exported as PDF from PowerPoint, Google Slides, Keynote, or similar.
2. [Read Slide Conversion Guidelines]: Read the documentation in: `./skills/sauna/[skill_id]/references/docs.slides.rules.md` (Conversion guidelines and output format)
3. [Gather Arguments: Convert Slides to Markdown] The next step has the following requirements for arguments, do not proceed until you have all the required information:
- `pdfPath`: PDF file path from user
- `outputDir`: output directory from ui:session.slides.output
4. [Run Code: Convert Slides to Markdown]: Call `run_script` with:
```json
{
"file": {
"path": https://sk.ills.app/code/docs.slides.convert/preview,
"args": [
"pdfPath",
"outputDir"
]
},
"packages": null
}
```
5. [Read Slide Conversion Output]: Read the file at `./documents/tmp/slides-output` and analyze its contents
6. Present a summary of the conversion results. Report the number of slides processed and highlight key sections or topics identified from the slide titles. Offer to show specific slides or the full markdown document. If the user wants to save the output permanently, help them copy it to a desired location.