Agent skill · software engineering · secondsky
api-pagination
Implements efficient API pagination using offset, cursor, and keyset strategies for large datasets. Use when building paginated endpoints, implementing infinite scroll, or optimizing database queries for collections.
Why this skill is useful
Provides specific implementation patterns for efficient API pagination strategies that the AI wouldn't reliably generate on its own.
What it needs
About 1k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.
What this skill does
API Pagination Implement scalable pagination strategies for handling large datasets efficiently. Pagination Strategies Strategy Best For Performance ---------- ---------- ------------- Offset/Limit Small datasets, simple UI O(n) Cursor Infinite scroll, real-time O(1) Keyset Large datasets O(1) Offset Pagination Cursor Pagination Response Format Best Practices Set reasonable max limits (e.g., 100) Use cursor pagination for large datasets Index sorting fields Avoid COUNT queries when possible Never allow unlimited page sizes
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills secondsky/api-pagination