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 skills/edutrul/drupal-ai/drupal-dttnpx skills add edutrul/drupal-ai --skill drupal-dttgit 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/skills/edutrul/drupal-ai/drupal-dtt)<a href="https://agentmods.dev/skills/edutrul/drupal-ai/drupal-dtt"><img src="https://agentmods.dev/badge/skills/edutrul/drupal-ai/drupal-dtt.svg" alt="Measured on agentmods" 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 | $0.00036 | $0.00912 |
| Opus 5 | $0.00018 | $0.00456 |
| Sonnet 5 | $0.00007 | $0.00182 |
| Haiku 4.5 | $0.00004 | $0.00091 |
Grade A, and why
drupal-dtt 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 4d 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 — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Drupal Test Traits (DTT) — ExistingSite Tests
When to Use
- Testing against a real, running Drupal site
- Smoke tests and integration tests against production-like data
- When you need real content, config, and users
- Regression tests for bugs found in production
Basic Structure
// tests/src/ExistingSite/MyFeatureTest.php
namespace Drupal\Tests\my_module\ExistingSite;
use weitzman\DrupalTestTraits\ExistingSiteBase;
/**
* Tests My Feature on an existing site.
*
* @group my_module
* @group existing_site
*/
final class MyFeatureTest extends ExistingSiteBase {
public function testHomepageLoads(): void {
$this->drupalGet('/');
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->pageTextContains('Welcome');
}
public function testArticleCreation(): void {
// Create a user with role
$user = $this->createUser();
$user->addRole('editor');
$user->save();
$this->drupalLogin($user);
// Create a node
$node = $this->createNode([
'type' => 'article',
'title' => 'Test Article',
'status' => 1,
]);
$this->drupalGet('/node/' . $node->id());
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->pageTextContains('Test Article');
}
public function testFormSubmission(): void {
$this->drupalGet('/contact');
$this->assertSession()->statusCodeEquals(200);
$this->submitForm([
'name' => 'Test User',
'mail' => '[email protected]',
'message[0][value]' => 'Test message',
], 'Send message');
$this->assertSession()->pageTextContains('Your message has been sent.');
}
}
Common Assertions
// HTTP status
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->statusCodeEquals(403);
$this->assertSession()->statusCodeEquals(404);
// Page content
$this->assertSession()->pageTextContains('Expected text');
$this->assertSession()->pageTextNotContains('Missing text');
// Elements
$this->assertSession()->elementExists('css', '.my-class');
$this->assertSession()->elementTextContains('css', 'h1', 'Page Title');
$this->assertSession()->linkExists('My Link');
$this->assertSession()->linkByHrefExists('/my-path');
// Fields
$this->assertSession()->fieldExists('edit-title-0-value');
$this->assertSession()->fieldValueEquals('edit-title-0-value', 'My Title');
// Response headers
$this->assertSession()->responseHeaderContains('X-Drupal-Cache', 'HIT');
What ships with it
1 file 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.
- 4d ago First seen · 142 lines · 36 tokens per session scan A 9c8a792e862d
drupal-dtt is a skill published in the GitHub repository edutrul/drupal-ai (71 stars, last pushed 3mo ago), licensed MIT. It adds 36 tokens to every session and 912 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 skills, from other repositories
codex-e2e-test
Run PR-grade real Codex E2E validation through claude-tap, including resume turns, multiple tool calls, optional image input, viewer verification, and screenshot evidence.
js-in-html-testing
Test JS logic embedded in HTML using two-layer strategy - Python unit tests + Playwright browser integration tests.
playwright-screen-recording
Record browser test videos with Playwright for PR review and bug fix verification.
real-e2e-test
Run real E2E tests against Claude CLI in pytest and tmux modes.
e2e-test
Run claude-tap end-to-end tests with pytest.
e2e-verify
面向 Bifrost 管理端的端到端 UI 与 API 验证工具。 适用于浏览器测试、场景回归、管理端接口验证与页面快照排查。 Use when: 端到端验证、功能验证、E2E 测试、UI 测试、浏览器测试、API 测试、接口验证.