Agent skill

Site Cookie Login

by bifrost-proxy in bifrost-proxy/bifrost

Open a target website, wait for user login, verify login with required cookies plus an HTTP probe, and save cookies into .env for later automation.

MITAuto-check: notes

Install Site Cookie Login

skills CLI
$ npx skills add bifrost-proxy/bifrost --skill site-cookie-login -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bifrost-proxy/bifrost site-cookie-login --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bifrost-proxy/bifrost.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/site-cookie-login .claude/skills/site-cookie-login && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
site-cookie-login
GitHub stars
160
Token cost
~600 tokens
SKILL.md length
175 words
Files
6 (incl. scripts, references)
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Open a target website, wait for user login, verify login with required cookies plus an HTTP probe, and save cookies into .env for later automation.

  • Works in 3 steps: 安装依赖 → 创建站点配置 → 执行登录
  • SKILL.md covers 适用场景, 核心流程, 快速使用 and 配置文件说明, plus 2 more sections
  • Runs JavaScript scripts from its folder; calls npm and node

What it does

Site Cookie Login is an agent skill from bifrost-proxy/bifrost. Open a target website, wait for user login, verify login with required cookies plus an HTTP probe, and save cookies into .env for later automation. Use this when a site needs controlled browser login, cookie persistence, and automatic login-state checks.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/config.template.json`, `scripts/package-lock.json` and `scripts/package.json`).

The repository describes itself as: Bifrost 是一个用 Rust 编写的高性能、AI 友好的代理服务器,它提供强大的请求拦截、修改和规则配置能力,支持 TLS 解密、脚本扩展等高级功能,支持强大的模糊搜索,支持导入导出分享,支持一键重放请求,支持Coding Agent 自主管理。提供类似 postman 的请求管理和验证能力,无缝和代理能力集成。 The licence is MIT.

Example prompts

  • “/site-cookie-login”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. 安装依赖
  2. 创建站点配置
  3. 执行登录

What it can do on your machine

Read from SKILL.md and the folder at commit e8ed138. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npm
    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Site Cookie Login loads about 600 tokens when it runs, and up to ~753 if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 175 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~68
When it runs · the whole SKILL.md, loaded when a task matches
~600
With references · SKILL.md plus every file in references/, read only if the agent opens them
~753

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:3
    lus an HTTP probe, and save cookies into .env for later automation. Use this when a site needs controlled browser login,
  • NoteMentions a .env fileSKILL.md:39
    ie-login/references/config.template.json .env/<your-site>-login.json
  • NoteMentions a .env fileSKILL.md:45
    kie-login/scripts/site-login.js --config .env/<your-site>-login.json
  • NoteMentions a .env fileSKILL.md:59
    `outputFile` | Cookie 输出文件路径(建议使用相对路径,如 `.env/.cookie.<site>`) |

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from bifrost-proxy/bifrost at commit e8ed138, republished under its MIT licence (© bifrost-proxy). 175 words, ~600 tokens.

Download SKILL.mdSave it as .claude/skills/site-cookie-login/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
site-cookie-login
description
Open a target website, wait for user login, verify login with required cookies plus an HTTP probe, and save cookies into .env for later automation. Use this when a site needs controlled browser login, cookie persistence, and automatic login-state checks.

通用的「浏览器登录 → 抓 Cookie → 校验登录态 → 持久化」能力,可接入任意需要浏览器登录的站点。

适用场景

  • 目标站点不提供 API Token,只能通过浏览器登录获取 Cookie
  • 需要把登录态 Cookie 落盘供后续自动化脚本使用
  • 需要在 Cookie 失效时自动触发重新登录

核心流程

  1. 用可视浏览器(Puppeteer)打开目标站点登录页
  2. 等待用户在浏览器中完成登录(支持手动触发检测)
  3. 从浏览器抓取目标域的全部 Cookie
  4. 检查必需 Cookie 是否存在(requiredCookies)
  5. 用 HTTP 探针请求一个需要鉴权的接口,验证登录态真实可用(verify)
  6. 校验通过后将 Cookie 保存到指定文件

快速使用

1. 安装依赖
bash
cd .trae/skills/site-cookie-login/scripts
npm install
2. 创建站点配置

复制模板并按目标站点修改参数:

bash
cp .trae/skills/site-cookie-login/references/config.template.json .env/<your-site>-login.json
3. 执行登录
bash
node .trae/skills/site-cookie-login/scripts/site-login.js --config .env/<your-site>-login.json

配置文件说明

配置模板位于 references/config.template.json,所有 <placeholder> 需替换为实际值。

基础字段
字段说明
name站点显示名称,用于日志输出
url浏览器打开的登录页 URL
domain目标 Cookie 的域名(用于从浏览器筛选 Cookie)
outputFileCookie 输出文件路径(建议使用相对路径,如 .env/.cookie.<site>)
timeout等待登录的超时时间(毫秒),默认 300000(5 分钟)
字段说明
requiredCookies字符串数组,判定登录成功必须存在的 Cookie 名
mergeCookieFiles可选,额外的 Cookie 文件路径数组,会与浏览器抓取的 Cookie 合并(如 SSO 共享的 Cookie)
验证探针(verify)

用于通过 HTTP 请求验证 Cookie 是否真正有效:

字段说明
url需要鉴权的 API 端点
methodHTTP 方法(GET / POST 等)
headers请求头(Cookie 由脚本自动注入,无需手动填写)
body请求体,留 null 表示无 body
successStatuses视为成功的 HTTP 状态码数组,如 [200]
rejectBodyIncludes响应体中包含任一字符串则判定失败(如 "not login")
successBodyIncludes响应体中需包含任一字符串才判定成功,留空数组表示不检查

验证策略

建议同时启用两层校验以确保可靠性:

  1. Cookie 存在性检查:通过 requiredCookies 确认关键 Cookie 已获取
  2. HTTP 探针验证:通过 verify 发送真实 API 请求确认登录态有效

仅配置 requiredCookies 而不配置 verify 也可以工作,但无法保证 Cookie 未过期。

接入新站点的工作流

  1. 分析目标站点:在浏览器 DevTools 中登录目标站点,观察哪些 Cookie 是登录态的关键标识
  2. 找到鉴权接口:在 Network 面板找一个需要登录才能正常响应的 API,用于做登录态探针
  3. 创建配置文件:基于模板填写站点信息、必需 Cookie、验证接口
  4. 测试登录流程:运行 site-login.js,确认 Cookie 能正常落盘
  5. 集成到业务脚本:让业务脚本读取输出的 Cookie 文件,在鉴权失败时可复用此 skill 重新登录

© bifrost-proxy, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in .agents/skills/site-cookie-login of bifrost-proxy/bifrost.

  • SKILL.md
  • references/config.template.json
  • scripts/package-lock.json
  • scripts/package.json
  • scripts/site-login
  • scripts/site-login.js

Open the folder on GitHubat commit e8ed138

Compare with similar skills

Site Cookie Login next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Site Cookie Login compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Site Cookie Login this skillbifrost-proxy/bifrost160—~600Automated safety check: NotesMIT
Sitesasgeirtj/system_prompts_leaks69k—~1.6kAutomated safety check: PassCC0-1.0
Cookie Consentthedaviddias/Front-End-Checklist74k—~637Automated safety check: PassMIT
Browser Loginruvnet/ruflo74k—~802Automated safety check: NotesMIT
Website Searchthedaviddias/Front-End-Checklist74k—~556Automated safety check: PassMIT
Requirementsrizsotto/Bear6.5k—~2kAutomated safety check: PassGPL-3.0

Similar skills

  • Sites

    asgeirtj/system_prompts_leaks

    A skill your agent uses when creating or updating a website, web app, or browser game, or when a visual layout or interactive tool would help with what the user is doing.

    69k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Cookie Consent

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing a website for GDPR/CCPA compliance, specifically whether cookie consent is obtained before non-essential cookies are set.

    74k GitHub stars~637 tokensUpdated 2 days ago
    Legal & ComplianceAuto-check passed
  • Browser Login

    ruvnet/ruflo

    Drive an authentication flow once, sanitize cookies through AIDefence, and vault a reusable cookie handle in browser-cookies for future sessions

    74k GitHub stars~802 tokensUpdated today
    Backend & APIsAuto-check: notes
  • Website Search

    thedaviddias/Front-End-Checklist

    A skill your agent uses when applies to sites with internal site search functionality.

    74k GitHub stars~556 tokensUpdated 2 days ago
    Marketing & SEOAuto-check passed
  • Requirements

    rizsotto/Bear

    Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and…

    6.5k GitHub stars~2k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Guides edits to the Repomix documentation site's VitePress configuration, per-language content, and translation workflow across 14 languages.

    29k GitHub starsUsed in 1 repo~342 tokens
    Frontend & DesignAuto-check passed

More from bifrost-proxy/bifrost

All 9 skills in this repo
  • Juejin Publish

    bifrost-proxy/bifrost

    Publish Markdown articles and Bifrost capability series to Juejin, or verify with Microsoft Edge that a published Juejin page's title and body match the local Markdown.

    160 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Zhihu Publish

    bifrost-proxy/bifrost

    Publish Markdown articles to Zhihu Columns through authentication context recovered locally from Bifrost traffic and a built-in publish payload schema, save drafts, prevent duplicate posts, and…

    160 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Codex Task Inspector

    bifrost-proxy/bifrost

    Inspect Codex async task progress from the correct data directory.

    160 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • E2E Verify

    bifrost-proxy/bifrost

    面向 Bifrost 管理端的端到端 UI 与 API 验证工具. An agent skill from bifrost-proxy/bifrost.

    160 GitHub stars~730 tokensUpdated today
    Auto-check passed
  • GitHub Actions Pat

    bifrost-proxy/bifrost

    用 Personal Access Token 通过 GitHub REST API 分析 Actions CI 的失败 run/job/step、拉取日志、轮询运行状态、做 PR code review,并驱动 fix → push → watch → iterate 的闭环。Token 只从 GITHUBTOKEN 环境变量读取,不落盘、不回显。适合在 bifrost remote /…

    160 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Design Md

    bifrost-proxy/bifrost

    A skill your agent uses when changing Bifrost WebUI, desktop shell UI, public site, docs visual style, interaction patterns, layout, copy density, colors, typography, spacing, or component styling.

    160 GitHub stars~544 tokensUpdated today
    Auto-check passed

Questions about Site Cookie Login

What does Site Cookie Login do?

Open a target website, wait for user login, verify login with required cookies plus an HTTP probe, and save cookies into .env for later automation. Site Cookie Login is an agent skill from bifrost-proxy/bifrost.env for later automation.

How do I install Site Cookie Login in Claude Code?

Run `npx skills add bifrost-proxy/bifrost --skill site-cookie-login -a claude-code`. Or copy the skill folder (.agents/skills/site-cookie-login in bifrost-proxy/bifrost) into .claude/skills/site-cookie-login in your project. Claude Code loads it when a task matches its description.

How do I install Site Cookie Login in Codex?

Run `npx skills add bifrost-proxy/bifrost --skill site-cookie-login -a codex`. Or copy the skill folder (.agents/skills/site-cookie-login in bifrost-proxy/bifrost) into .agents/skills/site-cookie-login in your project. Codex loads it when a task matches its description.

Can I use Site Cookie Login in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bifrost-proxy/bifrost --skill site-cookie-login -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/site-cookie-login, .gemini/skills/site-cookie-login, .github/skills/site-cookie-login and .opencode/skills/site-cookie-login in your project.

What does Site Cookie Login need to run?

Going by SKILL.md and its folder, Site Cookie Login needs JavaScript for the scripts in its folder and the command-line tools its instructions call (npm and node). Our summary lists: Node.js.

Does Site Cookie Login access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Site Cookie Login safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Site Cookie Login use?

Site Cookie Login is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Site Cookie Login use?

About 600 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 153 tokens, read only when the agent opens those files.

What are the alternatives to Site Cookie Login?

Skills that share tags, products or a category with Site Cookie Login: Sites (asgeirtj/system_prompts_leaks, 69k stars), Cookie Consent (thedaviddias/Front-End-Checklist, 74k stars), Browser Login (ruvnet/ruflo, 74k stars) and Website Search (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Site Cookie Login?

bifrost-proxy (a GitHub user) maintains it in bifrost-proxy/bifrost, which has 160 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 2026.

Source: bifrost-proxy/bifrost on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.