CheatCodes-Skill-Library mbr-deck-builder
End-to-end MBR deck production orchestrator — data extraction, analysis, visualization, slide design, visual QA, and iterative refinement. Coordinates 3 expert skills + 5 agents into a unified 6-phase pipeline.
install
source · Clone the upstream repo
git clone https://github.com/jac007x/CheatCodes-Skill-Library
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jac007x/CheatCodes-Skill-Library "$T" && mkdir -p ~/.claude/skills && cp -r "$T/mbr-deck-builder" ~/.claude/skills/jac007x-cheatcodes-skill-library-mbr-deck-builder && rm -rf "$T"
manifest:
mbr-deck-builder/SKILL.mdsource content
🏗️ MBR Deck Builder — Production Orchestrator
Orchestrates the complete Monthly Business Review deck pipeline — raw data to polished, executive-ready presentation in 6 phases.
🧠 Core Philosophy
- Data-driven storytelling — every slide starts with data, not opinions
- Executive-first design — optimized for senior leadership consumption
- Iterative refinement — build, review, improve in tight loops
- Reproducible — same process every month, improving each cycle
📦 Resources
3 Expert Skills (activate as needed)
| Skill | Scope | Key Content |
|---|---|---|
| Chart selection + rendering | Decision tree, Tufte rules, color theory, Chart.js + matplotlib patterns, anti-patterns |
| Slide creation + design | python-pptx API, McKinsey rules, layout grids, typography, tables, shapes, Walmart brand |
| Visual + structural QA | 7-dim rubric, 20+ automated checks, Pillow previews, WCAG audit, improvement workflows |
5 Agents (invoke as needed)
| Agent | Role |
|---|---|
| Query BQ/Databricks, build analysis |
| Deep BQ table exploration |
| Extract Power BI data |
| Generate HTML slide decks |
| Publish to your publishing platform |
Architecture
┌─────────────────────┐ │ mbr-deck-builder │ ← ORCHESTRATOR │ (Phase 1→6) │ └──────────┬──────────┘ │ ┌────────┼────────┐ │ │ │ ┌──▼──┐ ┌──▼──┐ ┌──▼──┐ │ DATA │ │DESIGN│ │ QA │ │LAYER │ │LAYER │ │LAYER │ ├──────┤ ├──────┤ ├──────┤ │data- │ │pptx- │ │slide-│ │viz- │ │expert│ │analy-│ │expert│ │ │ │zer │ └──┬───┘ └──┬───┘ └──┬───┘ │ │ │ ┌──▼──┐ ┌──▼──┐ ┌──▼──┐ │ BQ │ │slide-│ │image │ │ PBI │ │cretr │ │tools │ │ CSV │ │ │ │ │ └──────┘ └──────┘ └──────┘
🚀 The 6-Phase Pipeline
Phase 1 Phase 2 Phase 3 Phase 4 Phase 5 Phase 6 DATA GATHER → ANALYSIS → DECK BUILD → VISUAL QA → REFINE → DELIVER Query BQ Trends Slide deck Screenshot Fix issues Share link Pull PBI Comparisons Charts Analyze Rebuild Open deck Get CSVs Anomalies Tables Score Re-score Git commit Prior MBR Insights KPIs Recommend Iterate Archive
📖 Phase 1: Data Gathering
| Source | Agent/Tool |
|---|---|
| BigQuery | → |
| Power BI | agent |
| CSV/Excel | tool |
| Prior MBR | |
| Targets | Ask user or query |
Standard data points: Current period · Prior period (MoM) · Same period LY (YoY) · Targets · Daily granularity · Segment breakdowns
Validation: No NULLs in key metrics · Correct date ranges · Sanity-checked values · Consistent units
📖 Phase 2: Analysis
For each metric compute:
Current Value: $14.2M vs Target: ▲ 3.1% above ($13.8M) vs Prior Month: ▲ 12.3% growth vs Same Mo LY: ▲ 8.7% YoY Trend: Accelerating (3mo avg ▲) Anomalies: Nov 15 spike (+45% DoD) Key Driver: E-commerce +22% MoM
Insight rules:
- Lead with "so what" — “Revenue exceeded target by 3.1%, driven by e-commerce”
- Quantify everything — “Improved 12.3% MoM” not “improved significantly”
- Provide context — always vs target/prior/benchmark
- Flag anomalies with root cause
- Recommend action
📖 Phase 3: Deck Construction
Standard MBR Slide Sequence
| # | Type | Content |
|---|---|---|
| 1 | Title | MBR title, period, team |
| 2 | Exec Summary | 4 KPI cards + 3 insights |
| 3 | Agenda | Section overview |
| 4-5 | KPI Deep Dive | Each KPI + trend chart |
| 6 | Monthly Trend | Daily line chart |
| 7 | Quarterly View | 3-month bar + targets |
| 8 | YoY Comparison | Same month across years |
| 9 | Segment Breakdown | Category/region split |
| 10 | Wins | What went well |
| 11 | Risks | RAG status table |
| 12 | Actions | Next month commitments |
| 13 | Appendix | Detailed data tables |
Process
- Activate
— layout/typography/design rulespptx-expert - Activate
— chart selection + stylingdata-viz-expert - Map each metric → best chart type
- Write action titles for every slide
- Build via
agent orslide-creatorpython-pptx - Apply Walmart brand colors
slide-creator Prompt Pattern
Slide 3 - "Revenue grew 12% MoM driven by e-commerce" Chart: Combo (bar=monthly revenue, line=target) Data: Jan=$10.2M, Feb=$11.1M, ... Dec=$14.2M Target line: $13.8M Highlight: December in blue.100, others in blue.60
📖 Phase 4: Visual QA
- Screenshot each slide (or render previews)
- Activate
slide-analyzer - Load each image → apply 7-dimension rubric
- Target: ≥4.0/5.0 on every slide
Auto-QA Checklist (no screenshots needed)
- Every slide has action title (verb + data)
- Every chart has labeled axes with units
- Every data slide has source citation
- KPI cards show delta vs target/prior
- Walmart brand palette throughout
- No slide >100 words · No pie >5 slices
- Chart.js canvases in fixed-height containers
- Numbers right-aligned in tables
- Green=positive, Red=negative consistently
📖 Phase 5: Refinement
while score < 4.0 or user_has_feedback: 1. Collect feedback (analysis or user) 2. Identify specific changes 3. Apply fixes 4. Re-evaluate
| User Says | Action |
|---|---|
| "Make chart bigger" | Increase container (300→450px) |
| "Change chart type" | → select better type |
| "Simplify" | Remove secondary elements, one message |
| "Colors wrong" | Apply Walmart palette from |
| "Table too busy" | Remove cols, add formatting, or convert to chart |
📖 Phase 6: Delivery
- Open —
(Mac) /open presentation.html
(Win)start - Share —
agent → your publishing platformyour-publishing-agent - Git —
git commit -m 'MBR Dec 2025 deck v1' - Archive —
mbr/2025-12/presentation.html
🔄 Handling Existing Decks
Screenshots/images provided
- Load →
rubric → extract data → confirm → rebuild → compareslide-analyzer
PPTX file provided
→ structural analysis + previewsaudit_deck('file.pptx')
rubric on preview imagesslide-analyzer- Generate python-pptx fixes via
pptx-expert - Apply programmatically + re-export
Raw data + old structure
- Review old narrative flow
- Identify improvements via skills
- Rebuild with better viz + design
🎯 Quick Commands
| Command | Workflow |
|---|---|
| "Build me an MBR" | Full Phase 1→6 |
| "Analyze this slide" | Phase 4 only |
| "Improve this chart" | Load → analyze → suggest → rebuild |
| "Review the deck" | Multi-slide analysis + consistency |
| "Make it exec-ready" | Full QA + refine until ≥4.0 |
| "Run design audit" | |