# Craft project setup

> Craft project setup is an open-source agent skill for developer tools. Generates Claude Code CLAUDE.md and rules files for a Craft CMS project. 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-project-setup
- **Repository:** https://github.com/michtio/craftcms-claude-skills
- **GitHub stars:** 91
- **License:** MIT
- **Skill name:** craft-project-setup
- **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 scaffolds Claude Code configuration for Craft CMS projects. It inspects the project to decide whether it is a plugin, module, site, hybrid or monorepo, then produces a CLAUDE.md and a .claude/rules directory shaped by that type. Templates for plugin, site and module projects serve as starting points that get adapted to what is actually present in the repository.

The workflow reads composer.json, DDEV configuration, template and config folders, and the installed dependencies to pick up conventions and hosting signals. It asks a few clarifying questions only when the answers cannot be found in files, then reviews the generated output with the user. It also records Craft version-specific upgrade and install notes where they apply, and can propose hiding unrelated skills or MCP servers for the project.

A bash script reports the Craft version at activation. Setup-related commands are limited to DDEV, git and GitHub CLI permissions written to a local settings file. The skill does not install Craft or write application code.

## When your agent uses it

> Scaffold Claude Code configuration specifically for Craft CMS projects. Generates CLAUDE.md and .claude/rules/ files tailored to the project type (plugin, site, module, hybrid, or monorepo). Only for Craft CMS projects, not for Next.js, Laravel, or other frameworks.

## 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-project-setup)
- [Asks for: Bash(sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh)](https://github.com/michtio/craftcms-claude-skills/blob/HEAD/skills/craft-project-setup/SKILL.md)
- [No network calls found in its scripts](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-project-setup)
- [License: MIT](https://github.com/michtio/craftcms-claude-skills/tree/HEAD/skills/craft-project-setup)

## Features

- **Project type detection:** Identifies whether the repository is a plugin, module, site, hybrid or monorepo from its files and dependencies.
- **CLAUDE.md generation:** Produces a project CLAUDE.md with general, tools, paths and permissions sections tailored to the detected type.
- **Coding rules files:** Writes .claude/rules files covering conventions for the project, adapted from type-specific templates.
- **Local permission setup:** Pre-approves DDEV, git and gh commands in a gitignored local settings file.
- **Existing config handling:** Compares existing CLAUDE.md and rules against the generated versions and appends missing pieces without overwriting author content.
- **Craft version awareness:** Checks the Craft version and adds upgrade and installation guidance relevant to it.

## Good for

- Set up Claude Code for a new Craft CMS plugin repository
- Create a CLAUDE.md for an existing Craft site project
- Onboard a developer to a Craft project with shared coding rules
- Audit and update an existing Claude configuration in a Craft project
- Add project rules for a Craft module inside a hybrid install

## 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-project-setup`:

```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-project-setup &&
cp -R "$tmp/skills/craft-project-setup" ~/.claude/skills/craft-project-setup &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/craft-project-setup` 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-project-setup &&
cp -R "$tmp/skills/craft-project-setup" ~/.agents/skills/craft-project-setup &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/craft-project-setup` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/craft-project-setup` 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-project-setup &&
cp -R "$tmp/skills/craft-project-setup" ~/.cursor/skills/craft-project-setup &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/craft-project-setup` 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-project-setup
```

Or copy the folder to `~/.gemini/skills/craft-project-setup` yourself.

### VS Code

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

```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-project-setup &&
cp -R "$tmp/skills/craft-project-setup" ~/.copilot/skills/craft-project-setup &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/craft-project-setup` 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-project-setup` into your agent's skills folder as `craft-project-setup`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which projects is Craft project setup for?

Only Craft CMS projects. The skill says it is not meant for Next.js, Laravel or other frameworks, and it does not install Craft itself.

### Does Craft project setup overwrite my existing CLAUDE.md?

No. When a project already has a CLAUDE.md or rules, the skill runs a gap analysis and appends only missing pieces to author-written configuration.

### What permissions does Craft project setup set?

It pre-approves ddev, git and gh commands in .claude/settings.local.json, which is gitignored, rather than the shared settings file.

### How do I install Craft project setup in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/craft-project-setup to use it in all your projects, or to .claude/skills/craft-project-setup 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 project setup 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 project setup?

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 project setup?

The closest alternatives to Craft project setup are Skill generator, Craftcms, Codebase onboarding, Claude settings audit and Claude md refactor.

## Where this comes from

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

## Alternatives

- [Skill generator](https://ai-powered.com/skills/skill-generator): Skill generator is an open-source agent skill for developer tools.
- [Craftcms](https://ai-powered.com/skills/craftcms): Craftcms is an open-source agent skill for developer tools.
- [Codebase onboarding](https://ai-powered.com/skills/codebase-onboarding): Codebase onboarding is an open-source agent skill for developer tools.
- [Claude settings audit](https://ai-powered.com/skills/claude-settings-audit): Claude settings audit is an open-source agent skill for ai models and llm tooling.
- [Claude md refactor](https://ai-powered.com/skills/claude-md-refactor): Claude md refactor is an open-source agent skill for developer tools.
- [Skill update](https://ai-powered.com/skills/skill-update): Skill update is an open-source agent skill for developer tools.
- [Setup](https://ai-powered.com/skills/setup-awrshift): Setup is an open-source agent skill for developer tools.
- [Scaffold research project](https://ai-powered.com/skills/scaffold-research-project): Scaffold research project is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/craft-project-setup
