drupal

drupal is a command for Claude Code from siva01c/claude-plugins. It costs 10 tokens per session (818 once invoked), scanned A, original, MIT.

A Drupal 11 code and security audit for custom themes and modules. Drupal is a content-management system, and themes control appearance while modules add features.

In plain words
What is it for?
Use it to review Drupal 11 standards, modern PHP and Drupal APIs, code structure, dependency injection, and security issues.
Why use it?
It helps identify outdated code, design problems, and common security risks such as unsafe database queries or unescaped user input.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the drupal-dev-tools plugin — 3 skills, 1 command shipped together

Good fit Use it to review Drupal 11 standards, modern PHP and Drupal APIs, code structure, dependency injection, and security issues.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/siva01c/claude-plugins/drupal
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.

Clone the repo
git clone --depth 1 https://github.com/siva01c/claude-plugins

Made for: Claude Code.

Or install drupal-dev-tools, the plugin that ships this one along with the rest of its 3 skills, 1 command.

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 drupal

README.md
[![agentmods](https://agentmods.dev/badge/commands/siva01c/claude-plugins/drupal/github.svg)](https://agentmods.dev/commands/siva01c/claude-plugins/drupal)
Your own site
<a href="https://agentmods.dev/commands/siva01c/claude-plugins/drupal"><img src="https://agentmods.dev/badge/commands/siva01c/claude-plugins/drupal/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 drupal

Your own site · 80×15
<a href="https://agentmods.dev/commands/siva01c/claude-plugins/drupal"><img src="https://agentmods.dev/badge/commands/siva01c/claude-plugins/drupal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 818 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.00010 $0.00818
Opus 5.5 $0.00004 $0.00327
Sonnet 5.5 $0.00002 $0.00164
Haiku 4.5 $0.00001 $0.00082

Measured 1mo ago against content hash 2712726d4c7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

drupal 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 1mo 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.

drupal-dev-tools/commands/drupal.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

System: You are an expert Drupal 11 code auditor and security analyst. You follow Drupal.org coding standards, the Drupal 11 API, and PHP 8.3 best practices. You provide detailed, structured, and actionable feedback with references to Drupal documentation where relevant.


User: Analyze this Drupal project.


Task: Perform a full audit of all custom themes and modules in the project. Provide a structured report based on the following areas:

1. Drupal 11 Best Practices

  • Verify the project follows Drupal 11 coding standards and conventions.
  • Check for use of modern APIs (services, render arrays, configuration management).
  • Ensure no deprecated or legacy procedural code is used.

2. Code Quality and Design

  • Identify violations of SOLID and DRY principles.
  • Detect incorrect or unnecessary dependency injection.
  • Review the use of design patterns and suggest improvements where patterns such as Factory, Strategy, or Observer would fit better.

3. Security Review

  • Search for vulnerabilities, including:

    • SQL injection (e.g., direct queries without placeholders)
    • XSS risks (missing Html::escape(), t(), Xss::filter())
    • Unsafe use of $_GET, $_POST, or $_REQUEST
  • Check for proper input sanitization and output escaping.

  • Identify abandoned debug functions (e.g., var_dump(), dpm(), kint(), watchdog() used incorrectly).

  • Optional SAST step: if the security-tools:semgrep skill is installed and Semgrep can run (local semgrep or docker run semgrep/semgrep), scan the custom modules and themes with it first and use its findings as the starting point of this section. Triage every finding (true positive / false positive / needs context) and report it with rule id, file:line and the OWASP ASVS requirement. If Semgrep cannot run, say so in the report and continue with the manual review.

4. Code Duplication

  • Find and report duplicated functions, repeated logic, or redundant service implementations.

Read the full file on GitHub · 96 lines

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. 1mo ago Changed · +1 lines 2712726d4c7b
  2. 3mo ago First seen · 95 lines · 10 tokens per session scan A 9972af5d72c3

Subscribe to this mod's changes

drupal is a command published in the GitHub repository siva01c/claude-plugins (16 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 818 once invoked, about $0.0000 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.

Related

drupal compared with commands from other repositories

drupal next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
drupalsiva01c/claude-pluginsCommand16yesterdayMITA10Claude Code
automode-editobeone/claude-skillsCommand413d agoMITB43Claude Code
checklistgithub/spec-kitCommand154kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand154kyesterdayMITA27Claude Code
specifygithub/spec-kitCommand154kyesterdayMITA13Claude Code
analyzegithub/spec-kitCommand154kyesterdayMITA26Claude Code
convergegithub/spec-kitCommand154kyesterdayMITA35Claude Code