craft-project-setup

Detect Craft CMS project type and scaffold CLAUDE.md and .claude/rules.

66|6|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/michtio/craftcms-claude-skills --skill craft-project-setup
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: craft-project-setup
Source: https://github.com/michtio/craftcms-claude-skills/tree/main/skills/craft-project-setup
Command: npx skills add https://github.com/michtio/craftcms-claude-skills --skill craft-project-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold Claude Code configuration for Craft CMS projects, generating CLAUDE.md and a .claude/rules directory tailored to the project type.

Core Features & Use Cases

  • Detects project type from composer.json, .ddev/config.yaml, templates/, config/project/, and modules/ to determine whether the project is a plugin, module, site, hybrid, or monorepo, and scaffolds CLAUDE.md accordingly.
  • Generates a CLAUDE.md and a set of rule files under .claude/rules/ customized for each project type, ensuring consistent coding standards and tooling references.
  • Provides companion skills guidance and integrated workflow prompts to streamline Craft CMS development across plugin, site, and module contexts.

Quick Start

Run the craft-project-setup skill in a Craft project to generate CLAUDE.md and the .claude/rules directory.

Frequently Asked Questions about craft-project-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Claude Code configuration for a Craft CMS project?▼

To set up Claude Code for Craft CMS, run the craft-project-setup skill which detects your project type from composer.json, .ddev/config.yaml, templates/, config/project/, and modules/, then generates a tailored CLAUDE.md and .claude/rules directory with consistent coding standards and tooling references.

Can Claude Code detect whether my Craft CMS project is a plugin, module, or site?▼

Yes, Claude Code can detect project type by analyzing composer.json, .ddev/config.yaml, templates/, config/project/, and modules/ to determine whether your Craft CMS project is a plugin, module, site, hybrid, or monorepo, and scaffolds configuration accordingly.

What's the best way to scaffold CLAUDE.md rules for a Craft CMS monorepo?▼

The best way to scaffold CLAUDE.md for a Craft CMS monorepo is to run the craft-project-setup skill, which detects the monorepo structure from composer.json and modules/ directories, then generates customized rule files under .claude/rules/ tailored to that project type.

Does the Craft CMS project setup preserve an existing CLAUDE.md file?▼

Yes, the Craft CMS project setup preserves your existing CLAUDE.md file when present. The skill generates a usable configuration that references craftcms skills and universal defaults while safeguarding any current CLAUDE.md content you already have.

Do I need DDEV to scaffold Claude Code rules for a Craft CMS project?▼

You do not strictly need DDEV, but the skill uses .ddev/config.yaml as one of several detection signals alongside composer.json, templates/, config/project/, and modules/ to identify your Craft CMS project type and generate appropriate configuration.

Why does my Craft CMS project type matter for Claude Code scaffolding?▼

Your Craft CMS project type matters because the scaffolding generates different CLAUDE.md content and .claude/rules files depending on whether your project is a plugin, module, site, hybrid, or monorepo, ensuring coding standards match your specific development context.