Markdown slides

From jykim/claude-obsidian-skills · View interactive version

Markdown slides is an AI agent skill from the GitHub repository jykim/claude-obsidian-skills. Create presentation slides in Markdown format (Deckset/Marp compatible). Use when user requests to create slides, presentations, or convert documents to slide format. Handles image positioning, speaker notes, and proper formatting.

How to use this skill

Skill file

Markdown Slides Skill

Convert content to presentation slides in Markdown format compatible with Deckset and Marp presentation tools.

When to Use This Skill

Activate this skill when the user:

Input Requirements

Output Specifications

Main Process

Step 1: Slide Structure Setup

Objective: Create logical slide divisions with proper hierarchy

Actions:

  1. Read and analyze source content structure
  2. Insert slide dividers (---) at logical breaks:
  1. Maintain content hierarchy:
  1. Preserve original organization and flow
  2. Add optional frontmatter: slidenumbers: true

Example:

slidenumbers: true
# 1. Section Title ๐ŸŽฏ

![](section-background.png)

^ Introduction to this section.

---

## Main Topic ๐Ÿ“Š

Content here...

---

### Detailed Subtopic

More details...

Step 2: Image Format Conversion

Objective: Convert images to Deckset format with proper positioning

Critical Requirements:

โš ๏ธ MUST resolve relative paths per-image basis

โš ๏ธ MUST URL-encode spaces and escape special characters

โš ๏ธ MUST verify image files exist

Image Position Formats:

| Format | Usage | Example |

|--------|-------|---------|

| ![]() | Section intro backgrounds | ![](background.png) |

| ![inline]() | Diagrams within text flow | ![inline](diagram.svg) |

| ![right fit]() | PRIMARY: Content slides | ![right fit](chart.png) |

| ![right 80%]() | Specific sizing needed | ![right 80%](image.png) |

| ![inline fill]() | Full-width inline | ![inline fill](wide.png) |

Actions:

  1. Identify all image references in source
  2. For each image:

```

a. Determine appropriate position format

b. Resolve relative path from slide file location

c. URL-encode spaces: " " โ†’ "%20"

d. Escape parentheses: "(" โ†’ "%28", ")" โ†’ "%29"

e. Verify file exists at resolved path

f. Use original images when available

g. Copy missing images to _files_/ directory

```

  1. Apply positioning based on context:

Examples:

# Section Title
![](background-image.png)

---

## Content Slide
Key points here:
- Point 1
- Point 2

![right fit](diagram.png)

---

## Inline Diagram
Text before diagram.

![inline](process-flow.svg)

Text after diagram.

Step 3: Speaker Notes Conversion

Objective: Convert appropriate content to speaker notes

Format: Lines starting with ^ (caret + space)

Placement: At the end of each slide

Convert to speaker notes:

โœ… Multi-sentence paragraphs

โœ… Explanatory text

โœ… Additional context

โœ… Talking points

DO NOT convert:

โŒ Single-sentence paragraphs

โŒ Lists (bullet or numbered)

โŒ Block quotes

โŒ Sentences ending with colon (:)

โŒ Headers (H1, H2, H3)

โŒ Table content

For Marp platform: Use HTML comments instead

<!-- This is a speaker note for Marp -->

Examples:

## Slide Title

Main content visible to audience.

^ This paragraph becomes a speaker note because it's multi-sentence explanatory text. It provides context that the speaker needs but the audience doesn't need to read on the slide.

---

## Another Slide

- Bullet points stay visible
- Not converted to notes

^ Additional speaking points go here.

Step 4: Content Enhancement

Objective: Polish the presentation for maximum impact

Actions:

  1. Add emojis to section and slide titles:
  1. Clean up comments:
  1. Ensure clean format:
  1. Add frontmatter (if requested):

```markdown

slidenumbers: true

```

  1. Final review:

Critical Guidelines

Image Handling

โš ๏ธ CRITICAL RULES:

  1. NEVER invent images - Only reference images that exist in the source document or _files_/ folder. Do NOT create placeholder references like background-xxx.png for images that don't exist.
  2. Use original images from source when available
  3. Copy missing images to _files_/ directory rather than substituting
  4. Resolve paths per-image - don't assume same directory
  5. URL-encode spaces: my file.png โ†’ my%20file.png
  6. Escape special characters:
  1. Verify existence before referencing - run ls or glob to confirm file exists
  2. Maintain semantic relevance - image should match slide content
  3. Section intros without images are OK - If no background image exists for a section intro slide, just use the title and speaker notes without an image reference

Image Position Standards

Decision tree for image positioning:

Is it a section intro slide with just title?
  โ†’ Does a background image exist?
    โ†’ YES: Use ![]() for full background
    โ†’ NO: Skip image, use title + speaker notes only

Is it a diagram embedded in flowing text?
  โ†’ YES: Use ![inline]() or ![inline fill]()

Is it the main visual for the slide with bullet points?
  โ†’ YES: Use ![right fit]() โญ PRIMARY FORMAT

Does it need specific sizing?
  โ†’ YES: Use ![right 80%]() or other percentage

Speaker Notes Rules

When to convert to speaker notes:

When NOT to convert:

Format:

Slide content here.

^ Speaker note paragraph one. Can be multiple sentences providing context.

^ Speaker note paragraph two. Each note paragraph gets its own ^ prefix.

Content Standards

  1. File Naming:
  1. Emoji Usage:
  1. Hierarchy:
  1. Slide Breaks:

Platform-Specific Notes

Deckset (Default)

Format:

Features:

Example Frontmatter:

slidenumbers: true
autoscale: true
theme: Plain Jane, 3

Marp (Optional)

Format:

Conversion for Marp:

---
marp: true
paginate: true
---

<!-- This is a speaker note in Marp -->

Differences:

Quality Checklist

Before marking task complete, verify:

Error Handling

Missing Images

Problem: Source references image that doesn't exist

Solution:

  1. Check source _files_/ directory
  2. Check parent directory _files_/
  3. Search for image by name in project
  4. If found: Copy to presentation _files_/ directory
  5. If not found: Note in speaker notes and skip image

Broken Relative Paths

Problem: Path doesn't resolve correctly

Solution:

  1. Determine slide file location
  2. Calculate relative path from slide to image
  3. Test path resolution
  4. URL-encode the working path

Invalid Characters in Paths

Problem: Special characters break image links

Solution:

Tips for Best Results

  1. Start with outline: Create clear section and slide structure first
  2. One idea per slide: Each slide should have single clear message
  3. Visual hierarchy: Use H1 for sections, H2 for slides, H3 for sub-points
  4. Image positioning: Default to ![right fit]() for content slides
  5. Speaker notes: Add context that helps speaker but clutters slide
  6. Emoji consistency: Use similar emojis for similar concepts
  7. Test in Deckset: Preview the slides to verify formatting
  8. Iterate: First pass for structure, second for polish
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.