Add agent skill for creating new AI API Explorer plugins
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3582819. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !1401 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Short Description: </strong>Add agent skill for creating new AI API Explorer plugins<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The AI API Explorer module uses a plugin system (<code>@AiApiExplorer</code> attribute) to register explorer pages for different operation types. Creating a new explorer requires extending <code>AiApiExplorerPluginBase</code>, implementing the form, response handling, and code example generation. This involves a fair amount of boilerplate and knowledge of the base class helpers.</p> <p>An agent skill at <code>modules/ai_api_explorer/.agents/skills/create-new-explorer/SKILL.md</code> would give AI coding agents the structured instructions needed to scaffold a new explorer plugin correctly.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <ul> <li>Create <code>modules/ai_api_explorer/.agents/skills/create-new-explorer/SKILL.md</code> describing how to create a new explorer plugin.</li> <li>Document the <code>@AiApiExplorer</code> attribute parameters (<code>id</code>, <code>title</code>, <code>description</code>), the base class <code>AiApiExplorerPluginBase</code>, and the key methods to implement: <code>buildForm()</code>, <code>getResponse()</code>, <code>getCodeExampleTemplate()</code>.</li> <li>Document the available helper services injected by the base class: <code>$this-&gt;aiProviderHelper</code>, <code>$this-&gt;explorerHelper</code>, <code>$this-&gt;providerManager</code>.</li> <li>Include a minimal working example based on the simplest existing plugin.</li> <li>Note the plugin directory: <code>src/Plugin/AiApiExplorer/</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