boost-theme

A guided scaffold for creating a Drupal 11 theme, which controls a site's visual layout and presentation.

In plain words
What is it for?
Use it to create a theme with templates, styles, scripts, responsive breakpoints, and Single Directory Components such as headers, cards, heroes, or navigation.
Why use it?
It organizes discovery, project inspection, and setup so the theme follows existing patterns and includes the requested reusable components.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/abderrahimghazali/drupal-boost/boost-theme
Clone the repo
git clone --depth 1 https://github.com/abderrahimghazali/drupal-boost
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 510 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00018 $0.00510
Opus 5 $0.00009 $0.00255
Sonnet 5 $0.00004 $0.00102
Haiku 4.5 $0.00002 $0.00051

Measured yesterday against content hash d7261989fadd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

boost-theme scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/boost-theme.md · 69 lines

What it actually says

Drupal 11 Theme Scaffolding

You are creating a new Drupal 11 theme. Follow these phases:

Phase 1: DISCOVERY

Parse arguments:

  • $ARGUMENTS[0] = theme machine name (snake_case)

Ask the user:

  • Base theme? (Starterkit, Olivero, Claro, none)
  • What components are needed? (header, footer, card, hero, navigation, etc.)
  • CSS methodology? (BEM, utility-first, custom)
  • JavaScript needs? (vanilla, Alpine.js, etc.)
  • Responsive breakpoints?
  • Does the theme need custom block templates?

Phase 2: EXPLORATION

Launch a drupal-explorer agent to:

  • Check existing themes in the project
  • Identify existing SDCs that could be reused
  • Find template suggestions and preprocess functions
  • Read CLAUDE.md for project conventions

Phase 3: SCAFFOLD

Generate base theme (if using Starterkit):

php web/core/scripts/drupal generate-theme THEME_NAME --starterkit starterkit_theme

Or create manually:

  • THEME_NAME.info.yml
  • THEME_NAME.theme (preprocess functions)
  • THEME_NAME.libraries.yml (global CSS/JS)
  • THEME_NAME.breakpoints.yml (responsive breakpoints)

Create SDCs:

For each requested component, create:

components/COMPONENT_NAME/
├── COMPONENT_NAME.component.yml   # Props, slots, metadata
├── COMPONENT_NAME.twig            # Template
├── COMPONENT_NAME.css             # Styles
└── COMPONENT_NAME.js              # Scripts (optional)

Create template overrides as needed:

  • templates/layout/page.html.twig
  • templates/node/node--TYPE.html.twig
  • templates/block/block--PLUGIN_ID.html.twig

Phase 4: SUMMARY

List all created files and provide next steps:

  1. Set as default: Admin > Appearance > Set as default
  2. Clear cache: drush cr
  3. Enable Twig debug for development
  4. Review SDCs in the component library
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 69 lines · 18 tokens per session scan A d7261989fadd

Subscribe to this mod's changes

boost-theme is a command published in the GitHub repository abderrahimghazali/drupal-boost (1 stars, last pushed 5mo ago), licensed MIT. It adds 18 tokens to every session and 510 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.