# Browser Cdp

> Use this skill when you need to control a Chrome browser via CDP (Chrome DevTools Protocol) to reuse existing login sessions. Covers: launching Chrome in debug mode, opening URLs, waiting for page load, evaluating JavaScript, taking snapshots, and extracting auth tokens. Trigger phrases: browser automation, CDP, agent-browser, 浏览器操作, 操作浏览器, Chrome CDP, 复用登录态, extract token from browser.

- Canonical page: https://ai-skills-catalog.com/skills/browser-cdp
- Category: frontend
- Author: pitechen
- License: MIT
- Source: https://github.com/worldwonderer/oh-story-claudecode/tree/HEAD/skills/browser-cdp
- Last updated: 2026-11-14
- Risk level: Low
- Declared permissions: Read project files; Write generated skill files

## Compatibility

- Claude: Native. Package: https://ai-skills-catalog.com/api/skills/browser-cdp/package?agent=Claude
- Codex: Packaged. Package: https://ai-skills-catalog.com/api/skills/browser-cdp/package?agent=Codex
- GPT: Packaged. Package: https://ai-skills-catalog.com/api/skills/browser-cdp/package?agent=GPT
- Gemini: Packaged. Package: https://ai-skills-catalog.com/api/skills/browser-cdp/package?agent=Gemini
- Cursor: Packaged. Package: https://ai-skills-catalog.com/api/skills/browser-cdp/package?agent=Cursor
- OpenCode: Packaged. Package: https://ai-skills-catalog.com/api/skills/browser-cdp/package?agent=OpenCode

## Sections of SKILL.md

- 前置条件
- 启动流程（skill-mode 强制步骤）
- 启动脚本选项
- 常用操作
- 打开页面并等待加载
- 提取页面文本
- 提取 Auth Token
- 复杂 JS（含引号 / $ / 反引号）
- 页面交互（snapshot 拿元素引用）
- 停止 / 清理
- OpenCode 环境注意事项
- 超时包装
- 已知限制
- 常见问题

## Installation

### Claude

1. Download the Claude package from the skill page. The ZIP contains one folder named after the skill, with SKILL.md and any bundled reference files.
2. For Claude Code, unpack the folder into ~/.claude/skills/ to use it in every project, or into .claude/skills/ inside a repository to share it with your team.
3. For Claude apps, upload the ZIP in the Skills section of the capabilities settings.
4. Start a new session and describe the task in your own words. Claude picks the skill when the request matches its description.

### Codex

1. Download the Codex package. The ZIP contains one folder named after the skill, with SKILL.md and bundled resources.
2. Unpack the complete folder into .agents/skills/ inside your repository, or into ~/.agents/skills/ for personal use. Preserve its relative reference-file paths.
3. Start a new Codex session and invoke the skill by name or with $skill-name, or describe a matching task.
4. AGENTS.md is separate project guidance. The ZIP does not generate or modify that file.

### GPT

1. Download the GPT package from the skill page.
2. Create or edit a custom GPT (or a ChatGPT project) and paste the contents of SKILL.md into the instructions field.
3. Upload the bundled reference files as knowledge so the GPT can consult them.
4. Test with one of the example prompts from the skill page and adjust the instructions if your use case differs.

### Gemini

1. Download the Gemini package from the skill page.
2. For a project, unpack the complete folder into .gemini/skills/ or .agents/skills/. For personal use, use ~/.gemini/skills/ or ~/.agents/skills/.
3. Run /skills reload in Gemini CLI, then /skills list to check discovery. There is no need to paste the skill into GEMINI.md.
4. Test a matching task and verify the referenced tools and files are available.

### Cursor

1. Download the Cursor package from the skill page.
2. Unpack the complete skill folder into .cursor/skills/ or .agents/skills/ in your project. For personal local use, ~/.cursor/skills/ and ~/.agents/skills/ are also supported.
3. Start a new Cursor session. Type / in Agent chat and select the skill name, or describe a matching task.
4. Commit the skill folder and resources for team use. Personal local skills are not automatically available to remote agents or automation runs.

### OpenCode

1. Download the OpenCode package from the skill page.
2. Unpack the complete folder into .opencode/skills/ in your project, or ~/.config/opencode/skills/ for personal use. OpenCode also supports .agents/skills/ and .claude/skills/ compatibility locations.
3. Keep supporting files at their original relative paths. AGENTS.md is separate project-wide guidance and is not generated by this ZIP.
4. Start OpenCode in the project and test a matching task with the model and permissions you use.

## FAQ

### What does the Browser Cdp skill do?

Use this skill when you need to control a Chrome browser via CDP (Chrome DevTools Protocol) to reuse existing login sessions. Covers: launching Chrome in debug mode, opening URLs, waiting for page load, evaluating JavaScript, taking snapshots, and extracting auth tokens. Trigger phrases: browser automation, CDP, agent-browser, 浏览器操作, 操作浏览器, Chrome CDP, 复用登录态, extract token from browser.

### Which AI agents can use Browser Cdp?

Claude uses the original format. Packages for Codex, GPT and 3 more are built from the same source instructions.

### How do I install Browser Cdp in Claude?

Download the Claude package from the skill page. The ZIP contains one folder named after the skill, with SKILL.md and any bundled reference files. For Claude Code, unpack the folder into ~/.claude/skills/ to use it in every project, or into .claude/skills/ inside a repository to share it with your team.

### Who made Browser Cdp and what is the license?

Browser Cdp is published by pitechen under the MIT license. The source is https://github.com/worldwonderer/oh-story-claudecode/tree/HEAD/skills/browser-cdp. The catalog keeps the original attribution.

### What permissions does Browser Cdp need?

Declared permissions: read project files, write generated skill files. Risk level: low. Check the scripts in the source before running them.

## Related frontend skills

- [Vercel React Best Practices](https://ai-skills-catalog.com/skills/vercel-react-best-practices): React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
- [Antfu](https://ai-skills-catalog.com/skills/antfu): Anthony Fu's opinionated tooling and conventions for JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier alternatives, monorepos, library publishing, or when the user mentions Anthony Fu's preferences.
- [Angular Architect](https://ai-skills-catalog.com/skills/angular-architect): Generates Angular 17+ standalone components, configures advanced routing with lazy loading and guards, implements NgRx state management, applies RxJS patterns, and optimizes bundle performance. Use when building Angular 17+ applications with standalone components or signals, setting up NgRx stores, establishing RxJS reactive patterns, performance tuning, or writing Angular tests for enterprise apps.
- [Ss A11Y](https://ai-skills-catalog.com/skills/ss-a11y): Audit a component or page for accessibility issues and fix them
- [Create Adaptable Composable](https://ai-skills-catalog.com/skills/create-adaptable-composable): Create a library-grade Vue composable that accepts maybe-reactive inputs (MaybeRef / MaybeRefOrGetter) so callers can pass a plain value, ref, or getter. Normalize inputs with toValue()/toRef() inside reactive effects (watch/watchEffect) to keep behavior predictable and reactive. Use this skill when user asks for creating adaptable or reusable composables.
