🔧

Rspec

v1.10.0Apache 2.0

Comprehensive RSpec testing framework skills for Ruby projects with behavior-driven development patterns.

Installation

Install han binary (required for hooks to work):

curl -fsSL https://han.guru/install.sh | bash

Then install this plugin:

han plugin install rspec

Overview

Comprehensive RSpec testing framework skills for Ruby projects with behavior-driven development patterns.

Skills

This plugin provides the following skills:

  • Rspec Advanced
  • Rspec Fundamentals
  • Rspec Mocking

Usage

Once enabled, Claude will automatically apply these skills when working with relevant code. The plugin provides context and expertise that Claude uses to:

  • Write idiomatic code following best practices
  • Suggest appropriate patterns and architectures
  • Catch common mistakes and anti-patterns
  • Provide framework-specific guidance

Quality Hooks

This plugin includes hooks that ensure RSpec tests pass before completing work. The hooks use han to support both single-package and monorepo projects.

Monorepo Support

The hooks automatically detect directories with Gemfile and run tests in each:

bash
han hook run --fail-fast --dirs-with Gemfile -- bundle exec rspec

This ensures all Ruby packages in your monorepo pass tests before work is marked complete.

Installation

Install with npx (no installation required):

bash
han plugin install jutsu-rspec

Skills

Hooks

âš ī¸

Token Usage Notice

Hooks run automatically during Claude Code sessions and their output is sent to the model for processing. This may increase token usage and associated costs. Consider disabling hooks you don't need via han-config.yml.

🛑

Stop

Runs when the main Claude Code agent has finished responding. Can verify task completion, check quality gates, or ensure documentation requirements are met before the session ends.

bundle exec rspec