From embedded-dev — RIPER-5 嵌入式固件开发协议
Runs cppcheck, clang-tidy, or GCC -fanalyzer static analysis on embedded C/C++ code, with optional MISRA-C 2012 compliance checking.
How this skill is triggered — by the user, by Claude, or both
Slash command
/embedded-dev:static-analysisThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- 提交前需要对代码进行静态分析,发现潜在缺陷。
-fanalyzer 进行代码质量审查。compile_commands.json 路径(提升 clang-tidy 准确性)。--detect 模式检测 cppcheck、clang-tidy 和 arm-none-eabi-gcc 的可用性和版本。-fanalyzer 需要 GCC 12+,脚本会检查版本号。compile_commands.json。--detect 模式。--cppcheck --source <dir> 运行 cppcheck 分析。--clang-tidy --source <dir> 运行 clang-tidy 分析。--gcc-analyzer --source <files> 运行 GCC analyzer 分析。--misra 参数启用 cppcheck MISRA addon。environment-missing。artifact-missing。compile_commands.json 指定但无效时,返回 project-config-error。target-response-abnormal。-fanalyzer 需要 GCC 12+,嵌入式交叉编译器版本可能较低。--summary 模式只输出统计数字。build-* skill。memory-analysis。npx claudepluginhub duncanyoung-1/embedded-dev --plugin embedded-devPerforms static analysis on C/C++ code using clang-tidy, cppcheck, and IWYU. Designed for incremental review of changed lines, needs compile_commands.json.
Use AddressSanitizer to detect memory safety bugs in C/C++ programs. Identifies use-after-free, buffer overflow, memory leaks, and other memory errors.
Reviews Ascend C operator code for safety and compliance using hypothesis-driven methodology. Checks for memory leaks, integer overflows, null pointers, and coding standard violations.