Agent skill

add-cursor-pagination

Add cursor-based pagination for list endpoints with stable ordering (project)

majiayu000github.com/majiayu000GitHub ↗
cursorclaude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill add-cursor-pagination-tassadar2499-novatune-3 --agent cursor

Same command for any agent — swap --agent for claude-code, codex, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 14 KB
Bundled scripts: none
Path: skills/api/add-cursor-pagination-tassadar2499-novatune-3/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Add Cursor-Based Pagination Skill Implement cursor-based pagination for list endpoints in NovaTune, providing stable results during data changes. ## Overview Cursor-based pagination advantages: - **Stable results**: Works correctly when items are added/deleted during navigation - **Efficient queries**: Uses indexed seek instead of offset skip - **Scalable**: Performance doesn't degrade with large offsets ## Steps ### 1. Create Cursor Model Location: `src/NovaTuneApp/NovaTuneApp.ApiService/Models/Pagination/` ```csharp using System.Text; using System.Text.Json; namespace NovaTuneApp.ApiService.Models.Pagination; /// <summary> /// Cursor for stable pagination through sorted results. /// </summary> /// <param name="SortValue">Value of the sort field at cursor position</param> /// <param name="Id">ULID for tie-breaking (provides chronological ordering)</param> /// <param name="Timestamp">When cursor was created (for expiry)</param> public record PaginationCursor( string SortValue, string Id, DateTimeOffset Timestamp) { /// <summary> /// Encodes cursor as base64 URL-safe string. /// </summary> public string Encode() { var json = JsonSerializer.Serialize(this); var bytes = Encoding.UTF

What's inside
Steps it walks through
  1. Overview
  2. Steps
  3. 1. Create Cursor Model
  4. 2. Create Paged Result Model
  5. 3. Create Query Parameters Model
  6. 4. Create Pagination Extension Methods
  7. 5. Implement in Service Layer
  8. 6. Endpoint Implementation
  9. Response Format
  10. Validation Rules
  11. Best Practices
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the add-cursor-pagination skill do?

Add cursor-based pagination for list endpoints with stable ordering (project)

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill add-cursor-pagination-tassadar2499-novatune-3 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going