craftcms-ops

craftcms-ops is a skill for Claude Code from 0xDarkMatter/claude-mods. It costs 96 tokens per session (2,280 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 — 103 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 103 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,280 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.00096 $0.02280
Opus 5 $0.00048 $0.01140
Sonnet 5 $0.00019 $0.00456
Haiku 4.5 $0.00010 $0.00228

Measured 8d ago against content hash 923d58243042, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 8d ago.

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 · 196 lines

How it starts

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

Craft CMS Operations

Facts verified as of 2026-07.

Authoritative reference for Craft CMS 5.x development: content modeling, Twig templating, element-query optimization, GraphQL/headless setups, plugin development, and the Craft 4 → 5 migration. Craft is a self-hosted PHP application built on Yii 2, backed by MySQL or PostgreSQL.

Version note (verified against craftcms.com/docs/5.x, 2026-06): Craft 5 is current; Craft 6 exists. The defining Craft 5 change is that Matrix is now an entries-based field — Matrix "blocks" are gone, replaced by nested entries with entry types. Fields are globally reusable across all field layouts. Don't ship Craft 3/4 "Matrix block" guidance.


Craft 5 architecture at a glance

Concept What it is Craft 5 change
Section Container exposing entry types + URL rules Three kinds: Single, Channel, Structure
Entry Type Atomic unit of content (fields, title, slug) Now global + reusable across sections, with per-section aliases
Entry An instance of an entry type Can be top-level or nested (inside Matrix/CKEditor)
Field Reusable input attached via field layouts Globally reusable — no per-field-instance duplication
Matrix field Repeatable nested content Now stores entries (entry types), not "blocks". Nesting supported natively
Project Config Version-controlled schema (config/project/) Source of truth for sections/fields/settings

Section types

Type Use for Has URLs? Hierarchy?
Single One-off pages (home, about) Optional fixed URI No
Channel Streams (blog, news, products) Yes, per-entry-type URI format No
Structure Nested/ordered content (docs, nav) Yes Yes (drag-to-order, levels)

Element queries (the 80/20)

Everything readable in Craft is an element (entries, assets, users, categories, tags). You fetch them with element queries.

Read the full file on GitHub · 196 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d 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 (33 stars, last pushed 15d ago), licensed MIT. It adds 96 tokens to every session and 2,280 once invoked, about $0.0005 per session on Opus 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

networking-layer

Generates a protocol-based networking layer with async/await, error handling, and swappable implementations. Use when user wants to add API client, networking, or HTTP layer.

rshankras/claude-code-apple-skills · 39 tokens

php-expert

Expert-level PHP development with PHP 8+, Laravel, Composer, and modern best practices. Use when the user mentions Laravel, Composer, Symfony, PHPUnit, or PSR standards, or when the task involves PHP 8+ Features, Object-Oriented PHP, Modern PHP, or Constructor Property Promotion.

personamanagmentlayer/pcl · 64 tokens

php-laravel

Modern PHP 8.4 and Laravel patterns: architecture, Eloquent, migrations, queues, testing. Use when working with Laravel, Eloquent, Blade, artisan, or building/testing a framework-based PHP app. Not for php-src internals, standalone PHP libraries, or general PHP language discussion.

iliaal/ai-skills · 65 tokens

php-laravel

Modern PHP 8.2+ and Laravel patterns: architecture, Eloquent, queues, Pest testing. Use when asked to "write PHP", "build a Laravel app", "fix Eloquent query", "add a queue job", "write a Pest test", or mentions PHP, Laravel, Eloquent, Blade, artisan, or migrations.

iliaal/whetstone · 74 tokens

drupal-form-api

Drupal Form API — building forms with FormBase/ConfigFormBase, form elements, validate/submit handlers, DI, and generating forms with Drush including routes.

edutrul/drupal-ai · 38 tokens

rust-network-module

Add Rust async networking modules with project-adapted listener lifecycle, protocol parsing, and meaningful tests. Includes Tokio TCP and example wire-protocol templates for nat464-sidecar or compatible Rust projects.

fakoli/fakoli-plugins · 43 tokens