setup-browser-cookies

Import Chromium cookies into a headless Playwright session for authenticated testing.

Updated May 7, 2026
One-click install
npx skills add https://github.com/TumeloRamaphosa/StudEx-Valley-OS --skill setup-browser-cookies-tumeloramaphosa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-browser-cookies
Source: https://github.com/TumeloRamaphosa/StudEx-Valley-OS/tree/main/.claude/skills/gstack/setup-browser-cookies
Command: npx skills add https://github.com/TumeloRamaphosa/StudEx-Valley-OS --skill setup-browser-cookies-tumeloramaphosa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of running authenticated end-to-end browser tests without manually logging in each time. It lets you reuse your existing Chromium login session so QA can immediately reach protected pages in the headless session.

Core Features & Use Cases

  • Interactive cookie domain picker: Choose exactly which cookie domains to import instead of guessing.
  • Authenticated session bootstrap: Import decrypted cookies from your real Chromium browser into the headless Playwright session so authenticated pages work right away.
  • Use for QA and debugging: Useful when asked to import cookies, log into a site, or authenticate a browser session before testing.

Quick Start

Run setup-browser-cookies, open the cookie picker UI, select the domains to import in your browser, then tell the Skill when you are finished.

Frequently Asked Questions about setup-browser-cookies

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

FAQPage Schema
How do I import real browser cookies into Playwright for authenticated testing?

To import real browser cookies for authenticated testing, you can use a Skill that decrypts cookies from your real Chromium browser and loads them directly into your headless Playwright session. This restores your logged-in state so QA can reach protected pages without manual authentication.

Do I need to manually log in each time for automated browser tests on protected pages?

No, you do not need to manually log in each time for automated browser tests. By importing decrypted cookies from an existing authenticated Chromium browser session, you can bootstrap a logged-in state in the headless session and immediately access protected pages.

How does importing cookies from a real Chromium session work for QA automation?

Importing cookies from a real Chromium session works by decrypting the stored browser cookies and injecting them into the Playwright session. An interactive UI lets you select exactly which cookie domains to import, ensuring the headless browser has the correct authenticated state for QA automation.

Can I choose which cookie domains to import when setting up an authenticated browser session?

Yes, you can choose which cookie domains to import when setting up an authenticated browser session. An interactive domain selection UI allows you to pick the exact cookie domains to load into the headless Playwright session, preventing unnecessary cookies from being imported.

Why does cookie import not work when the browser is already connected via CDP mode?

Cookie import stops early when the browser is already connected via CDP mode because the active connection implies a different session management context. The Skill detects this CDP mode and halts the cookie decryption and loading process to avoid conflicts with the existing browser state.

What is the best way to authenticate a headless browser session for end-to-end testing?

The best way to authenticate a headless browser session is to reuse your existing login by importing cookies from your real Chromium browser. This avoids repeated manual logins and allows automated end-to-end testing to immediately access authenticated pages.