semgrep
This skill enables the agent to run Semgrep static analysis scans for security vulnerabilities and create custom detection rules in YAML.
Identity proven by GitHub's verified organisation badge (semgrep)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
- License
- LicenseRef-Semgrep-Rules (restricted)
- Pin
- 68177b8pinned Oct 9, 2026
- Context cost
- about 2,200 tokenswhen the skill loads
- GitHub stars
- 322on semgrep/skills
- Scripts
- None found
What it does
“Run Semgrep static analysis scans and create custom detection rules. Use when asked to scan code with Semgrep, find security vulnerabilities, write custom YAML rules, or detect specific bug patterns. IMPORTANT: Also use this skill when users ask to 'scan for bugs', 'check code quality', 'find vulnerabilities', 'static analysis', 'lint for security', 'audit this code', or want to enforce coding standards — even if they don't mention Semgrep by name. Semgrep is the right tool for pattern-based code scanning across 30+ languages.”
Generated summary from the skill's own text
This skill enables the agent to run Semgrep static analysis scans for security vulnerabilities and create custom detection rules in YAML. The agent can scan code across 30+ languages using built-in rulesets, write pattern-based or taint-mode rules to detect specific bug patterns, and integrate scans into CI/CD workflows.
When to use it
- Find security vulnerabilities and OWASP Top 10 issues in code quickly
- Enforce project-specific coding standards with custom pattern rules
- Detect injection vulnerabilities using taint-mode data flow analysis
- Scan for known vulnerability patterns across multiple programming languages
When not to
- Complex vulnerabilities requiring runtime behavior analysis beyond pattern matching
- When dynamic analysis or manual code review would be more appropriate
Install
Restricted license: install from the publisher's repository and read its terms.
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add semgrep/skills --skill semgrepInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install semgrep/skills semgrep@68177b8830f96cd9d10dacbb14dde2566360503dInstalls the commit we checked (68177b8).
Copy by hand
Download the folder at 68177b8 and put it in .claude/skills/semgrep for Claude Code and in .agents/skills/semgrep for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install semgrep@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "semgrep" by Semgrep. Source, pinned to commit 68177b8830f96cd9d10dacbb14dde2566360503d: https://github.com/semgrep/skills/tree/68177b8830f96cd9d10dacbb14dde2566360503d/skills/semgrep 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/semgrep/ for Claude Code and .agents/skills/semgrep/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Its license is restricted or not stated. Show me the license terms from the repository before you copy anything. Listing and checks: https://www.agentnative.dev/skills/semgrep/semgrep
SKILL.md at the pin
The license of this skill does not let us show its files here.
Files
- SKILL.md9.4 KB · 02c9f5fc1391
- README.md3.3 KB · 84c1a4430da3
- references/
- quick-reference.md7.3 KB · a1fa043d70ea
- workflow.md9.2 KB · 40e64bf8dace
4 files, 29 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 68177b8More from Semgrep
code-security
This skill provides comprehensive security guidelines for writing secure code across 15+ languages, covering OWASP Top 10 vulnerabilities and infrastructure…
Claude Code, Codex, Cursor +4 · about 1.1K tokens · pinned 5 weeks ago
llm-security
This skill provides security guidelines for LLM applications based on the OWASP Top 10 for LLM 2025.
Claude Code, Codex, Cursor +4 · about 1.1K tokens · pinned 5 weeks ago
add-and-validate-guardian-developer-semgrep-rule
This skill helps developers write custom Semgrep rules and add them to Guardian to enforce project conventions or catch patterns Guardian's standard rules miss.
Claude Code · about 2.1K tokens · pinned 5 weeks ago
remove-guardian-developer-semgrep-rule
This skill removes custom Semgrep rules that Guardian maintains in user or repository directories.
Claude Code · about 940 tokens · pinned 5 weeks ago
setup-semgrep-plugin
This skill installs and configures Semgrep on the agent's system, including authentication with Semgrep's service and verification that version 1.146.0 or…
Claude Code, Codex, Cursor +4 · about 190 tokens · pinned 5 weeks ago
Related in Security
aws-security
This skill provides factual configuration, findings, and suitability guidance for AWS security services including GuardDuty, Inspector, Security Hub, Macie…
by Amazon (AWS)Official publisher
Claude Code, Codex, Cursor +4 · about 3.8K tokens · pinned 5 weeks ago
saw-web-target-configuration
Configures web application targets for Snyk API & Web security scanning with support for multi-step login sequences, two-factor authentication, and external…
by SnykOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 3.7K tokens · pinned 5 weeks ago
aig-scanner
This skill submits security scanning tasks to Tencent AI-Infra-Guard via Python CLI, analyzing AI infrastructure, tools, skills, agents, and LLM jailbreak…
by TencentCommunity
Contains scripts
Agents not labelled yet · about 3.5K tokens · pinned 5 weeks ago
claude-security
Scans your repository for security issues using Claude, examines code changes or commits for vulnerabilities, and generates patch files to fix findings.
by AnthropicOfficial publisher
Claude Code · about 1K tokens · pinned 5 weeks ago
sensitive-logging-audit
The skill helps audit and fix sensitive data leaks in Python SDK logging, exceptions, and telemetry by collecting candidate sinks, manually tracing values…
by OpenAIOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 970 tokens · pinned 5 weeks ago
security-audit
This skill guides security audits of codebases, APIs, and services by finding vulnerabilities that cross real trust boundaries.
by CloudflareOfficial publisher
Contains scripts
Claude Code · about 5.4K tokens · pinned 5 weeks ago