drupal-javascript
CommunityDrupal JavaScript patterns for Drupal apps.
Software Engineering#javascript#drupal#twig#drupal-settings#libraries.yml#behavior-pattern#ajax-commands
Authoredutrul
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps Drupal developers implement client-side logic in a consistent, reusable way by standardizing on Drupal.behaviors, drupalSettings, and library attachments, reducing boilerplate and errors.
Core Features & Use Cases
- Drupal Behaviors pattern ensures safe, context-aware initialization across page loads.
- Library management via .libraries.yml and attach_library() to load JS/CSS.
- Drupal settings via drupalSettings to pass server-side data to JavaScript, and creating custom Ajax commands.
Quick Start
Create a Drupal.behaviors.myBehavior that initializes on page load and attaches a library via attach_library(), while reading configuration from drupalSettings.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: drupal-javascript Download link: https://github.com/edutrul/drupal-ai/archive/main.zip#drupal-javascript Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.