Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 --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

Step 3 - Hold the non-negotiables

  1. 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.
  2. Escape by context. Never |raw user-influenced values; |e('js') inside JS strings; {{ csrfInput() }} in every POST form - csrfInput({ async: true }) on cached pages.
  3. Schema only through Project Config. Change it in the CP locally, commit config/project/, run php craft up on deploy. Production runs allowAdminChanges => false; never hand-edit the YAML.
  4. Data changes are content migrations (php craft migrate/create), tested on a copy of production - not CP clicking on live.
  5. Production runs a queue worker. Blitz regeneration, Formie emails and integrations, transform pre-generation, and resaves are all queue jobs.
  6. Fix queries, then cache. Blitz for public pages; on Blitz-cached pages drop {% cache %} (or set enableTemplateCaching false).
  7. Logic lives in module services, not Twig - services are testable.
  8. 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
Полный SKILL.md на GitHub

Установить craftcms-ops в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Bash

Вложенные файлы

assets/craft-facts.jsonassets/entry-type-field-layout.mdreferences/blitz.mdreferences/ckeditor.mdreferences/codeception.mdreferences/craft-vite.mdreferences/ddev.mdreferences/element-queries.mdreferences/formie.mdreferences/graphql.mdreferences/performance.mdreferences/plugin-development.mdreferences/seomatic.mdreferences/twig-security.mdreferences/upgrades.mdscripts/check-craft-facts.py

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить craftcms-ops с