What problem does it solve?
It solves the problem of creating a new Drupal AI guardrail plugin by turning the guardrail concept (rules, AI-based checks, and configuration) into a working plugin scaffold plus the exact implementation checklist you need.
Core Features & Use Cases
- Deterministic or Non-Deterministic Scaffolding: Choose deterministic validation or AI-driven classification to determine the correct plugin interfaces and class structure.
- Input/Output Guardrail Implementation Guidance: Generate method stubs for processInput() and processOutput() so you can validate or rewrite user/AI content.
- Admin Configuration + Config Schema Planning: Provide steps to implement ConfigurableInterface + PluginFormInterface and add the required config/schema entries for strict Drupal validation.
- Testing Guidance (Deterministic Kernel Tests): Produce a kernel test template for end-to-end verification using EchoAI and guardrail entities.
Quick Start
Use the create-guardrail-plugin skill to scaffold a new guardrail for your Drupal AI module by answering whether it is deterministic or non-deterministic and providing the plugin ID, label, description, checked logic, and configuration needs.