quality-check

quality-check is a command for coding agents from abderrahimghazali/drupal-boost. It costs 23 tokens per session (424 once invoked), scanned A, original, MIT.

A command for running Drupal code-quality checks on custom modules and themes.

In plain words
What is it for?
Use it to run PHPCS for coding standards, PHPStan for static analysis, and Drupal Check for deprecations on selected custom code or the whole custom-code directory.
Why use it?
It collects style violations, likely code errors, and use of deprecated Drupal APIs so problems can be fixed before release.

Command

Part of the drupal-boost plugin — 13 skills, 8 commands, 6 agents, 3 hooks shipped together

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.

agentmods
npx agentmods add commands/abderrahimghazali/drupal-boost/quality-check
Clone the repo
git clone --depth 1 https://github.com/abderrahimghazali/drupal-boost

Or install drupal-boost, the plugin that ships this one along with the rest of its 13 skills, 8 commands, 6 agents, 3 hooks.

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 quality-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/abderrahimghazali/drupal-boost/quality-check.svg)](https://agentmods.dev/commands/abderrahimghazali/drupal-boost/quality-check)
Your own site
<a href="https://agentmods.dev/commands/abderrahimghazali/drupal-boost/quality-check"><img src="https://agentmods.dev/badge/commands/abderrahimghazali/drupal-boost/quality-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 424 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00023 $0.00424
Opus 5 $0.00012 $0.00212
Sonnet 5 $0.00005 $0.00085
Haiku 4.5 $0.00002 $0.00042

Measured 3d ago against content hash ae379c3d45c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

quality-check 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 3d 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.

commands/quality-check.md · 69 lines

What it actually says

Drupal Code Quality Check

You are running the full quality suite on Drupal custom code. Follow these steps:

Step 1: DETERMINE SCOPE

  • If $ARGUMENTS contains a path, check that path only
  • If $ARGUMENTS contains --all, check all custom code
  • If no arguments, check web/modules/custom/ and web/themes/custom/

Detect the environment (DDEV/Lando) and prefix commands accordingly.

Step 2: RUN QUALITY TOOLS

Launch the drupal-test-runner agent to run all quality checks:

PHPCS (Coding Standards)

ddev exec ./vendor/bin/phpcs --standard=Drupal,DrupalPractice PATH

PHPStan (Static Analysis)

ddev exec ./vendor/bin/phpstan analyse PATH --level=6

Drupal Check (Deprecations) — if available

ddev exec ./vendor/bin/drupal-check PATH

Step 3: REPORT

Present results grouped by tool:

=== CODE QUALITY REPORT ===

## PHPCS (Coding Standards)
- Errors: X
- Warnings: Y
- [List top issues]

## PHPStan (Static Analysis)
- Errors: X
- [List top issues]

## Drupal Check (Deprecations)
- Deprecated APIs found: X
- [List deprecations]

## Summary
Total issues: X errors, Y warnings
Auto-fixable with phpcbf: Z issues

If issues are auto-fixable, offer to run phpcbf:

ddev exec ./vendor/bin/phpcbf --standard=Drupal,DrupalPractice PATH
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. 3d ago First seen · 69 lines · 23 tokens per session scan A ae379c3d45c6

Subscribe to this mod's changes

quality-check is a command published in the GitHub repository abderrahimghazali/drupal-boost (1 stars, last pushed 5mo ago), licensed MIT. It adds 23 tokens to every session and 424 once invoked, about $0.0001 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-31.