add-cursor-pagination
Add cursor-based pagination for list endpoints with stable ordering (project)
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Overview
- Steps
- 1. Create Cursor Model
- 2. Create Paged Result Model
- 3. Create Query Parameters Model
- 4. Create Pagination Extension Methods
- 5. Implement in Service Layer
- 6. Endpoint Implementation
- Response Format
- Validation Rules
- Best Practices
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.
