Use when writing, reviewing, or configuring RSpec tests in Ruby on Rails — must execute the spec via bundle exec rspec and capture the actual test output (failure message or stack trace) rather than describing expected behavior, prefer behavioral confidence over implementation coupling, pick the smallest spec type exercising the behavior (model > service > request > system), mirror the file paths of the source, use # frozen_string_literal: true, define subject(:result) for service specs, and consult assets/tdd_proof_checklist.md when the task involves new behavior. Use when adding test coverage, refactoring specs, or practicing TDD. Trigger words: write spec, rspec, test-driven development, testing, write tests.
$npx -y skills add igmarin/rails-agent-skills --skill write-testsInstalls into the current project.
Run `npx skills use "https://github.com/igmarin/rails-agent-skills" --skill "igmarin/rails-agent-skills/write-tests"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/igmarin/rails-agent-skills" that are relevant to the current task. Run `npx skills add "https://github.com/igmarin/rails-agent-skills"` and select the relevant skills, then follow their instructions.