Agent skill

Sast Semgrep

by AgentSecOps in AgentSecOps/SecOpsAgentKit

Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

Custom licenceAuto-check passedSecurity

Install Sast Semgrep

skills CLI
$ npx skills add AgentSecOps/SecOpsAgentKit --skill sast-semgrep -a claude-code

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

GitHub CLI
$ gh skill install AgentSecOps/SecOpsAgentKit sast-semgrep --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/AgentSecOps/SecOpsAgentKit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/appsec/sast-semgrep .claude/skills/sast-semgrep && 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
sast-semgrep
GitHub stars
220
Used in
2 other repos
Token cost
~2.4k tokens
SKILL.md length
825 words
Files
9 (incl. references, assets)
Skills in repo
24
Repo updated
First seen
Licence
Custom licence

At a glance

Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

  • Works in 5 steps: Identify the primary languages in the… → Run scripts/semgrep_scan.py with… → Parse findings and categorize by… → …
  • Scanning code for security vulnerabilities across multiple languages
  • SKILL.md covers Overview, Quick Start, Core Workflows and Security Considerations, plus 8 more sections
  • Calls semgrep and jq

What it does

Sast Semgrep is an agent skill from AgentSecOps/SecOpsAgentKit. Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping. Use when: (1) Scanning code for security vulnerabilities across multiple languages, (2) Performing security code reviews with pattern-based detection, (3) Integrating SAST checks into CI/CD pipelines, (4) Providing remediation guidance with OWASP Top 10 and CWE mappings, (5) Creating custom security rules for organization-specific patterns…

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files and assets (for example `assets/ci_config_examples/github-actions.yml`, `assets/ci_config_examples/gitlab-ci.yml` and `assets/rule_template.yaml`).

It sits in Security, covering Static analysis and SAST. It works with Semgrep. The repository describes itself as: Security operations toolkit for AI coding agents. Give Claude Code 25+ skills to catch vulnerabilities, scan containers, detect secrets, and enforce policies automatically.

When your agent uses it

  • Scanning code for security vulnerabilities across multiple languages
  • Performing security code reviews with pattern-based detection
  • Integrating SAST checks into CI/CD pipelines
  • Providing remediation guidance with OWASP Top 10 and CWE mappings

Example prompts

  • “/sast-semgrep”

Workflow steps

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

  1. Identify the primary languages in the codebase
  2. Run scripts/semgrep_scan.py with appropriate rulesets
  3. Parse findings and categorize by severity (CRITICAL, HIGH, MEDIUM, LOW)
  4. Map findings to OWASP Top 10 and CWE categories
  5. Generate prioritized remediation report

What it can do on your machine

Read from SKILL.md and the folder at commit 6e25a4b. 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

    Shell commands in SKILL.md call:

    • semgrep
    • jq

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

  • Network

    Links to these hosts (documentation or services it may open):

    • semgrep.dev
    • owasp.org
    • cwe.mitre.org
    • sans.org

    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

Sast Semgrep loads about 2.4k tokens when it runs, and up to ~9.7k if it reads all its reference files. Until then it costs about 146 tokens; SKILL.md has 825 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~146
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.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); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 825 words (~2,374 tokens).

“Perform comprehensive static application security testing using Semgrep, a fast, open-source static analysis tool. This skill provides automated vulnerability detection, security code review workflows, and remediation guidance mapped to OWASP Top 10 and CWE standards.”

— opening of SKILL.md by AgentSecOps, Custom licence
name
sast-semgrep
version
0.1.0
maintainer
SirAppSec
category
appsec
tags
sast, semgrep, vulnerability-scanning, code-security, owasp, cwe, security-review
frameworks
OWASP, CWE, SANS-25
dependencies.python
>=3.8
dependencies.packages
semgrep
dependencies.tools
git
references
https://semgrep.dev/docs/, https://owasp.org/Top10/, https://cwe.mitre.org/

Read the full SKILL.md on GitHub

Files

SKILL.md and 8 other files (references, assets) in skills/appsec/sast-semgrep of AgentSecOps/SecOpsAgentKit.

  • SKILL.md
  • assets/ci_config_examples/github-actions.yml
  • assets/ci_config_examples/gitlab-ci.yml
  • assets/ci_config_examples/jenkins.groovy
  • assets/rule_template.yaml
  • assets/semgrep_config.yaml
  • references/owasp_cwe_mapping.md
  • references/remediation_guide.md
  • references/rule_library.md

Open the folder on GitHubat commit 6e25a4b

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in AgentSecOps/SecOpsAgentKit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Sast Semgrep 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.

Sast Semgrep compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sast Semgrep this skillAgentSecOps/SecOpsAgentKit2202 repos~2.4kAutomated safety check: PassCustom licence
Semgrepvigolium/piolium1401 repos~2.4kAutomated safety check: NotesMIT
Semgrep Security Scantrailofbits/skills7.4k—~3.7kAutomated safety check: NotesCC-BY-SA-4.0
Semgrep Rule Creatortrailofbits/skills7.4k6 repos~1.8kAutomated safety check: NotesCC-BY-SA-4.0
Semgrep Rule Variant Creatortrailofbits/skills7.4k5 repos~3.4kAutomated safety check: NotesCC-BY-SA-4.0
Semgrepwaybarrios/opencode-power-pack533—~2.4kAutomated safety check: PassMIT

Similar skills

  • Semgrep

    vigolium/piolium

    Run Semgrep static analysis scan on a codebase using parallel subagents.

    140 GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check: notes
  • Semgrep Security Scan

    trailofbits/skills

    Official

    Detects languages, proposes rulesets for approval, then runs the approved Semgrep scan across a codebase and merges the output into one SARIF file.

    7.4k GitHub stars~3.7k tokensUpdated today
    SecurityAuto-check: notes
  • Semgrep Rule Creator

    trailofbits/skills

    Official

    Creates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns.

    7.4k GitHub starsUsed in 6 repos~1.8k tokens
    SecurityAuto-check: notes
  • Official

    Creates language variants of existing Semgrep rules. An agent skill from trailofbits/skills.

    7.4k GitHub starsUsed in 5 repos~3.4k tokens
    SecurityAuto-check: notes
  • Semgrep

    waybarrios/opencode-power-pack

    Run Semgrep static analysis across a codebase, optionally using Semgrep Pro for cross-file taint analysis.

    533 GitHub stars~2.4k tokensUpdated 2 days ago
    SecurityAuto-check passed
  • Semgrep

    semgrep/skills

    Official

    Run Semgrep static analysis scans and create custom detection rules.

    322 GitHub stars~2.3k tokensUpdated 2 mo ago
    SecurityAuto-check passed

More from AgentSecOps/SecOpsAgentKit

All 24 skills in this repo
  • Secrets Gitleaks

    AgentSecOps/SecOpsAgentKit

    Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks.

    220 GitHub starsUsed in 2 repos~4.1k tokens
    Auto-check passed
  • DefectDojo Vulnerability Management

    AgentSecOps/SecOpsAgentKit

    Aggregates scanner results into DefectDojo, deduplicates findings, tracks remediation SLAs and prepares compliance reports across products and pipelines.

    220 GitHub stars~2.3k tokensUpdated 5 mo ago
    Auto-check passed
  • TShark Traffic Analysis

    AgentSecOps/SecOpsAgentKit

    Guides authorized packet capture and analysis with TShark, Wireshark's command-line tool, for security investigations, malware detection and forensic examination of network traffic.

    220 GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check: notes
  • Container Scanning with Grype

    AgentSecOps/SecOpsAgentKit

    Scans container images, filesystems and SBOMs with Grype for known vulnerabilities, ranks them by CVSS, EPSS and CISA KEV, and wires scans into CI/CD thresholds.

    220 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Hadolint Dockerfile Security Linting

    AgentSecOps/SecOpsAgentKit

    Lints Dockerfiles with Hadolint for security misconfigurations and best-practice violations, locally and in CI, with strict, balanced and permissive rule templates.

    220 GitHub starsUsed in 1 repo~4.4k tokens
    Auto-check passed
  • Hashcat Password Recovery Workflow

    AgentSecOps/SecOpsAgentKit

    Guides authorized password-hash recovery with hashcat for security audits, forensic cases and policy testing, starting with an explicit authorization check before any cracking runs.

    220 GitHub starsUsed in 1 repo~3.3k tokens
    Auto-check: notes

Works with

Categories

Questions about Sast Semgrep

What does Sast Semgrep do?

Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping. Sast Semgrep is an agent skill from AgentSecOps/SecOpsAgentKit. Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

When should I use Sast Semgrep?

Sast Semgrep fits situations like: scanning code for security vulnerabilities across multiple languages; performing security code reviews with pattern-based detection; integrating SAST checks into CI/CD pipelines; providing remediation guidance with OWASP Top 10 and CWE mappings.

How do I install Sast Semgrep in Claude Code?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill sast-semgrep -a claude-code`. Or copy the skill folder (skills/appsec/sast-semgrep in AgentSecOps/SecOpsAgentKit) into .claude/skills/sast-semgrep in your project. Claude Code loads it when a task matches its description.

How do I install Sast Semgrep in Codex?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill sast-semgrep -a codex`. Or copy the skill folder (skills/appsec/sast-semgrep in AgentSecOps/SecOpsAgentKit) into .agents/skills/sast-semgrep in your project. Codex loads it when a task matches its description.

Can I use Sast Semgrep 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 AgentSecOps/SecOpsAgentKit --skill sast-semgrep -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sast-semgrep, .gemini/skills/sast-semgrep, .github/skills/sast-semgrep and .opencode/skills/sast-semgrep in your project.

What does Sast Semgrep need to run?

Going by SKILL.md and its folder, Sast Semgrep needs the command-line tools its instructions call (semgrep and jq).

Does Sast Semgrep access the network?

SKILL.md names 4 domains. As links in the text: semgrep.dev, owasp.org, cwe.mitre.org and sans.org. This is read from the text; nothing was executed.

Is Sast Semgrep 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. Review the folder before installing.

What licence does Sast Semgrep use?

Sast Semgrep has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Sast Semgrep use?

About 2.4k tokens (SKILL.md is roughly 9.5k 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 7.3k tokens, read only when the agent opens those files.

What are the alternatives to Sast Semgrep?

Skills that share tags, products or a category with Sast Semgrep: Semgrep (vigolium/piolium, 140 stars), Semgrep Security Scan (trailofbits/skills, 7.4k stars), Semgrep Rule Creator (trailofbits/skills, 7.4k stars) and Semgrep Rule Variant Creator (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 Sast Semgrep?

AgentSecOps (a GitHub organization) maintains it in AgentSecOps/SecOpsAgentKit, which has 220 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on April 15, 2026.

Source: AgentSecOps/SecOpsAgentKit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.