craftcms-ops

craftcms-ops is a skill for Claude Code from 0xDarkMatter/claude-mods. It costs 115 tokens per session (3,216 once invoked), scanned A, original, MIT.

A Craft CMS 5 development guide for building content models, Twig templates, element queries, GraphQL setups, plugins, and migrations from Craft 4. Craft CMS is a self-hosted PHP content management system.

In plain words
What is it for?
Use it when creating Craft CMS sections, entry types, fields, templates, GraphQL or headless sites, plugins, and Craft 4-to-5 migrations.
Why use it?
It helps avoid outdated Craft 4 advice, especially around Matrix fields, which now use nested entries in Craft 5. It also brings content structure, templates, queries, and migrations into one reference.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-mods plugin — 112 skills, 3 commands, 3 agents, 4 hooks shipped together

Good fit Use it when creating Craft CMS sections, entry types, fields, templates, GraphQL or headless sites, plugins, and Craft 4-to-5 migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xdarkmatter/claude-mods/craftcms-ops
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 0xDarkMatter/claude-mods --skill craftcms-ops
Clone the repo
git clone --depth 1 https://github.com/0xDarkMatter/claude-mods

Made for: Claude Code.

Or install claude-mods, the plugin that ships this one along with the rest of its 112 skills, 3 commands, 3 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for craftcms-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/craftcms-ops/github.svg)](https://agentmods.dev/skills/0xdarkmatter/claude-mods/craftcms-ops)
Your own site
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/craftcms-ops"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/craftcms-ops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for craftcms-ops

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/craftcms-ops"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/craftcms-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,216 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.03216
Opus 5.5 $0.00046 $0.01286
Sonnet 5.5 $0.00023 $0.00643
Haiku 4.5 $0.00012 $0.00322

Measured 18d ago against content hash 89dcfc5b73ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

craftcms-ops scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check-craft-facts.py, tests/run.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/craftcms-ops/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Craft CMS Operations

Versions verified 2026-10-05 against Packagist and the official docs. Craft 5.x is current (5.11); Craft 4 and 3 are past security support; Craft 6 is in alpha. scripts/check-craft-facts.py --live re-checks the plugin majors on a schedule.

The recurring agency shape: Craft 5 (or a 4/3 site awaiting upgrade) on DDEV, with SEOmatic, Blitz, Formie, and CKEditor, a Vite (or legacy Laravel Mix) front end, and modules tested with Codeception and ECS. This file is the procedure and the router; each topic lives in one reference.

Step 1 - Orient before touching anything

Check Where Tells you
Craft + plugin versions composer.json, ddev composer show craftcms/cms Which line of the version matrix applies - Craft 4 and 5 APIs differ
Local environment .ddev/config.yaml PHP/DB versions; run everything as ddev craft, ddev composer, ddev npm
Schema config/project/*.yaml Source of truth for sections, fields, entry types, plugin settings
Config config/general.php, config/<plugin>.php, .env Environment-specific behaviour (devMode, allowAdminChanges, caching)
Front-end build package.json + config/vite.php, or webpack.mix.js craft-vite or Laravel Mix
Templates templates/_layouts, _partials, _partials/entry/<type>.twig Layout inheritance and element partials
PHP modules/, tests/, codeception.yml, ecs.php Where logic and tests live
Page cache config/blitz.php, Blitz utility Whether what you see is cached HTML - check before debugging "my change isn't showing"

Step 2 - Route the task

Task Read
Listing pages, relations, Matrix/nested entries, pagination, multi-site element-queries.md
Printing anything user-influenced, forms that POST, JS data, rich text output twig-security.md
Meta tags, JSON-LD, sitemaps, robots.txt, hreflang seomatic.md
Static caching, "changes don't show", cache warming, dynamic bits on cached pages blitz.md
Building, theming, or debugging forms; spam; form emails not sending formie.md
Rich-text fields, nested entries inside rich text, Redactor conversion ckeditor.md
Craft on DDEV: the craftcms type, ddev craft, Craft's upload_dirs (generic DDEV: ddev-ops) ddev.md
Tests for modules/plugins, fixtures, ECS/PHPStan codeception.md
Front-end assets, Vite dev server, critical CSS craft-vite.md
Moving off Laravel Mix/Webpack, or Vue 2 to Vue 3 frontend-upgrade-ops (the full migration playbook)
Upgrading Craft 3 → 4 → 5, plugin version lines, Craft 6 status upgrades.md
Slow pages, images, queue setup, production config performance.md
Core Web Vitals failing (LCP, INP, CLS), PageSpeed or Search Console flags web-perf-ops (field data first; its references/craft.md maps the Craft levers)
Headless front ends, GraphQL schemas and tokens graphql.md
Modules, plugins, events, migrations, queue jobs plugin-development.md
Modeling a new flexible page type assets/entry-type-field-layout.md

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · -28 lines · +19 tokens per session 89dcfc5b73ba
  2. 1mo ago First seen · 196 lines · 96 tokens per session scan A 923d58243042

Subscribe to this mod's changes

craftcms-ops is a skill published in the GitHub repository 0xDarkMatter/claude-mods (74 stars, last pushed 9d ago), licensed MIT. It adds 115 tokens to every session and 3,216 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

llamaindex-development

Expert guidance for LlamaIndex development including RAG applications, vector stores, document processing, query engines, and building production AI applications.

Mindrally/skills · 32 tokens

agent-django-fastapi-expert

Specialist subagent: Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic, ORM, queryset…

travisjneuman/.claude · 92 tokens

php-laravel

Build and upgrade PHP/Laravel applications with validated requests, policy authorization and reliable jobs/data access. Use when implementing Laravel routes, Eloquent models or queues; preserve existing project conventions and runtime compatibility.

WrongStack/WrongStack · 45 tokens

agent-go-expert

Specialist subagent: Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 75 tokens

drupal-development

Expert guidance for Drupal 10 module development with PHP 8+, SOLID principles, and Drupal coding standards.

Mindrally/skills · 25 tokens

php-development

Expert guidance for PHP 8+ development with SOLID principles, PSR standards, and modern best practices.

Mindrally/skills · 24 tokens