agentleFS
echoleesongecholeesong/claude-skills-plugin/skills/md-to-pptx/SKILL.md

md-to-pptx

Skill4 starsChanged 5 months agoMITView on GitHub

Convert Markdown documents to PowerPoint presentations or generate presentations from scratch using AI. Use when users want to create PPT/PPTX files, convert MD to slides, generate presentations, make slideshows, or ask for help with PowerPoint creation. Supports custom templates, multiple themes (business, tech_dark, education, neumorphism), and intelligent content layout.

  • Installs packages

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Note: Use python3 instead of python on systems where Python 3 is not the default.

    line 18
  2. Distinctive:

    IMPORTANT: Before generating any content, you MUST ask the user the following questions using the AskUserQuestion tool:

    line 24
  3. Distinctive:

    Source: Do you have an existing Markdown file, or should I generate content?

    line 45
  4. Distinctive:

    Use the answers to guide content generation:

    line 48
  5. Distinctive:

    Read the Markdown file

    line 57
  6. Distinctive:

    Create an outline based on user's topic

    line 62
  7. Distinctive:

    Run the conversion script:

    line 69
  8. Very specific:

    Place custom .pptx templates in assets/templates/ or specify path with --template:

    line 132
  9. Distinctive:

    All warnings are collected and reported at the end

    line 159
  10. Distinctive:

    Ask: Theme preference? Save location?

    line 195
  11. Distinctive:

    Run conversion script with chosen options

    line 199

≈ “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

md-to-pptx

Convert Markdown to PowerPoint or generate presentations with AI assistance.

Dependencies

Install required packages before use:

pip install python-pptx Pillow

Note: Use python3 instead of python on systems where Python 3 is not the default.

Workflow

Step 1: Gather Requirements

IMPORTANT: Before generating any content, you MUST ask the user the following questions using the AskUserQuestion tool:

  1. PPT页数 (Slide Count): 您希望PPT包含多少页?
    • Options: 5-10页, 10-15页, 15-20页, 20页以上
  2. 面向用户群体 (Target Audience): 这个PPT的目标受众是谁?
    • Options: 企业高管/决策者, 技术团队/开发者, 学生/教育场景, 普通大众/客户
  3. PPT演示场景 (Presentation Context): 这个PPT将在什么场景下使用?
    • Options: 商务汇报/会议, 产品发布/路演, 培训/教学, 学术报告/研究分享
  4. PPT模板选择 (Template Selection): 是否使用已有的PPT模板?
    • Options:
      • business (商务风格 - 白色背景,深蓝标题)
      • tech_dark (科技风格 - 深色背景,绿色点缀)
      • education (教育风格 - 暖色背景,橙色点缀)
      • neumorphism (新拟态风格 - 蓝黄色现代风格)
      • 不使用模板/自定义

Additional questions to ask:

  1. Source: Do you have an existing Markdown file, or should I generate content?
  2. Save location: Where to save the PPT? (default: user's current working directory)

Use the answers to guide content generation:

  • Slide Count: Determines the depth and detail of content
  • Target Audience: Affects language complexity, terminology, and examples
  • Presentation Context: Influences tone, structure, and visual style
  • Template: Sets the visual theme for the presentation

Step 2: Determine Approach

If converting existing Markdown:

  1. Read the Markdown file
  2. Parse content into slides (H1/H2 headings create new slides)
  3. Generate PPTX with appropriate layouts

If generating new content:

  1. Create an outline based on user's topic
  2. Present outline for user approval
  3. Generate full Markdown content
  4. Convert to PPTX

Step 3: Generate Presentation

Run the conversion script:

python scripts/md_to_pptx.py input.md -o output.pptx --theme business

Command Line Options

python scripts/md_to_pptx.py <input.md> [options]

Options:
  -o, --output      Output filename (default: input name + .pptx)
  -d, --directory   Output directory (default: user's current directory)
  -t, --theme       Theme: business, tech_dark, education, neumorphism
  --template        Path to custom .pptx template
  --no-template     Generate without using built-in template
  -q, --quiet       Suppress progress output
  --list-themes     Show available themes
  --list-templates  Show template locations

Examples

# Save to current directory (default)
python scripts/md_to_pptx.py presentation.md

# Specify output filename
python scripts/md_to_pptx.py presentation.md -o slides.pptx

# Save to Desktop
python scripts/md_to_pptx.py presentation.md -d ~/Desktop

# Use tech dark theme
python scripts/md_to_pptx.py presentation.md --theme tech_dark

# Use neumorphism theme
python scripts/md_to_pptx.py presentation.md --theme neumorphism

# Use custom template
python scripts/md_to_pptx.py presentation.md --template company.pptx

# Show available themes
python scripts/md_to_pptx.py --list-themes

# Show template locations
python scripts/md_to_pptx.py --list-templates

Built-in Templates

Four pre-built templates are included in assets/templates/:

TemplateFileDescription
businessbusiness_template.pptxWhite background, dark blue titles, professional
tech_darktech_dark_template.pptxDark gray background, green accents, developer-friendly
educationeducation_template.pptxWarm cream background, orange accents, approachable
neumorphism蓝黄色新拟态行业调研报告PPT模板.pptxBlue-yellow neumorphism style, modern research report

Custom Templates

Place custom .pptx templates in assets/templates/ or specify path with --template:

# Use template from assets/templates/
python scripts/md_to_pptx.py input.md --template assets/templates/my_company.pptx

# Use template from any location
python scripts/md_to_pptx.py input.md --template /path/to/custom.pptx

To regenerate built-in templates:

python scripts/generate_templates.py -o assets/templates

Markdown Format

Key rules: # H1 creates title slide, ## H2 creates content slides, ### H3+ stays on current slide.

For detailed format reference including supported elements, image handling, and layout selection, see references/markdown-format.md.

Error Handling

The generator uses fault-tolerant mode:

  • Unsupported elements are skipped with warnings
  • Missing images show placeholder text
  • Malformed tables fall back to text
  • All warnings are collected and reported at the end

Progress Feedback

The script reports progress per slide:

📄 Reading: presentation.md
📊 Parsed 6 slides
📋 Using built-in template: tech_dark_template.pptx
[████████░░░░░░░░░░░░░░░░░░░░░░] 3/6 - Generating slide 3: Introduction...
✅ Created: /path/to/output.pptx

Python API

from scripts.md_to_pptx import convert_md_to_pptx, generate_from_content

# Convert file
success, output_path, warnings = convert_md_to_pptx(
    "presentation.md",
    output_path="slides.pptx",
    theme="business"
)

# Generate from content string
success, warnings = generate_from_content(
    "# My Title\n\n## Slide 1\nContent here",
    "output.pptx",
    theme="tech_dark"
)

Typical Interaction Flow

  1. User: "Help me create a presentation about X"
  2. Ask: Theme preference? Save location?
  3. Generate outline, present for approval
  4. User approves or requests changes
  5. Generate full Markdown content
  6. Run conversion script with chosen options
  7. Report: Created X slides, saved to Y, any warnings

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.