Add agent skill and drush generator for AI Provider plugins
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3582571. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !1429
>>>
<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 AI Provider plugins<br>
<strong>Check-in Date: </strong>MM/DD/YYYY<br>
[/Tracker]</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Creating an AI Provider plugin is one of the most common extension points in the AI module, but also one of the most complex. A provider must implement operation types (chat, embeddings, text-to-image, etc.), handle authentication, manage model discovery, and integrate with the provider configuration system. There is documentation, but no structured agent skill or scaffolding tool.</p>
<p>An agent skill under <code>.agent/skills/create-ai-provider/SKILL.md</code> would give AI coding agents the structured instructions they need to help developers create a complete provider plugin. A Drush generate command would scaffold the boilerplate files.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li>Create <code>.agent/skills/create-ai-provider/SKILL.md</code> describing how to create an AI Provider plugin, including the <code>@AiProvider</code> attribute, required interface methods, operation type support, authentication setup, and model discovery.</li>
<li>Include a complete working example of a minimal provider plugin in the skill file.</li>
<li>Add a Drush generate command (<code>drush generate ai-provider</code>) that scaffolds the plugin class, services file, and module structure with the correct namespace and attribute.</li>
<li>The skill should reference the existing documentation and the example DropAI provider under <code>examples/</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