Skip to content

Comprehensive Cursor AI rules for Drupal development, PHP coding standards, and web development best practices

Notifications You must be signed in to change notification settings

S1933/cursor-rules-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Cursor Rules - Drupal Development Standards

A comprehensive collection of Cursor rules and best practices for Drupal development, PHP coding standards, and web development workflows.

Overview

This repository contains Cursor AI rules (.mdc files) that help enforce coding standards, best practices, and provide intelligent code suggestions for Drupal and PHP development.

Files Structure

Core Rules

  • rules/drupal-general-guidelines.mdc - General Drupal development guidelines and best practices
  • rules/drupal-cursor-rules.mdc - Technical Drupal development rules and standards
  • rules/php-drupal-standards-consolidated.mdc - Comprehensive PHP and Drupal coding standards

Specialized Rules

  • rules/accessibility-standards.mdc - Web accessibility standards
  • rules/api-standards.mdc - API development standards
  • rules/docker-compose-standards.mdc - Docker Compose best practices
  • rules/php-drupal-best-practices.mdc - PHP Drupal development best practices
  • rules/php-drupal-development-standards.mdc - PHP Drupal development standards
  • rules/php-memory-optimisation.mdc - PHP memory optimization techniques

Security Rules

  • rules/drupal-authentication-failures.mdc - Drupal authentication security
  • rules/drupal-broken-access-control.mdc - Access control security
  • rules/drupal-injection.mdc - Injection attack prevention
  • rules/drupal-logging-failures.mdc - Security logging practices
  • rules/drupal-ssrf.mdc - Server-side request forgery prevention

Usage

These rules are designed to work with Cursor AI to provide intelligent code suggestions, enforce coding standards, and ensure best practices are followed in Drupal development projects.

Features

  • PHP 8.1+ Support: Modern PHP features and standards
  • Drupal 9.4+ Compatibility: Current Drupal development practices
  • Security First: Built-in security best practices
  • Performance Optimization: Performance-focused coding standards
  • Accessibility: WCAG compliance guidelines
  • Code Quality: Comprehensive linting and formatting rules

Contributing

Feel free to submit issues and enhancement requests!

License

This project is open source and available under the MIT License.

About

Comprehensive Cursor AI rules for Drupal development, PHP coding standards, and web development best practices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published