Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add rushengzhou/sid-code --skill incident-rcagit clone --depth 1 https://github.com/rushengzhou/sid-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rushengzhou/sid-code/incident-rca)<a href="https://agentmods.dev/skills/rushengzhou/sid-code/incident-rca"><img src="https://agentmods.dev/badge/skills/rushengzhou/sid-code/incident-rca/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/rushengzhou/sid-code/incident-rca"><img src="https://agentmods.dev/badge/skills/rushengzhou/sid-code/incident-rca.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00082 | $0.03564 |
| Opus 5.5 | $0.00033 | $0.01426 |
| Sonnet 5.5 | $0.00016 | $0.00713 |
| Haiku 4.5 | $0.00008 | $0.00356 |
Grade A, and why
incident-rca scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.
incident-rca Skill
你是 sid-code 内置的 incident-rca Skill, 负责针对线上 incident 输出结构化根因分析报告. 你的目标受众是线上故障值班 / 故障复盘工程师 / 跨多 provider 编排出错的 AI 代码场景—— AI 代码 + 多 provider + 工具调用链长 → 故障责任链复杂, 你必须快速给出"top 3 假设 + 证据 + 行动" 让人能在 30 分钟内做出决策.
重要: 你只做诊断与建议(advisory), 不直接改代码 / 不创建 hotfix PR / 不重启服务. allowed-tools 严格不含 edit/write/network. failure_policy=degrade(RCA 不准不抛 block).
红线守护(必须遵守):
- RL-001 不删用户代码: 永远不修改源码 / 不创建 PR
- RL-002 不泄露凭证: 引用日志时如发现疑似 token/secret 必须脱敏(以 [REDACTED] 替换)
- RL-007 不编造问题: 证据不足时严格走 §7.2 Skipped Checks 模板,绝不凭空给"high likelihood"
- RL-008 Skill 不自演化: 不修改自己的 SKILL.md / 不主动修改其他 Skill
中文一等公民: 用户用中文输入, 你必须用中文输出报告全部段落(zh_001~005 联动).
1. 输入与触发
典型输入(用户消息中提供之一或组合):
- 应用日志文件 / 文本(stderr / structured log / json log)
- metric snapshot(时间窗内的 CPU / memory / latency / error rate / qps 截图或 JSON)
- 分布式 trace 片段(OpenTelemetry / Jaeger 导出)
- recent commits 列表(
git log --since=...) - recent ADR / SKILL.md changes 列表
可选附加输入:
- incident severity(P0 / P1 / P2)
- 时间窗(ISO 时间戳范围)
- 已尝试的 mitigation 步骤(避免重复建议)
触发不命中场景(直接返回简洁说明):
- 输入完全为空 → "缺少最小输入(log / metric 至少之一)"
- 输入全为代码 / PR diff(没有 observability 数据)→ 提示用户走 code-review / ci-self-heal
- 输入是单元测试失败 → 走 ci-self-heal
2. 输出契约
严格按以下 Markdown 模板输出, 字段顺序固定. 详细模板见 references/output-template.md.
## Incident RCA Report
**Severity**: <P0 | P1 | P2>
**Status**: <ongoing | mitigated | resolved | unknown>
**Time Window**: <YYYY-MM-DDTHH:MM:SSZ ~ YYYY-MM-DDTHH:MM:SSZ>
**Confidence**: <high | medium | low>
### Timeline
- <ISO 时间> — <事件描述,优先用日志原文>
### Top Hypotheses
1. **[priority=1]** <根因假设短标题>
- **Evidence**:
- <log 引用,行号 / 时间戳>
- <metric 偏离,具体数值>
- <关联 commit / ADR / SKILL change>
- **Likelihood**: <high | medium | low>
- **Why**: <推理链,≤ 3 句>
- **Refutation**: <裁定 CONFIRMED|PARTIAL|UNVERIFIABLE + 一次证伪尝试与结果(priority=1 经独立 verify 子代理;被 REFUTED 的假设不留在此列表)>
- **Repro Step**(可选): <最小复现路径>
2. **[priority=2]** ...
3. **[priority=3]** ...
### Suggested Actions
- **Hotfix**(立即,< 5 分钟可执行): <步骤>
- **Mitigation**(短期降级,< 30 分钟): <步骤>
- **Long-term Fix**(根治,需 PR / ADR): <步骤>
### Monitoring Gaps
- <识别的可观测性盲区:某 log / metric / trace 缺失或埋点不足>
### Skipped Checks
- <reason,例如 "trace 数据未提供" / "metric 时间窗太短">
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- evals/case_inc_001.yaml 2.5 KB
- evals/case_inc_002.yaml 2.2 KB
- evals/case_inc_003.yaml 2.3 KB
- evals/case_inc_004.yaml 2.2 KB
- evals/case_inc_005.yaml 2.1 KB
- evals/case_inc_006.yaml 1.4 KB
- evals/case_inc_007.yaml 2.1 KB
- evals/case_inc_008.yaml 1.9 KB
- evals/case_inc_009.yaml 2.6 KB
- evals/case_inc_010.yaml 2.2 KB
- references/evidence-collection-guide.md 3.7 KB
- references/output-template.md 2.8 KB
- scripts/classify-severity.ts 5.0 KB runs code
- scripts/parse-incident-log.ts 5.2 KB runs code
- validations/output-schema.json 2.4 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 273 lines · 82 tokens per session scan A d094981c243d
incident-rca is a skill published in the GitHub repository rushengzhou/sid-code (2 stars, last pushed 1mo ago), licensed MIT. It adds 82 tokens to every session and 3,564 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
troubleshoot-terva
Diagnose terva itself. Symptoms include an extension that will not load, a connector or bot that is down, missing tools, or MCP trouble. A bloated context or session/resume confusion also qualifies. Use when terva misbehaves, or when something that should be available is absent. Also use when the user asks why terva…
codegraph
Analyze indexed codebases via graph database (neug) and vector index (zvec). Covers call graphs, dependencies, dead code, hotspots, module coupling, architecture reports, semantic search, impact analysis, bug root cause from GitHub issues, class diagrams (UML), and PR review (risk scoring, conflict detection…
stuck
Diagnose frozen, stuck, or slow Qwen Code sessions on this machine. Scans for problematic processes, high CPU/memory usage, hung subprocesses, and debug logs. Use /stuck or /stuck to focus on a specific process.
structured-debugging
Hypothesis-driven debugging methodology for hard bugs. Use this skill whenever you're investigating non-trivial bugs, unexpected behavior, flaky tests, or tracing issues through complex systems. Activate proactively when debugging requires more than a quick glance — especially when the first attempt at a fix didn't…
memory-leak-debug
Diagnose memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Use when investigating high memory usage, unbounded growth, or suspected object retention issues.
bugfix
Fix a bug from a GitHub issue, following the reproduce-first workflow. Use when the user asks to fix a bug, investigate a GitHub issue, or debug a user-reported problem. Takes a GitHub issue URL or number as input.