docs-page
Three-column documentation page: sidebar navigation + main content + right-hand TOC
1How It Works & Mechanism
This skill is not an executable program, but rather "one directory = one template": SKILL.md's frontmatter is for the selector display, and its body is the prompt sent to the model; adding a template means adding a directory, requiring no changes to TypeScript.
routes rescan disk and the client refetches `/api/templates`.
The actual dispatched prompt = platform shared design directives (SHARED_DESIGN_DIRECTIVES) + this skill's SKILL.md body + user content, assembled into a single prompt by assemblePrompt.
Wrap a per-template instruction body with the shared design directives and
Generated deliverables bypass the file system: shared directives explicitly forbid file tools like Write/Edit/Bash, requiring the model to stream the entire HTML directly as the response body (stdout is captured and written to disk by the frontend).
**禁止使用 Write / Edit / MultiEdit / Bash / Create / 任何文件系统工具**。不要把 HTML 写到任何 \`.html\` 文件里。前端直接捕获你的 stdout 文本, 文件落盘由前端负责。
The three-column skeleton is defined by a single grid declaration: 240px sidebar + flexible main content + 220px right TOC, gracefully degrading to two columns or one column on narrower screens.
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 0; min-height: calc(100vh - 50px); }
The main content consists of four block types: "code blocks + callouts + tables + pager". The sample uses quickstart documentation for a fictional CLI (Filebase) to demonstrate all block types.
<title>Filebase docs — Quickstart</title>
Callouts are implemented with a single accent left border (--accent #c96442) in only one variation, lacking the three info/warn/danger colors mentioned in SKILL.md.
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 20px 0; font-size: 14px; }
The right-hand TOC is a purely static anchor list (heading + #link + .active highlight). The sample contains no scripts, so features mentioned in SKILL.md like scroll-spy, copy buttons, and theme toggling do not exist in the sample.
<aside class="toc" data-od-id="toc">
The top bar only contains brand + search input box, lacking the version selector and theme toggle controls mentioned in SKILL.md.
<input placeholder="Search · ⌘K" />
The server-side /api/convert performs only three tasks: read the skill from disk by templateId, assemble the prompt, spawn the local agent CLI, and forward the output via SSE stream.
prompt = assemblePrompt({ body: skill.body, content, format });
2Core Capabilities
4Recommended Governance & Evidence
- SKILL.md: Pure prompt directives and rule text, without script execution or external side effects
5Second-Pass Verification
- [ok] 三栏文档页(侧导航 + 正文 + 右 TOC) — .layout 三列 240px / minmax(0,1fr) / 220px,且 1024px 隐藏 TOC、720px 隐藏 sidebar。
- [discrepancy] 「Inline-end TOC (sticky, scroll-spy)」 — TOC 存在,但 .toc 是普通 padding 布局、无 position:sticky,也无 scroll-spy 脚本(全文零 <script>);高亮 .active 是写死的。
- [discrepancy] 「代码块: 圆角 + dark + 语言标签 + 复制按钮」 — 样例代码块为圆角浅底(--code-bg:#f4f4f2),无 dark 主题、无语言标签、无复制按钮。
- [discrepancy] 「callout: info / warn / danger 三色」 — 只有一种 accent 左描边 callout,无三色档位。
- [discrepancy] 「顶栏 search + version + 主题切换」 — 顶栏仅 brand + Search · ⌘K 输入框;无 version 标签、无主题切换控件。
- [ok] 样例正文的虚构 CLI 与外链 — get.filebase.dev 是虚构产品域的示例命令(curl -fsSL … | sh)、~/.config/filebase/credentials 为虚构凭证路径;属演示文本,不是本 skill 的运行时依赖。
- [ok] 目录内零端点、零脚本 — 两文件皆无 <script>、无字体/CDN 链接、无图片 URL。
6Verdict & Scenarios
4277f1338716aa4d…