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.