Problem/Motivation
While AI-assisted coding is becoming increasingly common, the Drupal developer experience in this area is still fragmented. Other frameworks, like Laravel, are already offering structured, version-specific AI starter kits (e.g. Laravel Boost) that help developers integrate AI into their workflows effectively.
In Drupal, there are some existing efforts such as:
- the Claude Code module
- MCP Servers with documentation like: https://context7.com/drupal/drupal
- Fragmented custom rules like: https://cursor.directory/rules/drupal, and https://github.com/ivangrynenko/cursorrules
These solutions are often custom, tool-specific, lack centralized guidance, and don’t easily connect AI tools to “living” Drupal coding standards, API documentation, and version-specific best practices. This makes it harder for developers to ensure that AI-generated code is high quality, adheres to current standards, and is compatible with the targeted Drupal version.
Proposed resolution
Create a tool-agnostic AI developer starter kit for Drupal, inspired by Laravel Boost, that provides a central integration point for AI coding assistants and is easy to setup.
1. Use Symfony Console (which is installed with Drupal already)
2. Make sure it can install for Claude, Cursor and Junie (we can add others later)
3. Base it on a single file, which should make it easier to maintain in the future, even if Cursor (and others) allow for multiple files.
4. Make sure it writes the file, but users can always change it to their needs, keeping the human in the loop
Comments
Comment #2
ronaldtebrake commentedComment #3
ronaldtebrake commentedhttps://git.drupalcode.org/project/surge/-/commit/6cefbea851cbfccdc25370...
Comment #4
ronaldtebrake commentedIt's done.
composer surge-standardsshould give you an interactive way of writing the standards to the right place. Currently we support Junie, Cursor and Claude.We will have to determine what standards we want to release with here: #3544037: Create default Drupal coding standards and guidelines