rspec-agent

Generate and update RSpec tests for Ruby on Rails applications.

Updated Feb 8, 2026
One-click install
npx skills add https://github.com/mlbright/notes --skill rspec-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rspec-agent
Source: https://github.com/mlbright/notes/tree/main/.github/skills/rspec-agent
Command: npx skills add https://github.com/mlbright/notes --skill rspec-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation and updating of RSpec tests for Rails applications, ensuring robust test coverage and adherence to best practices.

Core Features & Use Cases

  • Automated Test Generation: Writes RSpec tests for models, controllers, services, and components.
  • Test Maintenance: Updates existing tests to reflect code changes.
  • Use Case: When you've just added a new feature to your Rails app, use this Skill to automatically generate the necessary RSpec tests to cover the new functionality, saving you significant development time.

Quick Start

Use the rspec-agent skill to write tests for the app/models/user.rb file.

Frequently Asked Questions about rspec-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate RSpec tests for a Ruby on Rails application?

This tool generates RSpec tests for Rails models, controllers, services, and view components. It analyzes your Ruby files and outputs maintainable test suites covering the new functionality.

Can I update existing RSpec tests to reflect code changes in my Rails app?

Yes, you can update existing RSpec tests to reflect code changes in your Rails app. The tool analyzes modified components and rewrites the corresponding test files to maintain accurate coverage.

Does RSpec test generation work with FactoryBot and Capybara conventions?

Yes, RSpec test generation works with FactoryBot and Capybara conventions. The generated tests strictly adhere to these standard Rails testing libraries to ensure comprehensive and readable test suites.

How do I write comprehensive RSpec tests for Rails 8.1 and Ruby 3.3 environments?

To write comprehensive RSpec tests for Rails 8.1 and Ruby 3.3 environments, provide your application file paths. The tool generates maintainable test code specifically tailored to this modern Ruby stack.

What's the best way to get test coverage for Rails services and view components?

The best way to get test coverage for Rails services and view components is through automated RSpec generation. The tool writes maintainable tests targeting these specific component types alongside models and controllers.

Why should I use automated test generation instead of writing RSpec tests manually?

You should use automated test generation to save significant development time when adding Rails features. It ensures robust test coverage and adherence to FactoryBot and Capybara best practices without manual effort.