Agent skill · software engineering · secondsky
api-filtering-sorting
Builds flexible API filtering and sorting systems with query parameter parsing, validation, and security. Use when implementing search endpoints, building data grids, or creating dynamic query APIs.
Why this skill is useful
Provides specific implementation patterns for API filtering and sorting that are not commonly found in public documentation.
What it needs
About 1k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
API Filtering & Sorting Build flexible filtering and sorting systems that handle complex queries efficiently. Query Parameter Syntax Implementation (Node.js) Filter Operators Operator Meaning Example ---------- --------- --------- eq Equals ?status=active ne Not equals ?status[ne]=deleted gt/gte Greater than ?price[gte]=100 lt/lte Less than ?price[lte]=500 in In array ?status[in]=active,pending like Contains ?name[like]=phone Security Whitelist allowed filter fields Validate input types per field Index frequently-filtered columns Limit query complexity Prevent SQL/NoSQL injection Best Practices Support common operators Cache filter option lists Monitor query performance Provide sensible defaults
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/api-filtering-sorting