create-new-explorer

Scaffold a Drupal AI API Explorer plugin for a specified operation type.

10|4|Updated Jan 5, 2018
One-click install
npx skills add https://github.com/markconroy/markie --skill create-new-explorer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-new-explorer
Source: https://github.com/markconroy/markie/tree/main/web/modules/contrib/ai/modules/ai_api_explorer/.agents/skills/create-ai-api-explorer
Command: npx skills add https://github.com/markconroy/markie --skill create-new-explorer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill removes the manual boilerplate work of creating a new Drupal AI API Explorer plugin by generating the required plugin class and validating that the target operation type exists.

Core Features & Use Cases

  • Operation-type guardrails: Verifies the operation type interface file exists before scaffolding so the generated explorer aligns with the real Input/Output contracts.
  • Provider/model selection UI: Adds provider and model dropdowns using AiProviderFormHelper with AJAX model loading.
  • Ready-to-run response behavior: Implements buildForm, getResponse, and normalizeCodeExample with consistent error handling and response rendering patterns (text, file-based, or item-based).

Quick Start

Run create-new-explorer to scaffold an AiApiExplorer plugin for a specific operation type by first confirming the operation interface exists and then supplying the explorer title, description, and form/display requirements.

Frequently Asked Questions about create-new-explorer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Drupal AI API Explorer plugin for a new operation type?

To generate a Drupal AI API Explorer plugin, scaffold the Plugin class and UI workflow by specifying the target operation type, then provide the explorer title, description, and form display requirements.

How does provider and model selection work in a Drupal AI Explorer plugin?

Provider and model selection in a Drupal AI Explorer plugin uses AiProviderFormHelper to add dropdowns with AJAX model loading, ensuring dynamic provider and model selection within the plugin form.

What is the best way to validate an operation type interface before scaffolding an AI Explorer plugin?

Validating an operation type interface before scaffolding an AI Explorer plugin involves verifying that the operation type interface file exists so the generated explorer aligns with real Input and Output contracts.

How do I implement response rendering for text, image, and classification operations in a Drupal AI plugin?

Implement response rendering for text, image, and classification operations by using buildForm, getResponse, and normalizeCodeExample methods with consistent error handling and response rendering patterns.

Can I use AiProviderFormHelper to add AJAX model loading to a Drupal AI plugin form?

Yes, AiProviderFormHelper adds provider and model dropdowns with AJAX model loading to a Drupal AI plugin form, enabling dynamic selection of AI providers and models during operation testing.

Why does scaffolding an AI Explorer plugin require checking the operation type interface first?

Scaffolding an AI Explorer plugin requires checking the operation type interface first to confirm the target operation exists, preventing the generation of incompatible plugin code and ensuring contract alignment.