Agent skill

Static Analysis

by LeoKemp223 in LeoKemp223/embed-ai-tool

当需要对嵌入式 C/C++ 代码运行 cppcheck、clang-tidy 或 GCC analyzer 静态分析,或进行 MISRA-C 合规检查时使用。

No licenceAuto-check passedSecurity

Install Static Analysis

skills CLI
$ npx skills add LeoKemp223/embed-ai-tool --skill static-analysis -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoKemp223/embed-ai-tool static-analysis --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoKemp223/embed-ai-tool.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/static-analysis .claude/skills/static-analysis && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
static-analysis
GitHub stars
984
Token cost
~402 tokens
SKILL.md length
132 words
Files
5 (incl. scripts, references)
Skills in repo
25
Repo updated
First seen
Licence
None found

At a glance

当需要对嵌入式 C/C++ 代码运行 cppcheck、clang-tidy 或 GCC analyzer 静态分析,或进行 MISRA-C 合规检查时使用。

  • Works in 7 steps: 先阅读 references/usage.md,确认本次使用哪个分析工具。 → 若不确定工具是否可用,先运行… → 使用 --cppcheck --source 运行 cppcheck 分析。 → …
  • Tasks that involve Static analysis and SAST
  • SKILL.md covers 适用场景, 必要输入, 自动探测 and 执行步骤, plus 4 more sections
  • Runs Python scripts from its folder

What it does

Static Analysis is an agent skill from LeoKemp223/embed-ai-tool. 当需要对嵌入式 C/C++ 代码运行 cppcheck、clang-tidy 或 GCC analyzer 静态分析,或进行 MISRA-C 合规检查时使用。

Its SKILL.md is about 400 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/misra-quick-ref.md` and `references/usage.md`).

It sits in Security, covering Static analysis and SAST. It works with C++. The repository describes itself as: 面向 AI 编程助手的嵌入式开发技能集,为大模型提供 MCU 固件开发全流程能力。涵盖多工具链构建(Keil / IAR / CMake / PlatformIO)、烧录、GDB 调试、串口监视、Modbus / CAN / VISA 协议调试、外设驱动适配及流水线编排,支持 Linux、macOS、Windows 三平台。

When your agent uses it

  • Tasks that involve Static analysis and SAST

Example prompts

  • “/static-analysis”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 先阅读 references/usage.md,确认本次使用哪个分析工具。
  2. 若不确定工具是否可用,先运行 scripts/static_analyzer.py 的 --detect 模式。
  3. 使用 --cppcheck --source 运行 cppcheck 分析。
  4. 使用 --clang-tidy --source 运行 clang-tidy 分析。
  5. 使用 --gcc-analyzer --source 运行 GCC analyzer 分析。
  6. 需要 MISRA 合规时,添加 --misra 参数启用 cppcheck MISRA addon。
  7. 阅读 references/misra-quick-ref.md 了解常见 MISRA 违规。

What it can do on your machine

Read from SKILL.md and the folder at commit 9218f23. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Static Analysis loads about 402 tokens when it runs, and up to ~1.7k if it reads all its reference files. Until then it costs about 24 tokens; SKILL.md has 132 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~402
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 132 words (~402 tokens).

name
static-analysis

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files (scripts, references) in skills/static-analysis of LeoKemp223/embed-ai-tool.

  • SKILL.md
  • agents/openai.yaml
  • references/misra-quick-ref.md
  • references/usage.md
  • scripts/static_analyzer.py

Open the folder on GitHubat commit 9218f23

Compare with similar skills

Static Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Static Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Static Analysis this skillLeoKemp223/embed-ai-tool984—~402Automated safety check: PassNone
Cpp StyleLuisaGroup/LuisaCompute1.1k—~1.1kAutomated safety check: PassApache-2.0
Clangmohitmishra786/low-level-dev-skills253—~1.4kAutomated safety check: PassMIT
CodeQL Security Scantrailofbits/skills7.4k—~4.6kAutomated safety check: NotesCC-BY-SA-4.0
Zeroization Audittrailofbits/skills7.4k4 repos~5.9kAutomated safety check: NotesCC-BY-SA-4.0
Constant-Time Analysistrailofbits/skills7.4k—~3.3kAutomated safety check: NotesCC-BY-SA-4.0

Similar skills

  • Cpp Style

    LuisaGroup/LuisaCompute

    C++ naming, formatting, static analysis, and RTTI rules for LuisaCompute.

    1.1k GitHub stars~1.1k tokensUpdated today
    SecurityAuto-check passed
  • Clang

    mohitmishra786/low-level-dev-skills

    Clang/LLVM compiler skill for C/C++ projects. An agent skill from mohitmishra786/low-level-dev-skills.

    253 GitHub stars~1.4k tokensUpdated 3 mo ago
    SecurityAuto-check passed
  • CodeQL Security Scan

    trailofbits/skills

    Official

    Scans a codebase for vulnerabilities with CodeQL's data flow and taint tracking in run-all or important-only modes, including data extensions for project-specific sources and sinks.

    7.4k GitHub stars~4.6k tokensUpdated today
    SecurityAuto-check: notes
  • Zeroization Audit

    trailofbits/skills

    Official

    Finds sensitive data that C, C++ or Rust code never wipes from memory, including wipes the compiler optimizes away, using source, assembly and control-flow analysis.

    7.4k GitHub starsUsed in 4 repos~5.9k tokens
    SecurityAuto-check: notes
  • Constant-Time Analysis

    trailofbits/skills

    Official

    Compiles cryptographic code and inspects the assembly or bytecode for variable-time instructions, then triages which flagged operations actually touch secrets.

    7.4k GitHub stars~3.3k tokensUpdated today
    SecurityAuto-check: notes
  • Taint Instrumentation Assistant

    ArabelaTso/Skills-4-SE

    Instruments code to track the flow of untrusted or sensitive data at runtime, enabling detection of injection vulnerabilities, data leaks, and privilege violations.

    253 GitHub stars~2.9k tokensUpdated 1 mo ago
    SecurityAuto-check passed

More from LeoKemp223/embed-ai-tool

All 25 skills in this repo
  • Build Keil

    LeoKemp223/embed-ai-tool

    当需要通过 Keil MDK 命令行编译嵌入式工程,调用自带脚本解析工程文件、执行构建并定位固件产物时使用. An agent skill from LeoKemp223/embed-ai-tool.

    984 GitHub stars~619 tokensUpdated 1 mo ago
    Auto-check passed
  • Flash Keil

    LeoKemp223/embed-ai-tool

    当需要通过 Keil MDK 内置调试器烧录固件到目标板时使用,利用工程中已配置的调试器和 Flash 算法执行下载. An agent skill from LeoKemp223/embed-ai-tool.

    984 GitHub stars~459 tokensUpdated 1 mo ago
    Auto-check passed
  • Logic Analyzer

    LeoKemp223/embed-ai-tool

    当需要用 Saleae 逻辑分析仪在线采集数字波形并解码 I2C/SPI/UART/CAN 时使用,通过 Logic 2 自动化服务驱动硬件采集、添加协议解码器并导出数据。

    984 GitHub stars~993 tokensUpdated 1 mo ago
    Auto-check passed
  • Workflow

    LeoKemp223/embed-ai-tool

    当需要串联多个 skill 完成编译+烧录+监控或编译+烧录+调试等流水线任务时使用. An agent skill from LeoKemp223/embed-ai-tool.

    984 GitHub stars~422 tokensUpdated 1 mo ago
    Auto-check passed
  • Can Debug

    LeoKemp223/embed-ai-tool

    当需要调试 CAN 总线通信时使用,支持通过 USB-CAN 适配器监听、发送 CAN 帧和扫描节点. An agent skill from LeoKemp223/embed-ai-tool.

    984 GitHub stars~330 tokensUpdated 1 mo ago
    Auto-check passed
  • Debug Platformio

    LeoKemp223/embed-ai-tool

    当需要通过 PlatformIO 内置调试功能对目标板进行 GDB 调试时使用,支持下载暂停、附加和崩溃现场分析. An agent skill from LeoKemp223/embed-ai-tool.

    984 GitHub stars~324 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Static Analysis

What does Static Analysis do?

当需要对嵌入式 C/C++ 代码运行 cppcheck、clang-tidy 或 GCC analyzer 静态分析,或进行 MISRA-C 合规检查时使用。. Static Analysis is an agent skill from LeoKemp223/embed-ai-tool.

When should I use Static Analysis?

Static Analysis fits situations like: tasks that involve Static analysis and SAST.

How do I install Static Analysis in Claude Code?

Run `npx skills add LeoKemp223/embed-ai-tool --skill static-analysis -a claude-code`. Or copy the skill folder (skills/static-analysis in LeoKemp223/embed-ai-tool) into .claude/skills/static-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Static Analysis in Codex?

Run `npx skills add LeoKemp223/embed-ai-tool --skill static-analysis -a codex`. Or copy the skill folder (skills/static-analysis in LeoKemp223/embed-ai-tool) into .agents/skills/static-analysis in your project. Codex loads it when a task matches its description.

Can I use Static Analysis in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoKemp223/embed-ai-tool --skill static-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/static-analysis, .gemini/skills/static-analysis, .github/skills/static-analysis and .opencode/skills/static-analysis in your project.

What does Static Analysis need to run?

Going by SKILL.md and its folder, Static Analysis needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Static Analysis access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Static Analysis safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Static Analysis use?

No licence was found for Static Analysis or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Static Analysis use?

About 402 tokens (SKILL.md is roughly 1.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Static Analysis?

Skills that share tags, products or a category with Static Analysis: Cpp Style (LuisaGroup/LuisaCompute, 1.1k stars), Clang (mohitmishra786/low-level-dev-skills, 253 stars), CodeQL Security Scan (trailofbits/skills, 7.4k stars) and Zeroization Audit (trailofbits/skills, 7.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Static Analysis?

LeoKemp223 (a GitHub user) maintains it in LeoKemp223/embed-ai-tool, which has 984 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on August 20, 2026.

Source: LeoKemp223/embed-ai-tool on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.