craft-twig-guidelines
95 / 100 · Low risk
Fine to try.
Twig coding standards and conventions for Craft CMS 5 templates. ALWAYS load this skill when writing, editing, or reviewing any .twig file in a Craft CMS project — even for small edits. Covers: variable naming (camelCase, no abbreviations), null handling (?? operator, ??? with empty-coalesce plugin), whitespace control ({%- trimming, NOT {%- minify -%}), include isolation (always use 'only'), Craft Twig helpers ({% tag %}, tag(), attr(), |attr filter, |parseAttr, |append, svg()), collect() for …
What this skill can do
Connects to the internet
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'craft-twig-guidelines' ] || [ -L ~/.agents/skills/'craft-twig-guidelines' ]; then echo 'A skill folder named craft-twig-guidelines already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/michtio/craftcms-claude-skills' "$d" && git -C "$d" checkout --quiet '822f3177187ddf146d11ab158b2cc5244f92bc25' -- 'skills/craft-twig-guidelines' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/craft-twig-guidelines' ~/.agents/skills/'craft-twig-guidelines' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'craft-twig-guidelines' ~/.claude/skills/'craft-twig-guidelines' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/michtio/craftcms-claude-skills/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-13 | 822f317 | 95 |
| 2026-11-07 | c5a32d0 | 95 |