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 emlint-dem-auditgit 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/emlint-dem-audit)<a href="https://agentmods.dev/skills/xi-zhao/openquantum/emlint-dem-audit"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/emlint-dem-audit/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/emlint-dem-audit"><img src="https://agentmods.dev/badge/skills/xi-zhao/openquantum/emlint-dem-audit.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.00070 | $0.01585 |
| Opus 5.5 | $0.00028 | $0.00634 |
| Sonnet 5.5 | $0.00014 | $0.00317 |
| Haiku 4.5 | $0.00007 | $0.00159 |
Grade A, and why
emlint-dem-audit 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 — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
纠错 DEM 静态诊断
原生 SDK 路径
本能力使用 emlint 的原生公开 API。用户需要 Stim DEM 结构诊断、反例、profile 上下文和不完整检查披露 时,由 Agent 在固定依赖环境中编写和运行任务代码。
使用 node scripts/sdk-access.mjs inspect emlint-dem-audit 定位环境,按完整 SDK 工作流执行。模块导航:emlint、stim;导航不是 API 白名单。
固定 emlint 0.2.4;beta 结构诊断不证明电路或解码正确。保留 warning、skipped、inconclusive、vacuous 与输入失败,不自动修模型。
本入口复用宿主文件与代码工具,没有新增通用执行 Tool。原生 SDK 受上游版本、可选依赖、宿主资源与用户授权约束。已禁用或被拒绝的动作不能借代码路径绕过。执行状态和科研验收分别报告。
选择与准备
用户要排查 DEM 的机制、detector 或 observable 关系时使用本 Skill。模型生成、采样和解码继续由 Stim/PyMatching、Chromobius、Tesseract 等能力处理;lint 不是这些动作的强制前置门禁。
通过 SDK 工作台显式准备固定 emlint==0.2.4、stim==1.16.0 的 Python 3.12 环境。
准备会下载依赖和写入文件;执行使用 inspect 返回的 Python,不隐式安装、不改用户环境。
DSH/Codex 共用此 Skill 和宿主代码工具,没有新增 Tool、MCP Server 或 Runtime。
工作流
- 保存原始电路/DEM、生成参数、版本与文件 SHA-256。记录 detector/observable 的预期数量、 circuit role、syndrome 是否完整、解码器及 DEM 拼接/分解方式;未知信息明确写未知。
- 在固定环境使用公开
emlint.check(stim.DetectorErrorModel(text), checks=..., profile=..., context=...)或emlint check。文件输入优先用pathlib.Path,避免字符串被误当文件路径。 按真实任务选择检查与 profile,不替用户假定complete_syndrome=true或单一连通解码图。 - 保留
emlint.format_json(report)的完整报告:检查名、status、severity、反例、profile、 disabled_checks、applied_overrides、unknown_instructions 和 is_vacuous。报告所用上下文另存, 因为上游报告不包含完整 context。不要只保存all_passed()或退出码。 - CLI 默认退出码 0 表示无 error/warning/inconclusive,1 为 error,2 为 warning 或 inconclusive,
3 为输入无法分析;
--severity error会过滤 warning,必须记录筛选。退出 0 也可能有 skipped 或 vacuous,不能写为完整审计。输入错误应保留异常/诊断,不补造报告。 - 对发现逐项说明适用条件和反例。不得为了通过 lint 自动删机制、合并概率、修改噪声、禁用检查或 降低严重性;只在用户授权且模型含义明确时修正,并保留前后模型和原有采样/解码检查。
- 对 repeat 展开与全局图分析设置宿主进程的时间/内存预算,超限报告未完成。不能静默截断或抽样后 宣称完整检查;Skill 不提供额外的资源管理器,也不保证大 DEM 的性能。
解释规则
- findings 只描述输入 DEM 在所选规则下的结构。
error不自动意味着物理模型错误;有意的零概率机制、 多个独立图、无噪声参考或未被噪声作用的 observable 都需结合任务解释。 duplicates、correctability、概率和图结构告警不自动要求修复。退化码、合法分解和拼接可能产生告警。 不从单机制诊断推断多故障可纠正性,不把边界平衡下界当成码距证明。skipped、inconclusive、is_vacuous与未知指令必须可见。all_passed()可以与未得出结论并存。 不完整报告不等于完整模型已检查;没有发现也不证明原始电路符合意图或解码器成功。- 0.2.4 源码注册十项检查并保留
^分解提示;部分上游文档仍为旧描述。保留提示不代表已验证分解, 使用时以固定源码与真实接口结果为准,不默认引入 experimental distance/multifault 检查。 - 这是 L0 原生 SDK 工作流;没有独立 Validator 或 Acceptance 接入,
scientificValidation=not_evaluated。 不以 lint、工程回归或有限样例证明阈值、真实硬件表现或科学验收。
What ships with it
3 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.
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 · 73 lines · 70 tokens per session scan A e2403f644111
emlint-dem-audit is a skill published in the GitHub repository xi-zhao/OpenQuantum (75 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 1,585 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-10-30.
emlint-dem-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| emlint-dem-auditxi-zhao/OpenQuantum | Skill | 75 | yesterday | MIT | A | 70 | Claude Code, Codex |
| compileiq-author-objectiveNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 150 | Claude Code |
| opik-explaincomet-ml/opik-mcp | Skill | 227 | 4d ago | Apache-2.0 | A | 113 | Claude Code |
| taskade-fix-flowstaskade/mcp | Skill | 170 | 4d ago | MIT | A | 193 | Claude Code |
| debug-failed-jobkeboola/mcp-server | Skill | 84 | today | MIT | A | 48 | Cursor |
| triaging-incidentsjschuller/mcp-server-servicenow | Skill | 28 | 6d ago | MIT | A | 89 | Claude Code |
| ask-good-questionspingfanfan/hello-dsh | Skill | 110 | 2mo ago | MIT | A | 61 | Claude Code, Codex |