mcpp-usage SKILL.md skillB

mcpp-usage from mcpp-community/mcpp is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add mcpp-community/mcpp/mcpp-usage@git:20261023.d5ec182

Pins git:20261023.d5ec182 in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
mcpp-community/mcpp
Path
.agents/skills/mcpp-usage/SKILL.md
Versions recorded
3
Latest version
git:20261023.d5ec182, committed Oct 23, 2026
First version recorded
May 16, 2026
Size
6,221 bytes
Repository stars
197
License
Apache-2.0

Use when helping users install, configure, or use mcpp — the C++23 modular build tool. Covers installation, project creation, building, dependency management, toolchain management, workspace setup, packaging, diagnostics, and troubleshooting.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# mcpp 基础用法

## Overview

mcpp 是一个现代 C++ 模块化构建工具,纯 C++23 模块编写,已实现自举。一条命令安装,`import std` 开箱即用。

- 仓库:https://github.com/mcpp-community/mcpp
- 文档:https://github.com/mcpp-community/mcpp/tree/main/docs
- 包索引:https://github.com/mcpp-community/mcpp-index
- 模块化库:https://github.com/mcpplibs

## Quick Reference

| 命令 | 用途 |
|---|---|
| `mcpp new <name>` | 创建项目 |
| `mcpp build` | 构建 |
| `mcpp run [-- args]` | 构建并运行 |
| `mcpp test [pattern] [-- args]` | 发现并运行 `tests/**/*.cpp` 测试 |
| `mcpp add <pkg>[@ver]` | 添加依赖 |
| `mcpp remove <pkg>` | 移除依赖 |
| `mcpp update [pkg]` | 更新依赖 |
| `mcpp search <keyword>` | 搜索包 |
| `mcpp toolchain list` | 查看工具链 |
| `mcpp toolchain install gcc 16` | 安装工具链 |
| `mcpp pack` | 打包 |
| `mcpp why [toolchain|runtime|deps]` | 解释解析出的构建决策 |
| `mcpp --offline` | 只使用已有本地状态 |
| `mcpp self doctor` | 环境诊断 |
| `mcpp explain <CODE>` | 错误码解释 |

## 安装

```bash
# 推荐;Windows 请在 PowerShell 中运行
xlings install mcpp -y

# 或 Unix release 一键脚本(仅 Linux x86_64/aarch64 与 macOS ARM64)
curl -fsSL https://github.com/mcpp-community/mcpp/releases/latest/download/install.sh | bash
```

一键脚本不支持 Windows;Windows 使用 PowerShell 的 xlings 安装命令。安装到
`~/.mcpp/` 后会自动加入 PATH。首次使用时,mcpp 按宿主选择默认工具链并
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add mcpp-community/mcpp/mcpp-usage@sha256:cb80af19f348270c

The line at the top of this page pins the label git:20261023.d5ec182, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_hog5cizbkxths3kx.svg)](https://markdownregistry.com/a/art_hog5cizbkxths3kx)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between May 16, 2026 and Oct 23, 2026, about one every 80 days.

versioncommittedcommitsizeaudit
git:20261023.d5ec182 latest2026-10-23 d5ec182 6,221 BB view · diff
git:20260803.a01fdd42026-08-03 a01fdd4 4,599 BB view · diff
git:20260516.0d7e02a2026-05-16 0d7e02a 3,375 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No curl or wget piped into a shell (matched: curl -fsSL https://github.com/mcpp-community/mcpp/releases/latest/download/install.sh | bash)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6221 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

mcpp-community/mcpp · 197 stars · license Apache-2.0 · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_hog5cizbkxths3kx
GET https://markdownregistry.com/api/v1/resolve?ref=mcpp-community/mcpp/mcpp-usage
GET https://markdownregistry.com/api/v1/blob/cb80af19f348270c16658157aa3b620dfcc65bae7c1533fcb7615e0f796fe059

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from mcpp-community/mcpp

mcpp-contributing SKILL.md skill
mcpp-community/mcpp · .agents/skills/mcpp-contributing/SKILL.md · Use when contributing to the mcpp project — submitting bug fixes, new features, code optimizations, documentation…
git:20261028.e0b1133 · audit A · 197 stars
mcpp-docs-style SKILL.md skill
mcpp-community/mcpp · .agents/skills/mcpp-docs-style/SKILL.md · Use when writing or editing anything under docs/ (English or 简体中文), docs/specs/, README files, or the design records…
git:20260908.9a71c9a · audit A · 197 stars
mcpp-release SKILL.md skill
mcpp-community/mcpp · .agents/skills/mcpp-release/SKILL.md · Use when releasing a new version of mcpp — bumps version, creates tag, triggers release CI, and monitors until all…
git:20261002.1bb5ea3 · audit A · 197 stars

Every file in mcpp-community/mcpp

Browse by kind, by grade B, or by owner.