rails-query-object

Community

Turn complex queries into reusable query objects.

AuthorThibautBaissac
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Encapsulates complex queries into reusable query objects to simplify testing, readability, and maintenance in Rails apps using a test-driven development approach.

Core Features & Use Cases

  • Encapsulates complex queries into dedicated query objects to improve testability and reusability.
  • Supports multi-tenant contexts by scoping queries to accounts or users.
  • Provides a clear workflow for building, testing, and integrating query objects in controllers or services.

Quick Start

Write a failing spec in spec/queries for your new query object, then implement the class in app/queries, and run the tests to verify GREEN.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rails-query-object
Download link: https://github.com/ThibautBaissac/rails_ai_agents/archive/main.zip#rails-query-object

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.