# Ppt Template Skill

> Create branded PowerPoint master templates for universities and organizations, or rebrand an existing PPTX using local logos, photographs and brand colors. Use

- Skill: `swordzhang8-pixel/ppt-template-skill` (Agent Skill)
- Install (CLI): `npx get-skill add swordzhang8-pixel/ppt-template-skill`
- Raw SKILL.md: https://api.skillmd.com/api/skills/swordzhang8-pixel/ppt-template-skill/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: swordzhang8-pixel (https://skillmd.com/u/swordzhang8-pixel)
- Updated: 2026-12-02
- Page: https://skillmd.com/skills/swordzhang8-pixel/ppt-template-skill

---

---
name: ppt-template-skill
description: >-
  Create branded PowerPoint master templates for universities and organizations,
  or rebrand an existing PPTX using local logos, photographs and brand colors.
  Use for reusable institutional templates and AI-ready brand packs.
---

# ppt-template-skill

Use the Python engine in this skill directory to produce a reusable institutional template and its brand pack. An agent supplies research, local assets and a JSON configuration. The scripts generate the PPTX deterministically.

## Choose the generation mode

- Use `academic`, `tech_dark`, `formal_gov` or `eco_fresh` for 23 example slides and 11 native layouts. Disabling SVG diagrams produces 17 example slides.
- Use `cinematic` for 14 example slides. Its tones are `auto`, `obsidian`, `navy`, `forest`, `crimson` and `ivory`.
- When the user supplies an existing PPTX, use `reference_template.mode: rebrand_inplace` to update it. `style_extract` maps its light/dark mood to an internal style and builds a fresh template.

Preserve the user's institution, reference template and requested style. Use the supplied example configurations only as structural references.

## Reuse the environment and keep work bounded

Run `python scripts/setup_env.py --report workspace/environment.json` once at the start of a task. Use the `python` executable returned in the report for subsequent commands. When it returns `needs_install`, run it with `--install` once; a healthy current environment or project `.venv` is reused without pip installation. Python 3.11+ is required. LibreOffice and PyMuPDF are optional for a real render.

Start with this file, the schema and the chosen example. Read implementation modules when a specific failure requires it. Repository development tests are for engine changes; they are not a per-template generation step.

Prefer matching reviewed assets. Allow one initial photo collection/search round and at most one targeted follow-up after reading diagnostics. Do not restart the same failing requests with unchanged inputs. Generate and run technical QA together; allow at most one corrective rebuild after fixing a reported cause. If requirements remain unmet, report the missing inputs or failures and deliver an explicitly identified draft when appropriate. Keep image, identity and QA standards intact.

## Research the institution and prepare assets

Resolve the official institution and department name. Verify an official brand color and motto when available. Keep unknown date and contact fields empty.

Prefer user-provided files and reviewed assets for the matching institution. The optional collector is run from the repository directory:

```bash
python scripts/fetch_assets.py --query "<institution> campus architecture" --out workspace/<org_slug>/photos --style academic --org-id "<canonical-institution-and-campus-id>" --region auto
```

Use the actual requested `--style`: standard styles target eight unique photos and `cinematic` targets sixteen. `--count` can override this for an intentional draft. Defaults are four concurrent downloads, a 90-second collection budget and at most 32 candidate URLs. The budget stops scheduling and accepting network results; local image processing and in-flight OS network cleanup can extend wall time. Workers never write output files. Configure `--workers`, `--budget-seconds`, `--max-candidates` and `--request-timeout` only when the task needs different limits.

Inspect its numbered contact sheet using the host's image-viewing tool. Open full-size candidates when the contact sheet cannot establish identity, watermark status or image quality. Check original source pages and record usage information. Confirm chosen IDs with:

```bash
python scripts/fetch_assets.py --out workspace/<org_slug>/photos --select 1,2,3,4,5,6,7,8
```

Downloads remain candidates until selected. Selection also stores approved images in `workspace/asset_cache/` when an explicit `--org-id` is supplied. Reuse that ID only for the same verified institution/campus; queries and styles may differ. Without an ID, reuse requires an exact query match. Cache hits recheck content hashes and quality. Newly added images still need review. The collector requires 1400×780 or larger landscape images and applies a heuristic sharpness filter; inspect source identity and actual detail visually.

If collection fails, use its diagnostics to guide the one follow-up on official media/download pages. Use local assets or clearly labeled generated illustrations when that fits the user's request. Avoid presenting generated scenery as a photograph of the institution.

Standard photo templates have five cover/chapter/ending background slots and three gallery slots. Eight unique photographs fill all slots. With five to seven photographs, remaining gallery slots stay editable placeholders. Cinematic has sixteen photo slots; strict uniqueness requires sixteen sources. With insufficient photos, report the draft's reuse or missing assets and resolve the input requirements before claiming strict acceptance.

## Protect branding and legibility

- Keep original transparency and fine text in PNG assets. Convert vector logos with a suitable renderer before supplying a raster path.
- Set `assets.skip_logo_bg_removal: true` when the original alpha and colors should be preserved. It applies to primary/secondary logos, wordmarks and lockups, including reference mode.
- Automatic trimming suits clean solid-color backgrounds. Inspect the processed mark at full size for damaged fine text, dark artifacts and lost internal detail.
- Use official colors when provided. Keep text readable on its actual background; photographs need a protected text region and the appropriate light/dark foreground.
- Choose a cultural motif from the built-ins or supply `assets.custom_motif_path` when requested or relevant. Use available illustration tools for custom artwork.
- `assets.bg_overlay_opacity` controls optional photo tint strength from 0 to 0.95. The text-side safety gradient remains active.

## Configure and generate

Use [schemas/theme_config.schema.json](schemas/theme_config.schema.json). Required fields are `org_name`, `org_type` and `output_path`. Optional `report_date`, `contact_email` and `website` populate display metadata.

Input paths resolve relative to the config directory first, then the project directory for legacy examples. Relative output PPTX paths resolve against the project. Explicit missing input paths raise errors.

```bash
python scripts/ppt_builder.py --config workspace/<org_slug>/theme_config.json --qa --require-unique-bg --qa-report workspace/<org_slug>/qa_report.json
```

Use strict unique-photo QA when the deliverable calls for a fully illustrated, non-repeating photo template. For a user-requested plain or intentionally reused-photo draft, use `--qa` and disclose the chosen photo treatment.

Outputs include the demo PPTX, a brand pack with `clean_master.pptx` and JSON specifications, and an overview image when enabled. Reference rebranding stages its PPTX and replaces the final file only after processing and package checks succeed.

## Validate and hand off

Technical QA checks XML structure before typed font parsing, text runs and groups, table cells, contrast estimates, text-box collisions, animation targets, native layout names and source-photo reuse.

Read every reported failure and fix the cause. A JSON report records `technical_qa` and leaves `visual_review: pending`. The check covers known XML structure constraints and photo-region averages.

Keep `environment.json`, `assets_manifest.json` and `qa_report.json` when diagnosing speed. Their `timings` include measured stages and relevant request/cache/build counters. Process startup/imports, agent reasoning, browser research and human review are excluded. Record those separately when comparing end-to-end runs. Do not promise a fixed total generation time based on a cached local build.

For a real render, install LibreOffice and PyMuPDF and run:

```bash
python scripts/preview_render.py --pptx <output.pptx> --out workspace/<org_slug>/preview
```

Inspect rendered pages or the file in PowerPoint for branding, fine text, overflow, building composition and animation behavior. If only the **APPROXIMATE GEOMETRY** overview is available, state the outstanding visual checks.

For downstream agents, provide `clean_master.pptx`, `AGENT_PROMPT.md`, `brand.json`, `style.json`, `layouts.json` and bundled assets. Check null semantic indices and each layout's master/local index. The brand pack is a documented input contract; verify downstream compatibility in its own environment.

Supported diagram SVGs use explicit attributes on rect/circle/ellipse/polygon/line/text/tspan and translated groups. Unsupported elements and styles raise errors. Use the bundled diagrams as examples.

Deliver the PPTX and relevant pack/report paths, naming any remaining QA or visual-review limitations.

