Add agent skill and drush generator for Field Widget Action plugins
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3582573. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !1422 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Short Description: </strong>Add agent skill and drush generator for Field Widget Action plugins<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Field Widget Action plugins (<code>@FieldWidgetAction</code>) provide AI-powered actions on field widgets in entity forms, such as auto-generating content, suggesting values, or transforming field data. These are a key integration point between the AI module and Drupal's content editing experience.</p> <p>An agent skill and Drush generator would help developers quickly create custom field widget actions for their specific field types and use cases.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <ul> <li>Create <code>.agent/skills/create-field-widget-action/SKILL.md</code> describing how to create a Field Widget Action plugin, including the <code>@FieldWidgetAction</code> attribute, the <code>FieldWidgetActionInterface</code>, and how to target specific field types and widgets.</li> <li>Include a complete working example of a field widget action plugin.</li> <li>Add a Drush generate command (<code>drush generate ai-field-widget-action</code>) that scaffolds the plugin class.</li> <li>Reference the existing field widget actions documentation under <code>docs/modules/field_widget_actions/</code>.</li> </ul> <h3 id="summary-ai-usage">AI usage (if applicable)</h3> <p>[x] AI Assisted Issue<br> This issue was generated with AI assistance, but was reviewed and refined by the creator.</p> <p>[ ] AI Assisted Code<br> [ ] AI Generated Code<br> [ ] Vibe Coded</p> <p>- <strong>This issue was created with the help of AI</strong></p>
issue