Tutorial_AwesomeModernCPP: Instructions file for Claude Code

AGENTS.md

Tutorial_AwesomeModernCPP AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP. It costs 881 tokens per session, scanned A, original, MIT.

A project guide for AI coding agents working on a Chinese-language Modern C++ tutorial, built with VitePress and containing CMake examples for computers and STM32 microcontrollers.

In plain words
What is it for?
It helps maintain tutorials, validate Markdown metadata, build the documentation site, and compile or review C++ examples.
Why use it?
It reduces project mistakes by documenting the required tools, build commands, validation steps, and rules for checking C++ behavior.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PreToolUse hook event, but also the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

This is Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP's own configuration. It tells Claude Code, Codex and OpenCode how to work on Tutorial_AwesomeModernCPP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Tutorial_AwesomeModernCPP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP

Made for: Claude Code, Codex, OpenCode.

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 Tutorial_AwesomeModernCPP AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/awesome-embedded-learning-studio/tutorial_awesomemoderncpp/agents-md/github.svg)](https://agentmods.dev/instructions/awesome-embedded-learning-studio/tutorial_awesomemoderncpp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/awesome-embedded-learning-studio/tutorial_awesomemoderncpp/agents-md"><img src="https://agentmods.dev/badge/instructions/awesome-embedded-learning-studio/tutorial_awesomemoderncpp/agents-md/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 Tutorial_AwesomeModernCPP AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/awesome-embedded-learning-studio/tutorial_awesomemoderncpp/agents-md"><img src="https://agentmods.dev/badge/instructions/awesome-embedded-learning-studio/tutorial_awesomemoderncpp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 881 This file is loaded in full into every session.
When invoked 881 The same file — it is already loaded in full.
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.00881 $0.00881
Opus 5.5 $0.00352 $0.00352
Sonnet 5.5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

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

Security

Grade A, and why

Tutorial_AwesomeModernCPP AGENTS.md 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.

AGENTS.md · 35 lines

How it starts

The opening of the file, as written. The whole thing — 35 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

给任何 AI coding agent(Claude Code / Cursor / Copilot / Codex / Windsurf …)的项目入口,人也适用。一个 vendor-neutral 文件,所有 agent 都读。Claude 专属补充另见 CLAUDE.md。

这是什么

Tutorial_AwesomeModernCPP —— 从 C++ 基础到嵌入式实战的系统化 Modern C++ 教程(C++11–C++23,9 卷约 155 篇),VitePress 构建 + CMake 代码示例(支持 host / STM32F1 / STM32F4),部署 GitHub Pages。主语言中文。

documents/                vol1..vol9 + compilation + projects + images + community  ← 文档源
site/.vitepress/          VitePress 配置(nav / sidebar / theme / plugins)
scripts/                  build.ts(分卷并行构建)、validate_frontmatter.py …
code/volumn_codes/        各卷可编译示例(无根 CMakeLists,逐目录构建)

通用 essentials(所有 agent 必读)

  • Python 一律用 .venv/bin/python(根目录 .venv,Python 3.14 + PyYAML)。严禁裸 python / python3 —— 系统 python 缺 PyYAML,会让 validate_frontmatter.py 把全仓文件误报成 error。(Claude Code 侧有 PreToolUse hook 强制拦截。)
  • 金科玉律 · 信息校验:凡断言 C++ 行为,先编译实测或查 cppreference 并标标准版本。C++ 语义随版本 / 实现变化,禁止凭记忆断言。验证代码只写 /tmp/,不要在项目目录跑 cmake / make / build(会污染仓库)。
  • 构建 / 校验:pnpm install → pnpm dev(热更新预览)/ pnpm build(分卷并行);markdownlint documents/**/*.md;.venv/bin/python scripts/validate_frontmatter.py。
  • 谨慎区:compilation/ 卷已完成,改动需特别谨慎;vol1-fundamentals/ 正在重写,注意与已有内容衔接。

你来做什么?(按场景路由)

场景 去哪
贡献文章 / 代码示例 CONTRIBUTING.md —— 流程一条龙
出题 / 投题解(每周一些题) code/volumn_codes/weekly-problems/AGENTS.md —— 落题规程 + 模板包;人读详解见 站点手册
写作人格 / 语气 / 文章骨架 / 代码风格 .claude/style/writing-style.md(公开卡;维护者环境另有 content_forge 完整体系,见 .claude/tools/content_forge/,不入库)
Frontmatter 字段与标签体系 .claude/rules/documents-frontmatter.md
辅助 C++ 学习者(学习辅助 track) .github/learning-with-agents.md + FAQ
复用本项目 Claude 资产(commands / prompts / hooks) CLAUDE.md → .claude/

Read the full file on GitHub · 35 lines

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 Changed · +31 tokens per session 1f6bbd632968
  2. 1mo ago Changed · +1 lines · +72 tokens per session cd42a17e880a
  3. 2mo ago First seen · 34 lines · 778 tokens per session scan A a5fe652debc4

Subscribe to this mod's changes

Tutorial_AwesomeModernCPP AGENTS.md is an instructions file published in the GitHub repository Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP (354 stars, last pushed 4d ago), licensed MIT. It adds 881 tokens to every session, about $0.0035 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.

Related

Tutorial_AwesomeModernCPP AGENTS.md compared with instructions from other repositories

Tutorial_AwesomeModernCPP AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Tutorial_AwesomeModernCPP AGENTS.mdAwesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPPInstructions file3544d agoMITA881Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode