pagination

Generate offset- and cursor-based pagination components with SwiftUI list integrations.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/venomez-viper/PathWise --skill pagination-venomez-viper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pagination
Source: https://github.com/venomez-viper/PathWise/tree/main/.claude/skills/generators/pagination
Command: npx skills add https://github.com/venomez-viper/PathWise --skill pagination-venomez-viper

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pagination boilerplate and scaffolding for building scalable APIs that support both offset-based and cursor-based pagination, enabling consistent data loading patterns across apps.

Core Features & Use Cases

  • Generates core pagination scaffolding: PageRequest, PageResult, PaginatedDataSource, PaginationManager.
  • Supports offset and cursor pagination, with optional search integration and prefetching.
  • Integrates with SwiftUI components like PaginatedList for automatic loading and smooth UX.
  • Use cases include infinite scrolling lists, searchable datasets, and dashboards with large data sets.

Quick Start

Create a data source that conforms to PaginatedDataSource, initialize PaginationManager with it, and bind a SwiftUI PaginatedList to display items.

Frequently Asked Questions about pagination

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement infinite scroll in SwiftUI with paginated API data?

Infinite scroll in SwiftUI is implemented by conforming a data source to PaginatedDataSource and binding a PaginationManager to a PaginatedList component. This automates data loading, state management, and prefetching for smooth scrolling.

What is the difference between offset-based and cursor-based pagination?

Offset-based pagination uses fixed page indices for static datasets, while cursor-based pagination uses data pointers for dynamic, frequently updated records. This infrastructure generates scaffolding for both patterns to ensure consistent data loading across different API designs.

Can I use cursor pagination with searchable datasets in my mobile app?

Yes, cursor pagination supports searchable datasets through the optional SearchablePaginationManager. It integrates search queries directly into the paginated data loading workflow, handling state updates and filtering for mobile and desktop SwiftUI views.

How do I handle pagination state management and error handling in SwiftUI?

Pagination state management and error handling in SwiftUI are managed by the PaginationManager and reusable view adapters. These components automatically track loading states, handle prefetching, and surface error recovery within your infinite scroll lists.

What's the best way to build reusable pagination infrastructure for large datasets?

The best way to build reusable pagination infrastructure is using generated scaffolding like PageRequest, PageResult, and PaginatedDataSource. This eliminates boilerplate and establishes consistent data loading patterns for large datasets across mobile and desktop views.