craftcms-ops
БесплатноЗапускает вложенные скриптыНе проверенCraft CMS 3/4/5 agency site builds: Matrix-as-entries content modeling, Twig and element queries, eager loading, output escaping and CSRF, and the usual…
от 0xDarkMatter★ 86 звёзд на 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 --livere-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 |
Step 3 - Hold the non-negotiables
- Eager-load before you loop.
.with([...])up front;.eagerly()inside shared partials (Craft 5 only). One query per card is the most common Craft perf bug. - Escape by context. Never
|rawuser-influenced values;|e('js')inside JS strings;{{ csrfInput() }}in every POST form -csrfInput({ async: true })on cached pages. - Schema only through Project Config. Change it in the CP locally, commit
config/project/, runphp craft upon deploy. Production runsallowAdminChanges => false; never hand-edit the YAML. - Data changes are content migrations (
php craft migrate/create), tested on a copy of production - not CP clicking on live. - Production runs a queue worker. Blitz regeneration, Formie emails and integrations, transform pre-generation, and resaves are all queue jobs.
- Fix queries, then cache. Blitz for public pages; on Blitz-cached pages drop
{% cache %}(or setenableTemplateCachingfalse). - Logic lives in module services, not Twig - services are testable.
- Stay on the latest Craft 5 patch. Craft ships regular Twig/RCE security fixes.
Version matrix
| Package | Craft 3 | Craft 4 | Craft 5 (current) |
|---|---|---|---|
craftcms/cms |
3.9 (EOL) | 4.18 (EOL Apr 2026) | Craft 5.x (5.11); Craft 6 in alpha |
nystudio107/craft-seomatic |
3.x | 4.x | SEO |
Установить craftcms-ops в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashВложенные файлы
FAQ
Что делает скилл craftcms-ops?
Craft CMS 3/4/5 agency site builds: Matrix-as-entries content modeling, Twig and element queries, eager loading, output escaping and CSRF, and the usual plugin stack - SEOmatic, Blitz, Formie, CKEditor, craft-vite - plus DDEV, Codeception, image transforms, the queue, and 3-to-4-to-5 upgrades. Use when building, debugging, securing, speeding up, or upgrading a Craft site, or editing its Twig templates, config/project, or any of those plugins.
Как установить скилл craftcms-ops?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл craftcms-ops запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic