# Craft gated build

> Craft gated build is an open-source agent skill for developer tools. Runs one approved Craft CMS slice through outside builders under locked test gates. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/michtio/craftcms-claude-skills/tree/main/skills/craft-gated-build
- **Repository:** https://github.com/michtio/craftcms-claude-skills
- **GitHub stars:** 91
- **License:** MIT
- **Skill name:** craft-gated-build
- **Collection:** https://github.com/michtio/craftcms-claude-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-gated-build)
- [Asks for: Bash(sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh)](https://github.com/michtio/craftcms-claude-skills/blob/HEAD/skills/craft-gated-build/SKILL.md)
- [No network calls found in its scripts](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-gated-build)
- [License: MIT](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-gated-build)

## Features

- **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

## Install

### Claude Code

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):

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Craft pest](https://ai-powered.com/skills/craft-pest): Craft pest is an open-source agent skill for developer tools.
- [Spec driven dev](https://ai-powered.com/skills/spec-driven-dev): Spec driven dev is an open-source agent skill for developer tools.
- [Incremental implementation](https://ai-powered.com/skills/incremental-implementation): Incremental implementation is an open-source agent skill for developer tools.
- [Mt build](https://ai-powered.com/skills/mt-build): Mt build is an open-source agent skill for developer tools.
- [Build next](https://ai-powered.com/skills/build-next): Build next is an open-source agent skill for developer tools.
- [Implement](https://ai-powered.com/skills/implement-kzytateishi): Implement is an open-source agent skill for developer tools.
- [Night shift](https://ai-powered.com/skills/night-shift): Night shift is an open-source agent skill for developer tools.
- [Session hardening](https://ai-powered.com/skills/session-hardening): Session hardening is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/craft-gated-build
