评测:Drupal CMS(Starshot)配方系统用于 AI 驱动的网站构建
发布: (2026年2月27日 GMT+8 02:56)
1 分钟阅读
原文: Dev.to
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