ensi-query-builder

Generate query builders for Eloquent models with sorting, filtering, and relation inclusion.

1|2|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/ensi-platform/skills --skill ensi-query-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ensi-query-builder
Source: https://github.com/ensi-platform/skills/tree/main/skills/ensi-query-builder
Command: npx skills add https://github.com/ensi-platform/skills --skill ensi-query-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires spatie/laravel-query-builder, ensi/laravel-query-builder-helpers, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of creating and managing query builders in Ensi services, enhancing the efficiency and scalability of API endpoints.

Core Features & Use Cases

  • Efficient Query Builders: Generate query builders for Eloquent models with defined sorting, filtering, and inclusion capabilities.
  • Use Case: Imagine you have a complex API endpoint in your Ensi service that requires multiple sorting options, filters, and included relations. Use this Skill to automate the creation of the query builder, reducing manual code and ensuring consistent results.

Quick Start

Create a query builder for the 'Store' model by executing the ensi-query-builder skill.

Frequently Asked Questions about ensi-query-builder

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

FAQPage Schema
How do I build query builders for Eloquent models in Ensi services?

To build query builders for Eloquent models in Ensi services, you use this Skill to automate the generation of query configurations for sorting, filtering, and including related data. It leverages Spatie QueryBuilder and Ensi helpers to streamline the process.

What is the best way to add sorting and filtering to Laravel API endpoints?

The best way to add sorting and filtering to Laravel API endpoints is by generating a customized query builder that defines these parameters upfront. This approach reduces manual code and ensures consistent, scalable query handling for Eloquent models.

Do I need Spatie QueryBuilder to use this query builder generation tool?

Yes, you need Spatie QueryBuilder and the Ensi Query Builder helpers installed in your Laravel application. These dependencies provide the underlying functionality required to build and customize the complex queries for your API endpoints.

Can I include related data relationships when creating an API query builder?

Yes, you can include related data relationships when creating an API query builder. The Skill automates the configuration for including relations, alongside sorting and filtering, to streamline complex Eloquent model queries in Ensi services.

Does this query builder tool work with standard Laravel applications outside of Ensi?

The tool is specifically designed for use in Ensi projects to streamline the creation of API endpoints. While it relies on standard Laravel Eloquent and Spatie packages, its customization and helper dependencies are tailored for the Ensi service environment.