deck-dir-key-nav
8-slide solid color backgrounds, 160px display + 4px accent + Mono arrow list
1How It Works & Mechanism
The color rule is not "choose one primary color" but "one color per slide, cycling through an 8-color palette, allowing reuse"—thus the pacing of the entire deck is carried by background transitions rather than typographical hierarchy.
- 页数由【用户内容】决定 (短内容 8 页起步, 长内容应更多); 每页单色背景, 从下列调色板里循环选取 (靛 / 奶 / 绛 / 翠 / 灰 / 紫 / 白 / 炭), 同色可复用
The 8 color palettes are implemented as 8 .t-* classes (t-indigo/t-cream/t-crimson/t-emerald/t-slate/t-violet/t-white/t-charcoal), with each class individually defining its .dk-accent foreground color to ensure accent readability across both dark and light backgrounds.
.tpl-dir-key-nav-minimal .t-cream .dk-accent{color:#B5392A}
"160px display heading + 4px accent line" is realized as .dk-h0{font-size:160px;letter-spacing:-5px} and .dk-line{width:90px;height:4px;background:currentColor}—there is only a single line, serving as the sole decorative element across the entire template.
.tpl-dir-key-nav-minimal .dk-h0{font-size:160px;font-weight:900;line-height:.9;letter-spacing:-5px;margin:0 0 20px}
"Mono list prefixed with arrow →" = ul.dk-list using monospace font + li::before{content:'→'} hanging indent: list bullets are generated by pseudo-elements without polluting content DOM.
.tpl-dir-key-nav-minimal .dk-list li::before{content:'→';position:absolute;left:0;opacity:.5}
Navigation features two persistent elements: bottom-left .dk-keyhint (kbd capsules showing "← → space", and on the last slide "press ← to rewind · F for fullscreen") and bottom-right .dk-page page numbers, both using var(--dk-mono) small text with 45% opacity.
<div class="dk-keyhint">nav · <kbd>←</kbd> <kbd>→</kbd> · <kbd>space</kbd></div>
At the end of example.html, an extra "static preview fallback" CSS snippet is included: because there is no runtime.js in the directory, all slides are set to visible, relative, and height:100vh—turning the preview into a continuous long scroll rather than a page-flipping deck.
/* Static-preview fallback (runtime.js is absent — keep every slide visible) */
Runtime remains entirely host-side: the template directory contains zero executables; prompt is assembled via assemblePrompt and executed by a local agent CLI, and deck pagination is handled by the host splitting <section class="slide">.
export function assemblePrompt(opts: {
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| network | Google Fonts(Inter / Noto Sans SC / JetBrains Mono) |
| network | 宿主共享指令声明的 Tailwind CDN(宿主侧要求,非本模板要求) |
4Recommended Governance & Evidence
- SKILL.md: Pure prompt instructions and rule text; no script execution or external impact.
5Second-Pass Verification
- [discrepancy] 「单色背景」是否真为纯色 — 多数(indigo / crimson / emerald / slate / violet / charcoal)实为同色系 linear-gradient(135deg,…) 渐变,仅 t-cream(#F5F0E8)与 t-white 为纯色。属措辞宽泛:仍是「每页一个色系」,不影响观感与机制。
- [ok] 160px / 4px 是否兑现 — .dk-h0 font-size:160px;.dk-line width:90px; height:4px——与 SKILL.md 数值逐字一致。
- [ok] kbd 提示是否只出现在首末页 — 首题页(nav · ← → · space)与末页(press ← to rewind · F for fullscreen)各一处,正文页无。
- [ok] 目录内是否有脚本 / 网络调用 / 凭证读取 — 目录仅 SKILL.md + example.html;<script> 计数 0;无 fetch/XHR/env/写盘代码。
- [ok] 静态预览兜底注释是否与事实相符 — 注释声明 runtime.js is absent,目录内确实不存在 runtime.js;HTML 也无任何 <script src>。
- [ok] pin commit 与路径 — HEAD = 553ed98c283f9c0f489902d035416a972d6a9699;skill.path = next/src/lib/templates/skills/deck-dir-key-nav,含 SKILL.md。
- [ok] README 收录一致性 — README deck 表列出 deck-dir-key-nav(Directional key-nav deep browse),与目录内容相符。
6Verdict & Scenarios
c67ac120d2a37bce…