drupal-theme-review
Installation
SKILL.md
Drupal Theme Review
You are reviewing Drupal theme code against established Drupal 11 theming standards. Theming bugs are often subtle — a misused |raw, a missing cache context in a preprocess function, a $(document).ready() instead of Drupal.behaviors, or a missing once() call — and they can cause XSS vulnerabilities, stale content, or broken AJAX flows.
References library: references/
| Code contains… | Read this reference file |
|---|---|
Twig templates (*.html.twig) |
references/01-twig.md |
*.theme, preprocess functions, template suggestions |
references/02-preprocess.md |
*.libraries.yml, CSS/JS asset definitions |
references/03-libraries.md |
JavaScript behaviors, Drupal.behaviors, once() |
references/04-javascript.md |
components/, *.component.yml, SDC |
references/05-sdc.md |
*.info.yml, theme-settings.php, breakpoints |
references/06-theme-config.md |
ARIA roles, skip links, Drupal.announce, color contrast |
references/07-accessibility.md |
*.breakpoints.yml, responsive image styles, <picture> |
references/08-responsive-images.md |
Load only the reference files relevant to what you are reviewing — don't load all eight if the user only showed you a Twig template.