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.
curl -O https://raw.githubusercontent.com/mcpp-community/mcpp/main/.agents/skills/mcpp-contributing/SKILL.mdgit clone --depth 1 https://github.com/mcpp-community/mcppWrote 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.
[](https://agentmods.dev/skills/mcpp-community/mcpp/mcpp-contributing)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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
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.
- 8d ago Changed · +2 lines 61ec9400cc11
- 1mo ago Changed · +2 lines 1b07c1ec2d98
- 1mo ago Changed · +10 lines 2170098e05c0
- 2mo ago First seen · 339 lines · 53 tokens per session scan A e21f0674af16
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.
mcpp-contributing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcpp-contributingmcpp-community/mcpp | Skill | 196 | yesterday | Apache-2.0 | A | 53 | Claude Code, Codex |
| review-trtmc-prNVIDIA/TensorRT-Model-Connect | Skill | 289 | today | Apache-2.0 | A | 105 | Codex |
| submit-github-prNVIDIA/TensorRT-Model-Connect | Skill | 289 | today | Apache-2.0 | A | 58 | Codex |
| write-git-messagesNVIDIA/TensorRT-Model-Connect | Skill | 289 | today | Apache-2.0 | A | 75 | Codex |
| profile-modelNVIDIA/TensorRT-Model-Connect | Skill | 289 | today | Apache-2.0 | A | 30 | Codex |
| doc-syncNVIDIA/TensorRT-Model-Connect | Skill | 289 | today | Apache-2.0 | A | 30 | Codex |
| readable-cppcrazyguitar/cppcheatsheet | Skill | 293 | 9d ago | MIT | A | 63 | Claude Code |