/slide-gen:build-cfa-deck "Topic" [--slides 20] [--audience "CFA Leadership"] [--presenter "Name"]from slide-gen
Generates on-brand Chick-fil-A PowerPoint presentations from any topic using CFA brand guidelines, templates, and extracted brand assets. Useful for CFA decks and branded presentations.
Ships in slide-gen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate a complete, on-brand Chick-fil-A PowerPoint presentation from a topic prompt. Uses the CFA "Support Now" PPTX template (64 layouts, 194 SVG icons, embedded Apercu fonts), extracted brand assets, and comprehensive brand guidelines.
No API key needed — content generation happens in this Claude Code session using your subscription.
Asset root: ${CFA_ASSETS_DIR:-~/dev/stratfield/slide-generator/examples}
Brand assets location:
!CFA_ASSETS_DIR=${CFA_ASSETS_DIR:-~/dev/stratfield/slide-generator/examples}; [ -d "$CFA_ASSETS_DIR/cfa-brand-assets/" ] && echo "Assets: OK" || echo "Assets: MISSING at $CFA_ASSETS_DIR/cfa-brand-assets/ — run asset extraction first or set CFA_ASSETS_DIR"
CFA template:
!CFA_ASSETS_DIR=${CFA_ASSETS_DIR:-~/dev/stratfield/slide-generator/examples}; ls -lh "$CFA_ASSETS_DIR/CFA PPT Template2.pptx" 2>/dev/null && echo "Template: OK" || echo "Template: MISSING at $CFA_ASSETS_DIR/CFA PPT Template2.pptx"
Brand guidelines:
!CFA_ASSETS_DIR=${CFA_ASSETS_DIR:-~/dev/stratfield/slide-generator/examples}; [ -f "$CFA_ASSETS_DIR/cfa-brand-guidelines-for-ppt.md" ] && wc -l "$CFA_ASSETS_DIR/cfa-brand-guidelines-for-ppt.md" || echo "Guidelines: MISSING at $CFA_ASSETS_DIR/cfa-brand-guidelines-for-ppt.md"
python-pptx:
!python3 -c "import pptx; print('python-pptx: OK')" 2>/dev/null || echo "python-pptx: NOT INSTALLED — run: pip install python-pptx --break-system-packages"
python-pptx installed (pip install python-pptx --break-system-packages)references/cfa-deck-helpers.md)
relies on Presentation.slides._sldIdLst and PresentationPart.drop_rel(). _sldIdLst is a
private (leading-underscore) attribute with no documented public equivalent — if a different
python-pptx version is installed, re-verify both calls against a scratch copy of the template
before trusting the build script (see the "Removing Sample Slides" section of the helpers
reference for what to check).${CFA_ASSETS_DIR:-~/dev/stratfield/slide-generator/examples}/CFA PPT Template2.pptx${CFA_ASSETS_DIR:-~/dev/stratfield/slide-generator/examples}/cfa-brand-guidelines-for-ppt.md${CFA_ASSETS_DIR:-~/dev/stratfield/slide-generator/examples}/cfa-brand-assets/CFA_ASSETS_DIR to the correct path or run the asset extraction first.Required:
$ARGUMENTS must contain a topic string (quoted). Example: "The Future of Quick-Service Restaurants"Optional flags (parse from $ARGUMENTS):
--slides <N> — number of slides (default: 20)--audience <text> — target audience (default: "CFA Leadership Team")--presenter <text> — presenter name for title/closing slides (default: empty)--output <path> — output .pptx file path (default: topic-slug in current directory)If no topic is provided, ask the user for one. Do not proceed without a topic.
CRITICAL: Before proceeding with any other steps, verify that all CFA assets are present:
CFA_ASSETS_DIR to the path containing the assets, or run the asset extraction first."Follow these steps exactly. Do not skip or reorder.
Read the brand guidelines file. You need sections 1 (Color System), 5 (Layout System), 7 (Content Density Standards), and 8 (Deck Composition) to generate compliant content.
Read: ${CFA_ASSETS_DIR:-~/dev/stratfield/slide-generator/examples}/cfa-brand-guidelines-for-ppt.md
Internalize these critical rules before generating content:
Run this to get the exact layout names from the template:
python3 -c "
import os
from pptx import Presentation
cfa_dir = os.path.expanduser(os.environ.get('CFA_ASSETS_DIR', '~/dev/stratfield/slide-generator/examples'))
prs = Presentation(os.path.join(cfa_dir, 'CFA PPT Template2.pptx'))
for i, layout in enumerate(prs.slide_layouts):
phs = ', '.join([f'idx={p.placeholder_format.idx}:{p.placeholder_format.type}' for p in layout.placeholders])
print(f'{i:2d}. {layout.name} [{phs}]')
"
Using the brand guidelines context and the template layout names, generate a complete slide plan as a JSON array. This is the creative core — you ARE the content engine.
For each slide, produce this structure:
{
"slide_number": 1,
"slide_type": "cover|content|section_divider|stat_callout|data_chart|quote|split|card_grid|timeline|closing|...",
"layout_name": "exact template layout name from Step 2",
"background_color": "#hex or default",
"headline": "Insight-driven headline with a specific claim or number",
"subheadline": "Supporting context or null",
"body_content": ["Substantive bullet 1 with specific data...", "Bullet 2...", "..."] or "Paragraph text...",
"stats": [{"number": "$410B", "label": "QSR Market Size"}, ...] or null,
"speaker_notes": "2-4 sentences adding context not visible on slide",
"accent_color": "#hex for accent shapes",
"footer_text": "Presenter | Title | Date"
}
Content quality rules (enforce strictly):
Color sequencing rules (enforce strictly):
Layout selection guidance:
Write a Python script to .tmp/build_cfa_deck.py that:
cfa-brand-assets/logos/)python-pptx helper functions:
Read ${CLAUDE_PLUGIN_ROOT}/references/cfa-deck-helpers.md (fall back to
plugins/slide-gen/references/cfa-deck-helpers.md if CLAUDE_PLUGIN_ROOT is unset). It
contains the imports, COLORS palette, and four helper functions to compose into
.tmp/build_cfa_deck.py: remove_all_slides (the single, verified slide-removal
implementation — see Prerequisites), find_layout, set_placeholder, and add_textbox.
Template path in the script:
The script must read the template from ${CFA_ASSETS_DIR:-~/dev/stratfield/slide-generator/examples}/CFA PPT Template2.pptx.
Use os.path.join(os.path.expanduser(os.environ.get('CFA_ASSETS_DIR', '~/dev/stratfield/slide-generator/examples')), 'CFA PPT Template2.pptx')
to construct the path dynamically, so the script respects the environment variable.
python3 .tmp/build_cfa_deck.py
Verify the output:
python3 -c "
from pptx import Presentation
import sys
prs = Presentation(sys.argv[1])
print(f'Slides: {len(prs.slides)}')
print(f'Dimensions: {prs.slide_width.inches:.3f}\" x {prs.slide_height.inches:.3f}\"')
for i, s in enumerate(prs.slides, 1):
print(f' Slide {i}: {len(s.shapes)} shapes')
" OUTPUT_PATH
Tell the user:
| Error | Cause | Fix |
|---|---|---|
CFA_ASSETS_DIR not set and default path missing | Assets not found at default location | Set CFA_ASSETS_DIR environment variable to the correct path, or run asset extraction to the default ~/dev/stratfield/slide-generator/examples |
python-pptx not installed | Missing dependency | pip install python-pptx --break-system-packages |
Template not found | Wrong path or CFA_ASSETS_DIR incorrect | Verify CFA PPT Template2.pptx exists at ${CFA_ASSETS_DIR}/; check CFA_ASSETS_DIR environment variable |
Guidelines not found | Wrong path or CFA_ASSETS_DIR incorrect | Verify cfa-brand-guidelines-for-ppt.md exists at ${CFA_ASSETS_DIR}/; check CFA_ASSETS_DIR environment variable |
Layout not found | Layout name mismatch | Script falls back to blank layout — check template layout names |
Slide removal fails | python-pptx version mismatch — _sldIdLst/drop_rel are private APIs verified only on 1.0.2 | Confirm installed version (python3 -c "import pptx; print(pptx.__version__)"); if it differs from 1.0.2, re-verify the two calls in references/cfa-deck-helpers.md against a scratch copy of the template before proceeding |
Font not rendering | Apercu not installed locally | Template embeds fonts — they render on open in PowerPoint |
Output too small (< 30KB) | Slides not built properly | Check for python-pptx errors in script output |
The skill produces:
.pptx file with the specified number of slidesWhat SKILL.md sets; muted values are Claude Code's defaults
highThree short reads, in order
cfa, powerpoint, brand-presentation, slide-generation, python-pptx
Other plugins' skills for the same job
npx claudepluginhub davistroy/claude-marketplace --plugin slide-gen9 skills in this plugin
/sg-buildAssemble final PowerPoint (.pptx) from presentation markdown and generated images. Use when you want to create the final PowerPoint, build the deck after image generation, or skip to building from presentation.md./sg-draftDraft full slide content (titles, bullets, speaker notes, graphics descriptions) from an outline. Use when you have an outline and want to generate full slide content, draft the slides, or move from structure to full presentation content./sg-full-workflowRun the complete 7-step slide generation pipeline from topic to PowerPoint. Use when you want to create a full presentation from scratch, generate a complete deck end-to-end, or see the entire pipeline in action.