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 agentmods add commands/awesome-embedded-learning-studio/tutorial_awesomemoderncpp/preflightgit clone --depth 1 https://github.com/Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPPWhat 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 | $0.00026 | $0.00557 |
| Opus 5 | $0.00013 | $0.00279 |
| Sonnet 5 | $0.00005 | $0.00111 |
| Haiku 4.5 | $0.00003 | $0.00056 |
Grade A, and why
preflight 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.
What it actually says
/preflight — 提交前自检
跑一遍 PR 前该过的检查,汇总通过项和待修项。
输入
$ARGUMENTS —— 目标文件 / 目录(可选)。留空则用 git diff --cached --name-only 取已暂存文件。
流程
- frontmatter 校验:
.venv/bin/python scripts/validate_frontmatter.py(必须用 venv,系统 python 缺 PyYAML 会全量误报)。 - markdownlint:
markdownlint <目标 .md 文件>。 - 粗体渲染:
tsx scripts/check_bold_rendering.ts(扫documents/检测**因标点边界未渲染成<strong>而字面残留的行;典型是**术语(英文)**这类。发现即修:让**边界落在文字上,标点移到**外)。 - 内部链接:运行项目的 link check(若有,如 CI 用的脚本),或人工抽检新增 / 改动链接是否可达、
ChapterLink的href不以.md结尾等。 - 索引检查:若新增或移动了文章,对应卷
index.md是否已更新链接。 - 代码示例(若涉及
code/):提醒确认可独立编译(无根 CMakeLists,逐目录构建)。
输出
## Preflight 报告
- [ ] frontmatter: pass / fail(细节)
- [ ] markdownlint: pass / fail
- [ ] 粗体渲染: pass / fail(N 行 ** 残留)
- [ ] 内部链接: pass / 待检
- [ ] 索引更新: 已更新 / 待补
- [ ] 代码示例: 不涉及 / 待编译确认
待修清单:...
硬约束
- Python 一律
.venv/bin/python(有 PreToolUse hook 强制)。 - 只读检查,不改文件(发现问题列出来,让用户决定怎么改)。
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.
- 2d ago First seen · 40 lines · 26 tokens per session scan A c2a3dc2cfa07
preflight is a command published in the GitHub repository Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP (250 stars, last pushed 2d ago), licensed MIT. It adds 26 tokens to every session and 557 once invoked, about $0.0001 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.
Other commands, from other repositories
learn
Force claude-smart to extract learnings from this session now.
component
Scaffold a new React component grounded in the paper-mono primitives. Requires explicit kind or a nearest-existing-component match. No empty divs, no speculative scaffolding.
memory-store
Store an insight, decision, or pattern to memory.
review
Cold re-quiz on code that already shipped — your own session commits, not the change in front of you.
no-vibe
Enter no-vibe mode in OpenCode (tutor mode, no direct project file writes).
teach-me-testing
Teach testing progressively through structured sessions. Use when user says ""lets learn testing"" or ""I want to study test practices"".