dtyq/magic/creating-slides

Claude Code and agent skill by dtyq/magic

Trust tier 2
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Slide/PPT creation skill that provides complete slide creation, editing, and management capabilities. Use when users need to create slides, make presentations, edit slide content, configure slide transitions, or manage slide projects. CRITICAL - When user message contains [@slide_project:...] mention, you MUST load this skill first before any operations.

Install

npx vskill@latest install dtyq/magic/creating-slides

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as dtyq/magic/creating-slides.

Creating Slides Skill

Provides complete HTML slide creation capabilities, including project creation, content design, technical specifications, workflows, and best practices.

Core Capabilities

  • Project Creation - Create complete slide project structure
  • Page Creation - Create slide pages conforming to specifications
  • Content Research - Obtain reference materials and data
  • Image Search - Batch search high-quality image materials
  • Data Analysis - Support Python scripts for data analysis and processing
  • Project Management - Support editing, refactoring, moving, and renaming slide projects

Code Execution Method (Critical)

All Python code examples in this skill must be executed via the `run_sdk_snippet` tool in Agent environment.

create_slide_project and create_slide are Code Mode only. Call them with sdk.tool.call, never as directly mounted tools. Before executing, read slide tool contracts for overwrite behavior, notes, page registration, and the difference between a saved file and successful layout QA.

Correct example:

python
# Correct! Must use run_sdk_snippet to execute
run_sdk_snippet(
python_code="""
from sdk.tool import tool
result = tool.call('create_slide_project', {
"project_path": "my-project",
"slides_array": []
})
"""
)

All code blocks in this document starting with from sdk.tool import tool follow this rule: pass them via the python_code parameter of run_sdk_snippet for execution.


Default Requirements

When user has no explicit requirements, follow these defaults:

  • Page count: Determine appropriate page count based on content, each page ≤100 lines of code
  • Content density: One key point per page, text ≤150 words, images ≤1
  • Slide mindset: 1920×1080 fixed canvas, prioritize horizontal layout, avoid vertical overflow
  • Business minimalist style, follow font size specifications, Tailwind mandatory priority

In-slide builds

When the user requests click-controlled reveals, read in-page-builds.md. Builds are optional and never required: the default is no builds. Only when several substantial content blocks on a page are best presented one at a time may you consider adding them yourself, or offer them to the user, following the "Proactive use" section there (which also covers remembering the user's habit). Use only its declarative element attributes; keep HTML static and preserve the existing slide creation/editing workflow. Proactive builds must follow its "Proactive use" rules: original element animations take priority, attributes must be exactly as documented, and the user is told what was added. Never promise native PowerPoint animations.

Slide transitions

When the user requests page transitions, read slide-transitions.md and the current magic.project.js, then call update_slide_transitions through sdk.tool.call inside run_sdk_snippet (Code Mode only). Collect default and page settings in one operations batch and save once. An unknown outcome requires rereading before further writes to that configuration. Keep slide HTML static. Do not add transitions without a request. Preserve existing settings, including explicit none, during content editing, template replacement, and regeneration. These settings apply to the online player; do not promise native PowerPoint transitions or standalone index.html playback.

Technical Specifications

Size and Implementation
  • Fixed size: 1920px×1080px, strictly no overflow, width and height must be explicitly set in html and body tags
  • Implementation: HTML + CSS + JavaScript
  • Static fixed page: Same effect on any device size, no adaptation, responsive design prohibited
  • Must include <script src="slide-bridge.js"></script> at bottom of page for inter-page communication
Speaker notes contract

Every generated slide must contain one inert speaker-notes block outside the visual slide DOM:

html
<template data-magic-slide-notes data-format="plain-text" data-version="1">
Speaker notes for this page.
</template>

Generate concise, presentation-ready notes from the page purpose, visible content, audience, and narrative flow. Keep the block outside the rendered canvas. When editing an existing slide, preserve the block and update it whenever the page's message changes. Do not place speaker notes in visible slide elements or remove an existing block unless the user explicitly asks to clear it.

Inter-slide Links
  • Use a normal <a> element with a path relative to the current slide HTML file's directory. For example, when the current page is slides/slide-1.html, use <a href="slide-2.html">查看第二页</a>; use ../ when crossing directories.
  • The target file must exist in magic.project.js's slides array. Do not use page numbers, display titles, hash conventions, custom routes, or absolute local paths.
  • Do not add custom postMessage, iframe manipulation, or navigation code for same-deck links; the PPT runtime handles ordinary links specially.
  • Keep links to other projects, ordinary HTML documents, and external websites as normal relative paths or full URLs.
CSS Frameworks and Resources
  • TailwindCSS: https://cdn.tailwindcss.com/3.4.17 (required, note: this CDN uses JIT browser compilation mode, returns JS code, use <script> tag)
  • FontAwesome: https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css (required)
  • Google Fonts: https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap (required)
  • ECharts: https://cdnjs.cloudflare.com/ajax/libs/echarts/5.6.0/echarts.min.js (use when necessary)
Technical Constraints
  • File generation: Only generate static HTML files
  • Responsive design prohibited: Strictly no media queries, pages don't change with screen size
  • Content overload prohibited: Avoid excessively long text, too many list items, oversized images; split into multiple pages when single page has too much content
  • Dynamic effects prohibited: Page switching controlled by outer system, single pages focus on static display; disable in-page transitions, keyframes, dynamic data display animations; declarative click builds are allowed when requested, or proactively under the conservative rules in creating-slides/references/in-page-builds.md; disable sound effects, only keep static visuals (CSS hover, shadows, gradients, borders and other style effects can be used normally)
  • Don't use server-side code, local file resources, complex interactive features
  • Unless user requests, don't use unverified external images
  • JavaScript code inline at `<body>` bottom, CSS inline in `<head>`, SVG graphics inline directly
  • Chart implementation: Charts, dashboards and any ECharts-supported content must use ECharts implementation, prohibited to write HTML, CSS, SVG code yourself
Tailwind Mandatory Specification
  • Maximize use of Tailwind classes: Layout flex/grid, spacing p-_/m-_, font size text-_, colors text-_/bg-_, decoration rounded-_/shadow-\*, etc.
  • Minimize custom CSS: Limited to complex gradients, pseudo-elements and other scenarios Tailwind cannot implement
Font Size Specification (1920×1080 canvas requires large fonts)
  • Page main title: 64-72px (text-6xl/7xl) - Prefer 64px and above
  • Section title/Card main title: 40-52px (text-5xl) - Don't go below 40px
  • Subtitle/Card subtitle: 30-36px (text-3xl/4xl) - Prefer 32px and above
  • Body text/List item: 22-26px (text-2xl) - Minimum 22px, prefer 24px
  • Auxiliary label: 20px (text-xl) - Only for tiny labels
  • Strictly prohibit 18px (text-lg) and below, unless user explicitly requires
  • Principle: Prefer large fonts with less content split into more pages, not small fonts cramming into one page
Visual Hierarchy

Font size contrast (main title differs from body by 3-4 levels) + weight contrast (title font-bold/black) + color contrast (title text-gray-900, body text-gray-600/700) + spatial contrast (important elements mb-8/10/12) + decorative elements (number labels, color blocks, vertical bars)


Design Principles

Content Design Mindset
  • One key point per page: Each slide conveys only one core message, maintain focused attention
  • Information hierarchy: Establish clear information hierarchy through font size, color depth, spatial position, create depth through shadows and transforms
  • Visual expression: Use FontAwesome or Emoji icons to enhance visual expression
Image Requirements
  • Image ratio: 70% of slides must contain high-quality images, e.g., 7 out of 10 slides must contain images
  • When an image is the main visual anchor, make it part of the layout rather than a tiny corner illustration. It should usually occupy about one third to one half of the main content area.
  • Slides without images still need a strong visual anchor, such as a chart, matrix, color block, large number, geometric decoration, card grid, or flow diagram. Avoid pages with only a title and sparse body text.
  • Search keywords: Must contain at least one subject keyword, prohibited to use abstract, general, non-specific keywords
  • Search format: [Subject keyword] [Specific scene description]
  • Extract at least 1-3 subject keywords related to slide content
  • Keyword examples:
  • Correct: "IShowSpeed China tour Beijing Great Wall" Wrong: "Beijing Great Wall"
  • Correct: "Elon Musk portrait" Wrong: "Tech giant portrait"
  • Correct: "Zuckerberg astronomical talent poaching" (specific event) Wrong: "AI talent competition" (abstract, general, non-specific)
  • Prohibited to use placeholder images, must use high-quality images returned by image_search tool
Design Style

Default style: Minimalist business style

  • Primary colors: Black/white/gray (text-gray-\*)
  • Accent colors: Orange/red/green/blue (max 1-2 per page)
  • Background: Mainly white/light gray, dark background for contrast
  • Prohibited: Excessive use of blue, purple, gradients

Style selection: Based on content theme and target audience, derive from minimalist business style, imitate popular PPT design styles including but not limited to:

  • Tech: Apple Keynote, Google Material Design, Microsoft Fluent Design
  • Business: McKinsey Consulting, Huawei Enterprise, Alibaba Enterprise
  • Consumer brands: Xiaomi, Netflix, Nike
  • Design-driven: Minimalism, Flat Design
  • Media publishing: TED Talks, National Geographic
  • Education academia: Stanford University, MIT
Layout Design Core Principles
  • Precise zoning planning: Precise zoning planning based on 1920×1080 canvas
  • Priority layout modes: Single column centered, left-right split, three-point grid, standard three-section, card-style, timeline (only horizontal timeline allowed), comparison split-screen and dashboard classic PPT layout modes
  • Especially recommend left-right split layout (like 60/40 or 50/50), fully utilize horizontal space, avoid vertical stacking causing height overflow
  • Zoning planning:
  • Header area: Fixed height about 10% (like h-24)
  • Middle content area: Occupies main space, can flexibly divide into 2×2, 3×3 grid, max 9-grid
  • Footer area: Fixed height about 5% (below h-16), images not allowed
  • Horizontal division: Max 6 columns per row, avoid overly fragmented division causing content crowding
  • Vertical infinite extension prohibited: Maximize horizontal space use, e.g., horizontal timeline not vertical timeline

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4,820
Repository forks
522
7-day trend score
42

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 15 May 2026, 6 months ago.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dtyq/magic/creating-slides/badge)](https://verified-skill.com/skills/dtyq/magic/creating-slides)

Something wrong with this skill or its page? Tell us.