Skill Wiki v0.1.0
principle @community/principle-pagination-first

Pagination First

List endpoints (GET /collection) MUST return paginated responses with: (1) a default page size (commonly 20–50, never unbounded); (2) a maximum page size enforced server-side (e.g.…

Skill
@community
Domain
api-design
Version
1.0.0
Quality
4.0
Edges
6 out · 10 in
Tokens
220/471/744
$ prime install @community/principle-pagination-first

Projection

Always in _index.xml · the agent never has to ask for this.

PaginationFirst [principle] v1.0.0

Every list endpoint must paginate from day one. Adding pagination to an unbounded endpoint after launch is a breaking change that requires every client to update; defaulting to a hard cap (e.g. 50 items) future-proofs the API at zero cost on day one.

List endpoints (GET /collection) MUST return paginated responses with: (1) a default page size (commonly 20–50, never unbounded); (2) a maximum page size enforced server-side (e.g. 100); (3) explicit pagination metadata in the response body (cursor or next/prev links); (4) links following RFC 5988 Web Linking conventions OR the JSON:API pagination object. Clients that pass ?page_size=10000 get 100 (capped) and a next cursor. The contract is established before any list endpoint ships; retrofitting pagination requires a new version (v2) and a migration window.

Source

prime-system/examples/frontend-design/primes/compiled/@community/principle-pagination-first/atom.yaml

Compiled at 2026-05-07