Directory
‹ Back to apps

drupal-11-rules-skills

drupal-11-rules-skills plugin for Cursor

What’s inside

9 skills
  • Skilldrupal-10-to-11-upgradeUpgrade a custom Drupal module or project from Drupal 10 to Drupal 11, covering version constraints, deprecation removal, Rector, hooks, plugins, tests, and removed core modules. Use when migrating to Drupal 11 or making a module D11 compatible.
  • Skilldrupal-11-attribute-pluginsCreate or convert Drupal 11 plugins (Block, FieldType, FieldWidget, FieldFormatter, QueueWorker, Action, entity types, custom plugin types) using PHP attributes instead of deprecated annotations. Use when adding a plugin or migrating annotation-based plugins.
  • Skilldrupal-11-code-architectureStructure Drupal 11 module code - naming, PSR-4 layout, controllers, entities and bundle classes, services, routing, type declarations, and PHPDoc. Use when creating or reviewing controllers, routes, entity types, services, or when deciding where code belongs in a module.
  • Skilldrupal-11-dependency-injectionRegister and inject services in Drupal 11 using autowiring, #[Autowire], AutowireTrait, interface aliases, and event subscribers. Use when creating a service, controller, form, or plugin that needs dependencies, or when removing static \Drupal:: calls.
  • Skilldrupal-11-frontend-themingBuild Drupal 11 frontend and theming - Twig 3, Single Directory Components (SDC), libraries, JavaScript behaviors with once(), preprocess, and avoiding removed jQuery UI and deprecated APIs. Use when writing Twig templates, components, CSS/JS libraries, or theme code.
  • Skilldrupal-11-module-standardsDrupal 11 module-level standards - hook_schema and update hooks, events vs hooks, forms, translation, configuration and config schema, cacheability metadata, and custom extension points with api.php. Use when adding schema or updates, forms, config, caching, translatable strings, or extension points to a module.
  • Skilldrupal-11-oop-hooksImplement, convert, or reorder Drupal 11 hooks using the #[Hook] attribute in src/Hook classes instead of procedural .module functions. Use when adding a hook, migrating a .module file, or controlling hook execution order.
  • Skilldrupal-11-securityApply Drupal 11 security practices - output sanitization, render arrays and Twig autoescape, entity query access checks, query placeholders, input validation, CSRF, and route access. Use when handling user input, building queries, rendering markup, adding routes or forms, or reviewing code for vulnerabilities.
  • Skilldrupal-11-testingWrite and run Drupal 11 tests with PHPUnit 10+ attributes (Unit, Kernel, Functional, FunctionalJavascript), plus phpcs and phpstan. Use when adding tests, fixing failing tests, or setting up quality checks for a module.