craftcms

Guide Craft CMS 5 plugin and module development with extension patterns.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a comprehensive guide for crafting Craft CMS 5 plugins and modules.

Core Features & Use Cases

  • Comprehensive reference for extending Craft CMS 5 through plugins and modules, covering elements, element queries, services, models, records, project config, controllers, CP templates, migrations, queue jobs, console commands, field types, native fields, events, behaviors, Twig extensions, utilities, widgets, filesystems, permissions, debugging, testing, GraphQL, and Craft configuration.
  • Companion skills and references include PHP guidelines, DDEV workflows, and Garnish for CP UI.
  • Use cases include building custom element types, settings pages, API endpoints, and deployment pipelines.

Quick Start

Create a starter Craft CMS 5 plugin or module skeleton and begin applying the extension patterns.

Frequently Asked Questions about craftcms

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

FAQPage Schema
How do I build a custom plugin for Craft CMS 5?

Build a Craft CMS 5 plugin by creating a starter skeleton and applying extension patterns for elements, services, models, and controllers. The guide provides comprehensive references for backend development and safe site integrations.

Does Craft CMS 5 support custom GraphQL endpoints in plugins?

Yes, Craft CMS 5 supports extending GraphQL within custom plugins and modules. The guide covers implementing GraphQL schemas, types, and queries to expose custom element types and data through API endpoints.

How does project config work when extending Craft CMS 5?

Project config in Craft CMS 5 plugins manages settings and schema changes across environments. The extension guide details configuring project config, writing migrations, and ensuring safe deployment pipelines for site integrations.

Can I add custom field types and elements to Craft CMS 5?

Yes, you can add custom field types and native fields to Craft CMS 5. The guide covers building custom element types, element queries, records, and field types to extend site functionality and backend services.

What's the best way to set up CP templates and utilities in Craft CMS 5?

Set up Craft CMS 5 CP templates and utilities by following the extension guide's patterns for control panel interfaces. It covers creating settings pages, widgets, and integrating Garnish for CP UI behaviors.

How do I handle migrations and queue jobs in Craft CMS 5 modules?

Handle Craft CMS 5 migrations and queue jobs by using the module extension patterns provided. The guide details writing database migrations, implementing queue jobs, and creating console commands for deployment pipelines.