Garry Tan/setup-browser-cookies — Agent Skills | officialskills.sh
Back to skills

setup-browser-cookies

communityworkflows

Imports cookies from an installed Chromium browser into a headless Playwright session.

Setup & Installation

npx skills add https://github.com/garrytan/gstack --skill setup-browser-cookies
or paste the link and ask your coding assistant to install it
https://github.com/garrytan/gstack/tree/main/setup-browser-cookies
View on GitHub

What This Skill Does

Imports cookies from an installed Chromium browser into a headless Playwright session. Opens a browser-based picker UI where you select which domains to import. Useful before QA testing pages that require authentication.

Instead of manually extracting cookies from DevTools and pasting them into scripts, this handles browser detection, Keychain decryption, and session loading in one step.

When to use it

  • Importing GitHub session cookies before testing a private repo workflow
  • Loading Stripe dashboard cookies to QA a billing page without re-logging in
  • Pulling in auth cookies for a staging environment that uses SSO
  • Importing session tokens for a site with CAPTCHA-protected login
  • Transferring cookies from a specific domain when running automated scraping against a logged-in account