analyzing-cpp-codebase

analyzing-cpp-codebase is a skill for Claude Code from qte77/claude-code-plugins. It costs 40 tokens per session (841 once invoked), scanned A, original, Apache-2.0.

An analysis skill for unfamiliar C++ desktop projects that maps project structure, frameworks, dependencies, architecture, and possible migrations.

In plain words
What is it for?
Use it to inspect projects using CMake or qmake files and identify Qt, wxWidgets, GTK3, or mixed frameworks. It reports actionable findings about targets, dependencies, module boundaries, and coupling.
Why use it?
It gives developers a focused picture of how an existing C++ codebase is organized before they modify or upgrade it.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Part of the cpp-desktop plugin — 3 skills shipped together

Good fit Use it to inspect projects using CMake or qmake files and identify Qt, wxWidgets, GTK3, or mixed frameworks. It reports actionable findings about targets, dependencies, module boundaries, and coupling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/qte77/claude-code-plugins/analyzing-cpp-codebase
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add qte77/claude-code-plugins --skill analyzing-cpp-codebase
Clone the repo
git clone --depth 1 https://github.com/qte77/claude-code-plugins

Made for: Claude Code.

Or install cpp-desktop, the plugin that ships this one along with the rest of its 3 skills.

Wrote 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.

agentmods badge for analyzing-cpp-codebase

README.md
[![agentmods](https://agentmods.dev/badge/skills/qte77/claude-code-plugins/analyzing-cpp-codebase/github.svg)](https://agentmods.dev/skills/qte77/claude-code-plugins/analyzing-cpp-codebase)
Your own site
<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/analyzing-cpp-codebase"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/analyzing-cpp-codebase/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.

agentmods 80×15 button for analyzing-cpp-codebase

Your own site · 80×15
<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/analyzing-cpp-codebase"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/analyzing-cpp-codebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00841
Opus 5.5 $0.00016 $0.00336
Sonnet 5.5 $0.00008 $0.00168
Haiku 4.5 $0.00004 $0.00084

Measured 8d ago against content hash bbc618d23750, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analyzing-cpp-codebase 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.

plugins/cpp-desktop/skills/analyzing-cpp-codebase/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

C++ Codebase Analysis

Target: $ARGUMENTS

Analyzes C++ desktop project structure, dependencies, and architecture. Delivers actionable findings, not exhaustive documentation.

Workflow

  1. Detect project layout — scan for CMakeLists.txt, .pro files, src/, include/
  2. Identify framework — determine wxWidgets, GTK3, Qt, or mixed
  3. Map dependencies — CMake targets, find_package calls, include graph
  4. Assess architecture — module boundaries, coupling, layering
  5. Report findings — structured summary with actionable items

Framework Detection

Check these indicators in order:

Framework CMake Signal Include Signal Other
Qt find_package(Qt6) / Qt5 #include <QWidget> .pro, .qrc files
wxWidgets find_package(wxWidgets) #include <wx/wx.h> —
GTK3 pkg_check_modules(GTK3) #include <gtk/gtk.h> .ui (GtkBuilder)

Dependency Mapping

# List all CMake targets
grep -rn "add_library\|add_executable" CMakeLists.txt */CMakeLists.txt 2>/dev/null

# List external dependencies
grep -rn "find_package\|pkg_check_modules" CMakeLists.txt */CMakeLists.txt 2>/dev/null

# Include graph (most-included headers)
grep -rh '#include "' src/ include/ 2>/dev/null | sort | uniq -c | sort -rn | head -20

Architecture Assessment

Evaluate these dimensions:

Module Boundaries:

  • Are source files organized by feature or by layer?
  • Is there a clear src/ vs include/ separation?
  • Are GUI components isolated from business logic?

Coupling:

  • How many cross-module includes exist?
  • Are there circular dependencies?
  • Is dependency injection or interface abstraction used?

Build Structure:

  • Single CMakeLists.txt or hierarchical?
  • Are libraries split into reusable targets?
  • Are tests in a separate target?

Read the full file on GitHub · 106 lines

Changes

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.

  1. 8d ago Changed bbc618d23750
  2. 2mo ago Changed · +3 lines 1d397979073f
  3. 2mo ago Changed · +1 lines acfd0cf4b178
  4. 3mo ago First seen · 102 lines · 40 tokens per session scan A f07faade0ffd

Subscribe to this mod's changes

analyzing-cpp-codebase is a skill published in the GitHub repository qte77/claude-code-plugins (3 stars, last pushed yesterday), licensed Apache-2.0. It adds 40 tokens to every session and 841 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-31.

Related

analyzing-cpp-codebase compared with skills from other repositories

analyzing-cpp-codebase next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analyzing-cpp-codebaseqte77/claude-code-pluginsSkill3yesterdayApache-2.0A40Claude Code
esp32-expertmathisk2095/jko-claude-pluginsSkill31mo agoMITA193Claude Code
android-kotlin-composeand3r817/dot-claude-pluginsSkill22mo agoMITA84Claude Code
android-kotlin-coroutinesand3r817/dot-claude-pluginsSkill22mo agoMITA87Claude Code
bun-ffisecondsky/claude-skillsSkill257yesterdayMITA56Claude Code
dotnet-analyzersNikiforovAll/claude-code-rulesSkill14329d agoApache-2.0A45Claude Code
dotnet-testNikiforovAll/claude-code-rulesSkill14329d agoApache-2.0A35Claude Code