create-ai-provider

Scaffold Drupal AI Provider plugins with module code, configuration forms, and routing.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you quickly create a new Drupal AI Provider plugin without manually wiring interfaces, authentication, and model discovery logic, so your site can connect to a new external AI service faster.

Core Features & Use Cases

  • Operation-type aware scaffolding: Generates a provider implementation based on the operation types you need (for example chat, embeddings, moderation, and image/audio operations).
  • Authentication and configuration setup: Produces the configuration form and schema needed for API keys/endpoints so administrators can enable the provider.
  • Model discovery strategy: Supports auto-discovery for OpenAI-compatible providers (recommended) to keep available models synchronized with the upstream API.

Quick Start

Ask the AI to scaffold a new Drupal AI provider plugin by telling it the module machine name, provider id and label, which operation types you want, the authentication method, and whether your provider is OpenAI-compatible.

Frequently Asked Questions about create-ai-provider

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

FAQPage Schema
How do I create a Drupal AI provider plugin for a custom AI service?

To create a Drupal AI provider plugin, you scaffold the module, provider class code, configuration form, and routing needed to connect Drupal to an external AI service. This generates the required implementation structure for your provider integration.

Can I use model auto-discovery for OpenAI-compatible custom endpoints in Drupal?

Yes, model auto-discovery is supported for OpenAI-compatible custom endpoints in Drupal AI provider plugins. This recommended strategy keeps available models synchronized with the upstream API without manual configuration changes.

What operation types can I scaffold for a Drupal AI provider integration?

You can scaffold Drupal AI provider integrations for multiple operation types including chat, embeddings, moderation, and image or audio operations. The generated code matches the correct provider base pattern for your selected operations.

Do I need to manually wire authentication for a Drupal AI provider plugin?

No, you do not need to manually wire authentication for a Drupal AI provider plugin. The scaffolding process generates the configuration form and schema needed for API keys and endpoints so administrators can enable the provider.

What information do I need to scaffold a Drupal AI provider module?

To scaffold a Drupal AI provider module, you need to provide the module machine name, provider id and label, selected operation types, the authentication method, and whether your provider is OpenAI-compatible.

Does scaffolding a Drupal AI provider generate the configuration form and routing?

Yes, scaffolding a Drupal AI provider generates the configuration form, schema, and routing needed to connect Drupal to an external AI service. This allows administrators to enable and configure the provider directly through the Drupal interface.