semgrep-review

semgrep-review is a skill for Claude Code, Codex from zhanglunet/openworker-zh-localized. It costs 18 tokens per session (515 once invoked), scanned A, original, MIT.

A security code scan using Semgrep, a tool that searches source code for known risky patterns, followed by manual review and triage. It examines whether each finding is reachable and matters in the application.

In plain words
What is it for?
It scans routes, authentication, sessions, database queries, deserialization, and outbound requests, then assesses attacker control, existing guards, severity, and fixes.
Why use it?
Automated rules can miss issues hidden behind a project's own wrappers, and raw scanner results can contain noise. Reading the surrounding code helps separate real risks from harmless matches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It scans routes, authentication, sessions, database queries, deserialization, and outbound requests, then assesses attacker control, existing guards, severity, and fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhanglunet/openworker-zh-localized/semgrep-review
Install

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.

Any agent
npx skills add zhanglunet/openworker-zh-localized --skill semgrep-review
Clone the repo
git clone --depth 1 https://github.com/zhanglunet/openworker-zh-localized

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 semgrep-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhanglunet/openworker-zh-localized/semgrep-review/github.svg)](https://agentmods.dev/skills/zhanglunet/openworker-zh-localized/semgrep-review)
Your own site
<a href="https://agentmods.dev/skills/zhanglunet/openworker-zh-localized/semgrep-review"><img src="https://agentmods.dev/badge/skills/zhanglunet/openworker-zh-localized/semgrep-review/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 semgrep-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhanglunet/openworker-zh-localized/semgrep-review"><img src="https://agentmods.dev/badge/skills/zhanglunet/openworker-zh-localized/semgrep-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 515 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.
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.00018 $0.00515
Opus 5.5 $0.00007 $0.00206
Sonnet 5.5 $0.00004 $0.00103
Haiku 4.5 $0.00002 $0.00052

Measured 19d ago against content hash bc1f2eadd6ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

semgrep-review 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 19d 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.

coworker/personas/builtin/appsec-worker/skills/semgrep-review/SKILL.md · 35 lines

What it actually says

Run a static-analysis pass with semgrep and own the findings end to end.

  1. Check the tool: semgrep --version. If it's missing, ask for it with request_tool("semgrep", …) rather than skipping the pass. If the user declines, continue with a targeted manual review — read the routes/handlers, the auth and session code, every query built by string concatenation, deserialization, and outbound requests built from user input — and say in your report that the static pass was manual, so the user knows the coverage is narrower than a full scan. Note that community semgrep rules miss whole classes (e.g. SQL built through a project's own DB wrapper), so reading the code is worth doing even when it runs.
  2. Scan the repo (from its root): semgrep scan --config auto --json --quiet -o /tmp/semgrep.json Use --config auto unless the repo carries its own rules (.semgrep.yml, semgrep.yml) — prefer the repo's own configuration when present.
  3. Parse the JSON and triage EVERY finding — do not echo the raw report:
    • Read the flagged code and enough surrounding context to judge reachability.
    • Is the tainted input attacker-controlled or internal? Is there an upstream guard?
    • Rate: critical / high / medium / low / noise, with a one-line justification each.
  4. Fix what's real, highest severity first:
    • Match the codebase's own conventions (its validation helpers, escaping utilities, parameterized-query style) — read neighboring code before writing the fix.
    • Add or extend a test that fails without the fix where the test harness makes that reasonable.
    • Group fixes by theme (one branch per theme), never one giant mixed diff.
  5. For findings you judge noise, say WHY (e.g. constant input, dead code, framework already escapes) — never silently drop them, and never add ignore rules to make the scanner quiet without agreement.
  6. Deliver: a short findings table (severity · location · verdict · action) and the fix branches/PRs. If the repo has no semgrep config, offer to commit a starter .semgrep.yml pinned to the rulesets that mattered here.
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. 19d ago First seen · 35 lines · 18 tokens per session scan A bc1f2eadd6ce

Subscribe to this mod's changes

semgrep-review is a skill published in the GitHub repository zhanglunet/openworker-zh-localized (2 stars, last pushed 5d ago), licensed MIT. It adds 18 tokens to every session and 515 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-11-16.

Related

semgrep-review compared with skills from other repositories

semgrep-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
semgrep-reviewzhanglunet/openworker-zh-localizedSkill25d agoMITA18Claude Code, Codex
cli-anything-nsloggerHKUDS/CLI-AnythingSkill71k14d agoApache-2.0A36Claude Code, Codex
hex-annotateanomalyco/hexSkill9.7ktodayMITA139Claude Code, Codex
workers-developmentcloudflare/skillsSkill3.6k2d agoApache-2.0A68Claude Code
workers-profilingcloudflare/skillsSkill3.6k2d agoApache-2.0A31Claude Code
sentry-app-setupvellum-ai/vellum-assistantSkill1.5k4d agoMITA29Claude Code, Codex
burrow-system-toolscaezium/burrowSkill1.9ktodayMITA194Claude Code, Codex