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 xi-zhao/OpenQuantum --skill platform-diagnosticsgit clone --depth 1 https://github.com/xi-zhao/OpenQuantumWrote 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/xi-zhao/openquantum/platform-diagnostics)<a href="https://agentmods.dev/skills/xi-zhao/openquantum/platform-diagnostics"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/platform-diagnostics/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/xi-zhao/openquantum/platform-diagnostics"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/platform-diagnostics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00052 | $0.00916 |
| Opus 5.5 | $0.00021 | $0.00366 |
| Sonnet 5.5 | $0.00010 | $0.00183 |
| Haiku 4.5 | $0.00005 | $0.00092 |
Grade A, and why
platform-diagnostics 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 2mo 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.
What it actually says
OpenQuantum 平台诊断
本能力只诊断四层架构,不实现量子业务功能。默认执行只读检查;除非用户明确授权,不修改配置、 不启动长期后台进程、不写入生产系统。
核心对象
诊断对象是一份 platform-diagnostics 报告。报告中的每个检查项必须有可复核证据;Capability Validator
根据检查结果推导的是诊断报告聚合状态,不是 Scientific Acceptance,也不能由模型自行宣称。
开始前读取并按 Capability Contract v1 校验 capability.yaml。生成报告时读取
artifacts/diagnostic-report.schema.json;验收时运行 validators/validate-report.mjs。
检查流程
先确定本次诊断范围和已有运行证据,只执行与问题相关的检查。未执行项按原 schema 标为
not_checked 并写明原因;局部修改不要求自动启动全部探针或外部模型请求。
- UI:确认 UI 只通过 Harness transport adapter 发出会话命令,不直接调用 Model Provider 或 MCP Server。
- Harness 配置:运行
npm run harness:config,确认组合能展开且默认模型属于 OpenQuantum route。 - Harness Host:检查 Host 根页面、
session/list和session/modelCatalogHarness RPC;未启动时记录not_checked, 不把静态配置当成运行证据。 - Skill:通过 Harness
skills/list或当前成功加载的 Skill 上下文证明项目 Skill 可发现。 - Model:只有本次任务要求且已授权外部模型请求时,运行
npm run models:probe -- --provider openquantum-public,分别验证目录、文本生成和 强制函数调用。不要把“接口返回 200”替代工具调用验收。 - 端到端:仅在任务要求科研链路验收且已授权外部模型请求时,运行
npm run e2e:quantum-harness -- --provider openquantum-public,确认 真实模型在 Harness Session 中产生 QGStool/call/tool/result,且 Result Commit 与中央 Acceptance 通过复核。绕过 Harness MCP Client 直接调用 MCP Server SDK 不能替代这条证据。 本地连通/协议问题可使用仓库已有的 Harness 本地模型 fixture;标记其为协议证据,不能替代真实 Provider 或科学验收。已有凭据不等于获准请求外部模型,不切换现有模型路由。 - 可选路由:私有网关不可达时记录
warn或可选检查项fail;只要它不是当前任务的硬性要求, 不得覆盖公开主路由的有效证据。 - 按 schema 生成 JSON 报告,不得写入 API Key、Authorization header、完整 Prompt 或敏感科研数据。
- 运行
node .agents/skills/platform-diagnostics/validators/validate-report.mjs <report.json>。 只有 Validator 成功,报告才算形成有效评分。
判定规则
- 任一必需检查为
fail:整体blocked。 - 无必需失败,但存在
warn、not_checked或可选失败:整体degraded。 - 所有检查均为
pass:整体ready。 pass必须有运行证据;推测、配置存在、模型自述都不算证据。- 非
pass检查必须给出nextAction。
输出先给结论,再给证据和下一步。不要把运行成功等同于科学验收;具体量子能力的 Scientific Validator 只产生运行时 observations,Acceptance Profile 定义规则,central Acceptance Builder 推导验收;开发期 eval evidence 只用于回归和发布门禁。
What ships with it
10 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.
- artifacts/diagnostic-report.schema.json 2.2 KB
- capability.yaml 2.6 KB
- evals/cases.json 651 B
- evals/fixtures/blocked-report.json 1.7 KB
- evals/fixtures/degraded-report.json 2.0 KB
- evals/fixtures/invalid-self-score.json 1.7 KB
- evals/fixtures/ready-report.json 1.7 KB
- evals/run-evals.mjs 1.1 KB runs code
- inputs/request.schema.json 477 B
- validators/validate-report.mjs 5.8 KB runs code
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.
- 2mo ago Changed · +4 lines e0e66fc39d6e
- 3mo ago First seen · 48 lines · 52 tokens per session scan A 5d7603a815bd
platform-diagnostics is a skill published in the GitHub repository xi-zhao/OpenQuantum (75 stars, last pushed 5d ago), licensed MIT. It adds 52 tokens to every session and 916 once invoked, about $0.0002 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-30.
platform-diagnostics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| platform-diagnosticsxi-zhao/OpenQuantum | Skill | 75 | 5d ago | MIT | A | 52 | Claude Code, Codex |
| triaging-incidentsjschuller/mcp-server-servicenow | Skill | 28 | 3d ago | MIT | A | 89 | Claude Code |
| papi-verifygetpapi/papi | Skill | 13 | 16d ago | MIT | A | 63 | Claude Code |
| error-handlingpingfanfan/hello-dsh | Skill | 111 | 2mo ago | MIT | A | 51 | Claude Code, Codex |
| deployment-completeness-auditgetpapi/papi | Skill | 13 | 16d ago | MIT | A | 44 | Claude Code |
| review-source-dependenciesmappedsky/seizu | Skill | 5 | 3d ago | Apache-2.0 | A | 18 | Claude Code |
| diagnose-connectivitypyworkload/3x-ui-mcp | Skill | 7 | 1mo ago | MIT | A | 83 | Claude Code, Codex |