emlint-dem-audit

emlint-dem-audit is a skill for Claude Code, Codex from xi-zhao/OpenQuantum. It costs 70 tokens per session (1,585 once invoked), scanned A, original, MIT.

A structural checker for Stim detector error models (DEMs), which describe possible errors and the detectors that observe them in a quantum error-correction simulation.

In plain words
What is it for?
Use it to inspect DEM structure, preserve counterexamples and warnings, and diagnose links between detectors and logical observables.
Why use it?
It can expose disconnected or repeated error mechanisms and missing syndrome information before simulation or decoding. It does not prove that the quantum code or decoder is correct.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it to inspect DEM structure, preserve counterexamples and warnings, and diagnose links between detectors and logical observables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xi-zhao/openquantum/emlint-dem-audit
Install

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.

Any agent
npx skills add xi-zhao/OpenQuantum --skill emlint-dem-audit
Clone the repo
git clone --depth 1 https://github.com/xi-zhao/OpenQuantum

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for emlint-dem-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/xi-zhao/openquantum/emlint-dem-audit/github.svg)](https://agentmods.dev/skills/xi-zhao/openquantum/emlint-dem-audit)
Your own site
<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.

agentmods 80×15 button for emlint-dem-audit

Your own site · 80×15
<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>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash e2403f644111, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (references/native-example.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/emlint-dem-audit/SKILL.md · 73 lines

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。

工作流

  1. 保存原始电路/DEM、生成参数、版本与文件 SHA-256。记录 detector/observable 的预期数量、 circuit role、syndrome 是否完整、解码器及 DEM 拼接/分解方式;未知信息明确写未知。
  2. 在固定环境使用公开 emlint.check(stim.DetectorErrorModel(text), checks=..., profile=..., context=...) 或 emlint check。文件输入优先用 pathlib.Path,避免字符串被误当文件路径。 按真实任务选择检查与 profile,不替用户假定 complete_syndrome=true 或单一连通解码图。
  3. 保留 emlint.format_json(report) 的完整报告:检查名、status、severity、反例、profile、 disabled_checks、applied_overrides、unknown_instructions 和 is_vacuous。报告所用上下文另存, 因为上游报告不包含完整 context。不要只保存 all_passed() 或退出码。
  4. CLI 默认退出码 0 表示无 error/warning/inconclusive,1 为 error,2 为 warning 或 inconclusive, 3 为输入无法分析;--severity error 会过滤 warning,必须记录筛选。退出 0 也可能有 skipped 或 vacuous,不能写为完整审计。输入错误应保留异常/诊断,不补造报告。
  5. 对发现逐项说明适用条件和反例。不得为了通过 lint 自动删机制、合并概率、修改噪声、禁用检查或 降低严重性;只在用户授权且模型含义明确时修正,并保留前后模型和原有采样/解码检查。
  6. 对 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、工程回归或有限样例证明阈值、真实硬件表现或科学验收。

Read the full file on GitHub · 73 lines

Files

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.

Changes

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.

  1. 1mo ago First seen · 73 lines · 70 tokens per session scan A e2403f644111

Subscribe to this mod's changes

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.

Related

emlint-dem-audit compared with skills from other repositories

emlint-dem-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
emlint-dem-auditxi-zhao/OpenQuantumSkill75yesterdayMITA70Claude Code, Codex
compileiq-author-objectiveNVIDIA/skillsSkill4.2k2d agoApache-2.0A150Claude Code
opik-explaincomet-ml/opik-mcpSkill2274d agoApache-2.0A113Claude Code
taskade-fix-flowstaskade/mcpSkill1704d agoMITA193Claude Code
debug-failed-jobkeboola/mcp-serverSkill84todayMITA48Cursor
triaging-incidentsjschuller/mcp-server-servicenowSkill286d agoMITA89Claude Code
ask-good-questionspingfanfan/hello-dshSkill1102mo agoMITA61Claude Code, Codex