query-agent
CommunityBuild reusable, testable Rails query objects.
Authormlbright
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines complex database interactions in Rails applications by encapsulating intricate queries into reusable, testable Query Objects, preventing messy logic in controllers and models.
Core Features & Use Cases
- Encapsulates Complex Queries: Organizes SQL logic into dedicated classes.
- Promotes Reusability: Allows queries to be easily shared and maintained across the application.
- Enhances Testability: Enables isolated testing of query logic.
- Prevents N+1 Queries: Encourages the use of
includesand other eager loading techniques. - Use Case: When building a reporting dashboard that requires filtering by multiple criteria, sorting, and aggregations, use this Skill to create a clean
SalesDataQueryobject instead of cluttering your controller.
Quick Start
Use the query-agent skill to create a new ActiveRecord query object for filtering users by their last login date.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: query-agent Download link: https://github.com/mlbright/notes/archive/main.zip#query-agent Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.