# Semgrep Security

> Semgrep code security scanning and SAST analysis

- Skill: `majiayu000/semgrep-security` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/semgrep-security`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/semgrep-security/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/semgrep-security

---


# Semgrep Security Skill

## Overview

Static Application Security Testing (SAST) with Semgrep. 90%+ context savings.

## Requirements

- Semgrep CLI installed
- Optional: SEMGREP_APP_TOKEN for cloud features

## Tools (Progressive Disclosure)

### Scanning

| Tool      | Description             |
| --------- | ----------------------- |
| scan      | Run security scan       |
| scan-ci   | CI-optimized scan       |
| scan-diff | Scan only changed files |

### Rules

| Tool       | Description          |
| ---------- | -------------------- |
| list-rules | List available rules |
| rule-info  | Get rule details     |
| test-rule  | Test custom rule     |

### Results

| Tool         | Description         |
| ------------ | ------------------- |
| findings     | List scan findings  |
| sarif-export | Export SARIF format |
| json-export  | Export JSON format  |

### Severity Categories

- **ERROR**: Critical security issues
- **WARNING**: Medium severity
- **INFO**: Low severity/best practices

## Agent Integration

- **security-architect** (primary): Security review
- **qa** (primary): Quality gates
- **code-reviewer** (secondary): PR scanning

## Common Rulesets

- p/default (general security)
- p/owasp-top-ten
- p/javascript
- p/typescript
- p/python
- p/secrets (credential detection)

