AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Handle Infinite Scroll

skill-bettyguo-browser-skills-handle-infinite-scroll · by bettyguo

Scrolls a page to load additional content via infinite-scroll, with stop conditions (no-more-content, max iterations, or target selector visible). Used for feeds, lists, and search results that lazy-load.

No reviews yet
0 installs
25 views
0.0% view→install

Install

$ agentstack add skill-bettyguo-browser-skills-handle-infinite-scroll

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-bettyguo-browser-skills-handle-infinite-scroll)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Handle Infinite Scroll? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Handle Infinite Scroll

When to invoke

When the page extends its content as the user scrolls down (Twitter/X feeds, Reddit posts, Instagram search, news homepages, search-result feeds). The matcher cannot easily detect infinite-scroll a priori — it's a runtime behavior, not a DOM marker. So this skill is typically invoked when:

  • The user task explicitly mentions "scroll to load more" / "all posts" / "everything available"
  • A previous extract_* skill returned fewer rows than the user expected
  • The page has Load more (visual cue) — though "load more" buttons are a different skill, pagination-next-page

Recipe

  1. waitfordom_ready timeout=3s
  2. scrolluntil condition="nomorecontent" maxiters=20 delay=400ms
  3. wait extra=500ms

Success criteria

  • assert scrolledatleast_once

There's no strict "succeeded" semantic here — if max_iters was hit, the skill returns success and the caller decides if it has enough rows. The trace records the actual iteration count and final page height.

Configurable knobs

The recipe above is the default. Authors can override via the agent invoking with vars:

  • vars.max_scroll_iters → overrides max_iters (cap: 100)
  • vars.target_selector → switches condition to selector_present: (stops when the named selector becomes visible)

When NOT to use

  • The page paginates instead of scrolling — use pagination-next-page.
  • The "infinite" scroll is actually a "load more" button — use pagination-next-page (the button-click variant).
  • Virtualized lists where scrolling DESTROYS earlier rows from the DOM (some React virtualization). The extractor must be invoked during the scroll loop, not after — a future composite skill infinite-scroll-and-extract will handle this.

Known failures

  • Virtualized lists (~15% of modern feeds): offscreen rows are unmounted; by the time scroll_until stops, only the last viewport's rows are in the DOM. Workaround: invoke extract_* skill at each iteration (manual composition).
  • JS-heavy sites that pause loading on tab-blur: if the test runs in a headless context that the site sniffs as "not visible," loading never triggers. Use --headed mode for these.
  • Sites with anti-scroll-bot detection: some sites detect "too fast" scrolling and stop serving content. delay=400ms is calibrated for "human-like"; lower values trigger blocks.
  • Sites that load content based on screen size: running with a tiny viewport produces fewer rows per scroll. Default viewport in start_browser is 1280×800 — keep that for benchmark consistency.

Example usage

Agent task: "Show me all posts on this Reddit page."
→ invoke_skill("verify-page-loaded") → success
→ invoke_skill("handle-infinite-scroll") → success, scrolled 12 times
→ invoke_skill("extract-list-pagination") → all rows captured

Related skills

  • pagination-next-page — for paginated alternatives to infinite scroll
  • verify-page-loaded — run first; need a stable initial state
  • extract-table-pagination / extract-list-pagination — typically chained after scrolling

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.