Scaffolds a new AiApiExplorer plugin for the AI API Explorer module. Verifies the operation type exists first, then generates the plugin class using AiProviderFormHelper::generateAiProvidersForm() for provider/model selection.
Scaffolds a new AI Provider plugin for the Drupal AI module. Asks which operation types the provider supports (chat, embeddings, text-to-image, etc.), then generates the plugin class with the correct interface implementations, authentication setup, and model discovery.
Scaffolds a new AiAutomatorType plugin for the Drupal AI Automators module. Recommends RuleBase (AI provider) or ExternalBase (deterministic) as base classes, with convenience subclasses (SimpleTextChat, ComplexTextChat, etc.) also available. Generates the plugin class with the correct base class, field_rule, and required methods.
Scaffolds a new FieldWidgetAction plugin for the Drupal AI field_widget_actions module. Asks whether the action uses AJAX callbacks or a modal form, then generates the plugin class with the appropriate base class, methods, and configuration.
Scaffolds a new AiGuardrail plugin for the Drupal AI module. Asks whether the guardrail is deterministic or non-deterministic, then generates the plugin class with configuration form, processInput/processOutput methods, and appropriate result types.
Scaffolds a new AI module operation type with interface, input, output, optional item class, and unit tests. Validates all generated files with a PHP verification script before completing.
Creates Drupal FunctionalJavascript tests for the AI module. Validates the ddev environment, Selenium Chrome, and Playwright CLI setup. Manually explores the UI as admin to understand markup, then generates a test class extending BaseClassFunctionalJavascriptTests with screenshots, video recording, and optional AI provider request spoofing.