eng-runbook
Service overview + alerts table + dashboards + operational commands + on-call + incident checklist
1How It Works & Mechanism
This skill is not an executable program, but rather follows the concept of 'one directory = one template': SKILL.md's frontmatter is used 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 prompt sent = platform SHARED_DESIGN_DIRECTIVES + SKILL.md body of this skill + user content, assembled into a single prompt via assemblePrompt.
Wrap a per-template instruction body with the shared design directives and
Final drafts 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 front end).
**禁止使用 Write / Edit / MultiEdit / Bash / Create / 任何文件系统工具**。不要把 HTML 写到任何 \`.html\` 文件里。前端直接捕获你的 stdout 文本, 文件落盘由前端负责。
The page skeleton follows 'numbered sections + tables + command blocks': the five sample sections in order are Service summary, Alerts, Common procedures, On-call rotation, and Incident response.
<h2><span class="index">03</span>Common procedures</h2>
The alert table is the core component of this template: four columns (Alert / Severity / What it means / First response), providing step-by-step instructions on 'what to do first upon being paged'.
<thead><tr><th>Alert</th><th>Severity</th><th>What it means</th><th>First response</th></tr></thead>
Command blocks are organized by 'operation name + when to use + explanation + copyable command', where the sample uses a leading $ and comment span to mark command lines ready for direct copying.
<span class="cmt"># Deploy auth-service v4.7.3 to production</span>
The on-call rotation schedule is laid out by month with four columns (Week / Primary / Secondary / Backup (escalation)), featuring one row per week across four weeks.
<thead><tr><th>Week</th><th>Primary</th><th>Secondary</th><th>Backup (escalation)</th></tr></thead>
The visuals adopt a dark on-call console style: dark blue-black background #0c0e14, panels #14171f, mint green accent #6ee7b7, supplemented with warning yellow and danger red.
--bg: #0c0e14;
Incident response presents action items for the 'first 30 minutes' in a two-column checklist grid, while the dependency list uses ok/warn two-state coloring to convey dependency health.
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
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 stream the output via SSE forwarding.
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 impact
5Second-Pass Verification
- [unlocatable] 「Dashboards links 卡片」 — 样例五节中无 dashboards/Grafana 类链接卡片,全文 grep dashboard 零命中;SKILL.md 承诺的这一节在样例里无对应实现(既非改名也非隐藏,属未实现)。
- [discrepancy] 「Alerts table (severity / threshold / runbook link)」 — 表列实为 Alert / Severity / What it means / First response,没有 threshold 列与 runbook 链接列。
- [discrepancy] 「Common procedures (mono 代码块, 一键复制)」 — mono 代码块成立(--mono + 前置 $ 与 cmt span),但「一键复制」需 JS,样例零 <script>,无复制按钮。
- [discrepancy] 「On-call rotation (本周 + 下周)」 — 样例给整月四周(Oct 27–Nov 23)且含 Backup (escalation) 列,比承诺更全但粒度不同。
- [ok] 「Incident response checklist」 — 第 05 节 .checklist 双列网格承载「最初 30 分钟」动作项。
- [ok] 目录内零脚本/零端点 — 无 <script>、无外链字体与图片、无 CDN;命令均为虚构内部工具示意。
- [ok] 深色主题 — --bg:#0c0e14 / --paper:#14171f / --accent:#6ee7b7 / --warn:#fbbf24 / --danger:#f87171(SKILL.md 未规定主题,属模板自由度)。
6Verdict & Scenarios
b08657d6c60cbf74…