craft-gated-build

craft-gated-build is a skill for Claude Code from michtio/craftcms-claude-skills. It costs 102 tokens per session (3,107 once invoked), scanned A, original, MIT.

A gated workflow for building one approved Craft CMS feature slice with outside builders, using briefs, handbacks, locks, and checks before accepting the result.

In plain words
What is it for?
Use it to verify the project profile, run the listed builders in order, check their returned work, and record every failure, fallback, or skipped gate.
Why use it?
It makes skipped steps, failed builders, and unchecked handbacks visible while preventing work from bypassing the project's approval gates.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the craftcms-claude-skills plugin — 16 skills, 8 agents, 1 hook shipped together

Good fit Use it to verify the project profile, run the listed builders in order, check their returned work, and record every failure, fallback, or skipped gate.

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

Any agent
npx skills add michtio/craftcms-claude-skills --skill craft-gated-build
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 16 skills, 8 agents, 1 hook.

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-gated-build

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/michtio/craftcms-claude-skills/craft-gated-build"><img src="https://agentmods.dev/badge/skills/michtio/craftcms-claude-skills/craft-gated-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,107 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00102 $0.03107
Opus 5.5 $0.00041 $0.01243
Sonnet 5.5 $0.00020 $0.00621
Haiku 4.5 $0.00010 $0.00311

Measured 3d ago against content hash 95796fea2b31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

craft-gated-build 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/craft-version.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/craft-gated-build/SKILL.md · 175 lines

How it starts

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

Gated Build with Outside Builders

Craft Version of This Project

!sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh

If no Craft version line appears above, read craftcms/cms from composer.lock (site) or the lowest version the craftcms/cms constraint in composer.json allows (plugin). The brief needs it.

The main session runs this for one slice: the 1.31.0 gate flow (gate writer, lock check, checker gate, 3-round cap) with the build handed to the profile's outside builders, in order, and craft-feature-builder last. Protocol: docs/outside-builders.md; brief and hand-back formats: docs/brief-format.md, both in ${CLAUDE_SKILL_DIR}/../../docs/.

Pack scripts, found from this skill's folder (<pack> is ${CLAUDE_SKILL_DIR}/../..):

  • <pack>/bin/profile_check.py <profile>
  • <pack>/bin/run_builder.py (one builder with its timeout)
  • <pack>/bin/handback_check.py --brief <brief> <handback>

Never stop silently. Every skip, failure, fallback and skipped gate goes in the report.

1. Preconditions

  1. Spec gate. PRD and plan both status: approved, the slice exists, and you have its R ids with their acceptance criteria verbatim. Otherwise stop and report what is missing.
  2. Profile. .ai/skills-profile.json exists, profile_check.py exits 0 on it, and builders has an entry. Read gate_tests and each builder's name, command and timeout_minutes (missing: 30).
  3. Pack scripts. When the bin/ scripts above are missing, for example in an install that links only skill folders, behave as 1.31.0 and say why.
  4. Gate flow. Locked when tests/Pest.php exists, phpunit.xml.dist pins CRAFT_DB_DATABASE, CLAUDE.md has no Gate tests: builder-written line and the profile's gate_tests is not builder-written. Otherwise builder-written, with the reason.
  5. From CLAUDE.md. The Pest command exactly as given (ddev exec --dir <plugin-root> vendor/bin/pest, or plain vendor/bin/pest when it says there is no DDEV project), the absolute project root, and any gate to skip (named in the report with the reason).
  6. Clean tree. git status --porcelain --untracked-files=all is empty; otherwise stop and report, since the resets would discard that work. Record the branch (git rev-parse --abbrev-ref HEAD).

Read the full file on GitHub · 175 lines

Files

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.

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. 3d ago First seen · 175 lines · 102 tokens per session scan A 95796fea2b31

Subscribe to this mod's changes

craft-gated-build is a skill published in the GitHub repository michtio/craftcms-claude-skills (90 stars, last pushed 4d ago), licensed MIT. It adds 102 tokens to every session and 3,107 once invoked, about $0.0004 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.

Related

craft-gated-build compared with skills from other repositories

craft-gated-build next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
craft-gated-buildmichtio/craftcms-claude-skillsSkill904d agoMITA102Claude Code
analyzeoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA42Claude Code
releaseoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA60Claude Code
skill-monitoroliver-kriska/claude-elixir-phoenixSkill5783d agoMITA41Claude Code
watch-proliver-kriska/claude-elixir-phoenixSkill5783d agoMITA50Claude Code
auditoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA35Claude Code
learn-from-fixoliver-kriska/claude-elixir-phoenixSkill5783d agoMITA46Claude Code