Skill Tracer
Skills › Financial Services › ppt-template-creator

ppt-template-creator

skill · 254 lines · Apache-2.0 · plugins/vertical-plugins/financial-analysis/skills/ppt-template-creator/SKILL.md

The facts

Its description

Creates self-contained PPT template SKILLS (not presentations) from user-provided PowerPoint templates. Use ONLY when a user wants to create a reusable skill from their template. For creating actual presentations, use the pptx skill instead.

The description the agent reads to decide when to use it.

From its settingsline 3

When it starts

The agent picks this skill only when a person wants to turn their own PowerPoint template (.pptx or .potx) into a reusable skill that can generate presentations later, not when they just want a presentation made.

Things a person might say (the model's guesses)

  • “I have our company's PowerPoint template — can you turn it into a reusable skill?”
  • “Make a skill out of this .potx file so we can generate branded decks from it”
  • “I want to package our board deck template as a skill I can reuse”

A model's summary of when it is used.

A model's reading

What it leads to

Other skills this one hands off to, calls, requires or offers instead, as a model read them.

A model's reading

Names skills outside this collection

Skills the text names that are not in this collection, as a model read them.

A model's reading

Licence

Apache-2.0, from LICENSE

The terms its author shares it under, which let it be shown here.

From the repositorylicence text

The text

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1---
2name: ppt-template-creator
3description: Creates self-contained PPT template SKILLS (not presentations) from user-provided PowerPoint templates. Use ONLY when a user wants to create a reusable skill from their template. For creating actual presentations, use the pptx skill instead.
4---
5
6# PPT Template Creator
7
8**This skill creates SKILLS, not presentations.** Use this when a user wants to turn their PowerPoint template into a reusable skill that can generate presentations later. If the user just wants to create a presentation, use the `pptx` skill instead.
9
10The generated skill includes:
11- `assets/template.pptx` - the template file
12- `SKILL.md` - complete instructions (no reference to this meta skill needed)
14**For general skill-building best practices**, refer to the `skill-creator` skill. This skill focuses on PPT-specific patterns.

PPT Template Creator

This skill creates SKILLS, not presentations. Use this when a user wants to turn their PowerPoint template into a reusable skill that can generate presentations later. If the user just wants to create a presentation, use the pptx skill instead.

The generated skill includes:

  • assets/template.pptx - the template file
  • SKILL.md - complete instructions (no reference to this meta skill needed)

For general skill-building best practices, refer to the skill-creator skill. This skill focuses on PPT-specific patterns.

Raw lines 1 to 15
Names a skill skill-creator :14
16## Workflow
181. **User provides template** (.pptx or .potx)
192. **Analyze template** - extract layouts, placeholders, dimensions
203. **Initialize skill** - use the `skill-creator` skill to set up the skill structure
214. **Add template** - copy .pptx to `assets/template.pptx`
225. **Write SKILL.md** - follow template below with PPT-specific details
236. **Create example** - generate sample presentation to validate
247. **Package** - use the `skill-creator` skill to package into a .skill file

Workflow

  1. User provides template (.pptx or .potx)
  2. Analyze template - extract layouts, placeholders, dimensions
  3. Initialize skill - use the skill-creator skill to set up the skill structure
  4. Add template - copy .pptx to assets/template.pptx
  5. Write SKILL.md - follow template below with PPT-specific details
  6. Create example - generate sample presentation to validate
  7. Package - use the skill-creator skill to package into a .skill file
Raw lines 16 to 25
Names a skill skill-creator :20
26## Step 2: Analyze Template
28**CRITICAL: Extract precise placeholder positions** - this determines content area boundaries.
30```python
31from pptx import Presentation
33prs = Presentation(template_path)
34print(f"Dimensions: {prs.slide_width/914400:.2f}\" x {prs.slide_height/914400:.2f}\"")
35print(f"Layouts: {len(prs.slide_layouts)}")
37for idx, layout in enumerate(prs.slide_layouts):
38 print(f"\n[{idx}] {layout.name}:")
39 for ph in layout.placeholders:
40 try:
41 ph_idx = ph.placeholder_format.idx
42 ph_type = ph.placeholder_format.type
43 # IMPORTANT: Extract exact positions in inches
44 left = ph.left / 914400
45 top = ph.top / 914400
46 width = ph.width / 914400
47 height = ph.height / 914400
48 print(f" idx={ph_idx}, type={ph_type}")
49 print(f" x={left:.2f}\", y={top:.2f}\", w={width:.2f}\", h={height:.2f}\"")
50 except:
51 pass
52```
54**Key measurements to document:**
55- **Title position**: Where does the title placeholder sit?
56- **Subtitle/description**: Where is the subtitle line?
57- **Footer placeholders**: Where do footers/sources appear?
58- **Content area**: The space BETWEEN subtitle and footer is your content area

Step 2: Analyze Template

CRITICAL: Extract precise placeholder positions - this determines content area boundaries.

from pptx import Presentation

prs = Presentation(template_path)
print(f"Dimensions: {prs.slide_width/914400:.2f}\" x {prs.slide_height/914400:.2f}\"")
print(f"Layouts: {len(prs.slide_layouts)}")

for idx, layout in enumerate(prs.slide_layouts):
    print(f"\n[{idx}] {layout.name}:")
    for ph in layout.placeholders:
        try:
            ph_idx = ph.placeholder_format.idx
            ph_type = ph.placeholder_format.type
            # IMPORTANT: Extract exact positions in inches
            left = ph.left / 914400
            top = ph.top / 914400
            width = ph.width / 914400
            height = ph.height / 914400
            print(f"    idx={ph_idx}, type={ph_type}")
            print(f"        x={left:.2f}\", y={top:.2f}\", w={width:.2f}\", h={height:.2f}\"")
        except:
            pass

Key measurements to document:

  • Title position: Where does the title placeholder sit?
  • Subtitle/description: Where is the subtitle line?
  • Footer placeholders: Where do footers/sources appear?
  • Content area: The space BETWEEN subtitle and footer is your content area
Raw lines 26 to 59
60### Finding the True Content Start Position
62**CRITICAL:** The content area does NOT always start immediately after the subtitle placeholder. Many templates have a visual border, line, or reserved space between the subtitle and content area.
64**Best approach:** Look at Layout 2 or similar "content" layouts that have an OBJECT placeholder - this placeholder's `y` position indicates where content should actually start.
66```python
67# Find the OBJECT placeholder to determine true content start
68for idx, layout in enumerate(prs.slide_layouts):
69 for ph in layout.placeholders:
70 try:
71 if ph.placeholder_format.type == 7: # OBJECT type
72 top = ph.top / 914400
73 print(f"Layout [{idx}] {layout.name}: OBJECT starts at y={top:.2f}\"")
74 # This y value is where your content should start!
75 except:
76 pass
77```
79**Example:** A template might have:
80- Subtitle ending at y=1.38"
81- But OBJECT placeholder starting at y=1.90"
82- The gap (0.52") is reserved for a border/line - **do not place content there**
84Use the OBJECT placeholder's `y` position as your content start, not the subtitle's end position.

Finding the True Content Start Position

CRITICAL: The content area does NOT always start immediately after the subtitle placeholder. Many templates have a visual border, line, or reserved space between the subtitle and content area.

Best approach: Look at Layout 2 or similar "content" layouts that have an OBJECT placeholder - this placeholder's y position indicates where content should actually start.

# Find the OBJECT placeholder to determine true content start
for idx, layout in enumerate(prs.slide_layouts):
    for ph in layout.placeholders:
        try:
            if ph.placeholder_format.type == 7:  # OBJECT type
                top = ph.top / 914400
                print(f"Layout [{idx}] {layout.name}: OBJECT starts at y={top:.2f}\"")
                # This y value is where your content should start!
        except:
            pass

Example: A template might have:

  • Subtitle ending at y=1.38"
  • But OBJECT placeholder starting at y=1.90"
  • The gap (0.52") is reserved for a border/line - do not place content there

Use the OBJECT placeholder's y position as your content start, not the subtitle's end position.

Raw lines 60 to 85
86## Step 5: Write SKILL.md
88The generated skill should have this structure:
89```
90[company]-ppt-template/
91├── SKILL.md
92└── assets/
93 └── template.pptx
94```

Step 5: Write SKILL.md

The generated skill should have this structure:

[company]-ppt-template/
├── SKILL.md
└── assets/
    └── template.pptx
Raw lines 86 to 95
96### Generated SKILL.md Template
98The generated SKILL.md must be **self-contained** with all instructions embedded. Use this template, filling in the bracketed values from your analysis:
100````markdown
101---
102name: [company]-ppt-template
103description: [Company] PowerPoint template for creating presentations. Use when creating [Company]-branded pitch decks, board materials, or client presentations.
104---
106# [Company] PPT Template
108Template: `assets/template.pptx` ([WIDTH]" x [HEIGHT]", [N] layouts)
110## Creating Presentations
112```python
113from pptx import Presentation
115prs = Presentation("path/to/skill/assets/template.pptx")
117# DELETE all existing slides first
118while len(prs.slides) > 0:
119 rId = prs.slides._sldIdLst[0].rId
120 prs.part.drop_rel(rId)
121 del prs.slides._sldIdLst[0]
123# Add slides from layouts
124slide = prs.slides.add_slide(prs.slide_layouts[LAYOUT_IDX])
125```
127## Key Layouts
129| Index | Name | Use For |
130|-------|------|---------|
131| [0] | [Layout Name] | [Cover/title slide] |
132| [N] | [Layout Name] | [Content with bullets] |
133| [N] | [Layout Name] | [Two-column layout] |
135## Placeholder Mapping
137**CRITICAL: Include exact positions (x, y coordinates) for each placeholder.**
139### Layout [N]: [Name]
140| idx | Type | Position | Use |
141|-----|------|----------|-----|
142| [idx] | TITLE (1) | y=[Y]" | Slide title |
143| [idx] | BODY (2) | y=[Y]" | Subtitle/description |
144| [idx] | BODY (2) | y=[Y]" | Footer |
145| [idx] | BODY (2) | y=[Y]" | Source/notes |
147### Content Area Boundaries
149**Document the safe content area for custom shapes/tables/charts:**
151```
152Content Area (for Layout [N]):
153- Left margin: [X]" (content starts here)
154- Top: [Y]" (below subtitle placeholder)
155- Width: [W]"
156- Height: [H]" (ends before footer)
158For 4-quadrant layouts:
159- Left column: x=[X]", width=[W]"
160- Right column: x=[X]", width=[W]"
161- Top row: y=[Y]", height=[H]"
162- Bottom row: y=[Y]", height=[H]"
163```
165**Why this matters:** Custom content (textboxes, tables, charts) must stay within these boundaries to avoid overlapping with template placeholders like titles, footers, and source lines.
167## Filling Content
169**Do NOT add manual bullet characters** - slide master handles formatting.
171```python
172# Fill title
173for shape in slide.shapes:
174 if hasattr(shape, 'placeholder_format'):
175 if shape.placeholder_format.type == 1: # TITLE
176 shape.text = "Slide Title"
178# Fill content with hierarchy (level 0 = header, level 1 = bullet)
179for shape in slide.shapes:
180 if hasattr(shape, 'placeholder_format'):
181 idx = shape.placeholder_format.idx
182 if idx == [CONTENT_IDX]:
183 tf = shape.text_frame
184 for para in tf.paragraphs:
185 para.clear()
187 content = [
188 ("Section Header", 0),
189 ("First bullet point", 1),
190 ("Second bullet point", 1),
191 ]
193 tf.paragraphs[0].text = content[0][0]
194 tf.paragraphs[0].level = content[0][1]
195 for text, level in content[1:]:
196 p = tf.add_paragraph()
197 p.text = text
198 p.level = level
199```
201## Example: Cover Slide
203```python
204slide = prs.slides.add_slide(prs.slide_layouts[[COVER_IDX]])
205for shape in slide.shapes:
206 if hasattr(shape, 'placeholder_format'):
207 idx = shape.placeholder_format.idx
208 if idx == [TITLE_IDX]:
209 shape.text = "Company Name"
210 elif idx == [SUBTITLE_IDX]:
211 shape.text = "Presentation Title | Date"
212```
214## Example: Content Slide
216```python
217slide = prs.slides.add_slide(prs.slide_layouts[[CONTENT_IDX]])
218for shape in slide.shapes:
219 if hasattr(shape, 'placeholder_format'):
220 ph_type = shape.placeholder_format.type
221 idx = shape.placeholder_format.idx
222 if ph_type == 1:
223 shape.text = "Executive Summary"
224 elif idx == [BODY_IDX]:
225 tf = shape.text_frame
226 for para in tf.paragraphs:
227 para.clear()
228 content = [
229 ("Key Findings", 0),
230 ("Revenue grew 40% YoY to $50M", 1),
231 ("Expanded to 3 new markets", 1),
232 ("Recommendation", 0),
233 ("Proceed with strategic initiative", 1),
234 ]
235 tf.paragraphs[0].text = content[0][0]
236 tf.paragraphs[0].level = content[0][1]
237 for text, level in content[1:]:
238 p = tf.add_paragraph()
239 p.text = text
240 p.level = level
241```
242````

Generated SKILL.md Template

The generated SKILL.md must be self-contained with all instructions embedded. Use this template, filling in the bracketed values from your analysis:

---
name: [company]-ppt-template
description: [Company] PowerPoint template for creating presentations. Use when creating [Company]-branded pitch decks, board materials, or client presentations.
---

# [Company] PPT Template

Template: `assets/template.pptx` ([WIDTH]" x [HEIGHT]", [N] layouts)

## Creating Presentations

from pptx import Presentation

prs = Presentation("path/to/skill/assets/template.pptx")

DELETE all existing slides first

while len(prs.slides) > 0: rId = prs.slides._sldIdLst[0].rId prs.part.drop_rel(rId) del prs.slides._sldIdLst[0]

Add slides from layouts

slide = prs.slides.add_slide(prs.slide_layouts[LAYOUT_IDX])


## Key Layouts

| Index | Name | Use For |
|-------|------|---------|
| [0] | [Layout Name] | [Cover/title slide] |
| [N] | [Layout Name] | [Content with bullets] |
| [N] | [Layout Name] | [Two-column layout] |

## Placeholder Mapping

**CRITICAL: Include exact positions (x, y coordinates) for each placeholder.**

### Layout [N]: [Name]
| idx | Type | Position | Use |
|-----|------|----------|-----|
| [idx] | TITLE (1) | y=[Y]" | Slide title |
| [idx] | BODY (2) | y=[Y]" | Subtitle/description |
| [idx] | BODY (2) | y=[Y]" | Footer |
| [idx] | BODY (2) | y=[Y]" | Source/notes |

### Content Area Boundaries

**Document the safe content area for custom shapes/tables/charts:**

Content Area (for Layout [N]):

  • Left margin: [X]" (content starts here)
  • Top: [Y]" (below subtitle placeholder)
  • Width: [W]"
  • Height: [H]" (ends before footer)

For 4-quadrant layouts:

  • Left column: x=[X]", width=[W]"
  • Right column: x=[X]", width=[W]"
  • Top row: y=[Y]", height=[H]"
  • Bottom row: y=[Y]", height=[H]"

**Why this matters:** Custom content (textboxes, tables, charts) must stay within these boundaries to avoid overlapping with template placeholders like titles, footers, and source lines.

## Filling Content

**Do NOT add manual bullet characters** - slide master handles formatting.

Fill title

for shape in slide.shapes: if hasattr(shape, 'placeholder_format'): if shape.placeholder_format.type == 1: # TITLE shape.text = "Slide Title"

Fill content with hierarchy (level 0 = header, level 1 = bullet)

for shape in slide.shapes: if hasattr(shape, 'placeholder_format'): idx = shape.placeholder_format.idx if idx == [CONTENT_IDX]: tf = shape.text_frame for para in tf.paragraphs: para.clear()

content = [ ("Section Header", 0), ("First bullet point", 1), ("Second bullet point", 1), ]

tf.paragraphs[0].text = content[0][0] tf.paragraphs[0].level = content[0][1] for text, level in content[1:]: p = tf.add_paragraph() p.text = text p.level = level


## Example: Cover Slide

slide = prs.slides.add_slide(prs.slide_layouts[[COVER_IDX]]) for shape in slide.shapes: if hasattr(shape, 'placeholder_format'): idx = shape.placeholder_format.idx if idx == [TITLE_IDX]: shape.text = "Company Name" elif idx == [SUBTITLE_IDX]: shape.text = "Presentation Title | Date"


## Example: Content Slide

slide = prs.slides.add_slide(prs.slide_layouts[[CONTENT_IDX]]) for shape in slide.shapes: if hasattr(shape, 'placeholder_format'): ph_type = shape.placeholder_format.type idx = shape.placeholder_format.idx if ph_type == 1: shape.text = "Executive Summary" elif idx == [BODY_IDX]: tf = shape.text_frame for para in tf.paragraphs: para.clear() content = [ ("Key Findings", 0), ("Revenue grew 40% YoY to $50M", 1), ("Expanded to 3 new markets", 1), ("Recommendation", 0), ("Proceed with strategic initiative", 1), ] tf.paragraphs[0].text = content[0][0] tf.paragraphs[0].level = content[0][1] for text, level in content[1:]: p = tf.add_paragraph() p.text = text p.level = level

Raw lines 96 to 243
244## Step 6: Create Example Output
246Generate a sample presentation to validate the skill works. Save it alongside the skill for reference.

Step 6: Create Example Output

Generate a sample presentation to validate the skill works. Save it alongside the skill for reference.

Raw lines 244 to 247
248## PPT-Specific Rules for Generated Skills
2501. **Template in assets/** - always bundle the .pptx file
2512. **Self-contained SKILL.md** - all instructions embedded, no external references
2523. **No manual bullets** - use `paragraph.level` for hierarchy
2534. **Delete slides first** - always clear existing slides before adding new ones
2545. **Document placeholders by idx** - placeholder idx values are template-specific

PPT-Specific Rules for Generated Skills

  1. Template in assets/ - always bundle the .pptx file
  2. Self-contained SKILL.md - all instructions embedded, no external references
  3. No manual bullets - use paragraph.level for hierarchy
  4. Delete slides first - always clear existing slides before adding new ones
  5. Document placeholders by idx - placeholder idx values are template-specific
Raw lines 248 to 254

From anthropics/financial-services at 6056506, 2026-10-28. Skills read by DeepSeek V4.1 Flash on 2026-11-04. Summary and techniques by Claude Opus 5.5 on 2026-11-06.