Contributing
The AI Context module is a community project. Contributions are welcome.
For the quick-reference guide, see CONTRIBUTING.md in the module root.
Getting started
- Check the issue queue for existing issues or feature requests
- Create a new issue if one doesn't exist for your contribution
- Fork the repository and create a merge request
Contribution process
This project follows the standard Drupal contribution process:
- Create an issue in the project issue queue
- Create a merge request referencing the issue
- Ensure all quality checks pass -- see Code quality for the full list of tools
- Ensure tests pass -- see Testing
- Request a review from a maintainer
Coding standards
All code must adhere to Drupal coding standards. Code that fails Drupal Coder sniffs will not be accepted.
Documentation
Documentation lives in the docs/ directory and is built with MkDocs. When
adding features, update the relevant documentation pages.
AI agent coding standards skill
The drupal-coding-standards-skill provides AI agents with Drupal's official coding standards, enabling them to review and write code that follows Drupal conventions.
- Set minimum stability in your dev project's
composer.json:
json
"minimum-stability": "dev"
- Require the packages:
bash
ddev composer require drupal/surge --dev
ddev composer require ronaldtebrake/drupal-coding-standards-skill --dev
-
Uncomment the relevant lines in generated
surge/config.php -
Install the skill:
bash
ddev composer surge skills-install
- Ask your AI agent to review code:
Review my code using the drupal-coding-standards skill in web/modules/contrib/ai_context