C++コアガイドラインに基づくC++コーディング標準(isocpp.github.io)。現代的で安全で慣用的なプラクティスを強制するためにC++コードを書き、レビュー、またはリファクタリングする場合に使用します。
Scanned 9/4/2026
Install to Claude Code
npx -y skills add affaan-m/everything-claude-code --skill cpp-coding-standards --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cpp Coding Standards?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/affaan-m-cpp-coding-standards-ed880a3d)More formats (shields.io, HTML) on the badges page.
---
name: cpp-coding-standards
description: C++コアガイドラインに基づくC++コーディング標準(isocpp.github.io)。現代的で安全で慣用的なプラクティスを強制するためにC++コードを書き、レビュー、またはリファクタリングする場合に使用します。
origin: ECC
---
# 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>` 循環参照を回避するため
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
**Complete production-ready guide for Google Gemini embeddings API** This skill provides comprehensive coverage of the `gemini-embedding-001` model for generating text embeddings, including SDK usage, REST API patterns, batch processing, RAG integration with Cloudflare Vectorize, and advanced use cases like semantic search and document clustering. ---
Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.