Skip to content
Skill

Craft gated build

Runs one approved Craft CMS slice through outside builders under locked test gates

Craft gated build is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
shell
Platforms
Claude Code
GitHub stars
91
Last commit
License
MIT
Listing updated

Similar skills

About Craft gated build

This skill drives a feature slice in a Craft CMS project using external builders listed in a project profile, such as a local AI tool or a script. Before any builder starts, a gate writer locks acceptance tests so the builders cannot change them. Each builder works in a throwaway clone, receives a written brief, and returns a hand-back that is checked against the locked gate, the Pest test run and a code review pass.

The workflow includes trust confirmation of each builder command, resets between builders, a limit of three fix rounds per builder, and a fallback to the pack's own feature builder when no outside builder succeeds. Every skip, failure or fallback is recorded in a final report, and a slice counts as passed only when all acceptance criteria pass and the locked gate is green.

It expects a clean git working tree, an approved spec and plan, a .ai/skills-profile.json naming builders, and a CLAUDE.md giving the Pest command. Work is done with bash and Python scripts shipped in the pack.

When your agent uses it

Builds one approved slice with the outside builders listed in .ai/skills-profile.json (local AI, a script) and keeps the pack's gates: craft-gate-writer locks the gate ahead of any builder, each builder gets a brief and returns a handback, the handback is verified, the lock and craft-review-checker cover the result, at most three rounds, and craft-feature-builder takes over when every outside builder fails, is unavailable or passes its timeout setting.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (40 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the craftcms-claude-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add michtio/craftcms-claude-skills
/plugin install craftcms-claude-skills@craftcms-claude-skills

Or copy only this skill to ~/.claude/skills/craft-gated-build:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/craft-gated-build &&
cp -R "$tmp/skills/craft-gated-build" ~/.claude/skills/craft-gated-build &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/craft-gated-build inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/craft-gated-build to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/craft-gated-build &&
cp -R "$tmp/skills/craft-gated-build" ~/.agents/skills/craft-gated-build &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/craft-gated-build inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/craft-gated-build to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/craft-gated-build &&
cp -R "$tmp/skills/craft-gated-build" ~/.cursor/skills/craft-gated-build &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/craft-gated-build inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/michtio/craftcms-claude-skills.git --path skills/craft-gated-build

Or copy the folder to ~/.gemini/skills/craft-gated-build yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/craft-gated-build:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/craft-gated-build &&
cp -R "$tmp/skills/craft-gated-build" ~/.copilot/skills/craft-gated-build &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/craft-gated-build inside it instead.

VS Code docs on skills

Get the folder:

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

Then copy craftcms-claude-skills/skills/craft-gated-build into your agent's skills folder as craft-gated-build. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Locked acceptance tests
A gate writer commits Pest tests before any builder runs, and later checks confirm those files were not altered.
Outside builder orchestration
Builders run in order from a profile, each in an isolated clone with its own brief and timeout.
Builder command trust prompts
Each builder command must be confirmed by the user before it runs, with a stored trust list.
Hand-back verification
Returned work is checked for committed changes, a side reference diff and the required hand-back format.
Code review gate
A review checker examines security and convention issues sized to the change, with capped re-checks.
Fallback to feature builder
If every outside builder fails or times out, the pack's own feature builder takes over the same slice.

Good for

  • Build an approved Craft CMS feature slice using a local AI builder
  • Run a feature through a script-based builder with locked Pest tests
  • Retry a slice with a fallback builder after an external builder times out
  • Verify a builder's hand-back against acceptance criteria before merging

Craft gated build FAQ

When does Craft gated build trigger?

Only when .ai/skills-profile.json names outside builders. Projects without a profile should use the standard build flow instead.

What does Craft gated build need to run?

An approved PRD and plan, a clean git tree, the profile file, bash and Python scripts from the pack, and a Pest command given in CLAUDE.md.

What happens if a builder fails?

The failure is recorded, the repository is reset, and the next builder in the profile is tried. If none pass, craft-feature-builder runs on the same brief.

How many fix rounds are allowed?

Three rounds per builder, after which that builder is marked as failed and the next one is tried.

How do I install Craft gated build in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/craft-gated-build to use it in all your projects, or to .claude/skills/craft-gated-build in one project. Or install the craftcms-claude-skills plugin, which includes it: /plugin marketplace add michtio/craftcms-claude-skills, then /plugin install craftcms-claude-skills@craftcms-claude-skills.

Does Craft gated build run scripts?

Yes. It runs shell scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Craft gated build?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Craft gated build?

The closest alternatives to Craft gated build are Craft pest, Spec driven dev, Incremental implementation, Mt build and Build next.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from michtio/craftcms-claude-skills

  1. Gives agents a safe Pest workflow for testing Craft CMS 5 plugins without touching live

    • Open source
    • 91 GitHub stars
    • Developer tools
  2. Guides an agent through Craft Cloud config, deploys, caching, and Cloud-specific limits

    • Open source
    • 91 GitHub stars
    • Databases
  3. Guides Craft CMS 5 content architecture: sections, entry types, fields, Matrix

    • Open source
    • 91 GitHub stars
    • Developer tools
  4. Deploys and runs Craft CMS on fortrabbit managed PHP hosting with safe git workflows

    • Open source
    • 91 GitHub stars
    • Developer tools
  5. Guides agents writing Craft CMS control panel JavaScript with the Garnish UI toolkit

    • Open source
    • 91 GitHub stars
    • Developer tools
  6. Guides setting up and extending Craft CMS 5.12+ MCP servers and OAuth access

    • Open source
    • 91 GitHub stars
    • Developer tools