abderrahimghazali/drupal-boost/theme-development
Claude Code and agent skill by abderrahimghazali/drupal-boost
Trust tier 3
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Drupal 11 theme development with Single Directory Components (SDC), Starterkit themes, Twig templates, component composition, and CSS/JS libraries. Use when creating a theme, building SDCs, writing Twig templates, or styling Drupal output.
Install
npx vskill@latest install abderrahimghazali/drupal-boost/theme-developmentSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as abderrahimghazali/drupal-boost/theme-development.
Drupal 11 Theme Development
Theme Structure
Starterkit Theme Generation
Single Directory Components (SDC)
component.yml Schema
SDC Twig Template
Using SDCs
Twig Best Practices
- Auto-escaping is ON by default — use
{{ variable }}safely - Use
|rawonly when you are 100% certain content is safe (rare) - Use
|tfor translatable strings:{{ 'Hello'|t }} - Attach libraries:
{{ attach_library('THEME_NAME/my-library') }} - URL generation:
{{ path('entity.node.canonical', {'node': nid}) }} - Enable Twig debug in
development.services.ymlfor template suggestions
Libraries
Attach in info.yml:
Key Rules
- Prefer SDCs over traditional template overrides for reusable components
- Always define props in component.yml for type safety
- Use slots for content that varies between usages
- Keep Twig logic minimal — complex logic belongs in preprocess functions
- Never use
|rawwith user-generated content - Use
{{ attach_library() }}to load CSS/JS on demand - Follow BEM naming for CSS classes:
block__element--modifier
Read reference files for details:
reference/sdc-patterns.mdfor advanced SDC patternsreference/twig-reference.mdfor Drupal Twig functions/filtersreference/starterkit-guide.mdfor theme generation
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/theme-development/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
templateCustom templates for code generation
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/abderrahimghazali/drupal-boost/theme-development)