claude-vibe-squad: Skill for Claude Code

.agents/skills/diff-aware-semgrep-scan/SKILL.md

diff-aware-semgrep-scan is a skill for Claude Code, Codex from mtarcure/claude-vibe-squad. It costs 64 tokens per session (452 once invoked), scanned A, original, MIT.

A Semgrep scan focused on the new or newly exposed issues in a particular code change. Semgrep is a tool that finds code patterns using configurable rules.

In plain words
What is it for?
Use it to review a change against a pre-existing Semgrep baseline, select suitable rules, and report parsing or coverage limitations.
Why use it?
It avoids treating a large existing list of findings as new problems and helps identify gaps in the review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is mtarcure/claude-vibe-squad's own configuration. It tells Claude Code and Codex how to work on claude-vibe-squad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-vibe-squad configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mtarcure/claude-vibe-squad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mtarcure/claude-vibe-squad/main/.agents/skills/diff-aware-semgrep-scan/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mtarcure/claude-vibe-squad

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diff-aware-semgrep-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/diff-aware-semgrep-scan/github.svg)](https://agentmods.dev/skills/mtarcure/claude-vibe-squad/diff-aware-semgrep-scan)
Your own site
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/diff-aware-semgrep-scan"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/diff-aware-semgrep-scan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diff-aware-semgrep-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/mtarcure/claude-vibe-squad/diff-aware-semgrep-scan"><img src="https://agentmods.dev/badge/skills/mtarcure/claude-vibe-squad/diff-aware-semgrep-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.00452
Opus 5 $0.00032 $0.00226
Sonnet 5 $0.00013 $0.00090
Haiku 4.5 $0.00006 $0.00045

Measured 9d ago against content hash 9381fe200663, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

diff-aware-semgrep-scan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/diff-aware-semgrep-scan/SKILL.md · 27 lines

What it actually says

Diff-Aware Semgrep Scan

Scan only what changed, with the rules that matter for the change, so static-analysis signal survives contact with a large legacy baseline.

Steps

  1. Fix the comparison range (git diff --name-only <base>...HEAD) and collect changed files plus their language mix.
  2. Select rule packs by language and by change shape — auth, deserialization, templating, SQL, subprocess, crypto — rather than running one generic pack over everything.
  3. Run semgrep --config <packs> --baseline-commit <base> so pre-existing findings are suppressed and only newly-introduced ones surface.
  4. Re-run without the baseline flag on the changed files alone when a finding's history matters; a pre-existing issue in a file the change now exposes to untrusted input is a new risk even though the line is old.
  5. Triage every hit against findings-filter: reachability from an untrusted source, attacker-controlled input, and real consequence.
  6. For each true positive, capture the rule id, the file:line, the data path from source to sink, and the minimal fix.
  7. For each false positive, record why the rule misfired; recurring misfires are input to semgrep-rule-author, not something to silence per-finding.
  8. Report scan coverage honestly: files skipped for parse errors or unsupported languages are gaps, not passes.

Acceptance

  • The scan states its base commit and the rule packs selected, with a reason for the selection.
  • Newly-introduced findings are separated from pre-existing ones.
  • Every reported finding has a source-to-sink path, not just a rule match.
  • False positives are explained, and repeat offenders are routed to rule authoring.
  • Unscanned or unparsed files are listed as coverage gaps.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 27 lines · 64 tokens per session scan A 9381fe200663

Subscribe to this mod's changes

diff-aware-semgrep-scan is a skill published in the GitHub repository mtarcure/claude-vibe-squad (122 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 452 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.