drupal-theme-critic

Audit Drupal theme code for architectural debt and D10+ readiness.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/zivtech/joyus-desktop --skill drupal-theme-critic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-theme-critic
Source: https://github.com/zivtech/joyus-desktop/tree/main/.claude/skills/drupal-theme-critic
Command: npx skills add https://github.com/zivtech/joyus-desktop --skill drupal-theme-critic

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies hidden architectural debt in Drupal themes that standard code reviews miss, such as inefficient preprocess logic, template sprawl, and component library anti-patterns.

Core Features & Use Cases

  • Architectural Audit: Performs a 14-phase review covering preprocess scope, Twig patterns, and render pipeline efficiency.
  • Evidence-Based Findings: Provides concrete file:line references and backtick-quoted code evidence for all critical and major issues.
  • Use Case: Use this before integrating a custom theme into production to ensure it is D10+ ready, accessible, and free of performance-draining technical debt.

Quick Start

Run the drupal-theme-critic skill on the current theme directory to perform a full architectural audit and generate a prioritized findings report.

Frequently Asked Questions about drupal-theme-critic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit a Drupal theme for technical debt and D10+ readiness?

Perform a structured architectural review of your Drupal theme to identify technical debt and design flaws. This skill analyzes preprocess functions, Twig templates, CSS methodology, and render pipeline configurations to ensure full D10+ readiness.

What hidden architecture flaws should I look for in Drupal Twig templates?

Hidden architecture flaws in Drupal Twig templates include template sprawl, inefficient preprocess logic, and component library anti-patterns. Standard code reviews often miss these structural issues, requiring a dedicated audit to expose performance-draining debt.

Can I review Drupal preprocess functions and render pipeline configurations for component reusability?

Yes, you can review Drupal preprocess functions and render pipeline configurations to evaluate component reusability. The audit examines preprocess scope and render pipeline efficiency to identify structural design flaws within your custom theme.

How do I get evidence-based findings for a Drupal theme code review?

Generate evidence-based findings for your Drupal theme code review by running an architectural audit. The process provides concrete file:line references and backtick-quoted code evidence for all critical and major issues discovered during the review.

When should I run an architectural audit on my custom Drupal theme?

Run an architectural audit on your custom Drupal theme before integrating it into production. This ensures the theme is accessible, free of performance-draining technical debt, and fully prepared for the D10+ environment.

Does this Drupal theme audit cover CSS methodology and template sprawl?

Yes, the Drupal theme audit covers CSS methodology and template sprawl across a 14-phase review. It specifically targets these component library anti-patterns alongside Twig patterns and preprocess scope to identify hidden architectural debt.