Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/snyk/studio-recipesWrote 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.
[](https://agentmods.dev/commands/snyk/studio-recipes/snyk-batch-fix)<a href="https://agentmods.dev/commands/snyk/studio-recipes/snyk-batch-fix"><img src="https://agentmods.dev/badge/commands/snyk/studio-recipes/snyk-batch-fix/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.
<a href="https://agentmods.dev/commands/snyk/studio-recipes/snyk-batch-fix"><img src="https://agentmods.dev/badge/commands/snyk/studio-recipes/snyk-batch-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00019 | $0.02211 |
| Opus 5.5 | $0.00008 | $0.00884 |
| Sonnet 5.5 | $0.00004 | $0.00442 |
| Haiku 4.5 | $0.00002 | $0.00221 |
Grade A, and why
snyk-batch-fix 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Snyk Batch Fix
Overview
Fixes a batch of code vulnerabilities that were pre-scanned by the Secure at Inception hook. No discovery scan is needed -- vulnerability data (file, line, type, description) is provided in the input. This command is designed for in-development code and does NOT prompt for a PR.
Workflow: Parse → Group → Fix → Validate → SCA (if applicable) → Summary
Invocation: This command is typically invoked automatically by the Secure at Inception stop hook via followup_message, not by the user directly. The stop hook passes a markdown table of pre-scanned vulnerabilities.
Phase 1: Parse Input
No scan is needed. The vulnerability data is already provided in the input table.
Step 1.1: Parse Vulnerability Table
Parse the markdown table from the input. Each row contains:
- #: Row number
- Severity: critical, high, medium, low
- ID: Snyk vulnerability ID (e.g.,
javascript/PT,python/SQLi) - Title: Human-readable name (e.g., "Path Traversal")
- CWE: CWE identifier (e.g.,
CWE-22) or-if unavailable - File: Relative path to the affected file
- Line: Starting line number of the vulnerability
- Description: Snyk's explanation of the issue
Step 1.2: Group Vulnerabilities
Group the parsed vulnerabilities for efficient fixing:
- Group by file -- fix all vulns in one file before moving to the next
- Within each file, group by vulnerability type (ID) -- same vuln type gets the same fix pattern
- Sort files by highest severity -- fix the most critical files first
- Within each file, sort by line number descending -- fix from bottom to top to avoid line shifts
Step 1.3: Document Targets
## Batch Fix Plan
- **Total vulnerabilities**: [count]
- **Files affected**: [count]
- **Vulnerability types**: [list of unique IDs]
| File | Vuln Types | Count | Highest Severity |
|------|-----------|-------|-----------------|
| [file1] | [IDs] | [n] | [severity] |
| [file2] | [IDs] | [n] | [severity] |
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.
- 3mo ago First seen · 264 lines · 19 tokens per session scan A 8d837624c993
snyk-batch-fix is a command published in the GitHub repository snyk/studio-recipes (72 stars, last pushed 9d ago), licensed Apache-2.0. It adds 19 tokens to every session and 2,211 once invoked, about $0.0001 per session on Opus 5.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.
snyk-batch-fix compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| snyk-batch-fixsnyk/studio-recipes | Command | 72 | 9d ago | Apache-2.0 | A | 19 | Claude Code, Cursor |
| checklistgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 27 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | 3d ago | MIT | A | 26 | Claude Code |
| specifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| convergegithub/spec-kit | Command | 153k | 3d ago | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 14 | Claude Code |