create-field-widget-action

Community

Generate Drupal Field Widget action plugins

Authormarkconroy
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Creates the boilerplate needed to add a new Drupal AI Field Widget Action plugin, so you can quickly deliver actionable AI-driven UI behavior inside entity forms.

Core Features & Use Cases

  • Action scaffolding with correct inheritance: Generates either an AJAX callback action (using FieldWidgetActionBase + getAjaxCallback()) or a modal form action (using FieldWidgetFormActionBase + buildModalForm() + submitModalFormFillFields()).
  • Plugin UI targeting and configuration: Establishes widget_types, field_types, category, multiple (per-delta vs whole-field), and a descriptive configuration baseline.
  • Field-filling behavior with proper commands: Uses FillSimpleFieldCommand for plain fields and FillEditorCommand for formatted (e.g., CKEditor) inputs when modal actions are used.

Quick Start

Ask the skill to scaffold an AJAX-based Field Widget Action plugin named my_module_suggest_text that targets string and text fields, uses an AI prompt configuration, and returns suggestions to fill the selected field.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: create-field-widget-action
Download link: https://github.com/markconroy/markie/archive/main.zip#create-field-widget-action

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.