agentsclimarketplace

Semgrep scan

Skill sheurich/agent-skills/skills/semgrep-scan

Scan changed files with Semgrep for security and correctness issues. Use when verifying code before committing, reviewing implementation security, or running pre-commit quality gates.From its SKILL.md

Install
npx -y skills add sheurich/agent-skills --skill semgrep-scan

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.9 KB, as published. Nobody here has run it

Semgrep Scan

Security and correctness gate on changed files.

When to Use

  • Before committing implementation work
  • As part of verification-before-completion
  • After refactoring security-sensitive code

When NOT to Use

  • Writing or testing custom Semgrep rules (use the semgrep_scan_with_custom_rule MCP tool)
  • Full-repo baseline scans (uvx semgrep scan --config auto . directly)
  • Dependency / supply chain scanning (use the semgrep_scan_supply_chain MCP tool)

Process

1. Identify targets

git diff --name-only HEAD --diff-filter=ACMR

Initial commit (no HEAD): git diff --cached --name-only --diff-filter=ACMR

Stop if no changed files.

2. Scan

uvx semgrep scan --config auto --json --quiet <files...>

If .semgrep/rules/ or .semgrep.yml exists at the repo root, add --config .semgrep/ to include project-specific rules.

3. Interpret findings

Parse results[] from the JSON output.

FieldLocation
Rule IDresults[].check_id
Severityresults[].extra.severity
Messageresults[].extra.message
File + lineresults[].path, results[].start.line
Fix suggestionresults[].extra.fix (when present)
CWEresults[].extra.metadata.cwe

4. Act on findings

SeverityAction
ERRORFix before committing — these are real vulnerabilities
WARNINGReview and fix, or suppress with # nosemgrep: <rule-id> if false positive
INFONote for awareness — do not block commit

5. Confirm

Re-scan after fixes until clean. Report finding count or "Semgrep scan clean — no findings on N files."

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.