By gkastanis
Automate Drupal 10/11 development workflows with live AI autopilot that classifies tasks, delegates to agents for module implementation, theming, config management, security audits, caching strategies, and content modeling, then verifies via drush evals, curl tests, and structural checks while generating semantic docs and indexes.
Analyze dependencies and blast radius for a feature or module
Auto-detect project state and bootstrap structural index, semantic docs, and CLAUDE.md hint
Load full project context into session (debug/overview — heavy, ~2500 tokens)
Regenerate structural index and update CLAUDE.md hint
Generate and manage semantic documentation (business index, tech specs, business schemas)
**Role**: Full-stack Drupal implementation -- modules, themes, config, migrations, performance.
**Role**: Architecture decisions, security audit, coding standards validation, and test writing.
**Role**: Implementation verification via `ddev drush eval`, curl smoke tests, and config checks. Read-only -- verifies, does not fix.
**Role**: Read the structural index (Layer 2) + source code to produce semantic documentation (Layer 3) — business index, tech specs, and business schemas.
Explore requirements, constraints, and design options before implementing Drupal features. Use BEFORE writing code — when starting a new feature, module, or significant change. Produces a decision record with entity design, service architecture, and hook/event strategy.
Cache bins, tags, contexts, invalidation strategies, and external caching for Drupal 10/11. Use when implementing caching, optimizing performance, or configuring cache backends.
PHPCS, PHPStan, naming conventions, and code style enforcement for Drupal 10/11. Use when checking coding standards, running static analysis, or enforcing code quality.
Configuration management patterns for Drupal 10/11 — config split, config ignore, environments, import/export workflows, config readonly, and the sync/install/optional directory hierarchy. Use when working with config export/import, multi-environment deployments, config split setup, or managing configuration across dev/staging/prod.
Load Drupal-specific conventions (translations, CSS, error handling) on demand. Use when working on theming, translations, or exception handling.
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Has parse errors
Some configuration could not be fully parsed
Has parse errors
Some configuration could not be fully parsed
A Claude Code plugin for Drupal development with live workflow optimization. Provides 19 skills, 4 specialized agents, 10 commands, behavioral evals, session analysis, and the Magic Loop Autopilot — a live policy engine that classifies tasks, detects drift via weighted scoring, escalates interventions (hint → command → suppress), and self-tunes based on session replay data.
claude --plugin-dir ./drupal-workflow
npm install drupal-workflow
Skills provide domain knowledge that Claude can consult during development.
| Skill | Description |
|---|---|
| drupal-brainstorming | Explore requirements and design options before implementing. Entity design, service architecture, hook/event strategy. |
| drupal-delegation | Execute plans by dispatching specialized agents in parallel. Structured agent dispatch with tracking. |
| drupal-rules | Core development rules: code quality, security, services, testing. Auto-consulted when writing Drupal code. |
| drupal-testing | Practical testing patterns: curl smoke tests, drush eval, test scripts. Verifies implementations actually work. |
| drupal-service-di | Service definitions, dependency injection patterns, and interface design. |
| drupal-entity-api | Field types, entity CRUD, view modes, access control handlers, and content modeling. |
| drupal-caching | Cache bins, tags, contexts, CacheableMetadata, lazy builders, invalidation, and external caching. |
| drupal-hook-patterns | OOP hooks (Drupal 11), form alters, entity hooks, install/update hooks, and legacy bridges. |
| drupal-security-patterns | OWASP prevention patterns, access control, input sanitization, XSS protection. |
| drupal-coding-standards | PHPCS, PHPStan, naming conventions, and code style enforcement. |
| drupal-conventions | Translations, CSS conventions, error handling patterns. |
| drupal-config-management | Config split, config ignore, config readonly, environments, import/export workflows. |
| twig-templating | Twig template patterns, filters, theme suggestions, and component architecture. |
| verification-before-completion | Gate function preventing untested claims. Validates work before marking complete. |
| semantic-docs | Navigate business-logic-to-code mappings in docs/semantic/. Search by Logic ID, feature code, or entity schema. |
| discover | Docs-first codebase discovery. Use before Glob/Grep to get Logic IDs and file paths from semantic documentation. Now supports structural queries (service:, hook:, deps:, etc.). |
| structural-index | Auto-generated structural awareness for Drupal projects. Parses *.services.yml, *.routing.yml, hooks, plugins, and entity types to build dependency graphs and feature maps. |
| writing-plans | Write comprehensive implementation plans for sub-agents or complex tasks. |
| autopilot-tuner | Analyze autopilot effectiveness and self-tune the plugin. Reads session data, computes acceptance rates, and proposes policy/threshold/classifier changes. |
Four focused agents covering the full Drupal development lifecycle: build, review, verify, document.
| Agent | Description |
|---|---|
| drupal-builder | Full-stack implementation: modules, themes, config, migrations, performance. |
| drupal-reviewer | Architecture, security audit, coding standards, and test writing. |
| drupal-verifier | Implementation verification via ddev drush eval, curl smoke tests, config checks. |
| semantic-architect | Generates semantic docs (Layer 3): business index, tech specs with Logic IDs, business schemas. |
Slash commands for common development workflows.
npx claudepluginhub gkastanis/drupal-workflow --plugin drupal-workflowSystematic 3-phase Drupal development workflow with agents, skills, and commands. Implements Research → Architecture → Implementation phases with enforced SOLID, TDD, DRY, and security principles.
Agent Skills and specialist agents for Drupal and WordPress. PR workflows, accessibility / performance / security / quality audits, design-to-code (Figma → blocks/paragraphs), FRD generation with story points, CSV export, strategist UX audits, PM workflows (triage, meeting prep, heartbeats, QA), Drupal.org contribution, and Drupal/Pantheon DevOps. Skills use MCP servers (Teamwork, Slack, Gmail, Fathom, CoWork, GitHub) directly from the main session.
Expert agents for software architecture, backend development, and system design
PHP and WordPress development capabilities
Project health and permission management, dev sessions, team updates with feedback triage, GitHub releases, multi-model brains trust, git workflows, UX audits, responsive layout testing, and browser automation.
Claude Code skill pack for Webflow (24 skills)