CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

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.

66

Quality

83%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

75%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is an efficient, actionable reference: a decision table, two executable implementations, a concrete response format, and specific best practices. Main gaps are the missing keyset code example (the strategy it recommends for large datasets) and mild redundancy between the offset example and the response-format section.

Suggestions

Add a keyset pagination code example — the table recommends it for large datasets but it is the only strategy with no implementation.

Fold the 'Response Format' section into the offset example (or trim it to just the links object) to remove the duplicated pagination metadata.

Add a brief verification note for keyset (e.g., ensure an index exists on the sort column) to strengthen the workflow's checkpoints.

DimensionReasoningScore

Conciseness

The body is lean — a compact strategy table, terse executable code, and a five-line best-practices list with no explanation of concepts Claude already knows. Minor trimmable redundancy remains: the 'Response Format' JSON repeats the pagination object already shown in the offset example, and the opening line restates the description.

4 / 5

Actionability

Two complete, copy-paste-ready Express/Mongoose handlers (offset with parallel count, cursor with base64 _id and limit+1 hasMore detection) plus specific limits ('Math.min(..., 100)'). Keyset pagination — recommended in the table for large datasets — has no code example, leaving a concrete gap.

4 / 5

Workflow Clarity

The strategy-selection table plus full implementations give clear, unambiguous guidance for a single-purpose read-only skill, so the batch/destructive validation cap does not apply. It stops short of a 5 because there is no explicit decision sequence or verification step (e.g., 'confirm an index exists on the sort field before using keyset').

4 / 5

Progressive Disclosure

A well-organized self-contained file with clear section headers, a comparison table, and no external references; at roughly 87 lines it slightly exceeds the under-50-line simple-skill case, and keyset/advanced detail could arguably live in a reference file. Structure is good with only minor organization gaps.

4 / 5

Total

16

/

20

Passed

Description

83%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: third person, concrete strategy names, and an explicit 'Use when...' clause with natural trigger phrases covering the main use cases. It falls just short of top marks on trigger synonym coverage and has slight overlap risk via the database-optimization trigger.

Suggestions

Add natural synonyms to the trigger clause, e.g. 'paging', 'page through results', or 'next/previous page links', so users phrasing the need differently still match.

Tighten the 'optimizing database queries for collections' trigger to something pagination-specific (e.g. 'optimizing paginated collection queries') to reduce overlap with generic database-optimization skills.

DimensionReasoningScore

Specificity

Uses third person ('Implements efficient API pagination') and names three concrete strategies ('offset, cursor, and keyset') plus the target context ('large datasets'). It lists several specific capabilities but stays short of comprehensive coverage, matching the anchor for several specific actions with minor gaps rather than the top anchor's exhaustive action list.

4 / 5

Completeness

Explicitly answers both parts: what ('Implements efficient API pagination using offset, cursor, and keyset strategies for large datasets') and when ('Use when building paginated endpoints, implementing infinite scroll, or optimizing database queries for collections') with concrete trigger phrases, matching the top anchor.

5 / 5

Trigger Term Quality

Includes natural phrases users would say — 'paginated endpoints', 'infinite scroll', 'optimizing database queries' — alongside 'pagination' itself. Common synonyms and variations such as 'paging', 'page through results', or 'next/prev links' are missing, so it fits good-but-not-comprehensive keyword coverage.

4 / 5

Distinctiveness Conflict Risk

The pagination niche with named strategies is mostly distinct, but the trigger 'optimizing database queries for collections' is broad and could overlap with generic database-optimization skills — minor overlap risk with closely related skills rather than minimal conflict.

4 / 5

Total

17

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

secondsky/claude-skills

Path

plugins/api-pagination/skills/api-pagination/SKILL.md

Reviewed

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.