CtrlK
BlogDocsLog inGet started
Tessl Logo

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.

96

1.08x
Quality

93%

Does it follow best practices?

Impact

100%

1.08x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

100%

9%

Product Catalog API: Browsable Endpoint

Offset pagination response format

Criteria
Without context
With context

Max limit enforced

100%

100%

Default limit set

100%

100%

Data key in response

100%

100%

Pagination metadata block

70%

100%

Correct totalPages formula

100%

100%

HATEOAS links block

90%

100%

Concurrent data and count fetch

100%

100%

Correct offset calculation

100%

100%

No unlimited page size

100%

100%

Index sorting field noted

37%

100%

Query param parsing

100%

100%

100%

8%

Social Feed: Infinite Scroll API Endpoint

Cursor pagination with base64 encoding

Criteria
Without context
With context

Base64 cursor encoding

100%

100%

Base64 cursor decoding

100%

100%

Limit+1 fetch trick

100%

100%

Extra item removed before response

100%

100%

Null nextCursor at end

100%

100%

No COUNT query

100%

100%

Data key in response

0%

100%

nextCursor in response

100%

100%

No page size cap omission

100%

100%

Empty cursor handled

100%

100%

100%

5%

Pagination Architecture Review

Pagination strategy selection

Criteria
Without context
With context

Cursor for large dataset

100%

100%

Offset for small dataset

100%

100%

O(1) performance noted

62%

100%

Avoid COUNT queries

100%

100%

Index recommendation

100%

100%

Cursor for infinite scroll

100%

100%

Max limit guidance

100%

100%

Strategy comparison table/structure

100%

100%

Implementation example provided

100%

100%

Response format described

100%

100%

Keyset distinguished from cursor

75%

100%

Repository
secondsky/claude-skills
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.