audit

A command that checks an article for factual errors and unsupported technical claims, then edits the article and reports the changes. It uses web sources for facts and compilation results for claims about C++ behavior.

In plain words
What is it for?
Use it to review an article about people, dates, specifications, citations, code behavior, or performance claims. It can update the article with warnings and details and add verified example code where needed.
Why use it?
It helps distinguish statements supported by evidence from statements that only sound plausible, such as claims about compiler optimizations or speed. It records the verification path and flags important corrections.

Command for Claude Code

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.

agentmods
npx agentmods add commands/awesome-embedded-learning-studio/tutorial_awesomemoderncpp/audit
Clone the repo
git clone --depth 1 https://github.com/Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP

Made for: Claude Code.

Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 589 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00589
Opus 5 $0.00017 $0.00295
Sonnet 5 $0.00007 $0.00118
Haiku 4.5 $0.00003 $0.00059

Measured 2d ago against content hash 913324f28e10, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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.

.claude/commands/audit.md · 36 lines

What it actually says

/audit — 文章双审查(事实 + 严谨)

你是执行者:对目标文章做两轮审查,直接修改文章并产出报告

输入

$ARGUMENTS —— 待审查文章路径(必填)。为空则停下问用户要路径。

方法论来源

严格按这两个 prompt 的流程和约束执行,本命令只是把它们串成一次调用。

流程

  1. 读全文,通读目标文章。
  2. 事实轮:标记需验证声明 → web search 查权威源 → 按 P0–P3 分级。
  3. 严谨轮:标记无证据的技术 / 性能断言 → 编译验证(见硬约束)。
  4. 修正:按 factcheck 的三要素(原文摘录 / RefLink / 验证路径)插入 :::warning / :::details;rigor 轮用真实汇编 / 输出替换空口描述。验证代码写入 code/volumn_codes/vol{N}/
  5. 报告:输出修正汇总表 + 新增引用 + 新增验证代码 + 验证清单。

硬约束(行为纪律)

  • 编译只到 /tmp/:g++ -std=c++XX -O{0,2} -o /tmp/xxx /tmp/xxx.cpp,运行 /tmp/xxx —— 分两次独立 Bash 调用,禁止 && 串联
  • 禁止在项目目录跑 cmake / make / ninja 或建 build 目录。
  • 禁止把报告 / 日志写到 /tmp/ 或任何位置 —— 报告直接作为返回文本输出。
  • 只修改目标文章 + 对应 code/volumn_codes/ 目录。
  • 写作风格遵循 writing-style.md
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. 2d ago First seen · 36 lines · 35 tokens per session scan A 913324f28e10

Subscribe to this mod's changes

audit is a command published in the GitHub repository Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP (250 stars, last pushed 2d ago), licensed MIT. It adds 35 tokens to every session and 589 once invoked, about $0.0002 per session on Opus 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.