Grav Skills for Claude Code
A bundle of Claude Code skills that teach Claude how to work effectively on Grav CMS projects, with a particular focus on Grav 2.0 plugin development against the new API and Admin Next architectures.
These skills are most useful if you're:
- Upgrading an existing Grav 1.7 plugin to be 2.0-compatible (compatibility flags, PHP 8.3+ deprecations, removing ties to the classic admin)
- Building a new Grav 2.0 plugin from scratch that integrates with the API and/or Admin Next
- Adding Admin Next integration to a plugin that previously had a custom classic-admin UI (custom form fields, custom admin pages, sidebar nav, panels, menu bar items)
The skills include the canonical patterns, blueprint snippets, and reference points to the Grav Premium plugins (Yeti Search Pro, SEO Magic, AI Pro, AI Translate, Quick Links) so Claude has real-world examples to look at when generating code.
What's in the box
| Skill | When to use it |
|---|
grav-api-integration | Your plugin only needs to extend or consume the Grav API. No custom admin UI. Lightweight, narrow-scope. |
grav-api-admin-next-integration | Your plugin has (or needs) custom Admin Next UI: custom form fields, dedicated admin pages, panels, menu bar items, sidebar nav. Includes everything the API skill covers, plus the Admin Next side. |
grav-translations | You're editing a plugin's languages/<lang>.yaml, adding blueprint fields with label: / help: / title:, debugging humanized labels in admin2 (e.g. "Xss Security" instead of "XSS Security for Content"), or porting a Grav 1.7 lang file to Grav 2.0's ICU convention. Pairs with either of the integration skills. |
grav-admin-ui-polish | You're reviewing or polishing a plugin's Admin Next UI — a plugin page, an add-on section, a dashboard widget, or its blueprint settings form — and want it to read as native and finished: the review method (both themes, tablet width, read-only), the ten design rules (status registry instead of raw enums, the zero-value rule, one primary per screen, ⋯ row menus, every editor a route with a dirty guard…), host fit against Admin Next's tokens, the primitives a plugin admin needs, the ctx.ui / ctx.sheet contract for add-on sections, blueprint label and help rules, and a twelve-item rendering-defect checklist. Pairs with grav-api-admin-next-integration (that one is how to register the UI; this one is what it should look like). |
grav-plugin-review | You're reviewing, vetting, or auditing a third-party Grav 2.0 / Admin2 plugin (e.g. a GPM [add-resource] submission) for compatibility and security. Encodes the review method, the verified API/Admin2 integration contract to check against, and a findings taxonomy (manifest correctness, auth, secret handling, injection, XSS, path traversal, uploads, SSE scaling, CSRF, spoofing) with concrete fixes. |
grav-2-migration | You're migrating an existing Grav 1.7/1.8 site to Grav 2.0 by hand, in place — core swapped via git or a deploy pipeline rather than staged and promoted by the migrate-grav plugin. Encodes the same transforms the plugin's wizard performs: classic admin → admin2 + api, plugin/theme 2.0 compatibility verdicts, classic admin.* → api.* account and group permissions (including the api.access gate nothing in 1.x maps to), the security.twig_content gates and twig_sandbox allowlists, system.images.url_actions, and the GFM tagfilter. Ships two standalone scripts: a read-only scanner and a permissions rewriter. |
grav-release | You're cutting a release of a Grav plugin or Grav core. Covers the two release shapes — full git-flow when work is on develop, tag-only when it's on a dedicated release branch (e.g. flex-objects 1.4.0, grav 2.0) — the prerelease decision (testing: true, -rc./-beta. versions, Grav core's defines.php), the bare-numeric tag/title rule, release notes from the CHANGELOG, and post-release verification. |
grav-2-migration is the odd one out: it's about migrating a site, not building a plugin. Reach for it when the thing in front of you is somebody's existing 1.7 install rather than a plugin repo — and note that for a plain hosted site with no version control, the migrate-grav plugin is still the safer path, since it stages the new install alongside the old one instead of changing it in place.