drupal-fields

Create and manage Drupal fields via Drush field:create and config export.

67|13|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/edutrul/drupal-ai --skill drupal-fields-edutrul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drupal-fields
Source: https://github.com/edutrul/drupal-ai/tree/main/.claude/skills/drupal-fields
Command: npx skills add https://github.com/edutrul/drupal-ai --skill drupal-fields-edutrul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drupal developers and site admins spend time crafting field configurations, mapping storage, and wiring up widgets. This skill accelerates field creation, configuration, and value access in PHP by providing guided prompts and best practices for field lifecycles.

Core Features & Use Cases

  • Create fields with Drush field:create
  • Manage field config and storage mappings
  • Access field values in PHP code for single and multi-value fields
  • Export configuration after changes for consistency

Quick Start

Create a string field on the article content type using Drush field:create.

Frequently Asked Questions about drupal-fields

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

FAQPage Schema
How do I create and configure Drupal fields using Drush?

You can create and configure Drupal fields by running the Drush field:create command, which guides you through setting up field types, widgets, and storage mappings directly within a Drupal 11 project.

What is the best way to manage field storage and configuration exports in Drupal?

Managing field storage involves defining field.storage configurations and exporting them via Drush config export, ensuring consistency across your Drupal content types and entities after structural changes.

How do I access multi-value field values in Drupal PHP code?

Accessing field values in PHP requires retrieving the field item list from the entity object and iterating over the multi-value array to extract individual string or entity_reference data elements properly.

Does the Drush field:create workflow support entity_reference and image fields in Drupal 11?

Yes, the Drush field:create workflow supports typical scenarios including string, entity_reference, and image fields, handling their specific storage and widget configurations within Drupal 11 entities.

Why are my Drupal fields not exporting correctly after configuration changes?

Incorrect exports often occur when field.field or field.storage configurations are incomplete; enforcing proper storage mappings and running a full config export ensures your Drupal field changes persist correctly.