semgrep
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.zipInstalls 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.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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| semgrep (this skill) | 0 | 4mo | No flags | Intermediate |
| scanning-for-xss-vulnerabilities | 1 | 4mo | Review | Intermediate |
| agent-tester | 1 | 9mo | No flags | Intermediate |
| moai-foundation-quality | 0 | 6mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
scanning-for-xss-vulnerabilities
jeremylongshore
Execute this skill enables AI assistant to automatically scan for xss (cross-site scripting) vulnerabilities in code. it is triggered when the user requests to "scan for xss vulnerabilities", "check for xss", or uses the command "/xss". the skill identifies ref... Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.
agent-tester
ruvnet
Agent skill for tester - invoke with $agent-tester
moai-foundation-quality
modu-ai
Enterprise code quality orchestrator with TRUST 5 validation, proactive analysis, and automated best practices enforcement
verification-loop
tom237ttkk
A comprehensive verification system for Codex work sessions.
fix-dependabot-alerts
microsoft
Fix Dependabot security alerts by updating vulnerable npm dependencies. Use when the user mentions "dependabot", "security alerts", "vulnerability", "CVE", or wants to update packages with security issues.
security-audit
ruvnet
Comprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enforcement. Use when: authentication implementation, authorization logic, payment processing, user data handling, API endpoint creation, file upload handling, database queries, external API integration. Skip when: read-only operations on public data, internal development tooling, static documentation, styling changes.