cpp-coding-standards SKILL.md skillA
cpp-coding-standards from affaan-m/ecc is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add affaan-m/ecc/cpp-coding-standards@git:20260517.ec9ace9Pins git:20260517.ec9ace9 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- affaan-m/ecc
- Path
docs/ja-JP/skills/cpp-coding-standards/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260517.ec9ace9, committed May 17, 2026
- Size
- 2,717 bytes
- Repository stars
- 299,696
- License
- MIT
C++コアガイドラインに基づくC++コーディング標準(isocpp.github.io)。現代的で安全で慣用的なプラクティスを強制するためにC++コードを書き、レビュー、またはリファクタリングする場合に使用します。.
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
# C++コーディング標準(C++コアガイドライン) C++コアガイドラインから派生した最新のC++(C++17/20/23)の包括的なコーディング標準。タイプセーフティ、リソースセーフティ、不変性、明確性を強制します。 ## 使用時期 - 新しいC++コードを書く(クラス、関数、テンプレート) - 既存のC++コードをレビューまたはリファクタリング - C++プロジェクトでアーキテクチャ決定を行う - C++コードベース全体で一貫性のあるスタイルを実施 - 言語機能の選択(例:`enum` vs `enum class`、生ポインタ対スマートポインタ) ## クロスカッティング原則 これらのテーマはガイドライン全体に繰り返され、基礎を形成: 1. **至るところにRAII**:リソースライフタイムをオブジェクトライフタイムにバインド 2. **デフォルトで不変性**:`const`/`constexpr`で開始;変更可能性は例外 3. **タイプセーフティ**:型システムを使用してコンパイル時にエラーを防止 4. **意図を表現**:名前、タイプ、概念は目的を伝える必要があります 5. **複雑性を最小化**:シンプルなコードが正しいコード 6. **値セマンティクス対ポインタセマンティクス**:値で返すか、スコープ付きオブジェクトを好む ## 主要なルール | Rule | Summary | |------|---------| | **P.1** | コード内のアイデアを直接表現 | | **P.3** | 意図を表現 | | **P.4** | 理想的には、プログラムは静的にタイプセーフである必要があります | | **P.5** | ランタイムチェックに対するコンパイル時チェック | | **P.8** | リソースをリークしない | | **P.10** | 変更可能なデータより不変データを好む | | **I.1** | インターフェースを明示的にする | | **I.2** | 非const グローバル変数を避ける | | **I.4** | インターフェースを正確にし、強く型付けされたものにする | ## スマートポインタと所有権 現代的なC++では、生ポインタの代わりにスマートポインタを使用: - `std::unique_ptr<T>` 単一所有者向け - `std::shared_ptr<T>` 共有所有権向け - `std::weak_ptr<T>` 循環参照を回避するため
Read the whole file at its exact version.
How to install
mdr add affaan-m/ecc/cpp-coding-standards@sha256:5ac1bb2350038ad8The line at the top of this page pins the label git:20260517.ec9ace9, 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.
[](https://markdownregistry.com/a/art_44mmipbepwjmefpe)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on May 17, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2717 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 curl or wget piped into a shell
- 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
Source
affaan-m/ecc · 299,696 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_44mmipbepwjmefpe GET https://markdownregistry.com/api/v1/resolve?ref=affaan-m/ecc/cpp-coding-standards GET https://markdownregistry.com/api/v1/blob/5ac1bb2350038ad889914bbb439cfa12268eb6a398d4e00e40edcf046e97115c
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.