drupal-coding-standards
1
总安装量
1
周安装量
#48343
全站排名
安装命令
npx skills add https://github.com/ronaldtebrake/drupal-coding-standards-skill --skill drupal-coding-standards
Agent 安装分布
mcpjam
1
claude-code
1
windsurf
1
crush
1
cline
1
Skill 文档
Drupal Coding Standards Skill
This skill provides AI agents with the ability to review code according to Drupal’s official coding standards. The standards are maintained by the Drupal community and automatically kept up-to-date via Composer dependency.
When to Use
Activate this skill when:
- Reviewing code in Drupal projects (modules, themes, profiles)
- Checking code for compliance with Drupal coding standards
- Performing code reviews on PHP, JavaScript, CSS, Twig, YAML, or SQL files
- Ensuring code follows Drupal best practices and conventions
How It Works
This skill uses dynamic context discovery to load only the relevant standards based on the file type being reviewed:
- Identify the file type being reviewed (
.php,.js,.css,.twig,.yml, etc.) - Consult the routing table in
standards-index.mdto find the corresponding standard file - Load the specific standard from
assets/standards/[category]/[file].md - Apply the standards to review the code
Review Workflow
- Read
standards-index.mdto determine which standard file applies to the code being reviewed - Load the relevant standard file from
assets/standards/ - Review the code against the standards
- Provide specific, actionable feedback referencing the relevant sections of the standards