From rkstack
Import cookies from your real Chromium browser into the headless browse session. Supports Chrome, Arc, Brave, Edge, and Chromium. Use before QA testing authenticated pages. Use when asked to "import cookies", "login to the site", or "authenticate the browser".
npx claudepluginhub mrkhachaturov/ccode-personal-plugins --plugin rkstackThis skill is limited to using the following tools:
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly -->
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Writes implementation plans from specs for multi-step tasks, mapping files and breaking into TDD bite-sized steps before coding.
# === RKstack Preamble (setup-browser-cookies) ===
# Read detection cache (written by session-start via rkstack detect)
if [ -f .rkstack/settings.json ]; then
cat .rkstack/settings.json
else
echo "WARNING: .rkstack/settings.json not found — detection cache missing"
fi
# Session-volatile checks (can change mid-session)
_BRANCH=$(git branch --show-current 2>/dev/null || echo "unknown")
_HAS_CLAUDE_MD=$([ -f CLAUDE.md ] && echo "yes" || echo "no")
echo "BRANCH: $_BRANCH"
echo "CLAUDE_MD: $_HAS_CLAUDE_MD"
Use the detection cache and preamble output to adapt your behavior:
detection.flowType (web or default). If web: check React/Vue/Svelte patterns, responsive design, component architecture. If default: CLI tools, MCP servers, backend scripts.just commands instead of raw shell.detection.stack for what's in the project and detection.stats for scale (files, code, complexity).detection.repoMode for solo vs collaborative.detection.services for Supabase and other service integrations.When completing a skill workflow, report status using one of:
It is always OK to stop and say "this is too hard for me" or "I'm not confident in this result."
Bad work is worse than no work. You will not be penalized for escalating.
Escalation format:
STATUS: BLOCKED | NEEDS_CONTEXT
REASON: [1-2 sentences]
ATTEMPTED: [what you tried]
RECOMMENDATION: [what the user should do next]
Import logged-in sessions from your real Chromium browser into the headless browse session.
The browse binary path is injected into session context by the session-start hook.
Look for RKSTACK_BROWSE=<path> at the top of this conversation.
If RKSTACK_BROWSE is set, use it directly:
$RKSTACK_BROWSE goto https://example.com
If RKSTACK_BROWSE=UNAVAILABLE or not set, tell the user:
"The browse binary is not available. Install it with the rkstack release for your platform." and stop.
If the user provided arguments (e.g., /setup-browser-cookies chrome github.com), skip to the direct import step.
If no arguments, proceed to the interactive step.
Use AskUserQuestion:
Re-ground: Setting up browser cookie import for authenticated QA testing.
Simplify: I need to know which browser has your login sessions.
RECOMMENDATION: Choose whichever browser you are logged into.
A) Chrome B) Arc C) Brave D) Edge E) Chromium
After the user picks a browser, use AskUserQuestion:
Re-ground: Importing cookies from [browser].
Simplify: Which domains should I import cookies for? These are the sites you need to be logged into.
RECOMMENDATION: Import the domains your app needs for authenticated testing.
Enter the domains separated by spaces (e.g.,
github.com api.github.com myapp.com).
For each domain the user specified:
$RKSTACK_BROWSE cookie-import-browser <browser> --domain <domain>
Replace <browser> with the lowercase browser name (chrome, arc, brave, edge, chromium).
After importing, verify the cookies are loaded:
$RKSTACK_BROWSE cookies
Show the user a summary of imported cookies (domain counts). Confirm that the expected domains have cookies.
Navigate to one of the imported domains to verify the session works:
$RKSTACK_BROWSE goto https://<domain>
$RKSTACK_BROWSE snapshot -i
If the page shows logged-in content, confirm success. If it shows a login page, the cookies may have expired or the import may have failed -- tell the user and suggest re-logging in to their browser first.
v11 cookies may require secret-tool/libsecret access