drupal-standards — community drupal-standards, drupaldev-claude-skill, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Web Development Agents needing adherence to Drupal coding standards. SKILL Claude for Drupal development

nonzod nonzod
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The drupal-standards skill by nonzod is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Web Development Agents needing adherence to Drupal coding standards.

Core Value

Empowers agents to enforce version-independent Drupal coding standards, utilizing US English spelling and following the Boy Scout Rule for improved code quality, while ensuring compliance with PHP development standards for .php files, modules, services, and plugins.

Capabilities Granted for drupal-standards

Enforcing Drupal coding standards for PHP development
Validating code quality based on version-independent standards
Improving code readability with US English spelling in comments and names

! Prerequisites & Limits

  • Requires understanding of Drupal development context
  • Applies only to new code, with existing code requiring manual updates
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

drupal-standards

Install drupal-standards, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Drupal Coding Standards

Apply Drupal coding standards based on the development context.

Core Principles

From coding_standards/index.md:

  • All code must follow Drupal coding standards (version-independent)
  • Use US English spelling in all comments and names
  • Standards are "always-current" and apply to all new code
  • Follow Boy Scout Rule: leave code better than you found it

Context Detection & Standard Loading

PHP Development (.php files, modules, services, plugins)

When working with PHP code, ALWAYS read these standards FIRST:

  1. Core Standards: Read coding_standards/php/coding.md
  2. Documentation: Read coding_standards/php/documentation.md
  3. Namespaces: Read coding_standards/php/namespaces.md
  4. PSR-4: Read coding_standards/php/psr4.md

Additionally, based on specific needs:

  • Creating services → Read coding_standards/php/naming-services.md
  • Exception handling → Read coding_standards/php/exceptions.md
  • Using placeholders → Read coding_standards/php/placeholders-delimiters.md
  • Error handling → Read coding_standards/php/e_all.md
  • Documentation examples → Read coding_standards/php/documentation-examples.md

JavaScript Development (.js files)

ALWAYS read these standards FIRST:

  1. Core Standards: Read coding_standards/javascript/coding.md
  2. Documentation: Read coding_standards/javascript/documentation.md
  3. Best Practices: Read coding_standards/javascript/best-practice.md
  4. ESLint Config: Read coding_standards/javascript/eslint.md

If using jQuery:

  • Read coding_standards/javascript/jquery.md

CSS Development (.css, .scss files, styling)

ALWAYS read these standards FIRST:

  1. Core Standards: Read coding_standards/css/coding.md
  2. Formatting: Read coding_standards/css/format.md
  3. File Organization: Read coding_standards/css/file-organization.md
  4. Architecture: Read coding_standards/css/architecture.md

For tool configuration:

  • Read coding_standards/css/csscomb.md
  • Read coding_standards/css/review.md

SQL Queries (database operations)

ALWAYS read these standards FIRST:

  1. Conventions: Read coding_standards/sql/conventions.md
  2. Keywords: Read coding_standards/sql/keywords.md
  3. SELECT Queries: Read coding_standards/sql/select-from.md

Twig Templates (.twig files)

ALWAYS read these standards:

  1. Twig Standards: Read coding_standards/twig/coding.md
  2. Markup Standards: Read coding_standards/markup/style.md

YAML Configuration (.yml, .yaml files)

ALWAYS read:

  • Read coding_standards/yaml/configuration-files.md

Composer Packages (composer.json)

ALWAYS read:

  • Read coding_standards/composer/package-name.md

Accessibility (forms, UI components, interactive elements)

ALWAYS read:

  • Read coding_standards/accessibility/accessibility.md

Spelling & General

ALWAYS apply:

  • Read coding_standards/spelling/spelling.md (US English required)

Workflow

1. User requests development task
   ↓
2. Identify file types/context (PHP, JS, CSS, SQL, etc.)
   ↓
3. Read ALL relevant standard files from coding_standards/
   ↓
4. Apply standards while writing code
   ↓
5. Validate code against standards
   ↓
6. Complete task with compliant code

Multi-Context Tasks

For tasks involving multiple file types, load ALL relevant standards:

Example: Creating a custom module

  • PHP standards (module code)
  • JavaScript standards (if includes JS)
  • CSS standards (if includes styling)
  • Twig standards (if includes templates)
  • YAML standards (for .info.yml and config files)
  • Accessibility standards (if includes UI)

Application Rules

  1. Read First, Write Second: Always read relevant standards before generating code
  2. No Assumptions: Never assume standards—always verify from files
  3. Exact Compliance: Follow standards exactly as written
  4. US English Only: All comments, variable names, and documentation
  5. Complete Coverage: If working with multiple file types, apply all relevant standards
  6. Validation: Before completing, verify code against loaded standards

Examples

Example 1: Creating a PHP Service

User: "Create a service to handle user notifications"

Actions:
1. Identify: PHP service development
2. Read standards:
   - coding_standards/php/coding.md
   - coding_standards/php/documentation.md
   - coding_standards/php/namespaces.md
   - coding_standards/php/naming-services.md
3. Generate code following all standards
4. Include proper docblocks, namespaces, service naming

Example 2: Writing Database Query

User: "Write a query to get active users with roles"

Actions:
1. Identify: SQL query
2. Read standards:
   - coding_standards/sql/conventions.md
   - coding_standards/sql/keywords.md
   - coding_standards/sql/select-from.md
3. Write query with proper keyword capitalization and formatting

Example 3: Building an Accessible Form

User: "Create a contact form with validation"

Actions:
1. Identify: Multi-context (PHP form API, JavaScript validation, accessibility)
2. Read standards:
   - coding_standards/php/coding.md
   - coding_standards/php/documentation.md
   - coding_standards/javascript/coding.md
   - coding_standards/markup/style.md
   - coding_standards/accessibility/accessibility.md
3. Build form with all standards applied
4. Ensure full accessibility compliance

Critical Reminders

  • Never skip reading standards - always load them before coding
  • Standards override preferences - follow Drupal standards exactly
  • When uncertain - read additional related standard files
  • Multi-file tasks - load standards for ALL file types involved
  • US English spelling - non-negotiable requirement

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is drupal-standards?

Perfect for Web Development Agents needing adherence to Drupal coding standards. SKILL Claude for Drupal development

How do I install drupal-standards?

Run the command: npx killer-skills add nonzod/drupaldev-claude-skill/drupal-standards. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for drupal-standards?

Key use cases include: Enforcing Drupal coding standards for PHP development, Validating code quality based on version-independent standards, Improving code readability with US English spelling in comments and names.

Which IDEs are compatible with drupal-standards?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for drupal-standards?

Requires understanding of Drupal development context. Applies only to new code, with existing code requiring manual updates.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add nonzod/drupaldev-claude-skill/drupal-standards. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use drupal-standards immediately in the current project.

Related Skills

Looking for an alternative to drupal-standards or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI