Best practices for building Drupal Single Directory Components (SDC) with Twig — including props vs slots, the attributes object, include vs embed, escaping rules, accessibility, schema and validation, and overriding components. Invoke when the user mentions "SDC", "Single Directory Component", "component.yml", working with components/ folders in a Drupal theme or module, writing or reviewing an SDC Twig template, or asks "how should I structure this Drupal component", "props or slots?", "embed vs include in SDC", or "best practices for Drupal components".
$npx -y skills add kanopi/cms-cultivator --skill drupal-sdc-twigInstalls into the current project.
Run `npx skills use "https://github.com/kanopi/cms-cultivator" --skill "kanopi/cms-cultivator/drupal-sdc-twig"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/kanopi/cms-cultivator" that are relevant to the current task. Run `npx skills add "https://github.com/kanopi/cms-cultivator"` and select the relevant skills, then follow their instructions.