drupal-drush

Guide Drush commands for Drupal scaffolding, verification, debugging, and entity operations.

1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/proofoftom/drupal-skills --skill drupal-drush
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-drush
Source: https://github.com/proofoftom/drupal-skills/tree/main/skills/drupal-drush
Command: npx skills add https://github.com/proofoftom/drupal-skills --skill drupal-drush

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers developers to leverage Drush commands for efficient Drupal development, including scaffolding, self-verification, debugging, and entity operations, significantly reducing manual effort and errors.

Core Features & Use Cases

  • Scaffolding: Generate boilerplate code for modules, controllers, forms, entities, and plugins using drush generate.
  • Self-Verification: Verify routes, services, permissions, and config using dedicated Drush commands.
  • Debugging: Utilize watchdog:show, watchdog:tail, and core:status for effective troubleshooting.
  • Entity Operations: Manage entities via the API using entity:create, entity:save, and php-eval.
  • Use Case: After creating a new content entity, use drush generate entity:content to scaffold it, then drush cr to clear caches, and finally drush route --name=my_module.entity_list to verify the new route.

Quick Start

Use drush generate to scaffold a new Drupal module called my_module.

Frequently Asked Questions about drupal-drush

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

FAQPage Schema
How do I scaffold a new Drupal module using Drush?

Verify Drupal module routes and permissions by running dedicated Drush commands like `drush route --name=my_module.entity_list`. This directly checks route integrity and configuration without needing to manually inspect the site's admin interface.

Can I use Drush to debug Drupal errors and watch logs?

Debug Drupal errors and watch logs by using `drush watchdog:show` and `drush watchdog:tail`. These commands provide real-time monitoring of system events and effective troubleshooting of site issues directly from the command line.

What's the best way to manage Drupal entities programmatically via Drush?

Perform Drupal entity operations programmatically via Drush using `drush php-eval` or `drush entity:save`. This enforces the Drupal-first principle of leveraging the entity API over direct SQL queries, ensuring safe data manipulation and structural integrity.

Does Drush provide commands to verify module integrity and permissions?

Drush provides commands to verify module integrity and permissions. You can check routes, services, permissions, and configuration using dedicated Drush commands, ensuring your newly scaffolded components function correctly before deployment.

Why should I use the Drupal entity API instead of SQL queries for data inspection?

Use the Drupal entity API instead of SQL queries for data inspection to maintain structural integrity and respect site hooks. Drush commands like `drush entity:save` ensure proper data manipulation by adhering to the Drupal-first principle over direct database interactions.