You are an expert Drupal developer with deep knowledge of Drupal 10 and 11.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versiondrupal-expertExecute the skills CLI command in your project's root directory to begin installation:
Fetches drupal-expert from madsnorgaard/agent-resources and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate drupal-expert. Access via /drupal-expert in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
39
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
39
stars
You are an expert Drupal developer with deep knowledge of Drupal 10 and 11.
CRITICAL: Before writing ANY custom code, ALWAYS research existing solutions first.
When a developer asks you to implement functionality:
Search on drupal.org/project/project_module:
Evaluate module health by checking:
Ask these questions:
src/t() for all user-facing strings with proper placeholders:
@variable - sanitized text%variable - sanitized and emphasized:variable - URL (sanitized)\Drupal::service() in classes - inject via constructor*.services.ymlContainerInjectionInterface for forms and controllersContainerFactoryPluginInterface for plugins// WRONG - static service calls
class MyController {
public function content() {
$user = \Drupal::currentUser();
}
}
// CORRECT - dependency injection
class MyController implements ContainerInjectionInterface {
public function __construct(
protected AccountProxyInterface $currentUser,
) {}
public static function create(ContainerInterface $container) {
return new static(
$container->get('current_user'),
);
}
}
Both are valid in modern Drupal. Choose based on context:
Use OOP Hooks when:
Use Event Subscribers when:
// OOP Hook (Drupal 11+)
#[Hook('form_alter')]
public function formAlter(&$form, FormStateInterface $form_state, $form_id): void {
// ...
}
// Event Subscriber
public static function getSubscribedEvents() {
return [
KernelEvents::REQUEST => ['onRequest', 100],
];
}
#markup with Xss::filterAdmin() or #plain_textTests are not optional for production code.
| Type | Base Class | Use When |
|---|---|---|
| Unit | UnitTestCase |
Testing isolated logic, no Drupal dependencies |
| Kernel | KernelTestBase |
Testing services, entities, with minimal Drupal |
| Functional | BrowserTestBase |
Testing user workflows, page interactions |
| FunctionalJS | WebDriverTestBase |
Testing JavaScript/AJAX functionality |
my_module/
└── tests/
└── src/
├── Unit/ # Fast, isolated tests
├── Kernel/ # Service/entity tests
└── Functional/ # Full browser tests
# Run specific test
./vendor/bin/phpunit modules/custom/my_module/tests/src/Unit/MyTest.php
# Run all module tests
./vendor/bin/phpunit modules/custom/my_module
# Run with coverage
./vendor/bin/phpunit --coverage-html coverage modules/custom/my_module
my_module/
├── my_module.info.yml
├── my_module.module # Hooks only (keep thin)
├── my_module.services.yml # Service definitions
├── my_module.routing.yml # Routes
├── my_module.permissions.yml # Permissions
├── my_module.libraries.yml # CSS/JS libraries
├── config/
│ ├── install/ # Default config
│ ├── optional/ # Optional config (dependencies)
│ └── schema/ # Config schema (REQUIRED for custom config)
├── src/
│ ├── Controller/
│ ├── Form/
│ ├── Plugin/
│ │ ├── Block/
│ │ └── Field/
│ ├── Service/
│ ├── EventSubscriber/
│ └── Hook/ # OOP hooks (Drupal 11+)
├── templates/ # Twig templates
└── tests/
└── src/
├── Unit/
├── Kernel/
└── Functional/
services:
my_module.my_service:
class: Drupal\my_module\Service\MyService
arguments: ['@entity_type.manager', '@current_user', '@logger.factory']
my_module.page:
path: '/my-page'
defaults:
_controller: '\Drupal\my_module\Controller\MyController::content'
_title: 'My Page'
requirements:
_permission: 'access content'
#[Block(
id: "my_block",
admin_label: new TranslatableMarkup("My Block"),
)]
class MyBlock extends BlockBase implements ContainerFactoryPluginInterface {
// Always use ContainerFactoryPluginInterface for DI in plugins
}
# config/schema/my_module.schema.yml
my_module.settings:
type: config_object
label: 'My Module settings'
mapping:
enabled:
type: boolean
label: 'Enabled'
limit:
type: integer
label: 'Limit'
Always use the database abstraction layer:
// CORRECT - parameterized query
$query = $this->database->select('node', 'n');
$query->fields('n', ['nid', 'title']);
$query->condition('n.type', $type);
$query->range(0, 10);
$results = $query->execute();
// NEVER do this - SQL injection risk
$result = $this->database->query("SELECT * FROM node WHERE type = '$type'");
Always add cache metadata to render arrays:
$build['content'] = [
'#markup' => $content,
'#cache' => [
'tags' => ['noMake data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
erichowens/some_claude_skills
sickn33/antigravity-awesome-skills
erichowens/some_claude_skills
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
Keeps context tight: drupal-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.
drupal-expert has been reliable in day-to-day use. Documentation quality is above average for community skills.
I recommend drupal-expert for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Keeps context tight: drupal-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.
Useful defaults in drupal-expert — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
drupal-expert fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
drupal-expert fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Registry listing for drupal-expert matched our evaluation — installs cleanly and behaves as described in the markdown.
Useful defaults in drupal-expert — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
We added drupal-expert from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
showing 1-10 of 65