ror-better-specs
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Better Specs (Rails/RSpec)
Use this skill to apply Better Specs guidance to Rails spec writing and reviews.
Workflow (use on every request)
- Identify spec type and scope: model, request, feature/system, job, mailer, service, lib.
- Load only the rule files that match the question.
- Apply guidance in this order: structure → naming → setup → expectations → speed.
- Provide fixes as concrete edits or short examples (do/don’t).
- When refactoring, preserve intent and minimize setup bloat.
Spec-type guidance (default expectations)
- Model/unit specs: prefer
describe '#method'or'.method', lean setup, single expectations. - Request/feature specs: allow multiple expectations per example if setup dominates.
- Controller specs: keep minimal; prefer request/feature specs for behavior.