A provider-agnostic AI skill that enforces Test-Driven Development for Drupal module development. Works with Cursor, Claude Code, Cline, Copilot, and any AI assistant that supports custom instructions or skills.
A single SKILL.md file that gives any AI agent expertise in:
- TDD cycle — Red-Green-Refactor with hard rules that prevent production code without a failing test
- Test type selection — When to use Unit vs Kernel vs Functional vs Behat
- Drupal mocking patterns — Services, entities, config, logger, HTTP client
- Quality gates — Coverage thresholds, complexity limits, pre-commit checklist
Copy SKILL.md into your project's skills directory:
mkdir -p .kiro/skills/drupal-tdd
cp SKILL.md .kiro/skills/drupal-tdd/SKILL.mdAdd the contents of SKILL.md to your .cursorrules file or project rules.
Add SKILL.md as a project-level instruction file (CLAUDE.md or equivalent).
Add the contents to your .clinerules or system prompt configuration.
The skill is plain Markdown. Paste it into your tool's custom instructions, system prompt, or rules file.
Once installed, trigger the skill by mentioning:
"write a test for", "add tests to", "TDD", "test this service", "unit test", "kernel test", "mock this", "test coverage"
The agent will follow the TDD cycle, choose the correct Drupal test type, apply proper mocking patterns, and enforce quality gates.
- kiro-power-drupal-tdd — Kiro IDE Power version with dynamic context loading
MIT