create-automator-type

Scaffold Drupal AI Automator Type plugins with correct base classes and methods.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creating a new Drupal AI Automator Type plugin usually takes a lot of repetitive setup work to define IDs, base-class inheritance, applicability (field_rule), and the required method structure.

Core Features & Use Cases

  • Automator scaffolding: Generates the plugin skeleton using the proper Drush generator so the new type is discoverable by the Drupal AI Automators module.
  • Correct base-class selection: Guides you to choose RuleBase (AI provider–driven) or ExternalBase (deterministic), including recommended convenience subclasses like SimpleTextChat, ComplexTextChat, NumericRule, or TextToImage.
  • Implementation-ready structure: Produces the class with the correct base inheritance and method stubs so you can focus on generate(), verifyValue(), and storeValues() logic.

Quick Start

Use the create-automator-type skill to generate a new automator type plugin by running drush generate plugin:ai:automator-type and then implementing generate(), verifyValue(), and storeValues() in the created class.

Frequently Asked Questions about create-automator-type

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

FAQPage Schema
How do I scaffold a Drupal AI automator type plugin?

To scaffold a Drupal AI automator type plugin, run the Drush generate plugin:ai:automator-type command to create the class skeleton with the correct base class, field_rule, and required interface methods for discovery.

When should I use RuleBase vs ExternalBase for a Drupal AI automator?

Use RuleBase for AI provider-driven automators like text chat or media generation, and ExternalBase for deterministic transforms. RuleBase offers convenience subclasses like SimpleTextChat, ComplexTextChat, NumericRule, or TextToImage.

What methods do I need to implement in a Drupal AI automator type plugin?

You need to implement generate(), verifyValue(), and storeValues() methods in your Drupal AI automator type plugin to define how generated values are created, verified, and stored for Drupal fields.

How does Drupal discover a custom AI automator type plugin?

Drupal discovers custom AI automator type plugins via the AiAutomatorType attribute, provided the plugin is created with the correct base class, field_rule, and required interface methods during scaffolding.

Does generating an AI automator type require Composer or Drush?

Generating an AI automator type requires Drush to run the plugin:ai:automator-type generator. Composer manages the Drupal AI Automators module dependency, while Drush executes the scaffolding command.

Can I create a deterministic Drupal field automator without an AI provider?

Yes, you can create a deterministic Drupal field automator by inheriting from ExternalBase instead of RuleBase, allowing value transforms during automator execution without requiring an AI provider connection.