LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/LambdaTest/agent-skills --skill rspec-skill
or paste the link and ask your coding assistant to install it
https://github.com/LambdaTest/agent-skills/tree/main/rspec-skill
View on GitHub

What This Skill Does

Generates RSpec test files for Ruby projects, including describe/context/it block structure, matchers, let/before hooks, and mock/stub setups. Triggers when you reference RSpec syntax like expect().to or describe do.

RSpec's matcher API, hook ordering, and mock syntax require constant reference-checking — this skill produces idiomatic test structure without the lookup trips.

When to use it

  • Writing spec files for a new Ruby class from scratch
  • Adding context blocks and edge case coverage to existing specs
  • Setting up mocks and stubs for service objects with dependencies
  • Scaffolding shared examples for models with common validation patterns
  • Converting old should-syntax specs to modern expect style