Slide template

From dtyq/magic · View interactive version

Slide template is an AI agent skill from the GitHub repository dtyq/magic. Browse, select, install, inspect, and apply existing platform slide templates for new presentations. Use when the user wants template options, provides an exact template code, asks to use an installed template for a new presentation, or needs guidance applying a template package. For changing the te

How to use this skill

Skill file

Slide Template

Use existing platform templates to create presentations. This skill does not create or modify template packages.

For an existing HTML slide project that needs its template changed, load slide-template-replacement instead. That skill owns the whole-deck and single-slide replacement workflows.

Responsibility Boundary

Load slide-template-maker instead when the user asks to:

Never call convert_pptx_to_slide_template from this skill.

Template Source

Selection Decision

Install And Inspect

Call install_slides_template through Code Mode:

from sdk.tool import tool

result = tool.call("install_slides_template", {
    "code": template_code
})

installed_directory = result.data["installed_directory"]

After installation:

  1. Read template.json first.
  2. Resolve resources only from template.json.files and template.json.slides.
  3. Read theme.css when present.
  4. Read visual-spec.md when present.
  5. Read representative semantic slide HTML files and only the assets needed by selected pages.
  6. Copy required CSS, pages, fonts, images, SVG files, chart data, and local runtime files into the target presentation project. Never reference the temporary installed directory from generated slides.

Application Modes

Semantic Page-Master Mode

Use page-master-preserving edits when either signal is present:

For these templates:

Component-System Mode

Use this for ordinary templates that are not page-master-derived:

Image Rules

Safety And Output

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.