Review: Drupal CMS (Starshot) Recipe System for AI-Driven Site Building
Source: Dev.to
The Hook
Why I Built It
The Solution
AI Builder role
The helper turns a JSON brief into a valid recipe.yml.
The Code
View Code
(code not included in the source)
What I Learned
- Recipes are Composer packages of type
drupal-recipemeant to be unpacked and applied, not kept as runtime dependencies. - Applying a recipe happens from the webroot via
drush recipe(Drush 13+) orphp core/scripts/drupal recipe, and the corerecipe-unpackworkflow can place recipes in a/recipesdirectory. - Recipe configuration actions live in
recipe.ymland are expressed as config entity IDs plus actions likecreateIfNotExists,grantPermissions, andsimpleConfigUpdate. - The Recipes initiative APIs are available in core as experimental in Drupal 10.3+ and Drupal 11.
References
- Originally published at VictorStack AI Blog