pagination-next-page
Skill8 starsChanged 7 months agoMITView on GitHub
Navigates to the next page in a paginated listing by clicking a "next" link/button or pressing the typical keyboard shortcut. Pairs with extract-table-pagination for multi-page data collection.
In this repository14 other files it gives its agents.
- date-picker-widgetSkill
- detect-captchaSkill
- dismiss-cookie-bannerSkill
- dismiss-newsletter-popupSkill
- exit-tracking-popupSkill
- extract-table-paginationSkill
- fill-multi-step-formSkill
- handle-infinite-scrollSkill
- handle-modal-dialogSkill
- login-flowSkill
- searchable-dropdownSkill
- search-and-filterSkill
- upload-download-fileSkill
- verify-page-loadedSkill
The file
Files
Pagination Next Page
When to invoke
A listing page exposes pagination (page numbers, prev/next arrows, or a "load more" button). The agent has just extracted page N and wants to advance to N+1.
Recipe
- wait_for_dom_ready timeout=2s
- try_each selectors=[ "a[rel='next']", "[aria-label='Next page']", "[aria-label='Next']", "a.pagination-next", "button.pagination-next", "a:has-text('Next ›')", "a:has-text('Next')", "button:has-text('Load more')", "li.next > a", ".pagination a[aria-label*='next' i]", ] action=click on_success=stop timeout=1500ms
- wait extra=500ms
Success criteria
- assert url_changed_since=step1 OR new_rows_appended
When NOT to use
- Infinite-scroll pages — use
handle-infinite-scroll. - Pages where the "next" link is actually a JS handler that
re-renders the same URL with new content. The success criterion's
new_rows_appendedcheck handles this when paired with extraction.
Known failures
- Sites that hide the "next" link when on the last page: recipe fails benignly; agent interprets as "end reached."
rel='next'link points to a different domain (rare): recipe follows; agent must validate the new URL.- Cursor-based pagination with no visible "next" link: agent must inspect API responses; skill cannot help.
Related skills
extract-table-pagination/extract-list-pagination— chain in a loopverify-page-loaded— after the next page navigates
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

