Convert Slides to Markdown
Convert a PDF slide deck to comprehensive, context-friendly markdown
Requirements
Path to PDF slide deck file.
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.
To run this task you must have the following required information:
> Path to PDF slide deck file.
If you don't have all of this information, exit here and respond asking for any extra information you require, and instructions to run this task again with ALL required information.
---
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 CONSECUTIVE read steps in a row, read them all at once (in parallel). Otherwise, do not read a file until you reach that step.
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 state: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 `session/slides-output` into context
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.