slide-template

Installs, creates, and converts reusable HTML slide templates for Super Magic presentations.

5.0k|557|Updated May 14, 2025
One-click install
npx skills add https://github.com/dtyq/magic --skill slide-template
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slide-template
Source: https://github.com/dtyq/magic/tree/main/backend/super-magic/agents/skills/slide-template
Command: npx skills add https://github.com/dtyq/magic --skill slide-template

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Creating consistent, on-brand slide decks requires reusable templates, but teams struggle to retrieve platform templates by code, convert existing PPTX files or slide projects into reusable template packages, and enforce a consistent visual system across generated presentations.

Core Features & Use Cases

  • Platform Template Retrieval: Install platform slide templates by exact code via install_slides_template, then read template.json, theme.css, visual-spec.md, and slide HTML to guide deck creation.
  • PPTX-to-Template Conversion: Convert .pptx, .ppt, .potx, .pot, or .ppsx files into refined template packages with sanitization of sensitive content, AI-generated visual specs, and optional final ZIP packaging.
  • Custom & Project-Derived Templates: Generate custom templates from style descriptions or extract reusable layouts from existing Super Magic slide projects, following the template.json schema (schema_version 1.0, PPT-xxxx IDs, 1920x1080 canvas).
  • Use Case: A user uploads a corporate brand-template.pptx and asks to turn it into a reusable platform template; the Skill converts it, sanitizes logos and screenshots with user confirmation, writes a visual spec, and packages a validated template ZIP.

Quick Start

Ask the agent to convert your uploaded PPTX file into a reusable slide template, or provide a platform template code to install and apply it to a new presentation.

Frequently Asked Questions about slide-template

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a PPTX file into a reusable slide template?

Provide the .pptx, .ppt, .potx, .pot, or .ppsx file and ask for conversion. The Skill calls convert_pptx_to_slide_template, then refines the draft by writing a visual-spec.md, sanitizing sensitive content, and validating template.json before optionally packaging a final ZIP.

How do I use a platform slide template by code?

Provide the exact template code from the platform template list. The Skill calls install_slides_template with that code, reads template.json from the installed directory, then loads theme.css, visual-spec.md, and slide HTML files to guide deck creation.

Can I extract a template from an existing Super Magic slide project?

Yes, if the project directory contains magic.project.js with type set to slide. The Skill analyzes layout families, deduplicates repeated pages into representative layouts, sanitizes sensitive content, and creates a standalone draft template folder without modifying the source project.

What happens to logos and screenshots when converting a PPTX template?

Obvious sensitive text is always replaced with neutral content. Ambiguous assets like logos, QR codes, screenshots, and real-person photos require explicit user confirmation via ask_user before being kept; unconfirmed assets are replaced or removed before final packaging.

What is the difference between PPTX-derived and original templates?

PPTX-derived templates have source.kind set to converted with a PPT-family source file, and are reused through template-preserving edits that clone source page HTML and replace only mapped slots. Original templates are used as style and component references without cloning pages.

What metadata format does a slide template require?

Templates require a template.json with schema_version 1.0, a PPT-xxxx template_id, bilingual label and description, files pointing to theme.css and slide/image directories, a slides index with file/title/layout/description, and a source object with a fixed 1920x1080 canvas.