drupal/surge

There is no license information available for the latest version (1.0.x-dev) of this package.

A simple, focused coding standards system for Drupal development

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Type:composer-plugin

1.0.x-dev 2025-09-04 14:17 UTC

This package is auto-updated.

Last update: 2025-09-04 14:18:01 UTC


README

A simple, focused coding standards system for Drupal development.

Installation

composer require drupal/surge

Automatic Setup ✨

When you install this package, the Surge commands are automatically available through Composer scripts. The package includes a Composer plugin that automatically registers the necessary scripts in your project's composer.json.

Note: You may need to allow the plugin to run by executing:

composer config allow-plugins.drupal/surge true

Usage

After installation, you can use Surge directly:

composer surge-standards
composer surge-scan

Commands

  • composer surge-standards - Interactively helps you apply Drupal coding standards to your preferred IDE/Tool
  • composer surge-scan - Scan project for community-contributed guidelines and merges them in an AGENTS-with-community.md file, this allows users to keep in the loop with what guidelines are generated and copy it to the right place themselves.

AI Agent Support 🤖

AGENTS.md format

Follows the emerging AGENTS.md standard used by 20k+ open-source projects

Creates a single AGENTS.md file that works across the ecosystem:

  • Cursor - Modern AI-powered code editor
  • Claude - Anthropic's AI assistant
  • Codex - OpenAI's code generation model
  • Amp, Jules, Factory, RooCode - And 10+ other modern agents

IDE-Specific Support

Creates IDE-specific files and configurations for tools that need them:

  • Junie (PhpStorm) - .junie/guidelines.md
  • Claude Code - Claude.md
  • Aider - .aider.conf.yml configuration (uses Agents.md, but configures it)
  • Gemini CLI - .gemini/settings.json configuration (uses Agents.md, but configures it)
  • Custom - Outputs guidelines to CLI for copy-paste to unsupported tools

Why Both Approaches?

The AI coding agent ecosystem is rapidly evolving. While the AGENTS.md standard is gaining adoption, many tools haven't implemented it yet and still require their own specific formats.