Agent skill

D2mcpp Authoring

by mcpp-community in mcpp-community/d2mcpp

Authoring conventions, design principles, and file formats for the d2mcpp (D2X) Modern C++ tutorial project.

Custom licenceAuto-check passedDevelopment

Install D2mcpp Authoring

skills CLI
$ npx skills add mcpp-community/d2mcpp --skill d2mcpp-authoring -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mcpp-community/d2mcpp d2mcpp-authoring --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mcpp-community/d2mcpp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/d2mcpp-authoring .claude/skills/d2mcpp-authoring && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
d2mcpp-authoring
GitHub stars
1.8k
Token cost
~2.7k tokens
SKILL.md length
1,333 words
Files
6 (incl. references, assets)
Skills in repo
1
Repo updated
First seen
Licence
Custom licence

At a glance

Authoring conventions, design principles, and file formats for the d2mcpp (D2X) Modern C++ tutorial project.

  • Works in 8 steps: book/src//NN-topic.md — zh chapter → book/en/src//NN-topic.md — en chapter… → src//tests/NN-topic/K.cpp — one or more… → …
  • It for any request like add a chapter for X
  • SKILL.md covers The design principle (decide…, The unit of work: one lesson =…, Naming and numbering and Book chapter format, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

D2mcpp Authoring is an agent skill from mcpp-community/d2mcpp. Authoring conventions, design principles, and file formats for the d2mcpp (D2X) Modern C++ tutorial project. Use this whenever you add or edit a C++ language-feature lesson — a book chapter, an exercise, a reference solution, or when registering them in SUMMARY/changelog. Trigger it for any request like "add a chapter for X", "write an exercise for fold expressions", "add the constexpr lesson", "fill the cpp14 section", or anything touching book/src, book/en/src, src/ (exercises), or solutions/. Even small edits…

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files and assets (for example `assets/chapter.en.md`, `assets/chapter.zh.md` and `references/anatomy.md`).

It sits in Development, covering Translation and Changelog and release notes. It works with C++. The repository describes itself as: D2X | Modern C++ Core Language Features - "A C++ tutorial project focused on practical".

When your agent uses it

  • It for any request like add a chapter for X
  • Write an exercise for fold expressions
  • Add the constexpr lesson
  • Fill the cpp14 section

Example prompts

  • “add a chapter for X”
  • “write an exercise for fold expressions”
  • “add the constexpr lesson”
  • “/d2mcpp-authoring”

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. book/src//NN-topic.md — zh chapter
  2. book/en/src//NN-topic.md — en chapter (translate prose, keep code identical)
  3. src//tests/NN-topic/K.cpp — one or more exercises (K = 0,1,2…), zh comments
  4. src/en//tests/NN-topic/K.cpp — en exercises (translate comments only)
  5. solutions/tests//NN-topic/K.cpp — reference solution per exercise (zh/en 共用)
  6. (nothing to register — exercises are tests, discovered by directory convention)
  7. Add the chapter line to both book/src/SUMMARY.md and book/en/src/SUMMARY.md
  8. Add a changelog entry to both book/src/changelog.md and book/en/src/changelog.md

What it can do on your machine

Read from SKILL.md and the folder at commit 6bcf5db. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

D2mcpp Authoring loads about 2.7k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 157 tokens; SKILL.md has 1,333 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~157
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,333 words (~2,722 tokens).

“d2mcpp teaches Modern C++ core language features through a tightly coupled quartet: Book (mdBook) + Code (exercises-as-tests) + Solution + Auto-checker (d2x checker / native mcpp test), all of it bilingual (zh + en). A "lesson" is never one file…”

— opening of SKILL.md by mcpp-community, Custom licence
name
d2mcpp-authoring

Read the full SKILL.md on GitHub

Files

SKILL.md and 5 other files (references, assets) in .agents/skills/d2mcpp-authoring of mcpp-community/d2mcpp.

  • SKILL.md
  • assets/chapter.en.md
  • assets/chapter.zh.md
  • assets/exercise.cpp
  • assets/solution.cpp
  • references/anatomy.md

Open the folder on GitHubat commit 6bcf5db

Compare with similar skills

D2mcpp Authoring next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

D2mcpp Authoring compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
D2mcpp Authoring this skillmcpp-community/d2mcpp1.8k—~2.7kAutomated safety check: PassCustom licence
Mcpp Docs Stylemcpp-community/mcpp156—~3.7kAutomated safety check: PassApache-2.0
pybind11 Release Preparationpybind/pybind1118k—~1.7kAutomated safety check: PassCustom licence
DeepChat Release ProcessThinkInAIXYZ/deepchat6.4k—~1.1kAutomated safety check: PassApache-2.0
pybind11 Release Publicationpybind/pybind1118k—~2.5kAutomated safety check: PassCustom licence
Pre ReleaseZhuoZhuoCrayon/throttled-py651—~1.1kAutomated safety check: PassMIT

Similar skills

  • Mcpp Docs Style

    mcpp-community/mcpp

    A skill your agent uses when writing or editing anything under docs/ (English or 简体中文), docs/specs/, README files, or the design records under .agents/docs/ — states which tree a document belongs…

    156 GitHub stars~3.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Opens the pybind11 release-preparation pull request: picking the release base, bumping the version in common.h and integrating the changelog, following docs/release.rst.

    18k GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed
  • DeepChat Release Process

    ThinkInAIXYZ/deepchat

    Runs the DeepChat repository's release flow: prepares bilingual release notes and a version bump on dev, cuts or updates a release branch, then fast-forwards main and tags the version.

    6.4k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Walks a maintainer through publishing a pybind11 release after the preparation PR merges, with preflight checks, confirmations before each push and a GitHub release.

    18k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Pre Release

    ZhuoZhuoCrayon/throttled-py

    Automates release preparation for throttled-py. An agent skill from ZhuoZhuoCrayon/throttled-py.

    651 GitHub stars~1.1k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Pulse Release

    qunqin24/Pulse

    Release a new Pulse version end to end — checks, bilingual CHANGELOG entry, VERSION, tag, the release workflow, syncing main, and the issue replies that go with it.

    516 GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed

Works with

Questions about D2mcpp Authoring

What does D2mcpp Authoring do?

Authoring conventions, design principles, and file formats for the d2mcpp (D2X) Modern C++ tutorial project. D2mcpp Authoring is an agent skill from mcpp-community/d2mcpp. Authoring conventions, design principles, and file formats for the d2mcpp (D2X) Modern C++ tutorial project.

When should I use D2mcpp Authoring?

D2mcpp Authoring fits situations like: it for any request like add a chapter for X; write an exercise for fold expressions; add the constexpr lesson; fill the cpp14 section.

How do I install D2mcpp Authoring in Claude Code?

Run `npx skills add mcpp-community/d2mcpp --skill d2mcpp-authoring -a claude-code`. Or copy the skill folder (.agents/skills/d2mcpp-authoring in mcpp-community/d2mcpp) into .claude/skills/d2mcpp-authoring in your project. Claude Code loads it when a task matches its description.

How do I install D2mcpp Authoring in Codex?

Run `npx skills add mcpp-community/d2mcpp --skill d2mcpp-authoring -a codex`. Or copy the skill folder (.agents/skills/d2mcpp-authoring in mcpp-community/d2mcpp) into .agents/skills/d2mcpp-authoring in your project. Codex loads it when a task matches its description.

Can I use D2mcpp Authoring in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mcpp-community/d2mcpp --skill d2mcpp-authoring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/d2mcpp-authoring, .gemini/skills/d2mcpp-authoring, .github/skills/d2mcpp-authoring and .opencode/skills/d2mcpp-authoring in your project.

What does D2mcpp Authoring need to run?

SKILL.md names no scripts, command-line tools or credentials: D2mcpp Authoring is instructions for the agent only.

Does D2mcpp Authoring access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is D2mcpp Authoring safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does D2mcpp Authoring use?

D2mcpp Authoring has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does D2mcpp Authoring use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to D2mcpp Authoring?

Skills that share tags, products or a category with D2mcpp Authoring: Mcpp Docs Style (mcpp-community/mcpp, 156 stars), pybind11 Release Preparation (pybind/pybind11, 18k stars), DeepChat Release Process (ThinkInAIXYZ/deepchat, 6.4k stars) and pybind11 Release Publication (pybind/pybind11, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains D2mcpp Authoring?

mcpp-community (a GitHub organization) maintains it in mcpp-community/d2mcpp, which has 1,768 GitHub stars. The repository was last updated on August 2, 2026.

Source: mcpp-community/d2mcpp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.