Drupal Blocks and Block Types

Community

Create reusable custom blocks with disciplined naming.

Authortheodorosploumis
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you avoid the common pitfalls of unmanageable and inconsistent Drupal blocks. It ensures that custom blocks and block types are designed for reusability, portability, and easy maintenance across different environments.

Core Features & Use Cases

  • Reusable Block Types: Guide the creation of custom block types and plugins that are committed to code, rather than one-off content blocks tied to specific UUIDs.
  • Concise Naming: Get suggestions for machine names and admin labels that are short, human-readable, and avoid region-specific prefixes.
  • Node-Standard Field Plans: Apply content modeling best practices (like those for nodes and paragraphs) to block fields and view modes.
  • Use Case: When developing a "Call to Action" block, use this Skill to ensure it's created as a reusable block type with a generic machine name like cta, and its fields mirror your content type standards.

Quick Start

Outline a reusable testimonial custom block type with a concise machine name, fields, recommended view modes, and caching notes.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Drupal Blocks and Block Types
Download link: https://github.com/theodorosploumis/drupal-best-practices/archive/main.zip#drupal-blocks-and-block-types

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository