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.
npx skills add siva01c/claude-plugins --skill semgrepgit clone --depth 1 https://github.com/siva01c/claude-pluginsWrote 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/skills/siva01c/claude-plugins/semgrep)<a href="https://agentmods.dev/skills/siva01c/claude-plugins/semgrep"><img src="https://agentmods.dev/badge/skills/siva01c/claude-plugins/semgrep/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/skills/siva01c/claude-plugins/semgrep"><img src="https://agentmods.dev/badge/skills/siva01c/claude-plugins/semgrep.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.00169 | $0.02550 |
| Opus 5.5 | $0.00068 | $0.01020 |
| Sonnet 5.5 | $0.00034 | $0.00510 |
| Haiku 4.5 | $0.00017 | $0.00255 |
Grade A, and why
semgrep 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 yesterday.
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 — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Semgrep SAST for Drupal
A security review that rests only on reading code misses what nobody read. Semgrep gives it a deterministic floor: the same code always gives the same findings, each with a rule id and a line. The review then judges those findings and goes on to what a pattern cannot see (business logic, object-level access, data flow across services).
Use it together with:
owasp-asvs(this plugin) — the requirement each finding maps to;drupal-dev-tools:drupal-security-review— the manual checklist the scan feeds.
What is scanned
Only custom code — contrib and core have their own security process:
web/modules/custom
web/themes/custom
Adjust to the project's docroot (docroot/, html/). Skip paths that do not
exist; a scan of a missing path is an error, not an empty result.
Rule sets
| Config | What it covers |
|---|---|
p/php |
General PHP security rules (exec, eval, unserialize, weak crypto…) |
p/owasp-top-ten |
OWASP Top 10 rules across languages, incl. JavaScript in themes |
p/secrets |
Hard-coded keys, tokens and passwords |
rules/drupal.yml |
Custom Drupal PHP rules, below |
rules/drupal-routing.yml |
Routes in *.routing.yml without an access requirement |
rules/ is the directory next to this file. Pass the two rule files
explicitly — the directory also holds the test fixtures, which are not rules.
The registry packs (p/…) are downloaded at scan time, so they need network
access. Offline, run only the two local files and say in the report that the
registry packs were not run.
Custom Drupal rules
| Rule id | Finds | ASVS | Severity |
|---|---|---|---|
drupal-sqli-concatenated-query |
->query() / db_query() with concatenated, interpolated or sprintf()-built SQL |
V1.1.4 | ERROR |
drupal-xss-markup-unescaped |
A variable in #markup without t(), Xss::filter() or Html::escape() |
V1.1.1, V1.2.1 | WARNING |
drupal-xss-markup-create |
Markup::create() with a variable that was not filtered |
V1.1.1, V1.2.1 | WARNING |
drupal-superglobal-access |
$_GET, $_POST, $_REQUEST, $_COOKIE, $_FILES |
V2.1.1 | WARNING |
drupal-static-call-in-di-class |
\Drupal::…() in a class with a constructor or create() |
— (design) | INFO |
drupal-debug-output |
var_dump, print_r, dpm, kint, dump, dd … |
V12.1.1, V12.1.2 | WARNING |
drupal-route-without-access-check |
A route with no _permission, _access, _custom_access, _entity_access, _role or _user_is_logged_in |
V8.1.3, V4.2.1 | WARNING |
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday First seen · 211 lines · 169 tokens per session scan A f533da20cae2
semgrep is a skill published in the GitHub repository siva01c/claude-plugins (16 stars, last pushed yesterday), licensed MIT. It adds 169 tokens to every session and 2,550 once invoked, about $0.0007 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-06.
semgrep compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| semgrepsiva01c/claude-plugins | Skill | 16 | yesterday | MIT | A | 169 | Claude Code |
| fix-ci-until-greenjim60105/copilot-prompt | Skill | 22 | 21d ago | GFDL-1.3 | A | 134 | Claude Code, Codex |
| unity-editor-remotejim60105/copilot-prompt | Skill | 22 | 21d ago | GFDL-1.3 | A | 124 | Claude Code, Codex |
| diagnosing-bugsfabiandistler/agents | Skill | 2 | 3d ago | none | A | 40 | Claude Code, Codex |
| refactoringfabiandistler/agents | Skill | 2 | 3d ago | none | A | 50 | Claude Code, Codex |
| incident-postmortemmohitagw15856/pm-claude-skills | Skill | 1.5k | yesterday | MIT | A | 87 | Claude Code, Codex |
| agent-design-reviewmohitagw15856/pm-claude-skills | Skill | 1.5k | yesterday | MIT | A | 91 | Claude Code |