Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
},
{
"name": "static-analysis",
"version": "1.1.0",
"version": "1.2.0",
"description": "Static analysis toolkit with CodeQL, Semgrep, and SARIF parsing for security vulnerability detection",
"author": {
"name": "Axel Mierczuk & Paweł Płatek"
Expand Down
2 changes: 1 addition & 1 deletion plugins/static-analysis/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "static-analysis",
"version": "1.1.0",
"version": "1.2.0",
"description": "Static analysis toolkit with CodeQL, Semgrep, and SARIF parsing for security vulnerability detection",
"author": {
"name": "Axel Mierczuk & Paweł Płatek"
Expand Down
29 changes: 24 additions & 5 deletions plugins/static-analysis/agents/semgrep-scanner.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: semgrep-scanner
description: "Executes semgrep CLI scans for a language category. Use when running automated static analysis scans with semgrep against a codebase."
description: "Executes Semgrep CLI scans for a specific language category and produces SARIF output. Spawned by the semgrep skill as a parallel worker — one agent per detected language. Reads source context to classify findings as true or false positives."
tools: Bash(semgrep scan:*), Bash
---

Expand Down Expand Up @@ -40,13 +40,32 @@ After launching all rulesets:
wait
```

## Language Scoping

For language-specific rulesets (e.g., `p/python`, `p/java`),
add `--include` to restrict parsing to relevant files:

```bash
--include="*.java" --include="*.jsp" # for Java
--include="*.py" # for Python
--include="*.js" --include="*.jsx" # for JavaScript
```

Do NOT add `--include` to cross-language rulesets like
`p/security-audit`, `p/secrets`, or third-party repos that
contain rules for multiple languages.

## GitHub URL Rulesets

For rulesets specified as GitHub URLs (e.g.,
`https://github.com/trailofbits/semgrep-rules`):
- Clone the repository first if not already cached locally
- Use the local path as the `--config` value, or pass the
URL directly to semgrep (it handles GitHub URLs natively)
- Clone into `[OUTPUT_DIR]/repos/[repo-name]` so cloned
repos stay inside the results directory
- Use the local path as the `--config` value (do NOT pass
the URL directly — semgrep's URL handling is unreliable
for repos with non-standard YAML)
- After all scans complete, delete the cloned repos:
`rm -rf [OUTPUT_DIR]/repos`

## Output Requirements

Expand All @@ -68,4 +87,4 @@ After all scans complete, report:

For the complete scanner task prompt template with variable
substitutions and examples, see:
`{baseDir}/skills/semgrep/references/scanner-task-prompt.md`
`skills/semgrep/references/scanner-task-prompt.md`
107 changes: 0 additions & 107 deletions plugins/static-analysis/agents/semgrep-triager.md

This file was deleted.

Loading