[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75JGPQ4KJ41HZTR1DABAMBQ":3,"skill-same:01M75JGPQ4KJ41HZTR1DABAMBQ":69},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":52},"01M75JGPQ4KJ41HZTR1DABAMBQ","canon-slides",null,"Generates Marp slide decks from canon knowledge. Use when asked to create slides, build a presentation, or generate a deck on a canon topic (context management, evaluator pattern, or skill authoring). Renders to HTML and PPTX for browser viewing and SharePoint\u002FPowerPoint distribution.","sunitghub\u002Fcanon-skills","sunitghub","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F154850182?v=4","01M75JGBZ2TQM1BG49YHTRGHZR","Sunit Joshi","01M75JGC05YY1W8RW5SJAWWTB8",9,"MIT","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanon-slides\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: canon-slides\ndescription: Generates Marp slide decks from canon knowledge. Use when asked to create slides, build a presentation, or generate a deck on a canon topic (context management, evaluator pattern, or skill authoring). Renders to HTML and PPTX for browser viewing and SharePoint\u002FPowerPoint distribution.\ncategory: ops\ntags: [slides, marp, presentations, knowledge]\nargument-hint: \"[topic]\"\nhidden: true\n---\n\n# canon-slides\n\nGenerates a Marp slide deck from canon source files and renders it to HTML and PPTX.\n\n## Usage\n\n```\n\u002Fcanon-slides \u003Ctopic>\n```\n\n**Topics:**\n\n| Slug | What it covers |\n|---|---|\n| `context-management` | Token efficiency, always-on vs on-demand loading, context bloat patterns |\n| `evaluator-pattern` | Generator-evaluator separation, clean context eval, avoiding self-grading |\n| `skill-authoring` | Skill structure, description quality, eval coverage, gotchas pattern |\n\n## Steps\n\n**1. Parse arguments.** Extract the topic slug from `$ARGUMENTS`. If the topic is not one of the three above, stop and list the valid options.\n\n**2. Read source files for the topic.**\n\nFor `context-management`, read:\n- `standards\u002Fefficiency.md` (Token Efficiency section)\n- `skills\u002Fcontext-check\u002FSKILL.md`\n- `skills\u002Fsprint\u002FSKILL.md` (the always-on vs on-demand loading distinction)\n\nFor `evaluator-pattern`, read:\n- `skills\u002Fsprint\u002Freference\u002Feval.md`\n- `skills\u002Fskill-eval\u002FSKILL.md`\n- `DECISIONS.md` (entries mentioning \"evaluator\", \"generator-evaluator\", or \"clean context\")\n\nFor `skill-authoring`, read:\n- `standards\u002Fskill-setup-std.md`\n- `skills\u002Fskill-eval\u002FSKILL.md` (the evals and testing section)\n\n**2b. Check for applicable partials.** Before writing slides, read `skills\u002Fcanon-slides\u002Fpartials\u002F` and list available partials. If a partial fits the deck's topic or audience, read it and insert it verbatim at the appropriate position — do not rewrite or inline its content by hand.\n\n| Partial | When to include |\n|---|---|\n| `worthwhile-harness.md` | Any intro or pitch deck where the audience needs to understand what a harness must do before seeing canon specifically. Insert after the problem slide, before the canon overview. |\n\nMarp has no native include syntax. The DRY contract is: **edit partials, not decks**. If a slide in a deck was sourced from a partial, add a HTML comment above it: `\u003C!-- partial: worthwhile-harness.md -->`. Future edits go to the partial; the deck is regenerated.\n\n**3. Write `posts\u002Fslides\u002F\u003Ctopic>.md`.** Create the file with this header:\n\n```markdown\n---\nmarp: true\ntheme: canon\npaginate: true\nhtml: true\n---\n```\n\n`html: true` is required — without it, all `\u003Cdiv>` styling is stripped by Marp.\n\n**Card\u002Fstep reveal uses Marp's native fragment feature — do not hand-roll CSS animation\u002Ftransition for this.** Add `data-marpit-fragment=\"N\"` (sequential per slide, starting at 1) to each card\u002Fstep element:\n\n```html\n\u003Cdiv class=\"card\" data-marpit-fragment=\"1\" style=\"...\">First point\u003C\u002Fdiv>\n\u003Cdiv class=\"card\" data-marpit-fragment=\"2\" style=\"...\">Second point\u003C\u002Fdiv>\n\u003Cdiv class=\"card\" data-marpit-fragment=\"3\" style=\"...\">Third point\u003C\u002Fdiv>\n```\n\nMarp's bespoke viewer discovers every `[data-marpit-fragment]` element in a slide via `querySelectorAll` (in document order — the attribute's value doesn't matter, only its presence and DOM position) and reveals them one at a time as the viewer advances (space\u002Farrow), only moving to the *next slide* once every fragment on the current one is revealed. This is what \"slide in one-by-one\" actually means for a Marp deck: a click-through build, not a timed auto-cascade. PPTX\u002Fprint output ignores fragment state and always shows every fragment fully revealed (there's a dedicated print media-query rule for this) — expected, not a bug.\n\n**Do not attempt a custom CSS-only reveal keyed off the active slide.** Two independent things break it, and both are hard to notice until you actually navigate the deck rather than just looking at a single rendered slide: (1) any `\u003Cstyle>` block written in the deck's own markdown gets auto-scoped by Marpit — every selector is rewritten to require being a *descendant* of the current section (e.g. `.card` becomes `... > section .card`), so a selector like `svg.bespoke-marp-active .card` — which needs `.card` to be a descendant of the *ancestor* `\u003Csvg>` that actually receives the active-slide class — can never match; it's asking for a nested svg inside the section that doesn't exist. Moving the same rule into the theme CSS file doesn't help — theme CSS gets the identical per-section scoping. (2) Even a correctly-scoped `@keyframes`\u002F`animation` gets its `animation-name` force-reset to a no-op by Marp's own bespoke CSS (`svg.bespoke-marp-active.bespoke-marp-active-ready * { animation-name: __bespoke_marp__ !important; }`) moments after the slide becomes active — so the animation is silently killed before it visibly plays. Native fragments sidestep both problems entirely, since they only need same-section attribute matching, which Marp's core (unscoped) fragment CSS already handles.\n\n**Space-filling — every slide uses a 3-row layout: heading \u002F body \u002F footer.**\n\nThe section is `display:flex; flex-direction:column; justify-content:flex-start` with `padding: 52px 72px 64px` on a 720px canvas. **Never use `height:X%` on body containers** — percentage resolution against a flex container's padded size is browser-dependent and clips footers. Instead, use `flex:1; min-height:0` on the direct child of the section (the body container). This fills exactly the remaining space after the h2 with no percentage guessing needed.\n\n**Single source of truth — use this pattern every time, without modification:**\n\n```html\n\u003C!-- Body only (no footer) -->\n\u003Cdiv style=\"display:flex; flex-direction:column; flex:1; min-height:0; justify-content:space-evenly; gap:12px;\">\n  \u003C!-- cards, diagrams, etc -->\n\u003C\u002Fdiv>\n\n\u003C!-- Body + footer (callout \u002F caption) -->\n\u003Cdiv style=\"display:grid; grid-template-rows:1fr auto; flex:1; min-height:0; gap:10px;\">\n  \u003Cdiv style=\"display:flex; gap:14px; min-height:0;\">\n    \u003C!-- body content — min-height:0 required so 1fr grid row is actually respected -->\n  \u003C\u002Fdiv>\n  \u003Cdiv style=\"padding:10px 16px; background:rgba(62,64,71,0.3); border-left:3px solid #00FFFF; border-radius:0 8px 8px 0; font-size:0.8em; color:#B2B8C4;\">\n    Footer callout text here.\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\n\u003C!-- Title \u002F big-number hook (no h2 above it) -->\n\u003Cdiv style=\"display:flex; flex-direction:column; justify-content:center; flex:1; min-height:0; gap:24px;\">\n  \u003C!-- centred content -->\n\u003C\u002Fdiv>\n```\n\n**Font-size scaling rule.** When a slide has dense content (4+ cards, code blocks + fix rows, or stacked diagrams), reduce font sizes proportionally rather than letting content overflow. Standard scale-down step:\n\n| Content density | Card padding | Body text | Code text | Badge |\n|---|---|---|---|---|\n| Normal (2–3 items) | `16px 18px` | `0.76em` | `0.65em` | `28px` |\n| Dense (4 items + fix rows) | `12px 14px` | `0.68em` | `0.60em` | `22px` |\n| Very dense (6+ items) | `10px 12px` | `0.62em` | `0.56em` | `18px` |\n\nReduce gap between cards accordingly: `gap:14px` → `gap:10px` → `gap:8px`. Never clip or overflow — scale down first.\n\n**Cards containing code blocks (`\u003Cpre>` inside a card column):** The body row flex container MUST have `min-height:0`, and each card MUST have `min-height:0; overflow:hidden`. Without these, grid's `1fr` allocation is ignored and cards overflow into the footer. The `\u003Cpre>` inside the card gets `flex:1; overflow:hidden` so it fills but doesn't burst past the card boundary. Also drop stat numbers from `1.6em` → `1.3em` and body text from `0.76em` → `0.72em` to recover vertical space.\n\nRules:\n1. **`flex:1; min-height:0`** on every outer body container — no exceptions, no `height:X%`.\n2. Inside the body div, use `flex:1` on expanding children — never hardcode `height:Npx` on layout containers.\n3. Column layouts use `display:flex; align-items:stretch` (not `align-items:center`) with `flex:1` columns so they fill the available height.\n4. Footer callouts use `grid-template-rows:1fr auto` — `auto` guarantees the footer its natural height; `1fr` gives the body the rest.\n5. Never put the footer outside the `flex:1` container (orphaned elements render in a tiny strip below the content area).\n6. Vertical card lists (2–3 short cards) default to `justify-content:flex-start`, which packs them at the top and leaves the remaining height as dead space below — `flex:1` on the container only guarantees it *can* fill the slide, not that its children do. Use `justify-content:space-evenly` so leftover vertical space distributes as equal gaps around each card instead of collecting at the bottom. This is a pure CSS distribution, not a per-item size calculation — with 4+ cards or dense content the extra space per gap shrinks to nearly nothing on its own, so no different rule is needed at higher density.\n\nQuick reference:\n\n| Slide type | Outer container |\n|---|---|\n| Body + footer callout | `display:grid; grid-template-rows:1fr auto; flex:1; min-height:0; gap:10px` |\n| Side-by-side columns | `display:flex; align-items:stretch; flex:1; min-height:0; gap:20px` |\n| 2-column card grid | `display:grid; grid-template-columns:1fr 1fr; flex:1; min-height:0; gap:16px` |\n| Vertical card list | `display:flex; flex-direction:column; flex:1; min-height:0; justify-content:space-evenly; gap:12px` |\n| Flow\u002Fpipeline | `display:flex; flex-direction:column; align-items:center; flex:1; min-height:0` |\n| Title \u002F hook (no h2) | `display:flex; flex-direction:column; justify-content:center; flex:1; min-height:0` |\n\n**Orphan check — no elements outside the flex container.** After writing each slide, verify that every visible element (blockquotes, captions, footnotes, closing remarks) lives *inside* the `flex:1; min-height:0` body container — not after the closing `\u003C\u002Fdiv>`. Elements placed after the container render wherever remaining space allows, typically a tiny strip near the bottom. The pattern to avoid:\n\n```html\n\u003C!-- ✗ Wrong: caption is orphaned outside the body container -->\n\u003Cdiv style=\"flex:1; min-height:0; display:flex; ...\">\n  \u003Cdiv>big content\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\u003Cdiv style=\"font-size:0.85em; color:#6F7480;\">caption here\u003C\u002Fdiv>\n\n\u003C!-- ✓ Right: caption inside, full layout owned by one container -->\n\u003Cdiv style=\"display:flex; flex-direction:column; justify-content:center; flex:1; min-height:0; gap:28px;\">\n  \u003Cdiv>big content\u003C\u002Fdiv>\n  \u003Cdiv style=\"font-size:0.85em; color:#6F7480; text-align:center;\">caption here\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\nFor \"big number + caption\" hook slides specifically: use `display:flex; flex-direction:column; justify-content:center; align-items:center; flex:1; min-height:0; gap:28px` with both the number and its caption as direct children — this keeps them vertically centred together as a unit.\n\n**Slide structure** — target 15–20 slides for a 20–30 min talk (~90 s\u002Fslide):\n\n- **Title slide** — never use bare `# Heading` + paragraph for the title slide. It renders top-left with huge empty space below. Use a full-height centered HTML layout instead:\n\n```html\n\u003Cdiv style=\"display:flex; flex-direction:column; justify-content:center; flex:1; min-height:0; gap:24px;\">\n\u003Cdiv style=\"display:flex; flex-direction:column; gap:16px;\">\n\u003Cdiv style=\"font-size:3.2em; font-weight:900; line-height:1.1; color:#FFFFFF; letter-spacing:-0.02em;\">Deck Title Here\u003C\u002Fdiv>\n\u003Cdiv style=\"width:72px; height:4px; background:linear-gradient(90deg,#00FFFF,#4FFF00); border-radius:2px;\">\u003C\u002Fdiv>\n\u003Cdiv style=\"font-size:1.15em; color:#00FFFF; font-weight:400; line-height:1.5;\">One-line hook subtitle goes here — no max-width, no &lt;br&gt;\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n- **Hook \u002F thought experiment** — concrete scenario before any jargon (1 slide)\n- **Problem \u002F Why this matters** — what goes wrong without this pattern (1–2 slides)\n- **Core pattern** — the key concept explained clearly (2–3 slides)\n- **Canon implementation** — how canon handles this concretely, with specific examples from the source files (2–3 slides)\n- **Gotchas \u002F What to watch for** — failure modes and non-obvious constraints (1 slide)\n- **Summary** — one slide, 3–5 bullet takeaways\n- **Q&A \u002F Try it** — one slide with a concrete next action\n\n**Visual design rules (learned from real-world conference decks):**\n\n*Bullet lists → card grids.* Never use bare `\u003Cul>` for key points. Use a card grid instead:\n```html\n\u003Cdiv style=\"display:flex; flex-direction:column; gap:12px; margin-top:16px;\">\n  \u003Cdiv class=\"card c1\" style=\"display:flex; gap:18px; align-items:center; padding:14px 20px;\n    background:rgba(62,64,71,0.35); border-radius:10px; border-left:4px solid #00FFFF;\">\n    \u003Cdiv style=\"font-size:1.5em; font-weight:800; color:#00FFFF; min-width:28px; flex-shrink:0;\">1\u003C\u002Fdiv>\n    \u003Cdiv style=\"font-size:0.88em; line-height:1.45;\">\u003Cstrong>Rule text here\u003C\u002Fstrong> — explanation\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n  \u003C!-- repeat with .c2, .c3 and rotate accent colors: #4FFF00 #FFF500 #F46600 #FF00C7 -->\n\u003C\u002Fdiv>\n```\n\n*Two-column comparisons.* Use bordered columns with a colored header strip:\n```html\n\u003Cdiv style=\"flex:1; display:flex; flex-direction:column; border-radius:10px; overflow:hidden; border:1px solid rgba(0,255,255,0.25);\">\n  \u003Cdiv style=\"padding:12px 18px; background:rgba(0,255,255,0.15); font-size:0.68em;\n    text-transform:uppercase; letter-spacing:0.09em; color:#00FFFF; font-weight:600;\">Label\u003C\u002Fdiv>\n  \u003Cdiv style=\"flex:1; padding:16px; background:rgba(62,64,71,0.25);\">content\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n*Diagrams (context window, stacks, timelines).* The diagram column must be at least `width:260px` — narrow columns look decorative, not informative. Box labels at `font-size:0.72em`, numbers\u002Ftoken counts at `font-size:1em; font-weight:800`. The \"smart zone\" box uses `flex:1` so it fills available height. Bottom reserved-area boxes show the number left-aligned in bold and the label right-aligned. Use `justify-content:space-between` when the number and label are on opposite sides; use `margin-left:8px` when they sit adjacent (otherwise Marp collapses them together with no gap):\n```html\n\u003C!-- number left, label right (space-between) -->\n\u003Cdiv style=\"padding:11px 16px; border-radius:4px; display:flex; justify-content:space-between; align-items:center;\n  background:rgba(244,102,0,0.22); border:1px solid #F46600;\">\n  \u003Cspan style=\"font-size:1em; font-weight:800; color:#F46600;\">~33k\u003C\u002Fspan>\n  \u003Cspan style=\"font-size:0.68em; color:#F46600;\">compaction reserve\u003C\u002Fspan>\n\u003C\u002Fdiv>\n\n\u003C!-- number + label adjacent (use margin-left, not space-between) -->\n\u003Cdiv style=\"padding:11px 16px; border-radius:4px; display:flex; align-items:center;\n  background:rgba(244,102,0,0.22); border:1px solid #F46600;\">\n  \u003Cspan style=\"font-size:1em; font-weight:800; color:#F46600;\">~33k\u003C\u002Fspan>\n  \u003Cspan style=\"font-size:0.68em; color:#F46600; margin-left:8px;\">compaction reserve\u003C\u002Fspan>\n\u003C\u002Fdiv>\n```\n\n**Claude Code context window constants** (use these numbers in any context-management diagram):\n- Total window: **200k** tokens\n- Output reserve: **32k** (deduct from total → 168k input budget)\n- Compaction reserve: **~33k** (triggers at ~167k \u002F 83% of window)\n- System prompt baseline: **~14k** (system instructions + built-in tool definitions, no CLAUDE.md)\n- MCP schema cost: **5–10k per server** (loads every session whether called or not)\n- Cache reads: save cost (10% of base price) but **still consume window space**\n\n*SVG arrows in pipelines.* Use inline SVG for colored arrows — never plain text `→` or `↓` for diagrams that need visual weight:\n```html\n\u003Csvg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n  \u003Cpath d=\"M10 2 L10 14 M4 10 L10 16 L16 10\"\n    stroke=\"#00FFFF\" stroke-width=\"2\" fill=\"none\"\n    stroke-linecap=\"round\" stroke-linejoin=\"round\"\u002F>\n\u003C\u002Fsvg>\n```\nNever use `\u003ClinearGradient>` inside `\u003Cdefs>` — Marp's parser breaks on `\u003Cstop>` tags and renders subsequent HTML as raw source.\n\n*SVG diagonal leader lines (callout annotations).* Use when a label needs to point at the vertical midpoint of a tall diagram. Two diagonal lines converge from top-left and bottom-left to a horizontal tick, with the label to the right. The SVG uses `preserveAspectRatio=\"none\"` with a 0-100 viewBox and `vector-effect=\"non-scaling-stroke\"` to keep line weight consistent regardless of actual container dimensions:\n```html\n\u003Cdiv style=\"position:relative; flex:1; font-size:0.78em; color:#6F7480;\">\n  \u003Csvg style=\"position:absolute; top:0; left:0; width:100%; height:100%;\"\n       viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n    \u003Cline x1=\"2\" y1=\"0\"   x2=\"38\" y2=\"50\" stroke=\"#00FFFF\" stroke-width=\"1.5\" vector-effect=\"non-scaling-stroke\" stroke-linecap=\"round\"\u002F>\n    \u003Cline x1=\"2\" y1=\"100\" x2=\"38\" y2=\"50\" stroke=\"#00FFFF\" stroke-width=\"1.5\" vector-effect=\"non-scaling-stroke\" stroke-linecap=\"round\"\u002F>\n    \u003Cline x1=\"38\" y1=\"50\" x2=\"52\" y2=\"50\" stroke=\"#00FFFF\" stroke-width=\"1.5\" vector-effect=\"non-scaling-stroke\"\u002F>\n  \u003C\u002Fsvg>\n  \u003C!-- top-right anchor -->\n  \u003Cdiv style=\"position:absolute; top:0; right:0; color:#B2B8C4; font-weight:600;\">top label\u003C\u002Fdiv>\n  \u003C!-- centre label — positioned just right of the tick (left:55%) -->\n  \u003Cdiv style=\"position:absolute; top:50%; left:55%; transform:translateY(-50%);\">\n    \u003Cdiv style=\"font-size:1.8em; font-weight:800; color:#00FFFF; line-height:1;\">168k\u003C\u002Fdiv>\n    \u003Cdiv style=\"font-size:0.82em; color:#00FFFF;\">tokens\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n  \u003C!-- bottom-right anchor -->\n  \u003Cdiv style=\"position:absolute; bottom:0; right:0; text-align:right;\">bottom label\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n*Cards with a level badge (L1 \u002F L2 \u002F L3, numbered, lettered).* Never use a fixed `width:Xpx` column for a badge that also has a sublabel (`Deterministic`, `Behavioural`, etc.) — at Marp's scaled font size the text overflows into adjacent columns. Put the sublabel inline with the title instead:\n```html\n\u003Cdiv style=\"font-size:1.6em; font-weight:800; color:#00FFFF; flex-shrink:0; min-width:36px; text-align:center;\">L1\u003C\u002Fdiv>\n\u003Cdiv style=\"flex:1;\">\n  \u003Cdiv style=\"display:flex; align-items:baseline; gap:10px; margin-bottom:4px;\">\n    \u003Cspan style=\"font-size:0.85em; font-weight:700; color:#00FFFF;\">Title\u003C\u002Fspan>\n    \u003Cspan style=\"font-size:0.6em; color:#6F7480; text-transform:uppercase; letter-spacing:0.06em;\">Sublabel\u003C\u002Fspan>\n  \u003C\u002Fdiv>\n  \u003Cdiv style=\"font-size:0.78em; color:#B2B8C4; line-height:1.5;\">Description\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n*Weak-evidence \u002F checklist rows.* Each item in its own box (not a bare `\u003Cli>`):\n```html\n\u003Cdiv class=\"card c1\" style=\"display:flex; gap:14px; align-items:center; padding:13px 18px;\n  background:rgba(244,102,0,0.08); border-radius:8px; font-size:0.82em;\">\n  \u003Cspan style=\"color:#F46600; font-size:1.2em; flex-shrink:0;\">✗\u003C\u002Fspan>\n  \u003Cspan>item text\u003C\u002Fspan>\n\u003C\u002Fdiv>\n```\n\nGuidelines for slide copy:\n- Active voice, short sentences. Each slide has one point.\n- Code blocks use fenced ` ``` ` — Marp renders them with syntax highlighting.\n- Prefer concrete examples over abstract principles.\n- Marp slide separator is `---` on its own line. Do not skip it between slides.\n\n**4. Render to HTML and PPTX.** Prefer the repo render script:\n\n```bash\nnpm run slides -- \u003Ctopic>\n```\n\nIt writes both:\n- `posts\u002Fslides\u002F\u003Ctopic>.html`\n- `posts\u002Fslides\u002F\u003Ctopic>.pptx`\n\nThe HTML render keeps Marp's interactive deck behavior and repo-specific hardening. The PPTX render is for SharePoint\u002FPowerPoint distribution.\n\nIf you must run Marp manually, the HTML command is:\n\n```bash\nnpx @marp-team\u002Fmarp-cli posts\u002Fslides\u002F\u003Ctopic>.md \\\n  --theme skills\u002Fcanon-slides\u002Fthemes\u002Fcanon.css \\\n  -o posts\u002Fslides\u002F\u003Ctopic>.html \\\n  --allow-local-files \\\n  --html \\\n  --bespoke.transition=false\n```\n\nOmitting `--html` silently strips all `\u003Cdiv>` styling and the slides render as plain text.\n\nThe manual PPTX command is:\n\n```bash\nnpx @marp-team\u002Fmarp-cli posts\u002Fslides\u002F\u003Ctopic>.md \\\n  --theme skills\u002Fcanon-slides\u002Fthemes\u002Fcanon.css \\\n  -o posts\u002Fslides\u002F\u003Ctopic>.pptx \\\n  --allow-local-files \\\n  --html \\\n  --pptx\n```\n\nIf `npx` is not available or marp-cli fails, stop and tell the user:\n```\nmarp-cli not found. Install with: npm install -g @marp-team\u002Fmarp-cli\nThen rerun: npm run slides -- \u003Ctopic>\n```\n\n**5. Report output.** On success, tell the user:\n- Path to the `.md` source: `posts\u002Fslides\u002F\u003Ctopic>.md`\n- Path to the HTML: `posts\u002Fslides\u002F\u003Ctopic>.html`\n- Path to the PPTX: `posts\u002Fslides\u002F\u003Ctopic>.pptx`\n- How to open HTML locally: `open posts\u002Fslides\u002F\u003Ctopic>.html` (macOS) or just open it in any browser\n- How to use PPTX: upload `posts\u002Fslides\u002F\u003Ctopic>.pptx` to SharePoint or open it in PowerPoint\n\n## Reserved zone — page counter\n\nThe page counter (`section::after`) is positioned at **`bottom: 16px; right: 48px`** of the section. It renders at roughly **60 px wide × 18 px tall** at `font-size: 0.5em`. This puts it at approximately `x: 1136–1232 px, y: 686–704 px` on the 1280×720 canvas.\n\n**Never place content in the bottom-right corner of a slide.** The safe boundary is: keep content above `bottom: 48px` and left of `right: 120px` relative to the section. Absolute-positioned elements anchored to `bottom:0; right:0` of a content container will collide with the counter.\n\nThe page counter is in the bottom padding area (below the 604 px content zone), so flex\u002Fgrid body content won't collide — only `position:absolute` elements with low `bottom` values can reach it.\n\n## Gotchas\n\n- **Never embed images as base64 data URIs in slide HTML.** Large base64 `src` values cause GPU compositing artifacts: the browser caches the first slide's compositor layer and bleeds it through every subsequent slide. The first slide appears ghosted behind all others. Always use file references (`\u003Cimg src=\".\u002Ffilename.png\">`) and place images in `posts\u002Fslides\u002F` alongside the HTML. The `--allow-local-files` flag is already required for the theme, so local image refs work without extra flags.\n- **Disable browser transitions for deck HTML.** Marp's bespoke template keeps slides as stacked SVGs and browser compositing can leave inactive slides visually cached. Render with `--bespoke.transition=false`; the repo render script also injects CSS that uses `display:none` for inactive slides in normal presentation views.\n- **No blank lines inside HTML blocks.** Marp's markdown parser (markdown-it) exits HTML-block mode at the first blank line. Any content after a blank line inside a `\u003Cdiv>` structure is re-parsed as markdown — so a 4-space-indented `\u003Cdiv>` after a blank line becomes a code block displaying raw HTML source. Rule: once you open a `\u003Cdiv>`, write all child tags continuously with no blank lines between them until the outermost closing `\u003C\u002Fdiv>`. Use a single blank line only between top-level slide elements (markdown headings, paragraphs, and top-level HTML blocks).\n- **Never use SVG `\u003Cdefs>` or `\u003ClinearGradient>` inside slide HTML.** Marp's parser breaks on `\u003Cstop style=\"...\">` tags inside `\u003Cdefs>`, rendering all subsequent HTML in that slide as raw source code in a code block. Use a single solid stroke color for SVG arrows instead — gradients are not worth the parse failure.\n- **`--html` is not optional.** Omitting it from the marp-cli command silently strips all `\u003Cdiv>` and `\u003Cstyle>` blocks — slides render as plain unstyled text even though `html: true` is in the frontmatter. Always pass both.\n- **`html: true` in frontmatter alone is not enough** — the CLI flag and frontmatter key must both be set.\n- **Diagram column width ≥ 260px.** Narrower columns make the context-window and stack diagrams look decorative rather than readable. Use `width:260px; flex-shrink:0` for diagram columns.\n- **Numbered card sizes.** Large number labels (`font-size:1.5em; font-weight:800`) read clearly in a 1280×720 viewport. Anything smaller at `0.7em` or below disappears in a projector room.\n- **Vertical card lists need `justify-content:space-evenly`, not the `flex-start` default.** `flex:1; min-height:0` on the container only makes it *able* to fill the slide — with 2–3 short cards and no `justify-content` set, they pack at the top and leave a visible dead-space band below. `space-evenly` distributes the leftover height as equal gaps instead.\n- **Card\u002Fstep reveal uses native `data-marpit-fragment=\"N\"` attributes, never hand-rolled CSS.** See the explanation under step 3 — any custom animation\u002Ftransition keyed off the active slide either can't match (deck `\u003Cstyle>` blocks and theme CSS are both auto-scoped per-section, so a selector needing the ancestor `\u003Csvg>`'s active-slide class can never reach it) or gets silently killed (Marp force-resets `animation-name` to a no-op on the active slide once \"ready\"). Fragments are Marp's own unscoped mechanism and don't hit either trap.\n- Marp's `---` separators are load-bearing — they create slide breaks. Do not remove them when editing the `.md` source.\n- The `--allow-local-files` flag is required for CSS themes referenced by local path; without it, marp-cli silently ignores the theme.\n- The `theme:` value in the deck's frontmatter must match the theme name declared in the CSS (`\u002F* @theme canon *\u002F`). Mismatch causes marp-cli to fall back to default styling.\n- Run the render command from the repo root so relative paths to `skills\u002Fcanon-slides\u002Fthemes\u002F` resolve correctly.\n- If the deck opens blank in the browser, check the browser console — Content Security Policy on some browsers blocks local file CSS. Use `file:\u002F\u002F` URL or `open` on macOS.\n","# canon-slides\n\nGenerates a Marp slide deck from canon source files and renders it to HTML and PPTX.\n\n## Usage\n\n```\n\u002Fcanon-slides \u003Ctopic>\n```\n\n**Topics:**\n\n| Slug | What it covers |\n|---|---|\n| `context-management` | Token efficiency, always-on vs on-demand loading, context bloat patterns |\n| `evaluator-pattern` | Generator-evaluator separation, clean context eval, avoiding self-grading |\n| `skill-authoring` | Skill structure, description quality, eval coverage, gotchas pattern |\n\n## Steps\n\n**1. Parse arguments.** Extract the topic slug from `$ARGUMENTS`. If the topic is not one of the three above, stop and list the valid options.\n\n**2. Read source files for the topic.**\n\nFor `context-management`, read:\n- `standards\u002Fefficiency.md` (Token Efficiency section)\n- `skills\u002Fcontext-check\u002FSKILL.md`\n- `skills\u002Fsprint\u002FSKILL.md` (the always-on vs on-demand loading distinction)\n\nFor `evaluator-pattern`, read:\n- `skills\u002Fsprint\u002Freference\u002Feval.md`\n- `skills\u002Fskill-eval\u002FSKILL.md`\n- `DECISIONS.md` (entries mentioning \"evaluator\", \"generator-evaluator\", or \"clean context\")\n\nFor `skill-authoring`, read:\n- `standards\u002Fskill-setup-std.md`\n- `skills\u002Fskill-eval\u002FSKILL.md` (the evals and testing section)\n\n**2b. Check for applicable partials.** Before writing slides, read `skills\u002Fcanon-slides\u002Fpartials\u002F` and list available partials. If a partial fits the deck's topic or audience, read it and insert it verbatim at the appropriate position — do not rewrite or inline its content by hand.\n\n| Partial | When to include |\n|---|---|\n| `worthwhile-harness.md` | Any intro or pitch deck where the audience needs to understand what a harness must do before seeing canon specifically. Insert after the problem slide, before the canon overview. |\n\nMarp has no native include syntax. The DRY contract is: **edit partials, not decks**. If a slide in a deck was sourced from a partial, add a HTML comment above it: `\u003C!-- partial: worthwhile-harness.md -->`. Future edits go to the partial; the deck is regenerated.\n\n**3. Write `posts\u002Fslides\u002F\u003Ctopic>.md`.** Create the file with this header:\n\n```markdown\n---\nmarp: true\ntheme: canon\npaginate: true\nhtml: true\n---\n```\n\n`html: true` is required — without it, all `\u003Cdiv>` styling is stripped by Marp.\n\n**Card\u002Fstep reveal uses Marp's native fragment feature — do not hand-roll CSS animation\u002Ftransition for this.** Add `data-marpit-fragment=\"N\"` (sequential per slide, starting at 1) to each card\u002Fstep element:\n\n```html\n\u003Cdiv class=\"card\" data-marpit-fragment=\"1\" style=\"...\">First point\u003C\u002Fdiv>\n\u003Cdiv class=\"card\" data-marpit-fragment=\"2\" style=\"...\">Second point\u003C\u002Fdiv>\n\u003Cdiv class=\"card\" data-marpit-fragment=\"3\" style=\"...\">Third point\u003C\u002Fdiv>\n```\n\nMarp's bespoke viewer discovers every `[data-marpit-fragment]` element in a slide via `querySelectorAll` (in document order — the attribute's value doesn't matter, only its presence and DOM position) and reveals them one at a time as the viewer advances (space\u002Farrow), only moving to the *next slide* once every fragment on the current one is revealed. This is what \"slide in one-by-one\" actually means for a Marp deck: a click-through build, not a timed auto-cascade. PPTX\u002Fprint output ignores fragment state and always shows every fragment fully revealed (there's a dedicated print media-query rule for this) — expected, not a bug.\n\n**Do not attempt a custom CSS-only reveal keyed off the active slide.** Two independent things break it, and both are hard to notice until you actually navigate the deck rather than just looking at a single rendered slide: (1) any `\u003Cstyle>` block written in the deck's own markdown gets auto-scoped by Marpit — every selector is rewritten to require being a *descendant* of the current section (e.g. `.card` becomes `... > section .card`), so a selector like `svg.bespoke-marp-active .card` — which needs `.card` to be a descendant of the *ancestor* `\u003Csvg>` that actually receives the active-slide class — can never match; it's asking for a nested svg inside the section that doesn't exist. Moving the same rule into the theme CSS file doesn't help — theme CSS gets the identical per-section scoping. (2) Even a correctly-scoped `@keyframes`\u002F`animation` gets its `animation-name` force-reset to a no-op by Marp's own bespoke CSS (`svg.bespoke-marp-active.bespoke-marp-active-ready * { animation-name: __bespoke_marp__ !important; }`) moments after the slide becomes active — so the animation is silently killed before it visibly plays. Native fragments sidestep both problems entirely, since they only need same-section attribute matching, which Marp's core (unscoped) fragment CSS already handles.\n\n**Space-filling — every slide uses a 3-row layout: heading \u002F body \u002F footer.**\n\nThe section is `display:flex; flex-direction:column; justify-content:flex-start` with `padding: 52px 72px 64px` on a 720px canvas. **Never use `height:X%` on body containers** — percentage resolution against a flex container's padded size is browser-dependent and clips footers. Instead, use `flex:1; min-height:0` on the direct child of the section (the body container). This fills exactly the remaining space after the h2 with no percentage guessing needed.\n\n**Single source of truth — use this pattern every time, without modification:**\n\n```html\n\u003C!-- Body only (no footer) -->\n\u003Cdiv style=\"display:flex; flex-direction:column; flex:1; min-height:0; justify-content:space-evenly; gap:12px;\">\n  \u003C!-- cards, diagrams, etc -->\n\u003C\u002Fdiv>\n\n\u003C!-- Body + footer (callout \u002F caption) -->\n\u003Cdiv style=\"display:grid; grid-template-rows:1fr auto; flex:1; min-height:0; gap:10px;\">\n  \u003Cdiv style=\"display:flex; gap:14px; min-height:0;\">\n    \u003C!-- body content — min-height:0 required so 1fr grid row is actually respected -->\n  \u003C\u002Fdiv>\n  \u003Cdiv style=\"padding:10px 16px; background:rgba(62,64,71,0.3); border-left:3px solid #00FFFF; border-radius:0 8px 8px 0; font-size:0.8em; color:#B2B8C4;\">\n    Footer callout text here.\n  \u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\n\u003C!-- Title \u002F big-number hook (no h2 above it) -->\n\u003Cdiv style=\"display:flex; flex-direction:column; justify-content:center; flex:1; min-height:0; gap:24px;\">\n  \u003C!-- centred content -->\n\u003C\u002Fdiv>\n```\n\n**Font-size scaling rule.** When a slide has dense content (4+ cards, code blocks + fix rows, or stacked diagrams), reduce font sizes proportionally rather than letting content overflow. Standard scale-down step:\n\n| Content density | Card padding | Body text | Code text | Badge |\n|---|---|---|---|---|\n| Normal (2–3 items) | `16px 18px` | `0.76em` | `0.65em` | `28px` |\n| Dense (4 items + fix rows) | `12px 14px` | `0.68em` | `0.60em` | `22px` |\n| Very dense (6+ items) | `10px 12px` | `0.62em` | `0.56em` | `18px` |\n\nReduce gap between cards accordingly: `gap:14px` → `gap:10px` → `gap:8px`. Never clip or overflow — scale down first.\n\n**Cards containing code blocks (`\u003Cpre>` inside a card column):** The body row flex container MUST have `min-height:0`, and each card MUST have `min-height:0; overflow:hidden`. Without these, grid's `1fr` allocation is ignored and cards overflow into the footer. The `\u003Cpre>` inside the card gets `flex:1; overflow:hidden` so it fills but doesn't burst past the card boundary. Also drop stat numbers from `1.6em` → `1.3em` and body text from `0.76em` → `0.72em` to recover vertical space.\n\nRules:\n1. **`flex:1; min-height:0`** on every outer body container — no exceptions, no `height:X%`.\n2. Inside the body div, use `flex:1` on expanding children — never hardcode `height:Npx` on layout containers.\n3. Column layouts use `display:flex; align-items:stretch` (not `align-items:center`) with `flex:1` columns so they fill the available height.\n4. Footer callouts use `grid-template-rows:1fr auto` — `auto` guarantees the footer its natural height; `1fr` gives the body the rest.\n5. Never put the footer outside the `flex:1` container (orphaned elements render in a tiny strip below the content area).\n6. Vertical card lists (2–3 short cards) default to `justify-content:flex-start`, which packs them at the top and leaves the remaining height as dead space below — `flex:1` on the container only guarantees it *can* fill the slide, not that its children do. Use `justify-content:space-evenly` so leftover vertical space distributes as equal gaps around each card instead of collecting at the bottom. This is a pure CSS distribution, not a per-item size calculation — with 4+ cards or dense content the extra space per gap shrinks to nearly nothing on its own, so no different rule is needed at higher density.\n\nQuick reference:\n\n| Slide type | Outer container |\n|---|---|\n| Body + footer callout | `display:grid; grid-template-rows:1fr auto; flex:1; min-height:0; gap:10px` |\n| Side-by-side columns | `display:flex; align-items:stretch; flex:1; min-height:0; gap:20px` |\n| 2-column card grid | `display:grid; grid-template-columns:1fr 1fr; flex:1; min-height:0; gap:16px` |\n| Vertical card list | `display:flex; flex-direction:column; flex:1; min-height:0; justify-content:space-evenly; gap:12px` |\n| Flow\u002Fpipeline | `display:flex; flex-direction:column; align-items:center; flex:1; min-height:0` |\n| Title \u002F hook (no h2) | `display:flex; flex-direction:column; justify-content:center; flex:1; min-height:0` |\n\n**Orphan check — no elements outside the flex container.** After writing each slide, verify that every visible element (blockquotes, captions, footnotes, closing remarks) lives *inside* the `flex:1; min-height:0` body container — not after the closing `\u003C\u002Fdiv>`. Elements placed after the container render wherever remaining space allows, typically a tiny strip near the bottom. The pattern to avoid:\n\n```html\n\u003C!-- ✗ Wrong: caption is orphaned outside the body container -->\n\u003Cdiv style=\"flex:1; min-height:0; display:flex; ...\">\n  \u003Cdiv>big content\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\u003Cdiv style=\"font-size:0.85em; color:#6F7480;\">caption here\u003C\u002Fdiv>\n\n\u003C!-- ✓ Right: caption inside, full layout owned by one container -->\n\u003Cdiv style=\"display:flex; flex-direction:column; justify-content:center; flex:1; min-height:0; gap:28px;\">\n  \u003Cdiv>big content\u003C\u002Fdiv>\n  \u003Cdiv style=\"font-size:0.85em; color:#6F7480; text-align:center;\">caption here\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\nFor \"big number + caption\" hook slides specifically: use `display:flex; flex-direction:column; justify-content:center; align-items:center; flex:1; min-height:0; gap:28px` with both the number and its caption as direct children — this keeps them vertically centred together as a unit.\n\n**Slide structure** — target 15–20 slides for a 20–30 min talk (~90 s\u002Fslide):\n\n- **Title slide** — never use bare `# Heading` + paragraph for the title slide. It renders top-left with huge empty space below. Use a full-height centered HTML layout instead:\n\n```html\n\u003Cdiv style=\"display:flex; flex-direction:column; justify-content:center; flex:1; min-height:0; gap:24px;\">\n\u003Cdiv style=\"display:flex; flex-direction:column; gap:16px;\">\n\u003Cdiv style=\"font-size:3.2em; font-weight:900; line-height:1.1; color:#FFFFFF; letter-spacing:-0.02em;\">Deck Title Here\u003C\u002Fdiv>\n\u003Cdiv style=\"width:72px; height:4px; background:linear-gradient(90deg,#00FFFF,#4FFF00); border-radius:2px;\">\u003C\u002Fdiv>\n\u003Cdiv style=\"font-size:1.15em; color:#00FFFF; font-weight:400; line-height:1.5;\">One-line hook subtitle goes here — no max-width, no &lt;br&gt;\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n- **Hook \u002F thought experiment** — concrete scenario before any jargon (1 slide)\n- **Problem \u002F Why this matters** — what goes wrong without this pattern (1–2 slides)\n- **Core pattern** — the key concept explained clearly (2–3 slides)\n- **Canon implementation** — how canon handles this concretely, with specific examples from the source files (2–3 slides)\n- **Gotchas \u002F What to watch for** — failure modes and non-obvious constraints (1 slide)\n- **Summary** — one slide, 3–5 bullet takeaways\n- **Q&A \u002F Try it** — one slide with a concrete next action\n\n**Visual design rules (learned from real-world conference decks):**\n\n*Bullet lists → card grids.* Never use bare `\u003Cul>` for key points. Use a card grid instead:\n```html\n\u003Cdiv style=\"display:flex; flex-direction:column; gap:12px; margin-top:16px;\">\n  \u003Cdiv class=\"card c1\" style=\"display:flex; gap:18px; align-items:center; padding:14px 20px;\n    background:rgba(62,64,71,0.35); border-radius:10px; border-left:4px solid #00FFFF;\">\n    \u003Cdiv style=\"font-size:1.5em; font-weight:800; color:#00FFFF; min-width:28px; flex-shrink:0;\">1\u003C\u002Fdiv>\n    \u003Cdiv style=\"font-size:0.88em; line-height:1.45;\">\u003Cstrong>Rule text here\u003C\u002Fstrong> — explanation\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n  \u003C!-- repeat with .c2, .c3 and rotate accent colors: #4FFF00 #FFF500 #F46600 #FF00C7 -->\n\u003C\u002Fdiv>\n```\n\n*Two-column comparisons.* Use bordered columns with a colored header strip:\n```html\n\u003Cdiv style=\"flex:1; display:flex; flex-direction:column; border-radius:10px; overflow:hidden; border:1px solid rgba(0,255,255,0.25);\">\n  \u003Cdiv style=\"padding:12px 18px; background:rgba(0,255,255,0.15); font-size:0.68em;\n    text-transform:uppercase; letter-spacing:0.09em; color:#00FFFF; font-weight:600;\">Label\u003C\u002Fdiv>\n  \u003Cdiv style=\"flex:1; padding:16px; background:rgba(62,64,71,0.25);\">content\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n*Diagrams (context window, stacks, timelines).* The diagram column must be at least `width:260px` — narrow columns look decorative, not informative. Box labels at `font-size:0.72em`, numbers\u002Ftoken counts at `font-size:1em; font-weight:800`. The \"smart zone\" box uses `flex:1` so it fills available height. Bottom reserved-area boxes show the number left-aligned in bold and the label right-aligned. Use `justify-content:space-between` when the number and label are on opposite sides; use `margin-left:8px` when they sit adjacent (otherwise Marp collapses them together with no gap):\n```html\n\u003C!-- number left, label right (space-between) -->\n\u003Cdiv style=\"padding:11px 16px; border-radius:4px; display:flex; justify-content:space-between; align-items:center;\n  background:rgba(244,102,0,0.22); border:1px solid #F46600;\">\n  \u003Cspan style=\"font-size:1em; font-weight:800; color:#F46600;\">~33k\u003C\u002Fspan>\n  \u003Cspan style=\"font-size:0.68em; color:#F46600;\">compaction reserve\u003C\u002Fspan>\n\u003C\u002Fdiv>\n\n\u003C!-- number + label adjacent (use margin-left, not space-between) -->\n\u003Cdiv style=\"padding:11px 16px; border-radius:4px; display:flex; align-items:center;\n  background:rgba(244,102,0,0.22); border:1px solid #F46600;\">\n  \u003Cspan style=\"font-size:1em; font-weight:800; color:#F46600;\">~33k\u003C\u002Fspan>\n  \u003Cspan style=\"font-size:0.68em; color:#F46600; margin-left:8px;\">compaction reserve\u003C\u002Fspan>\n\u003C\u002Fdiv>\n```\n\n**Claude Code context window constants** (use these numbers in any context-management diagram):\n- Total window: **200k** tokens\n- Output reserve: **32k** (deduct from total → 168k input budget)\n- Compaction reserve: **~33k** (triggers at ~167k \u002F 83% of window)\n- System prompt baseline: **~14k** (system instructions + built-in tool definitions, no CLAUDE.md)\n- MCP schema cost: **5–10k per server** (loads every session whether called or not)\n- Cache reads: save cost (10% of base price) but **still consume window space**\n\n*SVG arrows in pipelines.* Use inline SVG for colored arrows — never plain text `→` or `↓` for diagrams that need visual weight:\n```html\n\u003Csvg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\">\n  \u003Cpath d=\"M10 2 L10 14 M4 10 L10 16 L16 10\"\n    stroke=\"#00FFFF\" stroke-width=\"2\" fill=\"none\"\n    stroke-linecap=\"round\" stroke-linejoin=\"round\"\u002F>\n\u003C\u002Fsvg>\n```\nNever use `\u003ClinearGradient>` inside `\u003Cdefs>` — Marp's parser breaks on `\u003Cstop>` tags and renders subsequent HTML as raw source.\n\n*SVG diagonal leader lines (callout annotations).* Use when a label needs to point at the vertical midpoint of a tall diagram. Two diagonal lines converge from top-left and bottom-left to a horizontal tick, with the label to the right. The SVG uses `preserveAspectRatio=\"none\"` with a 0-100 viewBox and `vector-effect=\"non-scaling-stroke\"` to keep line weight consistent regardless of actual container dimensions:\n```html\n\u003Cdiv style=\"position:relative; flex:1; font-size:0.78em; color:#6F7480;\">\n  \u003Csvg style=\"position:absolute; top:0; left:0; width:100%; height:100%;\"\n       viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n    \u003Cline x1=\"2\" y1=\"0\"   x2=\"38\" y2=\"50\" stroke=\"#00FFFF\" stroke-width=\"1.5\" vector-effect=\"non-scaling-stroke\" stroke-linecap=\"round\"\u002F>\n    \u003Cline x1=\"2\" y1=\"100\" x2=\"38\" y2=\"50\" stroke=\"#00FFFF\" stroke-width=\"1.5\" vector-effect=\"non-scaling-stroke\" stroke-linecap=\"round\"\u002F>\n    \u003Cline x1=\"38\" y1=\"50\" x2=\"52\" y2=\"50\" stroke=\"#00FFFF\" stroke-width=\"1.5\" vector-effect=\"non-scaling-stroke\"\u002F>\n  \u003C\u002Fsvg>\n  \u003C!-- top-right anchor -->\n  \u003Cdiv style=\"position:absolute; top:0; right:0; color:#B2B8C4; font-weight:600;\">top label\u003C\u002Fdiv>\n  \u003C!-- centre label — positioned just right of the tick (left:55%) -->\n  \u003Cdiv style=\"position:absolute; top:50%; left:55%; transform:translateY(-50%);\">\n    \u003Cdiv style=\"font-size:1.8em; font-weight:800; color:#00FFFF; line-height:1;\">168k\u003C\u002Fdiv>\n    \u003Cdiv style=\"font-size:0.82em; color:#00FFFF;\">tokens\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n  \u003C!-- bottom-right anchor -->\n  \u003Cdiv style=\"position:absolute; bottom:0; right:0; text-align:right;\">bottom label\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n*Cards with a level badge (L1 \u002F L2 \u002F L3, numbered, lettered).* Never use a fixed `width:Xpx` column for a badge that also has a sublabel (`Deterministic`, `Behavioural`, etc.) — at Marp's scaled font size the text overflows into adjacent columns. Put the sublabel inline with the title instead:\n```html\n\u003Cdiv style=\"font-size:1.6em; font-weight:800; color:#00FFFF; flex-shrink:0; min-width:36px; text-align:center;\">L1\u003C\u002Fdiv>\n\u003Cdiv style=\"flex:1;\">\n  \u003Cdiv style=\"display:flex; align-items:baseline; gap:10px; margin-bottom:4px;\">\n    \u003Cspan style=\"font-size:0.85em; font-weight:700; color:#00FFFF;\">Title\u003C\u002Fspan>\n    \u003Cspan style=\"font-size:0.6em; color:#6F7480; text-transform:uppercase; letter-spacing:0.06em;\">Sublabel\u003C\u002Fspan>\n  \u003C\u002Fdiv>\n  \u003Cdiv style=\"font-size:0.78em; color:#B2B8C4; line-height:1.5;\">Description\u003C\u002Fdiv>\n\u003C\u002Fdiv>\n```\n\n*Weak-evidence \u002F checklist rows.* Each item in its own box (not a bare `\u003Cli>`):\n```html\n\u003Cdiv class=\"card c1\" style=\"display:flex; gap:14px; align-items:center; padding:13px 18px;\n  background:rgba(244,102,0,0.08); border-radius:8px; font-size:0.82em;\">\n  \u003Cspan style=\"color:#F46600; font-size:1.2em; flex-shrink:0;\">✗\u003C\u002Fspan>\n  \u003Cspan>item text\u003C\u002Fspan>\n\u003C\u002Fdiv>\n```\n\nGuidelines for slide copy:\n- Active voice, short sentences. Each slide has one point.\n- Code blocks use fenced ` ``` ` — Marp renders them with syntax highlighting.\n- Prefer concrete examples over abstract principles.\n- Marp slide separator is `---` on its own line. Do not skip it between slides.\n\n**4. Render to HTML and PPTX.** Prefer the repo render script:\n\n```bash\nnpm run slides -- \u003Ctopic>\n```\n\nIt writes both:\n- `posts\u002Fslides\u002F\u003Ctopic>.html`\n- `posts\u002Fslides\u002F\u003Ctopic>.pptx`\n\nThe HTML render keeps Marp's interactive deck behavior and repo-specific hardening. The PPTX render is for SharePoint\u002FPowerPoint distribution.\n\nIf you must run Marp manually, the HTML command is:\n\n```bash\nnpx @marp-team\u002Fmarp-cli posts\u002Fslides\u002F\u003Ctopic>.md \\\n  --theme skills\u002Fcanon-slides\u002Fthemes\u002Fcanon.css \\\n  -o posts\u002Fslides\u002F\u003Ctopic>.html \\\n  --allow-local-files \\\n  --html \\\n  --bespoke.transition=false\n```\n\nOmitting `--html` silently strips all `\u003Cdiv>` styling and the slides render as plain text.\n\nThe manual PPTX command is:\n\n```bash\nnpx @marp-team\u002Fmarp-cli posts\u002Fslides\u002F\u003Ctopic>.md \\\n  --theme skills\u002Fcanon-slides\u002Fthemes\u002Fcanon.css \\\n  -o posts\u002Fslides\u002F\u003Ctopic>.pptx \\\n  --allow-local-files \\\n  --html \\\n  --pptx\n```\n\nIf `npx` is not available or marp-cli fails, stop and tell the user:\n```\nmarp-cli not found. Install with: npm install -g @marp-team\u002Fmarp-cli\nThen rerun: npm run slides -- \u003Ctopic>\n```\n\n**5. Report output.** On success, tell the user:\n- Path to the `.md` source: `posts\u002Fslides\u002F\u003Ctopic>.md`\n- Path to the HTML: `posts\u002Fslides\u002F\u003Ctopic>.html`\n- Path to the PPTX: `posts\u002Fslides\u002F\u003Ctopic>.pptx`\n- How to open HTML locally: `open posts\u002Fslides\u002F\u003Ctopic>.html` (macOS) or just open it in any browser\n- How to use PPTX: upload `posts\u002Fslides\u002F\u003Ctopic>.pptx` to SharePoint or open it in PowerPoint\n\n## Reserved zone — page counter\n\nThe page counter (`section::after`) is positioned at **`bottom: 16px; right: 48px`** of the section. It renders at roughly **60 px wide × 18 px tall** at `font-size: 0.5em`. This puts it at approximately `x: 1136–1232 px, y: 686–704 px` on the 1280×720 canvas.\n\n**Never place content in the bottom-right corner of a slide.** The safe boundary is: keep content above `bottom: 48px` and left of `right: 120px` relative to the section. Absolute-positioned elements anchored to `bottom:0; right:0` of a content container will collide with the counter.\n\nThe page counter is in the bottom padding area (below the 604 px content zone), so flex\u002Fgrid body content won't collide — only `position:absolute` elements with low `bottom` values can reach it.\n\n## Gotchas\n\n- **Never embed images as base64 data URIs in slide HTML.** Large base64 `src` values cause GPU compositing artifacts: the browser caches the first slide's compositor layer and bleeds it through every subsequent slide. The first slide appears ghosted behind all others. Always use file references (`\u003Cimg src=\".\u002Ffilename.png\">`) and place images in `posts\u002Fslides\u002F` alongside the HTML. The `--allow-local-files` flag is already required for the theme, so local image refs work without extra flags.\n- **Disable browser transitions for deck HTML.** Marp's bespoke template keeps slides as stacked SVGs and browser compositing can leave inactive slides visually cached. Render with `--bespoke.transition=false`; the repo render script also injects CSS that uses `display:none` for inactive slides in normal presentation views.\n- **No blank lines inside HTML blocks.** Marp's markdown parser (markdown-it) exits HTML-block mode at the first blank line. Any content after a blank line inside a `\u003Cdiv>` structure is re-parsed as markdown — so a 4-space-indented `\u003Cdiv>` after a blank line becomes a code block displaying raw HTML source. Rule: once you open a `\u003Cdiv>`, write all child tags continuously with no blank lines between them until the outermost closing `\u003C\u002Fdiv>`. Use a single blank line only between top-level slide elements (markdown headings, paragraphs, and top-level HTML blocks).\n- **Never use SVG `\u003Cdefs>` or `\u003ClinearGradient>` inside slide HTML.** Marp's parser breaks on `\u003Cstop style=\"...\">` tags inside `\u003Cdefs>`, rendering all subsequent HTML in that slide as raw source code in a code block. Use a single solid stroke color for SVG arrows instead — gradients are not worth the parse failure.\n- **`--html` is not optional.** Omitting it from the marp-cli command silently strips all `\u003Cdiv>` and `\u003Cstyle>` blocks — slides render as plain unstyled text even though `html: true` is in the frontmatter. Always pass both.\n- **`html: true` in frontmatter alone is not enough** — the CLI flag and frontmatter key must both be set.\n- **Diagram column width ≥ 260px.** Narrower columns make the context-window and stack diagrams look decorative rather than readable. Use `width:260px; flex-shrink:0` for diagram columns.\n- **Numbered card sizes.** Large number labels (`font-size:1.5em; font-weight:800`) read clearly in a 1280×720 viewport. Anything smaller at `0.7em` or below disappears in a projector room.\n- **Vertical card lists need `justify-content:space-evenly`, not the `flex-start` default.** `flex:1; min-height:0` on the container only makes it *able* to fill the slide — with 2–3 short cards and no `justify-content` set, they pack at the top and leave a visible dead-space band below. `space-evenly` distributes the leftover height as equal gaps instead.\n- **Card\u002Fstep reveal uses native `data-marpit-fragment=\"N\"` attributes, never hand-rolled CSS.** See the explanation under step 3 — any custom animation\u002Ftransition keyed off the active slide either can't match (deck `\u003Cstyle>` blocks and theme CSS are both auto-scoped per-section, so a selector needing the ancestor `\u003Csvg>`'s active-slide class can never reach it) or gets silently killed (Marp force-resets `animation-name` to a no-op on the active slide once \"ready\"). Fragments are Marp's own unscoped mechanism and don't hit either trap.\n- Marp's `---` separators are load-bearing — they create slide breaks. Do not remove them when editing the `.md` source.\n- The `--allow-local-files` flag is required for CSS themes referenced by local path; without it, marp-cli silently ignores the theme.\n- The `theme:` value in the deck's frontmatter must match the theme name declared in the CSS (`\u002F* @theme canon *\u002F`). Mismatch causes marp-cli to fall back to default styling.\n- Run the render command from the repo root so relative paths to `skills\u002Fcanon-slides\u002Fthemes\u002F` resolve correctly.\n- If the deck opens blank in the browser, check the browser console — Content Security Policy on some browsers blocks local file CSS. Use `file:\u002F\u002F` URL or `open` on macOS.\n",{"name":5,"tags":24,"hidden":29,"category":30,"description":7,"argument-hint":31},[25,26,27,28],"slides","marp","presentations","knowledge",true,"ops","[topic]","main","3e6c9d35455e8e206133380135b560ddb8b58c0e","skills\u002Fcanon-slides",1,"https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills","https:\u002F\u002Fgetcanon.dev","https:\u002F\u002Fgithub.com\u002Fsunitghub","2026-11-15 03:47:49",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":29},[42,45,48],{"tool":43,"command":44},"npx","npx skills add sunitghub\u002Fcanon-skills --skill canon-slides",{"tool":46,"command":47},"bunx","bunx skills add sunitghub\u002Fcanon-skills --skill canon-slides",{"tool":49,"command":50},"pnpm","pnpm dlx skills add sunitghub\u002Fcanon-skills --skill canon-slides","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanon-slides\u002FSKILL.md",[53,59,63],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"evals\u002Fevals.json","REFERENCE","参考文档",4281,"https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanon-slides\u002Fevals\u002Fevals.json",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"partials\u002Fworthwhile-harness.md",4610,"https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanon-slides\u002Fpartials\u002Fworthwhile-harness.md",{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"themes\u002Fcanon.css","OTHER","其他",2848,"https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcanon-slides\u002Fthemes\u002Fcanon.css",[70,77,84,91,97,104],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M75JK2VBM156TBGG9CM9RS34","no-evals","A skill with no evals folder.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fno-evals\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M75JK0PTGT7Y2HMWTGPVYT16","hooks","Registers a hook and pushes code.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fhooks\u002FSKILL.md",[],[],{"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":19},"01M75JJYWMTD3CWT18DRYHG82H","good","Formats commit messages. Use when the user asks for a commit message.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fgood\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M75JJX1CRZJS5XJECST8QR9Q","bad-frontmatter","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fbad-frontmatter\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M75JJTCMGGRFG5RNEJMKJ8AN","wrapup","Internal close-pipeline invoked by sprint complete — quality checks, code review, cleanup. Not for direct use; a normal\u002Fhigh-risk sprint's own \"sprint complete\" step calls this automatically.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrapup\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M75JJP7CEJQDYQ490EEJKFCP","sprint","Manages the sprint workflow for focused changes. Use when asked to add, fix, update, implement, debug, or build — see the Workflow tiers section for what's out of scope.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsprint\u002FSKILL.md",[],[]]