Home / Skills / craft-twig-guidelines
craft-twig-guidelines
michtio/craftcms-claude-skillsSkill
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 props and class collections, .implode(), comment headers with ========= separators on component files
Why this score
This repo hosts 10 skills, so its 85 stars are split between them (about 9 each) for scoring.
Popularity score: 58/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank
Security
Scanned Oct 20, 2026 at commit a1bb9fc25908, with Cisco's open-source skill-scanner.
None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.
A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan
Alternatives
Other makers' add-ons that do the same job, next to this one.
| Name | Score | Stars | Context | Updated |
|---|---|---|---|---|
| This onecraft-twig-guidelines michtio/craftcms-claude-skills · Skill | 58 | ★ 85 | ≈156 always | 20d ago |
| twig-component EasyCorp/EasyAdminBundle · Skill Both about twig and prop | 83 | ★ 4.3k | ≈154 always | 16d ago |
| guideline-writing alfadur7/llm-wiki-newsroom · Skill Both about guideline and craft | 63 | ★ 171 | ≈104 always | 22d ago |
| scroll-craft nateherkai/scroll-craft · Skill Both about craft | 78 | ★ 3.7k | ≈22 always | 1mo ago |
| craft-goal boshu2/agentops · Skill Both about craft | 65 | ★ 450 | ≈37 always | 16d ago |
| craft-your-textbook xx-hub/craft-your-textbook · Skill Both about craft | 60 | ★ 31 | ≈46 always | 3mo ago |