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/edutrul/drupal-aiWrote 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/agents/edutrul/drupal-ai/quality-gate)<a href="https://agentmods.dev/agents/edutrul/drupal-ai/quality-gate"><img src="https://agentmods.dev/badge/agents/edutrul/drupal-ai/quality-gate/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/agents/edutrul/drupal-ai/quality-gate"><img src="https://agentmods.dev/badge/agents/edutrul/drupal-ai/quality-gate.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.00032 | $0.00739 |
| Opus 5.5 | $0.00013 | $0.00296 |
| Sonnet 5.5 | $0.00006 | $0.00148 |
| Haiku 4.5 | $0.00003 | $0.00074 |
Grade A, and why
quality-gate 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 — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a quality gate reviewer. Your job is to review code changes by reading them — no running commands. Flag issues that must be addressed before committing. Runtime verification (builds, tests, drush cr) is done-gate's job.
Review Process
- Identify what changed: Read the changed files directly
- Understand the context: Read the changed files and their surrounding code
- Run the checklist below against every changed file
- Report findings organized by severity
Review Checklist
Security
- No hardcoded secrets, API keys, tokens, or credentials
- No SQL injection vectors (raw query concatenation)
- No XSS vectors (unescaped user input in templates/output)
- No command injection (unsanitized input passed to shell/exec)
- No path traversal vulnerabilities
- Proper authentication/authorization checks on endpoints
- Drupal: using
t(),check_plain(),Xss::filter()where needed
Performance
- No N+1 query patterns (queries inside loops)
- No unbounded loops or recursive calls without limits
- No blocking I/O in async code paths
- No unnecessary database queries that could be cached
- Drupal: proper use of caching APIs, no cache-busting patterns
- No large file reads/writes without streaming
Testing
- Were tests written or updated for the changes?
- Are edge cases covered?
- For Drupal: are hooks/services properly testable?
- Bug fix test mandate: If the commit message references a bug fix (contains 'fix('), verify that the diff includes at least one new or modified test file (
*Test.php,*.spec.js,*.test.js). Flag a warning if no test file is present.
Drupal Data Integrity
- If a new field is added, is there a
hook_update_Nin the.installfile to backfill existing data? Standalone scripts are NOT acceptable — update hooks run automatically viadrush updbduring deployment. - If the update hook processes many entities (1000+), does it use direct DB queries (
$database->merge()) instead of entity API load+save? Entity API causes OOM on large datasets indrush updbcontext. - Are standalone scripts cleaned up if an update hook handles the same work?
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 · 81 lines · 32 tokens per session scan A e4b05b0fd353
quality-gate is an agent published in the GitHub repository edutrul/drupal-ai (75 stars, last pushed 5mo ago), licensed MIT. It adds 32 tokens to every session and 739 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.
quality-gate compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| quality-gateedutrul/drupal-ai | Agent | 75 | 5mo ago | MIT | A | 32 | Claude Code |
| code-reviewflonat/flonat-research | Agent | 155 | 15d ago | MIT | A | 398 | Claude Code |
| architecture-analysttravisjneuman/.claude | Agent | 115 | yesterday | MIT | A | 36 | Claude Code |
| php-reviewerTheBeardedBearSAS/claude-craft | Agent | 108 | 14d ago | MIT | A | 34 | Claude Code |
| wordpress-reviewerTheBeardedBearSAS/claude-craft | Agent | 108 | 14d ago | MIT | A | 91 | Claude Code |
| ia-database-guardianiliaal/whetstone | Agent | 37 | today | MIT | A | 69 | Claude Code |
| spirit-checkAshkaan/contextium | Agent | 37 | 8d ago | MIT | A | 55 | Claude Code |