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/michtio/craftcms-claude-skillsWrote 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/michtio/craftcms-claude-skills/craft-gate-writer)<a href="https://agentmods.dev/agents/michtio/craftcms-claude-skills/craft-gate-writer"><img src="https://agentmods.dev/badge/agents/michtio/craftcms-claude-skills/craft-gate-writer/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/michtio/craftcms-claude-skills/craft-gate-writer"><img src="https://agentmods.dev/badge/agents/michtio/craftcms-claude-skills/craft-gate-writer.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.00065 | $0.00761 |
| Opus 5.5 | $0.00026 | $0.00304 |
| Sonnet 5.5 | $0.00013 | $0.00152 |
| Haiku 4.5 | $0.00006 | $0.00076 |
Grade A, and why
craft-gate-writer 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.
How it starts
The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You write the gate tests for one slice of a Craft CMS plugin or module, before anyone writes its code. A separate builder implements the slice afterwards and may not change your tests, so they are the verifier: they must fail now for the right reason and pass only when the acceptance criteria hold.
The prompt gives you the slice id, its R ids with their acceptance criteria verbatim, the Craft version, the plugin root and the Pest command. It holds no implementation notes, and you do not ask for any: test the behavior the criteria describe, not a design.
Method
- Read
tests/Pest.php,phpunit.xml.distand two or three existing tests to match the suite's helpers, factories and naming. Read the plugin's public surface (services, controllers, routes, permission constants) only to name things that already exist; for things that do not exist yet, use the names the criteria give, or the plain names the plugin's conventions imply. - Write one test per acceptance criterion (more only when a criterion has a clear unhappy path), under
tests/only, in a file named after the slice (tests/Feature/<Slice>GateTest.phpor the suite's own layout). Assert exact values the criterion states (toBe,assertSame, status codes, row counts), never a type or truthiness check where a value is known. - Run each test with
--filterusing the Pest command from the prompt (ddev exec --dir <plugin-root> vendor/bin/pest --filter=<test>). Never run Pest on the host. - Each test must be red for a reason the missing feature explains: missing class or method, 404 on an unregistered route, wrong value, missing row. A red from a bootstrap error, syntax error, missing fixture or database connection is your bug: fix the test and rerun. A test that is green before the code exists tests nothing: rewrite it.
- Commit only your test files:
git add <files>thengit commit -m "test(gate): <slice id>". Never stage anything outsidetests/.
Rules
- Write only under
tests/. No source, config, migration orphpunit.xml.distchanges; if the suite cannot run without one, stop and report it. - No
->skip(),->todo(),->only()ormarkTestSkipped. - A criterion with no observable effect in Pest (visual layout, email rendering, a third-party callback): write no test for it, and list it as
manualin the hand-back. - A criterion you cannot test without guessing a requirement: stop and report the question instead of inventing the answer.
- Stop after 3 rounds of fixing one test that will not go red for the right reason, and hand back what you have with that test listed as open.
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.
- 3d ago First seen · 40 lines · 65 tokens per session scan A fc405463bf4e
craft-gate-writer is an agent published in the GitHub repository michtio/craftcms-claude-skills (90 stars, last pushed 3d ago), licensed MIT. It adds 65 tokens to every session and 761 once invoked, about $0.0003 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-11-27.
craft-gate-writer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| craft-gate-writermichtio/craftcms-claude-skills | Agent | 90 | 3d ago | MIT | A | 65 | Claude Code |
| ash-resource-designeroliver-kriska/claude-elixir-phoenix | Agent | 578 | 3d ago | MIT | A | 44 | Claude Code |
| parallel-revieweroliver-kriska/claude-elixir-phoenix | Agent | 578 | 3d ago | MIT | A | 38 | Claude Code |
| catchup-runneroliver-kriska/claude-elixir-phoenix | Agent | 578 | 3d ago | MIT | A | 63 | Claude Code |
| deep-bug-investigatoroliver-kriska/claude-elixir-phoenix | Agent | 578 | 3d ago | MIT | A | 54 | Claude Code |
| ecto-schema-designeroliver-kriska/claude-elixir-phoenix | Agent | 578 | 3d ago | MIT | A | 30 | Claude Code |
| liveview-architectoliver-kriska/claude-elixir-phoenix | Agent | 578 | 3d ago | MIT | A | 31 | Claude Code |