affaan-m/ECC/docs/ja-JP/skills/cpp-coding-standards/SKILL.md
cpp-coding-standards
Use it for engineering tasks; the detail page covers purpose, installation, and practical steps.
- Source repository stars
- 234,327
- Declared platforms
- 0
- Static risk flags
- 0
- Last source update
- 2026-07-27
- Source checked
- 2026-07-28
Decision brief
What it does—and where it fits
C++コアガイドラインから派生した最新のC++(C++17/20/23)の包括的なコーディング標準。タイプセーフティ、リソースセーフティ、不変性、明確性を強制します。
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/affaan-m/ECC --skill "docs/ja-JP/skills/cpp-coding-standards"Inspect the Agent Skill "cpp-coding-standards" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/ja-JP/skills/cpp-coding-standards/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
使用時期
新しいC++コードを書く(クラス、関数、テンプレート)
新しいC++コードを書く(クラス、関数、テンプレート)既存のC++コードをレビューまたはリファクタリングC++プロジェクトでアーキテクチャ決定を行う - 02
クロスカッティング原則
これらのテーマはガイドライン全体に繰り返され、基礎を形成:
至るところにRAII:リソースライフタイムをオブジェクトライフタイムにバインドデフォルトで不変性:const/constexprで開始;変更可能性は例外タイプセーフティ:型システムを使用してコンパイル時にエラーを防止 - 03
主要なルール
Review the “主要なルール” section in the pinned source before continuing.
Review and apply the “主要なルール” source section.
Permission review
Static risk signals and limitations
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 58/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 234,327 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | catalog record | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- affaan-m/ECC
- Skill path
- docs/ja-JP/skills/cpp-coding-standards/SKILL.md
- Commit
- 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
- License
- MIT
- Collected
- 2026-07-28
- Default branch
- main
View the original SKILL.md
C++コーディング標準(C++コアガイドライン)
C++コアガイドラインから派生した最新のC++(C++17/20/23)の包括的なコーディング標準。タイプセーフティ、リソースセーフティ、不変性、明確性を強制します。
使用時期
- 新しいC++コードを書く(クラス、関数、テンプレート)
- 既存のC++コードをレビューまたはリファクタリング
- C++プロジェクトでアーキテクチャ決定を行う
- C++コードベース全体で一貫性のあるスタイルを実施
- 言語機能の選択(例:
enumvsenum class、生ポインタ対スマートポインタ)
クロスカッティング原則
これらのテーマはガイドライン全体に繰り返され、基礎を形成:
- 至るところにRAII:リソースライフタイムをオブジェクトライフタイムにバインド
- デフォルトで不変性:
const/constexprで開始;変更可能性は例外 - タイプセーフティ:型システムを使用してコンパイル時にエラーを防止
- 意図を表現:名前、タイプ、概念は目的を伝える必要があります
- 複雑性を最小化:シンプルなコードが正しいコード
- 値セマンティクス対ポインタセマンティクス:値で返すか、スコープ付きオブジェクトを好む
主要なルール
| 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>循環参照を回避するため
Alternatives
Compare before choosing
affaan-m/ECC
cpp-coding-standards
C++ coding standards based on the C++ Core Guidelines (isocpp.github.io). Use when writing, reviewing, or refactoring C++ code to enforce modern, safe, and idiomatic practices.
affaan-m/ECC
cpp-coding-standards
Use it for engineering tasks; the detail page covers purpose, installation, and practical steps.
coreyhaines31/marketingskills
ab-testing
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
event4u-app/agent-config
design-intelligence
Grounded design brief from the adopted corpus — style, WCAG-checked color tokens, typography, layout pattern, anti-patterns. Use on ui-design-brief or any which-style/palette/font/chart decision.