Skip to content

steven715/cpp-claude-code

Repository files navigation

Everything Claude Code (C++ Edition)

Stars License C++ CMake vcpkg

C++ Edition: Claude Code configs optimized for modern C++ development.

Production-ready agents, skills, hooks, commands, rules, and configurations for C++11/14 projects using CMake and vcpkg.

This is a C++ fork of the original everything-claude-code by Affaan Mustafa.


What's Inside

This repo is a Claude Code plugin optimized for C++ development.

everything-claude-code/
|-- .claude-plugin/   # Plugin and marketplace manifests
|   |-- plugin.json         # Plugin metadata and component paths
|   |-- marketplace.json    # Marketplace catalog
|
|-- agents/           # Specialized subagents for delegation
|   |-- planner.md           # Feature implementation planning
|   |-- architect.md         # System design decisions
|   |-- tdd-guide.md         # Test-driven development
|   |-- code-reviewer.md     # Quality and security review
|   |-- security-reviewer.md # Vulnerability analysis
|   |-- build-error-resolver.md
|   |-- e2e-runner.md        # E2E testing
|   |-- refactor-cleaner.md  # Dead code cleanup
|   |-- doc-updater.md       # Documentation sync
|
|-- skills/           # Workflow definitions and domain knowledge
|   |-- coding-standards/           # C++11/14 best practices
|   |-- backend-patterns/           # CMake, vcpkg, design patterns
|   |-- tdd-workflow/               # Google Test, CTest
|   |-- security-review/            # Memory safety, input validation
|   |-- continuous-learning/        # Auto-extract patterns
|   |-- strategic-compact/          # Compaction suggestions
|   |-- eval-harness/               # Verification loop
|   |-- verification-loop/          # Continuous verification
|
|-- commands/         # Slash commands for quick execution
|   |-- tdd.md              # /tdd - Test-driven development
|   |-- plan.md             # /plan - Implementation planning
|   |-- code-review.md      # /code-review - Quality review
|   |-- build-fix.md        # /build-fix - Fix build errors
|   |-- refactor-clean.md   # /refactor-clean - Dead code removal
|   |-- learn.md            # /learn - Extract patterns
|   |-- checkpoint.md       # /checkpoint - Save state
|   |-- verify.md           # /verify - Verification loop
|
|-- rules/            # Always-follow guidelines
|   |-- security.md         # Memory safety, input validation
|   |-- coding-style.md     # RAII, const correctness
|   |-- testing.md          # TDD, 80% coverage
|   |-- git-workflow.md     # Commit format, PR process
|   |-- agents.md           # When to delegate
|   |-- performance.md      # Model selection, context
|
|-- hooks/            # Trigger-based automations
|   |-- hooks.json                # All hooks config
|   |-- memory-persistence/       # Session lifecycle
|   |-- strategic-compact/        # Compaction suggestions
|
|-- scripts/          # Cross-platform Node.js scripts
|   |-- lib/                     # Shared utilities
|   |-- hooks/                   # Hook implementations
|
|-- contexts/         # Dynamic system prompt injection
|   |-- dev.md              # Development mode
|   |-- review.md           # Code review mode
|   |-- research.md         # Research mode
|
|-- examples/         # Example configurations
|   |-- CLAUDE.md           # Project config example
|   |-- user-CLAUDE.md      # User config example

C++ Stack

This edition is configured for:

Component Tool
Language C++11/14
Build System CMake 3.14+
Package Manager vcpkg
Testing Google Test + Google Mock
Coverage gcov / lcov / gcovr
Static Analysis clang-tidy, cppcheck
Formatting clang-format

Installation

Option 1: Install as Plugin (Recommended)

# Add as marketplace
/plugin marketplace add your-username/everything-claude-code

# Install
/plugin install everything-claude-code@everything-claude-code

Option 2: Manual Installation

# Clone the repo
git clone -b cpp https://github.com/your-username/everything-claude-code.git

# Copy agents
cp everything-claude-code/agents/*.md ~/.claude/agents/

# Copy rules
cp everything-claude-code/rules/*.md ~/.claude/rules/

# Copy commands
cp everything-claude-code/commands/*.md ~/.claude/commands/

# Copy skills
cp -r everything-claude-code/skills/* ~/.claude/skills/

Key Features

C++ Coding Standards

Comprehensive C++11/14 best practices:

  • RAII and smart pointers
  • Const correctness
  • Move semantics
  • STL container usage
  • Modern C++ features

CMake & vcpkg Integration

Build system patterns:

  • CMakeLists.txt templates
  • CMakePresets.json for vcpkg
  • vcpkg.json manifest
  • Modular CMake structure

Test-Driven Development

Google Test workflow:

  • Test fixtures
  • Parameterized tests
  • Mocking with Google Mock
  • Code coverage with gcov

Security Review

C++-specific security:

  • Memory safety checks
  • Buffer overflow prevention
  • Input validation
  • Thread safety patterns
  • Static analysis integration

Key Concepts

Agents

Subagents handle delegated tasks:

---
name: code-reviewer
description: Reviews C++ code for quality, security, and maintainability
tools: Read, Grep, Glob, Bash
model: opus
---

You are a senior C++ code reviewer...

Skills

Skills are workflow definitions:

# TDD Workflow for C++

1. Write failing tests (Google Test)
2. Implement minimal code
3. Refactor
4. Verify coverage with gcovr

Rules

Always-follow guidelines:

# C++ Coding Style

## RAII (CRITICAL)
ALWAYS use smart pointers, NEVER raw new/delete

## Const Correctness
ALWAYS use const for read-only data

Example: CMake Project Setup

cmake_minimum_required(VERSION 3.14)
project(my_project VERSION 1.0.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# vcpkg packages
find_package(fmt CONFIG REQUIRED)
find_package(GTest CONFIG REQUIRED)

add_library(${PROJECT_NAME}_lib
    src/main.cpp
)

target_link_libraries(${PROJECT_NAME}_lib
    PUBLIC fmt::fmt
)

# Testing
enable_testing()
add_subdirectory(tests)
// vcpkg.json
{
    "name": "my-project",
    "version": "1.0.0",
    "dependencies": [
        "fmt",
        "spdlog",
        "nlohmann-json"
    ],
    "dev-dependencies": [
        "gtest"
    ]
}

Commands

Command Description
/tdd Start TDD workflow with Google Test
/plan Plan feature implementation
/code-review Review code for quality and security
/build-fix Fix CMake/compiler errors
/refactor-clean Remove dead code

Contributing

Contributions welcome! Ideas:

  • C++17/20 patterns
  • Boost library skills
  • Qt framework configs
  • Embedded C++ patterns
  • Performance optimization skills

See CONTRIBUTING.md for guidelines.


Credits

This C++ edition is based on the original everything-claude-code by @affaanmustafa.


License

MIT - Use freely, modify as needed, contribute back if you can.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5