
drupal-forms
Form API implementation and best practices for Drupal. Covers form creation, validation, submission handling, security considerations, and form theming in Drupal's Form API.
- GitHub stars
- 35
Install
/plugin install drupal-forms@drupal-best-practicesRun it inside Claude Code after adding the marketplace with /plugin marketplace add theodorosploumis/drupal-best-practices.
Contents
Discovered from sourceSkills 1
Description
Guide Claude to default to Webform for custom forms, reserving core Contact only for simple, single-form cases.
Usage
- Ask for justification when suggesting core Contact instead of Webform.
- Request exportable configuration and access/handler recommendations.
- Have Claude propose spam mitigation and confirmation patterns aligned with Webform.
Guardrails
- Prefer Webform for complex or multiple forms; use core Contact only for simple single forms.
- Keep configuration exportable and avoid content-only forms.
- Document access, handlers, and submission storage expectations.
Validation
Review form choices against project requirements; rerun relevant validators (fields, views) if forms expose entities.
References
- Drupal Best Practices README.
- Webform is the default choice for bespoke forms in Drupal 10+.
Sponsors
Details
- Marketplace
- theodorosploumis/drupal-best-practices
- Source
- ai/skills/forms
- Category
- Community