governing-collection-endpoints

Enforce cursor-based pagination, query parameter conventions, and response envelopes for API collection endpoints.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/musher-dev/bundles --skill governing-collection-endpoints
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: governing-collection-endpoints
Source: https://github.com/musher-dev/bundles/tree/main/api-route-governance/skills/governing-collection-endpoints
Command: npx skills add https://github.com/musher-dev/bundles --skill governing-collection-endpoints

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces consistent standards for API collection endpoints, preventing issues like performance degradation, inconsistent response shapes, and security vulnerabilities.

Core Features & Use Cases

  • Standardized Response Envelope: Ensures all list endpoints return data in a predictable data/meta/links format.
  • Cursor-Based Pagination: Implements efficient and consistent pagination to avoid offset-based performance pitfalls.
  • Filtering and Sorting: Provides clear conventions for query parameters to filter and sort collection data.
  • Use Case: When designing new list endpoints or auditing existing ones, use this Skill to ensure they adhere to best practices for pagination, filtering, and response structure.

Quick Start

Use the governing-collection-endpoints skill to review the pagination strategy of the '/users' endpoint.

Frequently Asked Questions about governing-collection-endpoints

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

FAQPage Schema
Why should API collection endpoints use cursor-based pagination instead of offset pagination?

Cursor-based pagination prevents performance degradation seen in offset pagination when navigating deep into large API collections. It enforces efficient database querying patterns and consistent response envelopes, avoiding unbounded responses and ensuring stable list endpoints.

What is the standard response envelope structure for API list endpoints?

A standard response envelope for API list endpoints uses a predictable data, meta, and links format. Governing collection endpoints enforces this structure to prevent bare arrays, ensure consistent response shapes, and provide clients with reliable pagination and filtering metadata.

How do I standardize filtering and sorting query parameters for API collection endpoints?

To standardize filtering and sorting query parameters for API collection endpoints, establish clear conventions for query parameter names and structures. Governing endpoint design enforces these rules, ensuring consistent data retrieval and preventing security vulnerabilities from inconsistent parameter handling.

What are the common performance and security issues with unbounded API list responses?

Unbounded API list responses cause performance degradation and potential security vulnerabilities by returning bare arrays without limits. Enforcing page size limits and standardized response envelopes mitigates these risks, ensuring robust and predictable API collection endpoint behavior.

How do I audit existing API endpoints for pagination and response structure compliance?

To audit existing API endpoints for pagination and response structure compliance, review their adherence to cursor-based pagination, page size limits, and data/meta/links response envelopes. This process identifies inconsistent structures, bare arrays, and offset-based pagination performance pitfalls.

Does governing API collection endpoints require specific SQL patterns for implementation?

Governing API collection endpoints requires adherence to specific SQL patterns to implement cursor-based pagination and filtering efficiently. These patterns ensure database queries avoid offset performance pitfalls and support robust, standardized query parameter conventions.