mcpp: Skill for Claude Code

.agents/skills/mcpp-contributing/SKILL.md

mcpp-contributing is a skill for Claude Code, Codex from mcpp-community/mcpp. It costs 53 tokens per session (4,076 once invoked), scanned A, original, Apache-2.0.

A contribution guide for the mcpp open-source project, covering how to propose and submit code, documentation, or configuration changes.

In plain words
What is it for?
Use it when fixing bugs, adding features, improving documentation, or preparing any mcpp pull request.
Why use it?
It removes uncertainty about the project's required issue, branch, pull request, build, test, and CI steps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents).

This is mcpp-community/mcpp's own configuration. It tells Claude Code and Codex how to work on mcpp 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 mcpp configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is MCPP=<absolute-path-to-fresh-mcpp-or-mcpp.exe> bash tests/e2e/01_help_and_version.sh.

Reuse

Borrowing it

Nothing to install: this file belongs to mcpp-community/mcpp. 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/mcpp-community/mcpp/main/.agents/skills/mcpp-contributing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mcpp-community/mcpp

Made for: Claude Code, Codex.

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 mcpp-contributing

README.md
[![agentmods](https://agentmods.dev/badge/skills/mcpp-community/mcpp/mcpp-contributing/github.svg)](https://agentmods.dev/skills/mcpp-community/mcpp/mcpp-contributing)
Your own site
<a href="https://agentmods.dev/skills/mcpp-community/mcpp/mcpp-contributing"><img src="https://agentmods.dev/badge/skills/mcpp-community/mcpp/mcpp-contributing/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 mcpp-contributing

Your own site · 80×15
<a href="https://agentmods.dev/skills/mcpp-community/mcpp/mcpp-contributing"><img src="https://agentmods.dev/badge/skills/mcpp-community/mcpp/mcpp-contributing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,076 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00053 $0.04076
Opus 5.5 $0.00021 $0.01630
Sonnet 5.5 $0.00011 $0.00815
Haiku 4.5 $0.00005 $0.00408

Measured 8d ago against content hash 61ec9400cc11, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcpp-contributing 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 8d 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/skills/mcpp-contributing/SKILL.md · 353 lines

How it starts

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

mcpp 项目开发贡献规范

Overview

mcpp 项目的贡献流程:先创建 Issue → 切分支 → 实现改动 → 提交 PR → CI 通过 → Review 合入。

  • 仓库:https://github.com/mcpp-community/mcpp
  • 构建:mcpp build(C++23 模块自举)
  • 测试:mcpp test 覆盖 tests/**/*.cpp,tests/e2e/ 提供真实二进制的端到端脚本
  • CI:GitHub Actions,base 为 main 的 PR 触发分平台构建、测试与 E2E 检查

核心原则

禁止直接 push main

所有改动必须通过 PR 合入 main,无论改动大小。这包括:

  • 代码改动(feat / fix / refactor)
  • 文档改动(docs / skills / .agents/)
  • 配置改动(mcpp.toml / .xlings.json / CI workflow)
  • 版本号 bump(必须通过 PR,不能直接 push)

唯一例外:紧急 hotfix 需要 --admin 合入,但也必须先创建 PR。

违规示例(不允许):

# ✗ 直接 push 到 main
git commit -m "docs: add skill" && git push origin main

# ✗ 绕过分支保护
git push origin feature:main

正确做法:

# ✓ 始终走 PR 流程
git checkout -b docs/add-release-skill
git commit -m "docs: add release skill"
git push -u origin docs/add-release-skill
gh pr create --title "docs: add release skill" --body "..."
# 等 CI 通过后合入

贡献流程

1. 创建 Issue(必须)

所有贡献先创建 Issue,特别是新功能。避免重复工作,留下讨论记录。

Bug 修复

gh issue create \
  --title "fix: 简短描述" \
  --body "## 复现步骤
1. ...

## 期望行为
...

## 实际行为
...

## 环境
- mcpp 版本:\`mcpp --version\`
- OS:"

新功能

gh issue create \
  --title "feat: 简短描述" \
  --body "## 动机
...

## 设计思路
...

## 涉及模块
..."

代码优化

gh issue create \
  --title "refactor: 简短描述" \
  --body "## 当前问题
...

## 优化方案
..."

2. 创建分支

必须从最新 main 创建分支,禁止在 main 上直接开发。

git checkout main && git pull origin main
git checkout -b <type>/<short-description>
# type: feat / fix / refactor / test / docs / chore

分支命名规范:

  • feat/xxx — 新功能
  • fix/xxx — Bug 修复
  • refactor/xxx — 重构
  • test/xxx — 测试
  • docs/xxx — 文档
  • chore/xxx — 版本 bump、配置、依赖更新

3. 实现改动

开发要求

  • 遵循现有代码风格(查看相邻代码)
  • 模块导入用 import std; 和 import mcpp.xxx;
  • 只改需要改的,不顺手重构不相关代码
  • 循环嵌套不超过两层:第三层改为具名的辅助函数、一次扁平的遍历(例如带深度的 recursive_directory_iterator)或先收集再处理;确有必要保留三层时,在该处注释写明理由
  • 平台相关代码放在 src/platform/ 目录下

构建验证

# 用现有 bootstrap mcpp 自举构建
mcpp build
# 选择刚生成的 target/**/bin/mcpp(Windows 为 mcpp.exe),不要硬编码宿主 triple
<fresh-mcpp-binary> --version

Read the full file on GitHub · 353 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. 8d ago Changed · +2 lines 61ec9400cc11
  2. 1mo ago Changed · +2 lines 1b07c1ec2d98
  3. 1mo ago Changed · +10 lines 2170098e05c0
  4. 2mo ago First seen · 339 lines · 53 tokens per session scan A e21f0674af16

Subscribe to this mod's changes

mcpp-contributing is a skill published in the GitHub repository mcpp-community/mcpp (196 stars, last pushed yesterday), licensed Apache-2.0. It adds 53 tokens to every session and 4,076 once invoked, about $0.0002 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

mcpp-contributing compared with skills from other repositories

mcpp-contributing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcpp-contributingmcpp-community/mcppSkill196yesterdayApache-2.0A53Claude Code, Codex
review-trtmc-prNVIDIA/TensorRT-Model-ConnectSkill289todayApache-2.0A105Codex
submit-github-prNVIDIA/TensorRT-Model-ConnectSkill289todayApache-2.0A58Codex
write-git-messagesNVIDIA/TensorRT-Model-ConnectSkill289todayApache-2.0A75Codex
profile-modelNVIDIA/TensorRT-Model-ConnectSkill289todayApache-2.0A30Codex
doc-syncNVIDIA/TensorRT-Model-ConnectSkill289todayApache-2.0A30Codex
readable-cppcrazyguitar/cppcheatsheetSkill2939d agoMITA63Claude Code