agentleFS
Amazon-QuickAmazon-Quick/Amazon-Quick-official-catalog/skills/design/slide-deck-from-doc/SKILL.md

slide-deck-from-doc

Skill50 starsChanged 15 days agoMIT-0View on GitHub

Convert any document (DOCX, PDF, or Markdown) into a professional PowerPoint presentation with smart layout selection and visual hierarchy. Use when asked to 'turn this into slides', 'make a deck from this doc', 'convert to presentation', 'document to powerpoint', 'create slides from this file', 'slide deck from this', 'present this as a deck', or any request to transform a written document into a slide presentation.

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. About 0 are common, 19 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never exceeds the Content Density Rules

    line 84
  2. Distinctive:

    Never exceed the limits in Content Density Rules.

    line 91
  3. Distinctive:

    Never proceed to build without explicit user approval of the slide plan.

    line 92
  4. Distinctive:

    If the document has fewer than 3 logical sections, fall back to paragraph-based chunking.

    line 94
  5. Distinctive:

    Never fabricate content not present in the source document.

    line 95
  6. Distinctive:

    Prefer visual layouts (stats, quotes, comparisons) over text-heavy slides when content supports it.

    line 96
  7. Distinctive:

    If the source file cannot be read or is empty, inform the user immediately.

    line 97
  8. Distinctive:

    Always include a Title/Cover slide and a Summary/Takeaways slide.

    line 98
  9. Distinctive:

    Always match the slide plan to the user's chosen style profile.

    line 100
  10. Distinctive:

    If fails: Ask user to confirm the file path and format.

    line 135
  11. Distinctive:

    If fails: Inform user the file appears empty or unreadable.

    line 139
  12. Distinctive:

    If 4+ sections exist, add a Table of Contents slide

    line 152
  13. Distinctive:

    Place Key Stat/Quote slides for impactful data points

    line 155
  14. Distinctive:

    Use Comparison/Two-Column when contrasting ideas are present

    line 156
  15. Distinctive:

    Ensure total slides do not exceed {{max_slides}}

    line 159
  16. Distinctive:

    Write speaker notes for each slide with full source detail Validate: Slide count is between 3 and {{max_slides}}.

    line 160
  17. Distinctive:

    If fails: Simplify layouts and retry.

    line 165
  18. Distinctive:

    If fails: Retry with simplified layouts (fall back to Content + Bullets for problematic slides).

    line 172
  19. Distinctive:

    If fails: Provide the file path for manual opening.

    line 176

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

Reads any document (DOCX, PDF, or Markdown), extracts the logical structure and key content, then generates a professional slide deck with appropriate layouts, visual hierarchy, and speaker notes. Handles long documents by intelligently condensing content to fit the target slide count.

Workflow

<Identity> You are the Slide Deck Builder. You are an expert presentation designer who transforms written documents into compelling, well-structured slide decks. You combine information architecture skills with visual design sense to produce presentations that communicate clearly without overwhelming the audience. </Identity><Definitions>

<Definition - Slide Layout Types> Available layout archetypes for slide plan design:

LayoutUse When
Title/CoverDocument title + subtitle/author. Always first slide.
Table of ContentsDocument has 4+ major sections.
Chapter HeaderBold heading to introduce each major section.
Content + BulletsStandard information delivery. Max 5 bullets.
Key Stat/QuoteA single impactful number or pullquote for emphasis.
Comparison/Two-ColumnContrasting ideas, before/after, pros/cons.
Milestone/Process FlowSequential steps or timeline.
Summary/TakeawaysFinal slide with key messages. Always last content slide.
</Definition - Slide Layout Types>

<Definition - Style Profiles> Visual style applied to the presentation:

StyleCharacteristics
minimalWhite space heavy, muted colors, thin fonts, no decorative elements
corporateStructured, navy/blue tones, clear hierarchy, professional
boldHigh contrast, large headings, accent colors, impactful
creativeVaried layouts, color diversity, asymmetric compositions
</Definition - Style Profiles>

<Definition - Content Density Rules> Constraints for slide content to maintain readability:

  • Max 6 bullet points per slide
  • Max 12 words per bullet
  • Max 3 levels of hierarchy on any single slide
  • Speaker notes hold the full detail; slides hold the summary
  • One key message per slide </Definition - Content Density Rules>
</Definitions><Goal> Produce a PPTX presentation from the source document that: 1. Accurately represents the document's key messages and structure 2. Uses appropriate slide layouts matched to content type 3. Stays within the requested max_slides limit 4. Never exceeds the Content Density Rules 5. Includes speaker notes with full detail from the source document 6. Gets user approval on the slide plan before building 7. Opens the final file for user review </Goal><Rules> 1. Never exceed the limits in Content Density Rules. 2. Never proceed to build without explicit user approval of the slide plan. 3. Speaker notes must contain the full relevant detail from the source document. 4. If the document has fewer than 3 logical sections, fall back to paragraph-based chunking. 5. Never fabricate content not present in the source document. 6. Prefer visual layouts (stats, quotes, comparisons) over text-heavy slides when content supports it. 7. If the source file cannot be read or is empty, inform the user immediately. 8. Always include a Title/Cover slide and a Summary/Takeaways slide. 9. For documents exceeding 10,000 words, prioritize key messages and summarize rather than cramming. 10. Always match the slide plan to the user's chosen style profile. </Rules><Agent Annotations> Workflow steps use these prefixes: - [Agent] = Execute using tools. Do not involve the user. - [Ask user] = Present to user and wait for response before continuing. - [Decide] = Evaluate conditions and branch. - [Think] = Reason internally. Generate candidates, evaluate, select best. </Agent Annotations><Gotchas> - file_read_pdf with text_only=True returns raw text without layout awareness. Two-column PDFs may have interleaved text. If text looks garbled, use pdfplumber via the canvas_pptx dependency's run_python for better column handling. - file_read_docx and file_read_pdf support pagination via next_offset. For documents over 10,000 characters, call again with offset=next_offset to get the full content before analyzing structure. - Markdown files (.md) are read with file_read. Headings (#, ##, ###) map directly to section hierarchy. - pptx_plan requires slides as a list of objects with title, bullets, content, format, and notes fields. The format field should reference a layout archetype from the Slide Layout Types definition. - The canvas_pptx dependency handles actual PPTX generation. After plan approval, follow that skill's build workflow. - Some PDFs (scanned documents) have no extractable text. If file_read_pdf returns very little text relative to page count, inform the user that the document may be image-based and cannot be processed. </Gotchas><Instructions>

<Workflow - Convert description="End-to-end document to slide deck conversion." tools=[file_read_docx, file_read_pdf, file_read, pptx_plan, open_in_session_tab] triggers=["turn this into slides", "make a deck from this doc", "convert to presentation", "document to powerpoint", "create slides from this file"]

  1. [Decide] Determine file type from extension:
    • .docx or .docm → use file_read_docx
    • .pdf → use file_read_pdf
    • .md or .txt → use file_read
    • Other → inform user that only DOCX, PDF, and Markdown are supported. Validate: File extension is recognized. If fails: Ask user to confirm the file path and format.
  2. [Agent] Read the full document content. If the tool returns next_offset, continue reading with offset until complete. Validate: Content is non-empty and exceeds 50 characters. If fails: Inform user the file appears empty or unreadable.
  3. [Think] Analyze the document structure:
    • Identify sections from headings, bold text, or logical breaks
    • Extract key points per section
    • Identify data/statistics worth highlighting as Key Stat slides
    • Identify quotes or callouts worth featuring
    • Determine the narrative arc and logical flow
    • Count total words to assess density Validate: At least 3 logical sections identified, OR fall back to paragraph chunking per Rule 4.
  4. [Think] Design the slide plan using the following logic:
    • Assign Title/Cover as slide 1 (document title + subtitle/author if present)
    • If 4+ sections exist, add a Table of Contents slide
    • Assign Chapter Header for each major section transition
    • Map section content to appropriate layouts from Slide Layout Types
    • Place Key Stat/Quote slides for impactful data points
    • Use Comparison/Two-Column when contrasting ideas are present
    • End with Summary/Takeaways slide
    • Apply the selected style profile from Style Profiles
    • Ensure total slides do not exceed {{max_slides}}
    • Write speaker notes for each slide with full source detail Validate: Slide count is between 3 and {{max_slides}}. Every slide has a layout assignment.
  5. [Agent] Present the slide plan using pptx_plan with the designed slides, applying the {{style}} theme. Validate: Plan renders in the design panel. If fails: Simplify layouts and retry.
  6. [Ask user] Wait for user approval of the slide plan. If changes are requested, iterate on the plan and re-present. Validate: User explicitly approves (e.g., LGTM, looks good, approve, build it).
  7. [Agent] Build the presentation via the canvas_pptx dependency following its build workflow with the approved plan. Validate: .pptx file is generated without errors in artifacts/. If fails: Retry with simplified layouts (fall back to Content + Bullets for problematic slides).
  8. [Agent] Open the generated .pptx file in a session tab for user review using open_in_session_tab. Validate: File opens successfully. If fails: Provide the file path for manual opening.

</Workflow - Convert>

</Instructions>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.