[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71B3GRGY68XZZPMVAQDHC04":3,"skill-same:01M71B3GRGY68XZZPMVAQDHC04":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M71B3GRGY68XZZPMVAQDHC04","bc-to-pptx",null,"Generates a branded PPTX deck from LEAN_BUSINESS_CASE.md using the Marlink template. Pipeline: Extract BC data -> validate -> inject into template -> QA swarm. Use after LEAN_BUSINESS_CASE.md is approved and ready for presentation. Also use when user says \"generate deck\", \"create slides\", \"make pptx\", \"presentation\".","Wizarck\u002Fnexandro","Wizarck","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F23051550?v=4","01M71B3AAVR67GRWFV5ZXXZP31","arturo6ramirez","01M71B3ABYG1BFNXHX4KZ3PPK6",2,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro\u002Fblob\u002Fmaster\u002Fskills\u002Fbc-to-pptx\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"bc to pptx","pptx","slides","make","presentation","opus","data","edit","write","read","template","generate","inline","create","Bash","when","qa","lean","pipeline","ready","2026-11-10 10:12:30",false,"---\nname: bc-to-pptx\ndescription: >\n  Generates a branded PPTX deck from LEAN_BUSINESS_CASE.md using the Marlink template.\n  Pipeline: Extract BC data -> validate -> inject into template -> QA swarm.\n  Use after LEAN_BUSINESS_CASE.md is approved and ready for presentation.\n  Also use when user says \"generate deck\", \"create slides\", \"make pptx\", \"presentation\".\nmodel: opus\ncontext: inline\nallowed-tools: \"Read, Glob, Grep, Edit, Write, Bash, Agent, Skill\"\n---\n\n# BC-to-PPTX Generation Pipeline\n\nYou generate branded PPTX decks from LEAN_BUSINESS_CASE.md using the semantic placeholder template.\n\n**Reference documents** (read these before generating):\n- `OFFER-000 (Template)\u002F_int_ai\u002F_int_ai\u002F_pptx_pipeline\u002Ffiller_spec_BC.md` -- filling rules, structural constraints, formatting\n- `OFFER-000 (Template)\u002F_int_ai\u002F_int_ai\u002F_pptx_pipeline\u002Fsemantic_mapping.yaml` -- tag metadata (type, max_chars, bc_sections, descriptions)\n- `.claude\u002Fskills\u002Fpptx-template\u002Fguardrails.md` -- absolute rules\n\n**Visual context** (read alongside YAML for each slide):\n- `OFFER-000 (Template)\u002F_int_ai\u002F_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Freference\u002F` -- reference PNGs from a completed offering (style guide -- shows what a filled slide looks like)\n- `OFFER-000 (Template)\u002F_int_ai\u002F_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Ftemplate\u002F` -- template PNGs with `{{TAG}}` placeholders visible (shows tag positions and layout)\n\n## Architecture\n\n```\nLEAN_BUSINESS_CASE.md ──────────────────────────┐\n                                            │\n_int_ai\u002F_pptx_pipeline\u002Ffiller_spec_BC.md ──┤\n_int_ai\u002F_pptx_pipeline\u002Fsemantic_mapping.yaml┤\n_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Freference\u002F*.png ┤  (visual: completed slide style)\n_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Ftemplate\u002F*.png ─┤  (visual: tag positions)\n                                            │\n                           [Step 1: Visual-Context Fill] ──> _int_ai\u002Ffill_data.json\n                                            │\n                           [Step 1.5: Tag Inventory Check]\n                                            │\n                           [Step 2.5: Pilot Generation]\n                                            │\nTEMPLATE.pptx ──────────> [Step 3: Inject] ──────────────> output PPTX\n                            (generate_pptx.py)               │\n                                                   [Step 4: Post-flight]\n                                                             │\n                                                   [Step 5: QA Swarm]\n                                                             │\n                                                   LEAN_BUSINESS_CASE.pptx\n```\n\n## Argument Parsing\n\nWhen invoked with an argument (e.g., \"002\", \"OFFER-002\"):\n1. Extract the offer number\n2. Find folder: `Glob(\"20_OFFERS\u002FOFFER-{number}*\")`\n3. Verify `LEAN_BUSINESS_CASE.md` exists in that folder\n4. If NO match or no BC -> error\n\n---\n\n## Step 1: Visual-Context Fill\n\nRead the offering's `LEAN_BUSINESS_CASE.md` and produce `fill_data.json` using visual context + YAML metadata.\n\n**Per fill agent (8 parallel, one per PPTX section):**\n\nEach agent receives:\n1. **Full LEAN_BUSINESS_CASE.md** -- complete document for cross-reference\n2. **Reference PNGs** (`_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Freference\u002F`) -- what completed slides look like (style guide only, NEVER copy data)\n3. **Template PNGs** (`_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Ftemplate\u002F`) -- where `{{TAG}}` placeholders sit\n4. **YAML section extract** -- tag names, types, max_chars, visual_roles, bc_sections, descriptions, suggestions\n5. **filler_spec_BC.md** -- formatting rules, blacklist, consistency requirements\n\n**Agent instructions:**\n1. LOOK at the reference PNG -- understand what KIND of content goes on this slide (density, format, bullet count)\n2. LOOK at the template PNG -- see WHERE each `{{TAG}}` sits and how much space it has\n3. READ the BC sections listed in `bc_sections` for this slide (scoped extraction)\n4. READ the YAML tag metadata (description, suggestion, max_chars) for constraints\n5. For each tag: extract BC data, respecting `max_chars` and `visual_role`\n6. Fill ALL tags for the section at once -- ensure narrative coherence across slides\n7. Financial figures MUST be exact from BC -- never invent\n8. Ask user about offering-specific blacklist (filler_spec S2)\n\n**Output**: `OFFER-XXX\u002F_int_ai\u002Ffill_data.json` (flat JSON, series expanded as `TAG_1`, `TAG_2`, ...)\n\n**Output**: `OFFER-XXX\u002F_int_ai\u002Fslide_data.json`\n\n```json\n{\n  \"meta\": {\n    \"offering_id\": \"OFFER-002\",\n    \"offering_name\": \"1EDGE Secure Edge Cloud\",\n    \"iteration_num\": \"1\",\n    \"iteration_maturity\": \"Good\",\n    \"generated\": \"2026-03-22\"\n  },\n  \"TITLE_OFFERING\": \"1EDGE Secure Edge Cloud\",\n  \"TITLE_ITERATION\": \"Customer VM Hosting\",\n  \"TITLE_PILLAR\": \"Cloud & IT -- Portfolio and Innovation Strategy\",\n  \"ITERATION_NUM\": \"1\",\n  \"ITERATION_MATURITY\": \"Good\",\n  \"CANVAS_REVENUE_1\": \"VM subscriptions ($30\u002FVM\u002Fmo)\",\n  \"CANVAS_REVENUE_2\": \"Management fee ($31\u002FVM\u002Fmo)\",\n  ...\n}\n```\n\n**Rules** (from filler_spec S4):\n- Every value must be a string\n- Bullet lists: `\\n`-separated within a single field\n- Numbers: $X.XM (millions), $X,XXXK (thousands), X.X%\n- No markdown, no em-dashes (use --), max ~200 chars per field\n- Auto-fix: CIT -> \"Cloud & IT\", SKU codes -> service names\n\n---\n\n## Step 1.5: Tag Inventory Check (MANDATORY -- blocks Step 2)\n\nBefore validation, reconcile fill data against the actual template:\n\n1. **Count template slots**: open template PPTX, grep `{{TAG}}` across all XML files (slides + diagrams\u002Fdata + diagrams\u002Fdrawing). Count unique tag patterns.\n2. **Count fill data keys**: count unique keys in fill_data.json\n3. **Compare**:\n   - Tags in template with no fill data = **unfilled slots** (will show as raw `{{TAG}}` in output)\n   - Fill data keys with no template slot = **orphan data** (wasted extraction effort)\n4. **Report**: `Template: X slots, Fill data: Y keys, Matched: Z, Unfilled: A, Orphan: B`\n5. **Block if**: orphan ratio > 10% (indicates YAML has phantom tags not in template, or fill agents invented tag names)\n6. **Warn if**: unfilled slots > 5% (ask user: \"X tags have no data. Continue?\")\n\n**Why this step exists**: YAML generated from classification (not template scan) once produced 453 tag patterns for a template with 217 actual tags -- 80.9% orphan ratio, 9 STRUCTURAL failures. A 50% threshold failed to catch it. The 10% threshold catches YAML\u002Ftemplate drift early.\n\n---\n\n## Step 2: Validate Data\n\n```bash\npython 98_Scripts\u002Fvalidate_pptx_data.py \\\n  --data OFFER-XXX\u002F_int_ai\u002Fslide_data.json \\\n  --template \"OFFER-000 (Template)\u002FLEAN_BUSINESS_CASE_TEMPLATE.pptx\"\n```\n\nChecks (from filler_spec S2, S5, S6):\n- Forbidden keywords (CIT, SKU codes, offering blacklist)\n- Field length violations (>200 chars)\n- Cross-slide consistency (revenue, margin, ARPU across slides)\n- Template coverage (every tag in template has a value)\n- Fill rate (must be >= 80%)\n\nIf violations found: fix data, re-validate. Block on \u003C80% fill rate.\n\n---\n\n## Step 2.5: Pilot Generation (MANDATORY -- blocks Step 3)\n\nBefore full generation, test on 3 representative slides:\n\n1. **Pick 3 slides**: 1 SmartArt (e.g., Case Background), 1 table (e.g., CTS Summary), 1 canvas\u002Fshapes (e.g., Canvas or Dashboard)\n2. **Run generate_pptx.py** on those slides only (or full run, then inspect these 3)\n3. **Render to PNG** and visually inspect for the 5 known failure modes:\n   - **Duplication**: same content repeated 2-6x in a cell (series join failure)\n   - **Missing SmartArt**: raw `{{TAG}}` visible on SmartArt slides (triple-file violation)\n   - **Split tags**: partial `{{TAG` visible (tag spans two `\u003Ca:r>` runs)\n   - **Overflow**: text cut off or wrapping badly (max_chars violated)\n   - **Stale content**: original template text still showing (replacement failed)\n4. **If any failure**: fix generate script or fill data BEFORE full generation\n5. **If clean**: proceed to Step 3\n\n**Why**: full 57-slide generation + QA swarm is expensive. Catching errors on 3 slides saves 80% of rework.\n\n---\n\n## Step 3: Inject Data\n\n```bash\npython 98_Scripts\u002Fgenerate_pptx.py \\\n  \"OFFER-000 (Template)\u002FLEAN_BUSINESS_CASE_TEMPLATE.pptx\" \\\n  OFFER-XXX\u002F_int_ai\u002Ffill_data.json \\\n  OFFER-XXX\u002FLEAN_BUSINESS_CASE.pptx\n```\n\nThe script:\n1. Opens template as zip\n2. Builds series expansions (`TAG_{n}` -> joined newline string from `TAG_1`, `TAG_2`, ...)\n3. Processes ALL XML files: `slides\u002Fslide*.xml` + `diagrams\u002Fdata*.xml` + `diagrams\u002Fdrawing*.xml`\n4. Deduplicates: first occurrence of each tag gets the value, subsequent occurrences emptied\n5. Cleans up empty paragraphs left by deduplication\n6. Validates XML after modifications (lxml parse test)\n7. Reports: replaced\u002Fremaining breakdown per file\n\n**Do NOT edit XML manually.** The script handles all text replacement.\n\n---\n\n## Step 4: Post-flight Verification\n\n```bash\npython 98_Scripts\u002Fpostflight_pptx.py \\\n  --pptx OFFER-XXX\u002FLEAN_BUSINESS_CASE.pptx \\\n  --template \"OFFER-000 (Template)\u002FLEAN_BUSINESS_CASE_TEMPLATE.pptx\"\n```\n\nChecks:\n- Raw `{{tags}}` remaining (target: 0)\n- XML validity of every file\n- python-pptx open test\n- Slide count matches template\n- Forbidden keywords scan\n\n---\n\n## Contract\n\n**Deliverables**: Branded PPTX deck from LEAN_BUSINESS_CASE.md\n**Validation**: \u002Fqa-pptx\n**Acceptance Criteria**:\n- All template tags filled from BC data (no raw {{TAG}} remaining)\n- No placeholder text remaining in output\n- Series tags use join strategy (newline-separated, never paragraph cloning)\n- SmartArt triple-file compliance (slide + data + drawing XMLs processed)\n- Visual QA passed (no duplication, overflow, split tags, or stale content)\n- Fill rate >= 80% before generation proceeds\n**Escalation Triggers**:\n- QA ISSUES FOUND twice on same deliverable → pause, escalate to user\n- Orphan ratio > 10% at Tag Inventory Check → stop, reconcile YAML\n**Max Rework Cycles**: 2\n\n## Step 5: QA Swarm\n\nRender slides and launch parallel QA agents (3 slides per agent):\n\n```\n\u002Fqa-pptx --slides 1,2,3 --pptx OFFER-XXX\u002FLEAN_BUSINESS_CASE.pptx\n\u002Fqa-pptx --slides 4,5,6 --pptx OFFER-XXX\u002FLEAN_BUSINESS_CASE.pptx\n...\n```\n\n**Launch ALL QA agents in parallel.**\n\nEach returns: PASS or ISSUES (slide_number, issue, fix_instruction).\n\n### Fix Loop\n1. Collect all issues\n2. Data errors: update _int_ai\u002Fslide_data.json, re-inject (Step 3)\n3. Re-render affected slides, re-QA\n4. Max 2 fix iterations\n\n---\n\n## Protected Slides (NEVER inject)\n\nAuthoritative list from `semantic_mapping.yaml` `protected_slides` (67-slide template v4.0):\n\n| Slide (presentation pos) | Content |\n|--------------------------|---------|\n| 2 | TOC |\n| 3 | Branding |\n| 4 | Framework |\n| 8 | Section separator — Case Background |\n| 10 | Section separator — Strategic Fit |\n| 14 | Section separator — Customer Problem |\n| 16 | Section separator — GTM Offering Overview |\n| 20 | Section separator — Commercial Value |\n| 26 | Section separator — Finance Credibility Gate |\n| 38 | Section separator — Sales Motion Readiness |\n| 45 | Section separator — Delivery & Ops |\n| 50 | Section separator — Capability & Dependency |\n| 57 | Section separator — Risk Assessment |\n| 60 | Section separator — Investment Ask |\n| 63 | Section separator — Success Metrics |\n| 67 | Thank You |\n\n**XML file note**: presentation positions 59-67 map to slide62.xml through slide70.xml\n(slide59-61.xml are orphaned — not in presentation, skip these in all operations).\n\n---\n\n## Dynamic Slides (cloned N times during generation)\n\n| Slide (presentation pos) | Logic | BC Source |\n|--------------------------|-------|-----------|\n| 58 | Risk card — duplicated N times per BC §9.1 risk count. Each copy uses RISK_TITLE, RISK_IMPACT, RISK_LIKELIHOOD, RISK_OVERALL, RISK_ROOT_CAUSE, RISK_INDICATOR_1\u002F2, RISK_OWNER, RISK_CRITERIA_1\u002F2\u002F3 | BC §9.1 |\n| 35-36 | SKU forecast table — one per segment (max 2 in template; clone if >2 segments) | BC §4.7 |\n\n**Risk card generation rule**: count Risk N entries in BC §9.1. Insert N-1 additional copies of slide 58 at position 58+k, renaming tags RISK_* with index _k suffix, then inject.\n\n---\n\n## Conditional Slides\n\n| Slide (presentation pos) | Condition | If absent |\n|--------------------------|-----------|-----------|\n| 13 | BC §2.2 has portfolio evolution\u002Fcannibalization detail | Hidden by default, leave as-is |\n| 51 | BC §8.3.0 Current State 4P overview exists | Leave empty |\n| 34 | BC has wave gates (§9.2) | Leave empty |\n| 35-36 | BC has segment-level SKU data | Only populate available segments |\n\n---\n\n## Rules\n\n1. **Read `_int_ai\u002F_pptx_pipeline\u002Ffiller_spec_BC.md`** before every generation\n2. **Never edit XML manually** when generate_pptx.py can handle it\n3. **Never use em-dashes** -- use double hyphens (--)\n4. **Protected slides are untouchable**\n5. **QA is mandatory** -- never skip Step 5\n6. **Max 200 chars per field**\n7. **No CIT abbreviation** -- always \"Cloud & IT\"\n8. **No SKU codes** -- use descriptive service names\n9. **Cross-slide consistency** -- revenue, margin, ARPU must match everywhere\n10. **80% minimum fill rate** -- ask user before proceeding if below\n11. **Object-grouped fill**: When filling multi-field objects (iterations, milestones, risk cards), extract complete objects from BC then write all fields per object together. Tags are structured `{{OBJECT_{n}_FIELD}}` -- fill by iterating over objects, not over fields. This prevents cross-field misalignment (e.g., iteration 2's year ending up next to iteration 1's label).\n    - **Milestone slots**: Each of the 5 milestone slots has exactly 2 fields: `DASH_MILESTONE_{n}_DATE` + `DASH_MILESTONE_{n}_ITEM`. There is NO `_TITLE` field -- do NOT produce one.\n12. **Double-index capability tables**: The 4 capability assessment slides (PEOPLE, PROCESS, PLATFORM, PARTNER) use a double-index pattern where M (capability columns) varies per LBC:\n    - JSON keys: `PEOPLE_CAP_1_HEADER`, `PEOPLE_CAP_2_HEADER`, ..., `PEOPLE_1_CAP_1`, `PEOPLE_1_CAP_2`, `PEOPLE_2_CAP_1`, etc. Risk column: `PEOPLE_1_RISK`, `PEOPLE_2_RISK`, ...\n    - **Extraction order**: iterate columns (m) first, then rows (n). For each BU row n, extract all M capability ratings plus the Risk value.\n    - **Pre-fill validation**: count capability columns M in the BC table and compare against M in the template PPTX. If they differ, STOP and ask the user -- the template table structure may need adjustment before injection.\n    - Same pattern applies to PROCESS_, PLATFORM_, PARTNER_ prefixes.\n","# BC-to-PPTX Generation Pipeline\n\nYou generate branded PPTX decks from LEAN_BUSINESS_CASE.md using the semantic placeholder template.\n\n**Reference documents** (read these before generating):\n- `OFFER-000 (Template)\u002F_int_ai\u002F_int_ai\u002F_pptx_pipeline\u002Ffiller_spec_BC.md` -- filling rules, structural constraints, formatting\n- `OFFER-000 (Template)\u002F_int_ai\u002F_int_ai\u002F_pptx_pipeline\u002Fsemantic_mapping.yaml` -- tag metadata (type, max_chars, bc_sections, descriptions)\n- `.claude\u002Fskills\u002Fpptx-template\u002Fguardrails.md` -- absolute rules\n\n**Visual context** (read alongside YAML for each slide):\n- `OFFER-000 (Template)\u002F_int_ai\u002F_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Freference\u002F` -- reference PNGs from a completed offering (style guide -- shows what a filled slide looks like)\n- `OFFER-000 (Template)\u002F_int_ai\u002F_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Ftemplate\u002F` -- template PNGs with `{{TAG}}` placeholders visible (shows tag positions and layout)\n\n## Architecture\n\n```\nLEAN_BUSINESS_CASE.md ──────────────────────────┐\n                                            │\n_int_ai\u002F_pptx_pipeline\u002Ffiller_spec_BC.md ──┤\n_int_ai\u002F_pptx_pipeline\u002Fsemantic_mapping.yaml┤\n_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Freference\u002F*.png ┤  (visual: completed slide style)\n_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Ftemplate\u002F*.png ─┤  (visual: tag positions)\n                                            │\n                           [Step 1: Visual-Context Fill] ──> _int_ai\u002Ffill_data.json\n                                            │\n                           [Step 1.5: Tag Inventory Check]\n                                            │\n                           [Step 2.5: Pilot Generation]\n                                            │\nTEMPLATE.pptx ──────────> [Step 3: Inject] ──────────────> output PPTX\n                            (generate_pptx.py)               │\n                                                   [Step 4: Post-flight]\n                                                             │\n                                                   [Step 5: QA Swarm]\n                                                             │\n                                                   LEAN_BUSINESS_CASE.pptx\n```\n\n## Argument Parsing\n\nWhen invoked with an argument (e.g., \"002\", \"OFFER-002\"):\n1. Extract the offer number\n2. Find folder: `Glob(\"20_OFFERS\u002FOFFER-{number}*\")`\n3. Verify `LEAN_BUSINESS_CASE.md` exists in that folder\n4. If NO match or no BC -> error\n\n---\n\n## Step 1: Visual-Context Fill\n\nRead the offering's `LEAN_BUSINESS_CASE.md` and produce `fill_data.json` using visual context + YAML metadata.\n\n**Per fill agent (8 parallel, one per PPTX section):**\n\nEach agent receives:\n1. **Full LEAN_BUSINESS_CASE.md** -- complete document for cross-reference\n2. **Reference PNGs** (`_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Freference\u002F`) -- what completed slides look like (style guide only, NEVER copy data)\n3. **Template PNGs** (`_int_ai\u002F_pptx_pipeline\u002Fslide_pngs\u002Ftemplate\u002F`) -- where `{{TAG}}` placeholders sit\n4. **YAML section extract** -- tag names, types, max_chars, visual_roles, bc_sections, descriptions, suggestions\n5. **filler_spec_BC.md** -- formatting rules, blacklist, consistency requirements\n\n**Agent instructions:**\n1. LOOK at the reference PNG -- understand what KIND of content goes on this slide (density, format, bullet count)\n2. LOOK at the template PNG -- see WHERE each `{{TAG}}` sits and how much space it has\n3. READ the BC sections listed in `bc_sections` for this slide (scoped extraction)\n4. READ the YAML tag metadata (description, suggestion, max_chars) for constraints\n5. For each tag: extract BC data, respecting `max_chars` and `visual_role`\n6. Fill ALL tags for the section at once -- ensure narrative coherence across slides\n7. Financial figures MUST be exact from BC -- never invent\n8. Ask user about offering-specific blacklist (filler_spec S2)\n\n**Output**: `OFFER-XXX\u002F_int_ai\u002Ffill_data.json` (flat JSON, series expanded as `TAG_1`, `TAG_2`, ...)\n\n**Output**: `OFFER-XXX\u002F_int_ai\u002Fslide_data.json`\n\n```json\n{\n  \"meta\": {\n    \"offering_id\": \"OFFER-002\",\n    \"offering_name\": \"1EDGE Secure Edge Cloud\",\n    \"iteration_num\": \"1\",\n    \"iteration_maturity\": \"Good\",\n    \"generated\": \"2026-03-22\"\n  },\n  \"TITLE_OFFERING\": \"1EDGE Secure Edge Cloud\",\n  \"TITLE_ITERATION\": \"Customer VM Hosting\",\n  \"TITLE_PILLAR\": \"Cloud & IT -- Portfolio and Innovation Strategy\",\n  \"ITERATION_NUM\": \"1\",\n  \"ITERATION_MATURITY\": \"Good\",\n  \"CANVAS_REVENUE_1\": \"VM subscriptions ($30\u002FVM\u002Fmo)\",\n  \"CANVAS_REVENUE_2\": \"Management fee ($31\u002FVM\u002Fmo)\",\n  ...\n}\n```\n\n**Rules** (from filler_spec S4):\n- Every value must be a string\n- Bullet lists: `\\n`-separated within a single field\n- Numbers: $X.XM (millions), $X,XXXK (thousands), X.X%\n- No markdown, no em-dashes (use --), max ~200 chars per field\n- Auto-fix: CIT -> \"Cloud & IT\", SKU codes -> service names\n\n---\n\n## Step 1.5: Tag Inventory Check (MANDATORY -- blocks Step 2)\n\nBefore validation, reconcile fill data against the actual template:\n\n1. **Count template slots**: open template PPTX, grep `{{TAG}}` across all XML files (slides + diagrams\u002Fdata + diagrams\u002Fdrawing). Count unique tag patterns.\n2. **Count fill data keys**: count unique keys in fill_data.json\n3. **Compare**:\n   - Tags in template with no fill data = **unfilled slots** (will show as raw `{{TAG}}` in output)\n   - Fill data keys with no template slot = **orphan data** (wasted extraction effort)\n4. **Report**: `Template: X slots, Fill data: Y keys, Matched: Z, Unfilled: A, Orphan: B`\n5. **Block if**: orphan ratio > 10% (indicates YAML has phantom tags not in template, or fill agents invented tag names)\n6. **Warn if**: unfilled slots > 5% (ask user: \"X tags have no data. Continue?\")\n\n**Why this step exists**: YAML generated from classification (not template scan) once produced 453 tag patterns for a template with 217 actual tags -- 80.9% orphan ratio, 9 STRUCTURAL failures. A 50% threshold failed to catch it. The 10% threshold catches YAML\u002Ftemplate drift early.\n\n---\n\n## Step 2: Validate Data\n\n```bash\npython 98_Scripts\u002Fvalidate_pptx_data.py \\\n  --data OFFER-XXX\u002F_int_ai\u002Fslide_data.json \\\n  --template \"OFFER-000 (Template)\u002FLEAN_BUSINESS_CASE_TEMPLATE.pptx\"\n```\n\nChecks (from filler_spec S2, S5, S6):\n- Forbidden keywords (CIT, SKU codes, offering blacklist)\n- Field length violations (>200 chars)\n- Cross-slide consistency (revenue, margin, ARPU across slides)\n- Template coverage (every tag in template has a value)\n- Fill rate (must be >= 80%)\n\nIf violations found: fix data, re-validate. Block on \u003C80% fill rate.\n\n---\n\n## Step 2.5: Pilot Generation (MANDATORY -- blocks Step 3)\n\nBefore full generation, test on 3 representative slides:\n\n1. **Pick 3 slides**: 1 SmartArt (e.g., Case Background), 1 table (e.g., CTS Summary), 1 canvas\u002Fshapes (e.g., Canvas or Dashboard)\n2. **Run generate_pptx.py** on those slides only (or full run, then inspect these 3)\n3. **Render to PNG** and visually inspect for the 5 known failure modes:\n   - **Duplication**: same content repeated 2-6x in a cell (series join failure)\n   - **Missing SmartArt**: raw `{{TAG}}` visible on SmartArt slides (triple-file violation)\n   - **Split tags**: partial `{{TAG` visible (tag spans two `\u003Ca:r>` runs)\n   - **Overflow**: text cut off or wrapping badly (max_chars violated)\n   - **Stale content**: original template text still showing (replacement failed)\n4. **If any failure**: fix generate script or fill data BEFORE full generation\n5. **If clean**: proceed to Step 3\n\n**Why**: full 57-slide generation + QA swarm is expensive. Catching errors on 3 slides saves 80% of rework.\n\n---\n\n## Step 3: Inject Data\n\n```bash\npython 98_Scripts\u002Fgenerate_pptx.py \\\n  \"OFFER-000 (Template)\u002FLEAN_BUSINESS_CASE_TEMPLATE.pptx\" \\\n  OFFER-XXX\u002F_int_ai\u002Ffill_data.json \\\n  OFFER-XXX\u002FLEAN_BUSINESS_CASE.pptx\n```\n\nThe script:\n1. Opens template as zip\n2. Builds series expansions (`TAG_{n}` -> joined newline string from `TAG_1`, `TAG_2`, ...)\n3. Processes ALL XML files: `slides\u002Fslide*.xml` + `diagrams\u002Fdata*.xml` + `diagrams\u002Fdrawing*.xml`\n4. Deduplicates: first occurrence of each tag gets the value, subsequent occurrences emptied\n5. Cleans up empty paragraphs left by deduplication\n6. Validates XML after modifications (lxml parse test)\n7. Reports: replaced\u002Fremaining breakdown per file\n\n**Do NOT edit XML manually.** The script handles all text replacement.\n\n---\n\n## Step 4: Post-flight Verification\n\n```bash\npython 98_Scripts\u002Fpostflight_pptx.py \\\n  --pptx OFFER-XXX\u002FLEAN_BUSINESS_CASE.pptx \\\n  --template \"OFFER-000 (Template)\u002FLEAN_BUSINESS_CASE_TEMPLATE.pptx\"\n```\n\nChecks:\n- Raw `{{tags}}` remaining (target: 0)\n- XML validity of every file\n- python-pptx open test\n- Slide count matches template\n- Forbidden keywords scan\n\n---\n\n## Contract\n\n**Deliverables**: Branded PPTX deck from LEAN_BUSINESS_CASE.md\n**Validation**: \u002Fqa-pptx\n**Acceptance Criteria**:\n- All template tags filled from BC data (no raw {{TAG}} remaining)\n- No placeholder text remaining in output\n- Series tags use join strategy (newline-separated, never paragraph cloning)\n- SmartArt triple-file compliance (slide + data + drawing XMLs processed)\n- Visual QA passed (no duplication, overflow, split tags, or stale content)\n- Fill rate >= 80% before generation proceeds\n**Escalation Triggers**:\n- QA ISSUES FOUND twice on same deliverable → pause, escalate to user\n- Orphan ratio > 10% at Tag Inventory Check → stop, reconcile YAML\n**Max Rework Cycles**: 2\n\n## Step 5: QA Swarm\n\nRender slides and launch parallel QA agents (3 slides per agent):\n\n```\n\u002Fqa-pptx --slides 1,2,3 --pptx OFFER-XXX\u002FLEAN_BUSINESS_CASE.pptx\n\u002Fqa-pptx --slides 4,5,6 --pptx OFFER-XXX\u002FLEAN_BUSINESS_CASE.pptx\n...\n```\n\n**Launch ALL QA agents in parallel.**\n\nEach returns: PASS or ISSUES (slide_number, issue, fix_instruction).\n\n### Fix Loop\n1. Collect all issues\n2. Data errors: update _int_ai\u002Fslide_data.json, re-inject (Step 3)\n3. Re-render affected slides, re-QA\n4. Max 2 fix iterations\n\n---\n\n## Protected Slides (NEVER inject)\n\nAuthoritative list from `semantic_mapping.yaml` `protected_slides` (67-slide template v4.0):\n\n| Slide (presentation pos) | Content |\n|--------------------------|---------|\n| 2 | TOC |\n| 3 | Branding |\n| 4 | Framework |\n| 8 | Section separator — Case Background |\n| 10 | Section separator — Strategic Fit |\n| 14 | Section separator — Customer Problem |\n| 16 | Section separator — GTM Offering Overview |\n| 20 | Section separator — Commercial Value |\n| 26 | Section separator — Finance Credibility Gate |\n| 38 | Section separator — Sales Motion Readiness |\n| 45 | Section separator — Delivery & Ops |\n| 50 | Section separator — Capability & Dependency |\n| 57 | Section separator — Risk Assessment |\n| 60 | Section separator — Investment Ask |\n| 63 | Section separator — Success Metrics |\n| 67 | Thank You |\n\n**XML file note**: presentation positions 59-67 map to slide62.xml through slide70.xml\n(slide59-61.xml are orphaned — not in presentation, skip these in all operations).\n\n---\n\n## Dynamic Slides (cloned N times during generation)\n\n| Slide (presentation pos) | Logic | BC Source |\n|--------------------------|-------|-----------|\n| 58 | Risk card — duplicated N times per BC §9.1 risk count. Each copy uses RISK_TITLE, RISK_IMPACT, RISK_LIKELIHOOD, RISK_OVERALL, RISK_ROOT_CAUSE, RISK_INDICATOR_1\u002F2, RISK_OWNER, RISK_CRITERIA_1\u002F2\u002F3 | BC §9.1 |\n| 35-36 | SKU forecast table — one per segment (max 2 in template; clone if >2 segments) | BC §4.7 |\n\n**Risk card generation rule**: count Risk N entries in BC §9.1. Insert N-1 additional copies of slide 58 at position 58+k, renaming tags RISK_* with index _k suffix, then inject.\n\n---\n\n## Conditional Slides\n\n| Slide (presentation pos) | Condition | If absent |\n|--------------------------|-----------|-----------|\n| 13 | BC §2.2 has portfolio evolution\u002Fcannibalization detail | Hidden by default, leave as-is |\n| 51 | BC §8.3.0 Current State 4P overview exists | Leave empty |\n| 34 | BC has wave gates (§9.2) | Leave empty |\n| 35-36 | BC has segment-level SKU data | Only populate available segments |\n\n---\n\n## Rules\n\n1. **Read `_int_ai\u002F_pptx_pipeline\u002Ffiller_spec_BC.md`** before every generation\n2. **Never edit XML manually** when generate_pptx.py can handle it\n3. **Never use em-dashes** -- use double hyphens (--)\n4. **Protected slides are untouchable**\n5. **QA is mandatory** -- never skip Step 5\n6. **Max 200 chars per field**\n7. **No CIT abbreviation** -- always \"Cloud & IT\"\n8. **No SKU codes** -- use descriptive service names\n9. **Cross-slide consistency** -- revenue, margin, ARPU must match everywhere\n10. **80% minimum fill rate** -- ask user before proceeding if below\n11. **Object-grouped fill**: When filling multi-field objects (iterations, milestones, risk cards), extract complete objects from BC then write all fields per object together. Tags are structured `{{OBJECT_{n}_FIELD}}` -- fill by iterating over objects, not over fields. This prevents cross-field misalignment (e.g., iteration 2's year ending up next to iteration 1's label).\n    - **Milestone slots**: Each of the 5 milestone slots has exactly 2 fields: `DASH_MILESTONE_{n}_DATE` + `DASH_MILESTONE_{n}_ITEM`. There is NO `_TITLE` field -- do NOT produce one.\n12. **Double-index capability tables**: The 4 capability assessment slides (PEOPLE, PROCESS, PLATFORM, PARTNER) use a double-index pattern where M (capability columns) varies per LBC:\n    - JSON keys: `PEOPLE_CAP_1_HEADER`, `PEOPLE_CAP_2_HEADER`, ..., `PEOPLE_1_CAP_1`, `PEOPLE_1_CAP_2`, `PEOPLE_2_CAP_1`, etc. Risk column: `PEOPLE_1_RISK`, `PEOPLE_2_RISK`, ...\n    - **Extraction order**: iterate columns (m) first, then rows (n). For each BU row n, extract all M capability ratings plus the Risk value.\n    - **Pre-fill validation**: count capability columns M in the BC table and compare against M in the template PPTX. If they differ, STOP and ask the user -- the template table structure may need adjustment before injection.\n    - Same pattern applies to PROCESS_, PLATFORM_, PARTNER_ prefixes.\n",{"name":5,"model":24,"context":31,"description":44,"allowed-tools":45},"Generates a branded PPTX deck from LEAN_BUSINESS_CASE.md using the Marlink template. Pipeline: Extract BC data -> validate -> inject into template -> QA swarm. Use after LEAN_BUSINESS_CASE.md is approved and ready for presentation. Also use when user says \"generate deck\", \"create slides\", \"make pptx\", \"presentation\".\n","Read, Glob, Grep, Edit, Write, Bash, Agent, Skill","master","f57cddf3a79f076c1bb1ba9c187850fba797c0c9","skills\u002Fbc-to-pptx",1,"https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro","https:\u002F\u002Fgithub.com\u002FWizarck","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Framirezarturo\u002F","Geek by birth, with not much to say but plenty to talk about.","2026-09-25 20:04:26",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add Wizarck\u002Fnexandro --skill bc-to-pptx",{"tool":61,"command":62},"bunx","bunx skills add Wizarck\u002Fnexandro --skill bc-to-pptx",{"tool":64,"command":65},"pnpm","pnpm dlx skills add Wizarck\u002Fnexandro --skill bc-to-pptx","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro\u002Fblob\u002Fmaster\u002Fskills\u002Fbc-to-pptx\u002FSKILL.md",true,[69],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"slide_mapping.yaml","REFERENCE","参考文档",10151,"https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro\u002Fblob\u002Fmaster\u002Fskills\u002Fbc-to-pptx\u002Fslide_mapping.yaml",[76,84,91,98,105,112],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":83},"01M73K0P72HBEWKVDWWM4BWPE6","bmad-testarch-test-design","Create system-level or epic-level test plans. Use when the user says \"lets design test plan\" or \"I want to create test strategy\"","https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro\u002Fblob\u002Fmaster\u002Fskills\u002Fbmad-testarch-test-design\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":83},"01M73K0JDJAJ5WDFEPH1ZVHSC4","bmad-testarch-framework","Initialize test framework with Playwright or Cypress. Use when the user says \"lets setup test framework\" or \"I want to initialize testing framework\"","https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro\u002Fblob\u002Fmaster\u002Fskills\u002Fbmad-testarch-framework\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":83},"01M73K0GK3E0EXMYXZ53ZFBMBH","bmad-testarch-ci","Scaffold CI\u002FCD quality pipeline with test execution. Use when the user says \"lets setup CI pipeline\" or \"I want to create quality gates\"","https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro\u002Fblob\u002Fmaster\u002Fskills\u002Fbmad-testarch-ci\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":83},"01M73K0CT6QVZ4X2CZERGQCPTN","bmad-testarch-atdd","Generate red-phase acceptance test scaffolds using the TDD cycle. Use when the user says \"lets write acceptance tests\" or \"I want to do ATDD\"","https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro\u002Fblob\u002Fmaster\u002Fskills\u002Fbmad-testarch-atdd\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":83},"01M73K080FZKDJSHQ1VMRSXPD9","bmad-tea","Master Test Architect and Quality Advisor. Use when the user asks to talk to Murat or requests the Test Architect.","https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro\u002Fblob\u002Fmaster\u002Fskills\u002Fbmad-tea\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":83},"01M73K0145JSDSF9ZX99SFGWP4","bmad-retrospective","Post-epic review to extract lessons and assess success. Use when the user says \"run a retrospective\" or \"lets retro the epic [epic]\"","https:\u002F\u002Fgithub.com\u002FWizarck\u002Fnexandro\u002Fblob\u002Fmaster\u002Fskills\u002Fbmad-retrospective\u002FSKILL.md",[],[]]