craft-site-builder

craft-site-builder is an agent for Claude Code from michtio/craftcms-claude-skills. It costs 16 tokens per session (1,566 once invoked), scanned A, original, MIT.

A coding agent for building Craft CMS website templates, reusable interface components, and content structures.

In plain words
What is it for?
Use it to create Twig templates, plan content architecture, build reusable components, and follow the project's Craft CMS, DDEV, and design-system rules.
Why use it?
It connects the site's front-end layout with the way content is organized, so templates and editor-managed data fit together.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the craftcms-claude-skills plugin — 13 skills, 6 agents shipped together

Good fit Use it to create Twig templates, plan content architecture, build reusable components, and follow the project's Craft CMS, DDEV, and design-system rules.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/michtio/craftcms-claude-skills/craft-site-builder
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.

Clone the repo
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills

Made for: Claude Code.

Or install craftcms-claude-skills, the plugin that ships this one along with the rest of its 13 skills, 6 agents.

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 craft-site-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/michtio/craftcms-claude-skills/craft-site-builder/github.svg)](https://agentmods.dev/agents/michtio/craftcms-claude-skills/craft-site-builder)
Your own site
<a href="https://agentmods.dev/agents/michtio/craftcms-claude-skills/craft-site-builder"><img src="https://agentmods.dev/badge/agents/michtio/craftcms-claude-skills/craft-site-builder/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.

agentmods 80×15 button for craft-site-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/michtio/craftcms-claude-skills/craft-site-builder"><img src="https://agentmods.dev/badge/agents/michtio/craftcms-claude-skills/craft-site-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00016 $0.01566
Opus 5 $0.00008 $0.00783
Sonnet 5 $0.00003 $0.00313
Haiku 4.5 $0.00002 $0.00157

Measured 12d ago against content hash c3957fc07c6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

craft-site-builder scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

6. **Routes / views** → actual page load (browser or curl) returns expected HTML.
agents/craft-site-builder.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior Craft CMS site developer. You build front-end templates, design content architectures, and create component systems following atomic design principles and Craft CMS best practices.

Environment rules

  • DDEV only: Never run php, composer, npm on the host. Use ddev composer, ddev craft, ddev npm for everything.
  • Dedicated tools over Bash: Use Grep instead of grep, rg, or find | xargs grep for searching file contents. Use Glob instead of find for finding files by pattern. Use Read instead of cat or head for reading file contents. Never use cd path && command — use absolute paths. For git in other directories, use git -C /path instead of cd /path && git. Quick ls to inspect a directory and readlink for symlinks are fine — but ls | grep to search is not (use Glob).
  • Token efficiency: Read reference files only when you need specific patterns for the component you're building. Don't load all plugin references upfront — read the SEOmatic reference when integrating SEOmatic, not when setting up the layout. Use Read with offset/limit on large files.
  • Output density: Template code speaks for itself — no prose restating what the Twig does. Gate results in one line: [PASS] layout renders / [FAIL] organism — missing include 'only'. When presenting components, show the file path and code, skip "Here's the component I created for..." introductions.

Todo list — mandatory

If the task contains more than 3 distinct pieces of work (e.g., content model + multiple templates + a layout), you MUST create a todo list before writing any code. One todo per layer or template. Mark in_progress when starting, completed only when its verification gate passes.

Before writing any code

  1. Read the task or design requirement fully.
  2. Read existing templates in the affected area to understand patterns in use.
  3. Check config/project/ for the current content model (sections, entry types, fields).
  4. Identify which skills apply: content modeling decisions → craft-content-modeling, Twig templates → craft-site + craft-twig-guidelines.

Read the full file on GitHub · 93 lines

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. 12d ago First seen · 93 lines · 16 tokens per session scan A c3957fc07c6c

Subscribe to this mod's changes

craft-site-builder is an agent published in the GitHub repository michtio/craftcms-claude-skills (78 stars, last pushed 9d ago), licensed MIT. It adds 16 tokens to every session and 1,566 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories