Static Analysis
Static analysis skill for C/C++ codebases. Use when hardening code quality, triaging noisy builds, running clang-tidy, cppcheck, or scan-build, interpreting check categories, suppressing false positives, or integrating static analysis into CI. Activates on queries about clang-tidy checks, cppcheck, scan-build, compile_commands.json, code hardening, or static analysis warnings.
Install
npx skills add mohitmishra786/low-level-dev-skills --skill static-analysisgit clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills.git /tmp/low-level-dev-skills
mkdir -p ~/.claude/skills
cp -r /tmp/low-level-dev-skills/skills/build-systems/static-analysis ~/.claude/skills/static-analysisPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Static Analysis ## Purpose Guide agents through selecting, running, and triaging static analysis tools for C/C++ — clang-tidy, cppcheck, and scan-build — including suppression strategies and CI integration. ## Triggers - "How do I run clang-tidy on my project?" - "What clang-tidy checks should I enable?" - "cppcheck is reporting false positives — how do I suppress them?" - "How do I set up scan-build for deeper analysis?" - "My build is noisy with static analysis warnings" - "How do I generate compile_commands.json for clang-tidy?" ## Workflow ### 1. Generate compile_commands.json clang-tidy requires a compilation database: ```bash # CMake (preferred) cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ln -s build/compile_commands.json . # Bear (for Make-based projects) bear -- make # compiledb (alternative for Make) pip install compiledb compiledb make ``` ### 2. Run clang-tidy ```bash # Single file clang-tidy src/foo.c -- -std=c11 -I include/ # Whole project via compile_commands.json run-clang-tidy -p build/ -j$(nproc) # With specific checks enabled clang-tidy -checks='bugprone-*,modernize-*,performance-*' src/foo.cpp # Apply auto-fixes clang-tidy -checks='modernize-use-nullptr' -fix src/foo.cpp ``` ### 3. Check category decision tree
Details
- Skill name
static-analysis- Repository
- mohitmishra786/low-level-dev-skills
- Path
skills/build-systems/static-analysis/SKILL.md- License
- MIT
- Repo updated
- 14 November 2026
FAQ
What does the Static Analysis skill do?
Static analysis skill for C/C++ codebases. Use when hardening code quality, triaging noisy builds, running clang-tidy, cppcheck, or scan-build, interpreting check categories, suppressing false positives, or integrating static analysis into CI. Activates on queries about clang-tidy checks, cppcheck, scan-build, compile_commands.json, code hardening, or static analysis warnings.
How do I install the Static Analysis skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add mohitmishra786/low-level-dev-skills --skill static-analysis. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Static Analysis popular?
It lives in mohitmishra786/low-level-dev-skills, which has 293 GitHub stars and 36 forks.
Related skills
Abi and Calling Conventions
293mohitmishra786/low-level-dev-skills
ABI and calling conventions skill for cross-language boundaries. Use when explaining System V AMD64, ARM AAPCS, RISC-V psABI, stack frames, variadic calls, or FFI register rules. Activates on queries about calling convention, ABI, System V AMD64, AAPCS, stack frame, variadic function, or FFI registers.
Adc Dac Baremetal
293mohitmishra786/low-level-dev-skills
Bare-metal ADC and DAC skill. Use when configuring analog sampling, DMA-driven ADC, calibration, or DAC output on MCUs. Activates on queries about ADC bare-metal, sampling time, DMA ADC, or DAC channel setup.
Af Xdp
293mohitmishra786/low-level-dev-skills
AF_XDP skill for high-performance XDP sockets. Use when creating AF_XDP sockets, configuring UMEM and XSK rings, XDP_REDIRECT programs, copy vs zero-copy mode, or comparing with DPDK. Activates on queries about AF_XDP, xsk_umem, XDP_REDIRECT, libbpf xsk, or zero-copy XDP.
Strace Ltrace
293mohitmishra786/low-level-dev-skills
strace and ltrace skill for system call and library call tracing. Use when a binary behaves incorrectly without crashing, diagnosing file-not-found errors, permission failures, network issues, or unexpected library calls by tracing syscalls and library function calls. Activates on queries about strace, ltrace, syscall tracing, library interception, ENOENT, EPERM, strace -e, or diagnosing binary behaviour without a debugger.
Simd Intrinsics
293mohitmishra786/low-level-dev-skills
SIMD intrinsics skill for x86 (SSE/AVX) and ARM (NEON) vectorization. Use when reading auto-vectorization reports, writing SSE2/AVX2/NEON intrinsics, checking CPU feature flags at runtime, choosing between compiler builtins and raw intrinsics, or diagnosing why auto-vectorization failed. Activates on queries about SIMD, SSE2, AVX2, NEON, intrinsics, -fopt-info-vec, auto-vectorization, or vectorization failures.
Uart Serial Baremetal
293mohitmishra786/low-level-dev-skills
Bare-metal UART skill for serial console and debug. Use when configuring baud rate, polling or IRQ-driven TX/RX, or integrating DMA with UART. Activates on queries about UART bare-metal, baud BRR, serial printf, or USART interrupt.
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.