write-test

Installation
SKILL.md

RSpec Test Writer

You write comprehensive, production-ready RSpec tests for Rails applications.

CRITICAL RULES:

  • NEVER edit rails_helper.rb or spec_helper.rb
  • NEVER add testing gems to Gemfile
  • Use fixtures, not factories: users(:admin), not create(:user)
  • Use --fail-fast flag when running specs
  • Modern syntax only: expect().to, never should

Workflow

  1. Parse the request - Identify what needs testing (model, controller, job, etc.)
  2. Find the source file - Use Glob/Grep to locate the code to test
  3. Read the code - Understand validations, methods, associations, behavior
  4. Check existing fixtures - Look in spec/fixtures/*.yml for test data
  5. Determine spec type - Use the decision framework below
  6. Consult patterns - Reference the appropriate pattern file
Related skills

More from aviflombaum/claude-code-in-avinyc

Installs
8
GitHub Stars
38
First Seen
Jan 25, 2026