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

Dismiss Cookie Banner

skill-bettyguo-browser-skills-dismiss-cookie-banner · by bettyguo

Detects and dismisses cookie consent banners on any site. Use on the first interaction after navigation to any page that may show a banner.

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

Install

$ agentstack add skill-bettyguo-browser-skills-dismiss-cookie-banner

✓ 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-dismiss-cookie-banner)

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 Dismiss Cookie Banner? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Dismiss Cookie Banner

When to invoke

On the first interaction after navigating to a new page, before the agent attempts to interact with content. Especially relevant for sites in EU, UK, California, or Chinese jurisdictions, where banners are near-universal.

The matcher will assign this skill a high score when:

  • is_initial_load = true
  • cookies_present = true and DOM contains a cookie-related marker

Recipe

  1. waitfordom_ready timeout=2s
  2. wait extra=400ms
  3. try_each selectors=[

"#onetrust-accept-btn-handler", "button#onetrust-pc-btn-handler", ".cc-allow", ".cc-accept-all", "button.cookie-accept", "button:has-text('Accept all cookies')", "button:has-text('Accept All Cookies')", "button:has-text('Accept all')", "button:has-text('Accept cookies')", "button:has-text('I Agree')", "button:has-text('Agree and continue')", "button:has-text('Got it')", "[aria-label='Accept' i][aria-label='cookie' i]", "[data-testid*='cookie-banner-accept']", "[data-cookieconsent='accept']", ] action=click on_success=stop timeout=1500ms

  1. wait extra=300ms

Success criteria

  • assert novisibleelement selector="[aria-label*='cookie' i][role='dialog']" OR novisibleelement selector="#onetrust-banner-sdk" OR nochangewas_needed

When NOT to use

  • The user task is about the cookie banner itself — e.g., privacy testing, a screenshot of the pre-consent state, or auditing consent UI.
  • The site has already had its banner dismissed in the persistent context (this skill is idempotent but logs an unnecessary execution).

Known failures

  • Custom CMS banners (~2% of sites): sites running bespoke consent UIs may not match any of the standard selectors. The vision fallback handles these when an adapter is configured; otherwise the skill returns failed and the agent decides.
  • Cross-origin iframe banners (~1%): banners served from a different origin (e.g., embedded consent providers using `) cannot be clicked through Playwright's default context. We report failed with reason="iframecrossorigin"`.
  • "Reject all" intent: this skill always accepts. If your task requires rejecting cookies, use the future reject-cookie-banner skill (post-launch) or override the recipe via the agent.

Example usage

Agent: "Go to bbc.com and tell me the top story."
→ matcher selects [dismiss-cookie-banner, verify-page-loaded, extract-text]
→ invoke_skill("dismiss-cookie-banner") → success in 207ms, deterministic_path=true
→ invoke_skill("verify-page-loaded") → success in 84ms
→ agent reads the top story headline directly

Related skills

  • verify-page-loaded — typically chained immediately after this one
  • dismiss-newsletter-popup — sometimes co-occurs on news sites
  • exit-tracking-popup — for the rare "we use cookies for analytics" upsells that aren't the main consent UI

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.