24111999/claude-skills / slide-studio
slide-studio
UnverifiedCreate and modify PowerPoint presentations (PPTX) through direct XML manipulation. Use this skill when: (1) Creating presentations from scratch, (2) Adding/editing/deleting slides, (3) Inserting images or custom shapes, (4) Applying POTX templates for consistent branding, (5) Editing existing PPTX files, (6) Working with slide layouts and placeholders, (7) User asks to make a "presentation", "slides", "deck", or mentions ".pptx". Supports all 11 standard Office slide layouts.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.3 KB |
| assets/base.pptx | binary | 17.6 KB |
| assets/claude-skills-v1.5.zip | binary | 1.3 MB |
| package-lock.json | manifest | 4.5 KB |
| package.json | manifest | 422 B |
| references/ooxml-reference.md | markdown | 4.5 KB |
| references/slide-patterns.md | markdown | 5.2 KB |
| scripts/add-image.js | script | 7.0 KB |
| scripts/add-shape.js | script | 7.9 KB |
| scripts/add-slide.js | script | 9.2 KB |
| scripts/apply-potx.js | script | 9.0 KB |
| scripts/clone-slide.js | script | 5.3 KB |
| scripts/create-base.js | script | 16.0 KB |
| scripts/delete-slide.js | script | 3.2 KB |
| scripts/edit-text.js | script | 5.8 KB |
| scripts/generate-base.js | script | 24.7 KB |
| scripts/lib/constants.js | script | 3.2 KB |
| scripts/lib/content-types.js | script | 3.8 KB |
| scripts/lib/relationships.js | script | 3.9 KB |
| scripts/lib/xml-utils.js | script | 4.6 KB |
| scripts/list-layouts.js | script | 2.2 KB |
| scripts/list-slides.js | script | 3.4 KB |
| scripts/pack.js | script | 3.0 KB |
| scripts/skills_claude_poetship.zip | binary | 498.2 KB |
| scripts/unpack.js | script | 1.6 KB |
| scripts/visualize-slide.js | script | 6.0 KB |
references/ooxml-reference.md
View on GitHub# OOXML/PresentationML Reference
## PPTX Structure
PPTX is a ZIP archive containing XML files:
```
presentation.pptx/
├── [Content_Types].xml # Content type definitions
├── _rels/.rels # Root relationships
├── ppt/
│ ├── presentation.xml # Main presentation
│ ├── _rels/presentation.xml.rels
│ ├── slides/
│ │ ├── slide1.xml
│ │ └── _rels/slide1.xml.rels
│ ├── slideLayouts/
│ ├── slideMasters/
│ └── theme/
└── docProps/
├── core.xml
└── app.xml
```
## XML Namespaces
```
p: http://schemas.openxmlformats.org/presentationml/2006/main
a: http://schemas.openxmlformats.org/drawingml/2006/main
r: http://schemas.openxmlformats.org/officeDocument/2006/relationships
```
## EMU (English Metric Units)
- 914400 EMU = 1 inch
- 360000 EMU = 1 cm
- 12700 EMU = 1 point
- 9525 EMU = 1 pixel (at 96 DPI)
Standard slide size (4:3): 9144000 x 6858000 EMU (10" x 7.5")
## Relationship Types
| Type | URI |
|------|-----|
| slide | `http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide` |
| slideLayout | `http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout` |
| slideMaster | `http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster` |
| theme | `http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme` |
| image | `http://schemas.openxmlformats.org/officeDocument/2006/relationships/image` |
## Content Types
| Part | Content Type |
|------|--------------|
| presentation | `application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml` |
| slide | `application/vnd.openxmlformats-officedocument.presentationml.slide+xml` |
| slideLayout | `application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml` |
| slideMaster | `application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml` |
| theme | `application/vnd.openxmlformats-officedocument.theme+xml` |
## Placeholder Types
| Type | Description |
|------|-------------|
| title | Standard title |
| ctrTitle | Centered title (title slide) |
| subTitle | Subtitle |
| body | Body text |
| dt | Date/time |
| ftr | Footer |
| sldNum | Slide number |
| pic | Picture placeholder |
| tbl | Table placeholder |
| chart | Chart placeholder |
## Adding a Slide
1. Create `ppt/slides/slideN.xml`
2. Create `ppt/slides/_rels/slideN.xml.rels` (link to layout)
3. Add relationship in `ppt/_rels/presentation.xml.rels`
4. Add `<p:sldId>` to `ppt/presentation.xml`
5. Add Override in `[Content_Types].xml`
## Shape Structure
```xml
<p:sp>
<p:nvSpPr>
<p:cNvPr id="2" name="Title 1"/>
<p:cNvSpPr/>
<p:nvPr>
<p:ph type="title"/>
</p:nvPr>
</p:nvSpPr>
<p:spPr>
<a:xfrm>
<a:off x="457200" y="274638"/>
<a:ext cx="8229600" cy="1143000"/>
</a:xfrm>
</p:spPr>
<p:txBody>
<a:bodyPr/>
<a:lstStyle/>
<a:p>
<a:r>
<a:rPr lang="en-US"/>
<a:t>Text content</a:t>
</a:r>
</a:p>
</p:txBody>
</p:sp>
```
## Image Structure
```xml
<p:pic>
<p:nvPicPr>
<p:cNvPr id="4" name="Picture 1"/>
<p:cNvPicPr>
<a:picLocks noChangeAspect="1"/>
</p:cNvPicPr>
<p:nvPr/>
</p:nvPicPr>
<p:blipFill>
<a:blip r:embed="rId2"/>
<a:stretch><a:fillRect/></a:stretch>
</p:blipFill>
<p:spPr>
<a:xfrm>
<a:off x="1000000" y="1000000"/>
<a:ext cx="3000000" cy="2000000"/>
</a:xfrm>
<a:prstGeom prst="rect"><a:avLst/></a:prstGeom>
</p:spPr>
</p:pic>
```
## Text Formatting
```xml
<!-- Bold -->
<a:rPr b="1"/>
<!-- Italic -->
<a:rPr i="1"/>
<!-- Underline -->
<a:rPr u="sng"/>
<!-- Font size (in hundredths of a point) -->
<a:rPr sz="2400"/> <!-- 24pt -->
<!-- Font color -->
<a:rPr>
<a:solidFill>
<a:srgbClr val="FF0000"/>
</a:solidFill>
</a:rPr>
```
## Bullet Lists
```xml
<a:p>
<a:pPr lvl="0">
<a:buChar char="•"/>
</a:pPr>
<a:r><a:t>First item</a:t></a:r>
</a:p>
<a:p>
<a:pPr lvl="1">
<a:buChar char="–"/>
</a:pPr>
<a:r><a:t>Sub-item</a:t></a:r>
</a:p>
```
## Common Errors
| Error | Cause | Fix |
|-------|-------|-----|
| "Unreadable content" | Missing Content_Types entry | Add Override for the part |
| Slide not showing | Missing sldId in presentation.xml | Add sldId with correct r:id |
| Image not displaying | Missing relationship | Add relationship in slide .rels |
| Layout not applied | Wrong slideLayout reference | Fix Target in slide .rels |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |