From 1b87fb3f432706fe5ff2daf97acdef8f37788dba Mon Sep 17 00:00:00 2001 From: Abdulrehman Satkut Date: Wed, 11 Nov 2026 17:55:47 +0530 Subject: [PATCH] fix(frontend-slides): enforce length confirmation and add single-slide architecture mode (#3896) --- skills/frontend-slides/SKILL.md | 8 +++++++- skills/frontend-slides/STYLE_PRESETS.md | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/skills/frontend-slides/SKILL.md b/skills/frontend-slides/SKILL.md index 0852122c3..66b5d2c13 100644 --- a/skills/frontend-slides/SKILL.md +++ b/skills/frontend-slides/SKILL.md @@ -41,9 +41,15 @@ Choose one path: Ask only the minimum needed: - purpose: pitch, teaching, conference talk, internal update -- length: short (5-10), medium (10-20), long (20+) +- length: short (5-10), medium (10-20), long (20+), or single-slide / one-pager (1) - content state: finished copy, rough notes, topic only +> [!IMPORTANT] +> **Length Confirmation Is Non-Skippable for Unit/Count Keywords:** +> When the prompt contains count or unit words (e.g. "single", "one-pager", "one slide", "a page", "single-unit summary") or requests "everything about X", do NOT skip or guess the length. +> Explicitly confirm the target slide count in one short line before building: +> *"Confirming deliverable size: 1-slide architecture overview (one-pager). Proceeding with container-scaled density grid."* + If the user has content, ask them to paste it before styling. ### 3. Discover Style diff --git a/skills/frontend-slides/STYLE_PRESETS.md b/skills/frontend-slides/STYLE_PRESETS.md index 0f0d0498c..ef0fc9cf7 100644 --- a/skills/frontend-slides/STYLE_PRESETS.md +++ b/skills/frontend-slides/STYLE_PRESETS.md @@ -31,6 +31,15 @@ Never scroll inside a slide. | Code slide | 8-10 lines maximum | | Quote slide | 1 quote + attribution | | Image slide | 1 image, ideally under 60vh | +| Single-slide / One-pager | Dense multi-region grid (left / center / right / bottom band), category-colored cards, scaled via `cqw` | + +### Single-Slide / One-Pager Architecture Mode + +When a request asks for a single slide, one-pager, or whole-system overview on a single screen: + +1. **Scalable 16:9 Viewport Panel:** Set `container-type: inline-size` on the slide and size internal typography and spacing with container-query width units (`cqw`), ensuring the entire system diagram scales harmoniously without viewport overflow or internal scrolling. +2. **Multi-Region Spatial Grid:** Structure cards across a 3-column or 4-band grid (`left: ingestion/inputs`, `center: core processing/engine`, `right: outputs/integrations`, `bottom: infrastructure/telemetry`). Color-code regions by category. +3. **Mobile Reflow:** Add `@container (max-width: 640px)` or `@media (max-width: 768px)` to gracefully reflow cards into a single readable column on mobile screens without breaking desktop viewport fitting. ## Mandatory Base CSS