craftcms

craftcms is a skill for Claude Code from michtio/craftcms-claude-skills. It costs 327 tokens per session (6,350 once invoked), scanned A, original, MIT.

A development guide for extending Craft CMS 5, a PHP content-management system, with plugins and modules.

In plain words
What is it for?
Use it to build or modify Craft plugins and modules, including custom elements, field types, services, migrations, commands, and tests.
Why use it?
It gives developers a common approach for adding server-side features such as fields, controllers, database changes, queues, and permissions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the craftcms-claude-skills plugin — 13 skills, 6 agents shipped together

Good fit Use it to build or modify Craft plugins and modules, including custom elements, field types, services, migrations, commands, and tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/michtio/craftcms-claude-skills/craftcms
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 michtio/craftcms-claude-skills --skill craftcms
Clone the repo
git clone --depth 1 https://github.com/michtio/craftcms-claude-skills

Made for: Claude Code.

Or install craftcms-claude-skills, the plugin that ships this one along with the rest of its 13 skills, 6 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/michtio/craftcms-claude-skills/craftcms/github.svg)](https://agentmods.dev/skills/michtio/craftcms-claude-skills/craftcms)
Your own site
<a href="https://agentmods.dev/skills/michtio/craftcms-claude-skills/craftcms"><img src="https://agentmods.dev/badge/skills/michtio/craftcms-claude-skills/craftcms/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/michtio/craftcms-claude-skills/craftcms"><img src="https://agentmods.dev/badge/skills/michtio/craftcms-claude-skills/craftcms.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 327 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,350 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.00327 $0.06350
Opus 5 $0.00163 $0.03175
Sonnet 5 $0.00065 $0.01270
Haiku 4.5 $0.00033 $0.00635

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

Security

Grade A, and why

craftcms 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 10d 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/SKILL.md · 270 lines

How it starts

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

Craft CMS 5 — Extending (Plugins & Modules)

Reference for extending Craft CMS 5 through plugins and modules. Covers everything from elements and services to controllers, migrations, fields, and events.

This skill is scoped to extending Craft — building plugins, modules, custom element types, field types, and backend integrations. For site/platform development (content modeling, sections, entry types, Twig templating, plugin selection), see the craft-site skill.

Companion Skills — Always Load Together

When this skill triggers, also load:

  • craft-php-guidelines — PHPDoc standards, section headers, naming conventions, class organization, ECS/PHPStan, verification checklist. Required for any PHP code.
  • ddev — All commands run through DDEV. Required for running ECS, PHPStan, scaffolding, and tests.
  • craft-garnish — When working on CP JavaScript, asset bundles, or interactive CP components. Covers Garnish's class system, UI widgets (Modal, HUD, DisclosureMenu, Select), drag system, and the Craft.* JS class pattern.
  • craft-pest — When writing, running, fixing, or reviewing tests. Covers the markhuot/craft-pest-core harness, database isolation (its rollback is opt-in and its env overrides are cwd-bound — both cause silent writes to the dev database), factories, HTTP/queue/DB assertions, and CI test jobs.
  • craft-cloud — When the project is hosted on Craft Cloud (detect via craft-cloud.yaml at the repo root or craftcms/cloud in composer.json). Required for plugin Cloud-compatibility constraints — App::isEphemeral() guards, asset-bundle CDN publishing, 15-minute queue-job cap, csrfInput() function over raw token output, and the cloud/up deploy lifecycle events.

Documentation

Use WebFetch on specific doc pages when a reference file doesn't cover enough detail.

Read the full file on GitHub · 270 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. 10d ago First seen · 270 lines · 327 tokens per session scan A ce411b9f4096

Subscribe to this mod's changes

craftcms is a skill published in the GitHub repository michtio/craftcms-claude-skills (78 stars, last pushed 8d ago), licensed MIT. It adds 327 tokens to every session and 6,350 once invoked, about $0.0016 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.