When to Apply: Reference when writing Ruby acceptance tests with visit/fill_in/click_button DSL, integrating with RSpec, or testing Rails applications end-to-end. Triggers on "Capybara", "Ruby acceptance test", "fill_in", "click_button", "have_content".
Playbook Deep Dive (9 sections): §1 Project Setup & Configuration · §2 Feature Specs — Interaction Patterns · §3 Page Objects with SitePrism · §4 API Testing with Capybara · §5 Database Cleaning & Test Isolation · §6 Matchers & Custom Helpers · §7 CI/CD Integration · §8 Debugging Table · §9 Best Practices
The agent loads from 3 on-demand reference files (advanced-patterns.md, cloud-integration.md, playbook.md) containing detailed implementation guides, cloud integration patterns, debugging tables, and language-specific best practices.