Performs local static security analysis on changed files using Semgrep.

Install

mkdir -p .claude/skills/semgrep-erikunha && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11985" && unzip -o skill.zip -d .claude/skills/semgrep-erikunha && rm skill.zip

Installs to .claude/skills/semgrep-erikunha

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Run the pinned Semgrep CLI to statically measure security issues (taint/injection, hardcoded secrets, OWASP Top Ten) on changed files, and interpret the SARIF output. Use ONLY when the user explicitly asks to "run semgrep", "static-analysis the diff", scan for injection/secrets, or interpret a Semgrep SARIF report. Do NOT auto-activate on generic "review my code" — the 4-agent battery and Biome cover that. CI is the authoritative gate; this skill is the local/agent interface.
480 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • →Run Semgrep CLI for static analysis
  • →Measure injection sinks
  • →Measure taint flows
  • →Measure hardcoded secrets
  • →Interpret SARIF output
  • →Scan changed files

How it works

This skill executes the pinned Semgrep CLI version through a repository wrapper to perform static analysis on specified paths. It then interprets the SARIF output to report security issues.

Inputs & outputs

You give it
node scripts/run-semgrep.mjs <paths>
You get back
SARIF output with findings (error/warning level, ruleId, message, location)

When to use semgrep

  • →Scan files for hardcoded secrets
  • →Detect injection sinks during local development
  • →Interpret Semgrep security scan results

About semgrep

Executes the Semgrep CLI to perform static analysis, focusing on taint flows, injection, and hardcoded secrets. It interprets SARIF reports to provide feedback during local development.

Run the pinned Semgrep CLI to statically measure security issues (taint/injection, hardcoded secrets, OWASP Top Ten) on changed files, and interpret the SARIF output. Use ONLY when the user explicitly asks to "run semgrep", "static-analysis the diff", scan for injection/secrets, or interpret a Semgr

When not to use it

  • →When the user asks for generic "review my code"
  • →When the CI `semgrep` job is the authoritative gate
  • →When not explicitly asked to run semgrep or static analysis

Limitations

  • →Semgrep is pinned to `1.169.0`
  • →Registry-latest packs fetch mutable rules, which may drift
  • →The CI job is currently non-blocking

How it compares

This skill provides on-demand local static analysis with a pinned Semgrep version, complementing the CI's authoritative gate by offering immediate feedback on specific security issues like injection sinks and hardcoded secrets.

Compared to similar skills

semgrep side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
semgrep (this skill)04moNo flagsIntermediate
scanning-for-xss-vulnerabilities14moReviewIntermediate
agent-tester19moNo flagsIntermediate
moai-foundation-quality06moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry