[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73DVG69MS4PQES5BX4013VH":3,"skill-same:01M73DVG69MS4PQES5BX4013VH":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M73DVG69MS4PQES5BX4013VH","slide-layout-gate",null,"Slide content conformance gate. Runs estimate-layout.ts --lint to check every slide in slidedata.json against the merged 4-layer spec's content_constraints (per slide type: title\u002Fsubtitle\u002Fdesc chars, bullet count, body chars). Exit 1 blocks PDF export. Responds to \"layout gate\", \"lint slides\", \"check slide bounds\", \"slide content conformance\".","5throck\u002Fai-workspace-standards","5throck","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10958964?v=4","01M73BFEH0V0VS483TW4JD49JW","01M73BFEJ5VQZJHJSFTVPAZGDM",25,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-deck\u002F.claude\u002Fskills\u002Fslide-layout-gate\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: slide-layout-gate\nscope: co-deck\nversion: 1.0.0\ndescription: >\n  Slide content conformance gate. Runs estimate-layout.ts --lint to check every\n  slide in slidedata.json against the merged 4-layer spec's content_constraints\n  (per slide type: title\u002Fsubtitle\u002Fdesc chars, bullet count, body chars).\n  Exit 1 blocks PDF export. Responds to \"layout gate\", \"lint slides\",\n  \"check slide bounds\", \"slide content conformance\".\nstatus: active\nowner: pdf-export\nlast_reviewed: 2026-08-26\nprerequisites: html-build\nrelates_to:\n  - skill: pdf-export\n    type: composes_with\n  - skill: pdf-export\n    type: follows\ninputs: [slide-html]\noutputs: [layout-gate-status]\n---\n\n## Context\n\nThe deck pipeline had two content-discipline points with nothing between them and\nthe renderer: `theme.json content_rules` disciplines storyline at creation time\n(Stage 2), and the PDF renderer lays out whatever it receives. A deck edited after\nstoryline — or a storyline miss — produced overflowing titles and bullet walls\nthat only surfaced as clipped PDF output. This gate closes that gap: it checks\nthe **built** deck (slidedata.json) against the **render-time bounds** the merged\nlayout spec actually declares, using the exact 4-layer merge\n(`layout_base.json` → theme `pdf_layout_spec.json` → style `pdf_color_spec.json`\n→ `lecture-profile.md` `layout_overrides`) that `gen-slides-pdf.ts` renders with.\n\n## When to Use\n\n- After html-build (Stage 8) completes and before pdf-export (Stage 9) — the 8→9 handoff gate **[DECK-R2]**\n- User says \"layout gate\", \"lint slides\", \"check slide bounds\"\n- After any content edit to an existing deck, before regenerating the PDF\n\n## Execution Steps\n\n1. Run the gate:\n   ```bash\n   bun scripts\u002Fco-deck\u002Festimate-layout.ts --project presentations\u002F\u003Cproject> --lint\n   ```\n   (composes with `--sample`: lint runs first; a FAIL blocks the sample too)\n2. Read the verdict table — one row per slide: `# | Type | Check | Actual | Limit | Verdict`\n3. Exit 0 → gate passed; proceed to pdf-export\n4. Exit 1 → blocked; apply the remediation ladder below, then re-run until pass\n\n## Output Format\n\n| Output | Destination | Format |\n|--------|-------------|--------|\n| Verdict table | console (stdout) | per-slide check rows: `# \\| Type \\| Check \\| Actual \\| Limit \\| Verdict` |\n| Violation summary + remediation ladder | console (stderr on FAIL) | `N check(s) passed, M failed, K slide(s) unconstrained (WARN)` |\n| Layout summary | `presentations\u002F\u003Cproject>\u002Flayout_summary.md` | unchanged prep-pdf artifact (written on every run) |\n\n## Verdict Semantics\n\n| Verdict | Meaning | Action |\n|---------|---------|--------|\n| PASS | within a declared constraint | none |\n| FAIL | exceeds a declared constraint, **or** the slide's type is not in the merged `slide_types` (no CSS layout exists — it would break rendering) | blocked — remediate |\n| WARN | slide type is valid but declares no `content_constraints` in the spec (e.g. `title`, `profile`, `contact`) | allowed through; if these slides overflow in practice, declare bounds in the theme's `pdf_layout_spec.json` |\n\n## Checks\n\n| Check | Slidedata field(s) | Constraint key |\n|-------|--------------------|----------------|\n| title chars | `title` | `max_title_chars` |\n| subtitle chars | `subtitle` (fallback `sub`) | `max_subtitle_chars` |\n| desc chars | `sub` (fallback `text`) | `max_desc_chars` |\n| bullet count | `bullets.length` | `max_bullets` |\n| body chars | joined bullet text, or `text` when no bullets | `max_body_chars` |\n\nA constraint key absent for a slide type means that check is skipped for that type\n(the gate enforces only what the spec declares). Example — `pitch-enhanced`:\n`standard` max_bullets=4 \u002F max_title_chars=28 \u002F max_body_chars=100;\n`divider` max_title_chars=28 \u002F max_desc_chars=80; `punchline` max_title_chars=40.\n\n## Remediation Ladder (in order)\n\n1. **Cut content** — trim title\u002Fsubtitle, tighten or merge bullets (preferred)\n2. **Split the slide** into two standard slides\n3. **Reclassify the slide type** (Uniform Layout Principle, `context.md` Content Rules — content slides stay `standard`)\n4. **Record a justified `layout_overrides` entry** in `lecture-profile.md` (last resort — requires a design note stating why the declared bound is wrong for this deck)\n\n## Relationship to content_rules\n\n`theme.json content_rules` (Stage 2, storyline) is the stricter creation-time\ndiscipline applied while composing `slide_deck.md`. This gate is the render-time\nbound from the merged spec's `content_constraints`, checked against the built\ndeck. A compliant storyline that is edited afterwards can still fail the gate;\na deck failing both was non-compliant at creation.\n\n## Related Skills\n\n- `html-build` — produces the slideData this gate reads\n- `prep-pdf` — same 4-layer merge, produces layout_summary.md\n- `pdf-export` — the gated consumer; never dispatch Stage 9 on a failing gate\n","## Context\n\nThe deck pipeline had two content-discipline points with nothing between them and\nthe renderer: `theme.json content_rules` disciplines storyline at creation time\n(Stage 2), and the PDF renderer lays out whatever it receives. A deck edited after\nstoryline — or a storyline miss — produced overflowing titles and bullet walls\nthat only surfaced as clipped PDF output. This gate closes that gap: it checks\nthe **built** deck (slidedata.json) against the **render-time bounds** the merged\nlayout spec actually declares, using the exact 4-layer merge\n(`layout_base.json` → theme `pdf_layout_spec.json` → style `pdf_color_spec.json`\n→ `lecture-profile.md` `layout_overrides`) that `gen-slides-pdf.ts` renders with.\n\n## When to Use\n\n- After html-build (Stage 8) completes and before pdf-export (Stage 9) — the 8→9 handoff gate **[DECK-R2]**\n- User says \"layout gate\", \"lint slides\", \"check slide bounds\"\n- After any content edit to an existing deck, before regenerating the PDF\n\n## Execution Steps\n\n1. Run the gate:\n   ```bash\n   bun scripts\u002Fco-deck\u002Festimate-layout.ts --project presentations\u002F\u003Cproject> --lint\n   ```\n   (composes with `--sample`: lint runs first; a FAIL blocks the sample too)\n2. Read the verdict table — one row per slide: `# | Type | Check | Actual | Limit | Verdict`\n3. Exit 0 → gate passed; proceed to pdf-export\n4. Exit 1 → blocked; apply the remediation ladder below, then re-run until pass\n\n## Output Format\n\n| Output | Destination | Format |\n|--------|-------------|--------|\n| Verdict table | console (stdout) | per-slide check rows: `# \\| Type \\| Check \\| Actual \\| Limit \\| Verdict` |\n| Violation summary + remediation ladder | console (stderr on FAIL) | `N check(s) passed, M failed, K slide(s) unconstrained (WARN)` |\n| Layout summary | `presentations\u002F\u003Cproject>\u002Flayout_summary.md` | unchanged prep-pdf artifact (written on every run) |\n\n## Verdict Semantics\n\n| Verdict | Meaning | Action |\n|---------|---------|--------|\n| PASS | within a declared constraint | none |\n| FAIL | exceeds a declared constraint, **or** the slide's type is not in the merged `slide_types` (no CSS layout exists — it would break rendering) | blocked — remediate |\n| WARN | slide type is valid but declares no `content_constraints` in the spec (e.g. `title`, `profile`, `contact`) | allowed through; if these slides overflow in practice, declare bounds in the theme's `pdf_layout_spec.json` |\n\n## Checks\n\n| Check | Slidedata field(s) | Constraint key |\n|-------|--------------------|----------------|\n| title chars | `title` | `max_title_chars` |\n| subtitle chars | `subtitle` (fallback `sub`) | `max_subtitle_chars` |\n| desc chars | `sub` (fallback `text`) | `max_desc_chars` |\n| bullet count | `bullets.length` | `max_bullets` |\n| body chars | joined bullet text, or `text` when no bullets | `max_body_chars` |\n\nA constraint key absent for a slide type means that check is skipped for that type\n(the gate enforces only what the spec declares). Example — `pitch-enhanced`:\n`standard` max_bullets=4 \u002F max_title_chars=28 \u002F max_body_chars=100;\n`divider` max_title_chars=28 \u002F max_desc_chars=80; `punchline` max_title_chars=40.\n\n## Remediation Ladder (in order)\n\n1. **Cut content** — trim title\u002Fsubtitle, tighten or merge bullets (preferred)\n2. **Split the slide** into two standard slides\n3. **Reclassify the slide type** (Uniform Layout Principle, `context.md` Content Rules — content slides stay `standard`)\n4. **Record a justified `layout_overrides` entry** in `lecture-profile.md` (last resort — requires a design note stating why the declared bound is wrong for this deck)\n\n## Relationship to content_rules\n\n`theme.json content_rules` (Stage 2, storyline) is the stricter creation-time\ndiscipline applied while composing `slide_deck.md`. This gate is the render-time\nbound from the merged spec's `content_constraints`, checked against the built\ndeck. A compliant storyline that is edited afterwards can still fail the gate;\na deck failing both was non-compliant at creation.\n\n## Related Skills\n\n- `html-build` — produces the slideData this gate reads\n- `prep-pdf` — same 4-layer merge, produces layout_summary.md\n- `pdf-export` — the gated consumer; never dispatch Stage 9 on a failing gate\n",{"name":5,"owner":23,"scope":24,"inputs":25,"status":27,"outputs":28,"version":30,"relates_to":31,"description":36,"last_reviewed":37,"prerequisites":38},"pdf-export","co-deck",[26],"slide-html","active",[29],"layout-gate-status","1.0.0",[32,34],{"type":33,"skill":23},"composes_with",{"type":35,"skill":23},"follows","Slide content conformance gate. Runs estimate-layout.ts --lint to check every slide in slidedata.json against the merged 4-layer spec's content_constraints (per slide type: title\u002Fsubtitle\u002Fdesc chars, bullet count, body chars). Exit 1 blocks PDF export. Responds to \"layout gate\", \"lint slides\", \"check slide bounds\", \"slide content conformance\".\n",1787702400000,"html-build","main","1162ccc568cf90c01b3886d6143cbfd851a37883","templates\u002Fco-deck\u002F.claude\u002Fskills\u002Fslide-layout-gate",9,"https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards","https:\u002F\u002Fgithub.com\u002F5throck","Experienced in digital transformation, enterprise IT, startup acceleration, and business strategy. Focused on building practical systems that connect technolo","2026-11-14 21:22:34",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add 5throck\u002Fai-workspace-standards --skill slide-layout-gate",{"tool":53,"command":54},"bunx","bunx skills add 5throck\u002Fai-workspace-standards --skill slide-layout-gate",{"tool":56,"command":57},"pnpm","pnpm dlx skills add 5throck\u002Fai-workspace-standards --skill slide-layout-gate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-deck\u002F.claude\u002Fskills\u002Fslide-layout-gate\u002FSKILL.md",true,[],[62,70,75,80,85,90],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":69},"01M7BBJDYHJMGTJYSC37JVWY8S","i18n-layout","Text layout and encoding guidance: character encoding (UTF-8, legacy Korean code pages, BOM hazards), line endings, RTL\u002Fbidi handling, and script-specific font selection (Hangul focus). Use when: encoding is corrupted or mojibake appears, an RTL locale must render correctly, fonts must be chosen for a script, or CRLF\u002FBOM issues surface.","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":71,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":69},"01M7BBJ9XHAAS1AVGKZZ841VBZ","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.hermes\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":76,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":69},"01M7BBJ5C3X8TKFKG5R9P9P49W","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.gemini\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":81,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":69},"01M7BBJ1B52X0QMJ2QVBMPJB37","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.codex\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":86,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":69},"01M7BBHX91BW2Q2R276MRX5AW3","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.claude\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[],{"skillNo":91,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":69},"01M7BBHQWGXPSFRWN1PRC2NMMV","https:\u002F\u002Fgithub.com\u002F5throck\u002Fai-workspace-standards\u002Fblob\u002Fmain\u002Ftemplates\u002Fco-work\u002F.agents\u002Fskills\u002Fi18n-layout\u002FSKILL.md",[],[]]