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 agentmods add agents/edutrul/drupal-ai/quality-gategit clone --depth 1 https://github.com/edutrul/drupal-aiWhat 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 | $0.00032 | $0.00739 |
| Opus 5 | $0.00016 | $0.00369 |
| Sonnet 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 2d 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.
- 2d 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 (71 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 739 once invoked, about $0.0002 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-30.
Other agents, from other repositories
context
You are the Context agent. Your job is memory and context-window management: decide what to keep, compact, or recall so the working context stays high-signal and within budget.
Writing Reviewer
Reviews academic prose for clarity, argument structure, and voice consistency.
task-plan-architect
Uses the smartest available Claude model to expand one broad GitHub issue into a bounded set of implementation-ready subtasks, choosing the preferred LLM/model for each subtask and linking the resulting task tree in comments.
ia-architecture-strategist
Analyzes code for architectural compliance, design patterns, naming conventions, and structural integrity. Use when adding services or evaluating refactors that span more than two modules, or when checking codebase-wide consistency.
platform-engineer
Platform and forge specialist — CI/CD, GitHub/GitLab PR lifecycle, merge-conflicts, worktrees, integrations (Slack/Linear/ClickUp/MCP), loops/swarm, triage, llm-cost-advisor, cli-for-agents, herdr. Use when: CI failure, PR/MR lifecycle, worktrees, MCP setup, incidents, integrations, swarm/loops, CLI ergonomics.
security-reviewer
인증, 권한, 결제, 데이터 삭제, 외부 입력 처리 변경 전후에 사용한다.