michtio/craftcms-claude-skills / skills/craft-project-setup
craft-project-setup
VerifiedScaffold 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.
templates/module/CLAUDE.md
View on GitHub# {{moduleName}} — Craft CMS 5 Module
@.claude/rules/coding-style.md
@.claude/rules/architecture.md
@.claude/rules/git-workflow.md
@.claude/rules/security.md
## General
Be critical. We're equals — push back when something doesn't make sense.
Do not excessively use emojis. Do not include AI attribution in commits, PRs, issues, or comments.
Do not include "Test plan" sections in PR descriptions.
## Tools
Use `ddev` shorthand commands: `ddev composer`, `ddev craft`, `ddev npm`. Never run `php`, `composer`, or `npm` on the host — everything goes through DDEV.
Use `gh` for all GitHub operations.
## Environment
```bash
ddev craft up # Migrations + project config
ddev composer install # Install deps (auto-runs craft up)
```
## Module Structure
```
modules/{{moduleHandle}}/
├── Module.php # Entry point (bootstrapped in config/app.php)
├── controllers/ # Web controllers
├── console/controllers/ # CLI commands
├── services/ # Business logic services
├── models/ # Data models
├── templates/ # Module templates (manual root registration)
└── translations/ # Translation files (manual registration)
```
## Module Bootstrapping
Modules require manual registration unlike plugins. Key differences:
- Template root: register via `EVENT_REGISTER_CP_TEMPLATE_ROOTS`
- Translations: register `PhpMessageSource` in `init()`
- Console commands: set `controllerNamespace` before `parent::init()`
- Must be bootstrapped in `config/app.php`
## Documentation
- Module development: https://craftcms.com/docs/5.x/extend/module-guide.html
- Plugin vs module: https://craftcms.com/docs/5.x/extend/
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |