Web Access Skills: Unified Guidelines for AI Agent Web Connectivity and Browser CDP Operations

Preface

When an Agent needs to look up information, open links, or handle login pages or anti-scraping sites, it often switches back and forth between WebSearch, curl, custom scripts, and browser automation, lacking a reusable sequence of judgment and safety boundaries. Below is an introduction to the SkillHub community skill Web Access Skill (@user_3c6cb52e/web-access-png): It uses a standard SKILL.md to write “when to use search / fetch / curl / browser CDP”, the CDP Proxy invocation methods, and cleanup conventions at the end of a task into the Agent’s context, facilitating consistent execution across multi-platform Agents. The store page marks requires_api_key=false, indicating no dependency on additional API Keys.

What is this

Web Access Skill is a guidance package for AI Agents regarding internet access and page operations. The version is 1.0.0, the source is SkillHub community, the publisher is user_3c6cb52e, and the category is ai-agent. The SkillHub page summary is: A dedicated skill for web access, helping AI Agents efficiently complete relevant tasks. The skill metadata declares compatibility with frameworks such as Claude Code, Codex, Hermes Agent, OpenClaw, QClaw, WorkBuddy, and the license is MIT; the homepage and repository fields point to https://github.com/1991513ccie-png.

Official Entry Points:

  • SkillHub Page: https://www.skillhub.cn/skills/user_3c6cb52e/web-access-png
  • Skill Coordinate: @user_3c6cb52e/web-access-png

Core Features

The following content is derived from the SKILL.md within the skill package (verified via skillhub install).

Layering of Internet Tools

The skill requires the Agent to select tools based on the scenario and emphasizes prioritizing primary information over secondary reposts:

Scenario Recommended Tool
Search summaries, discovering information sources WebSearch
URL known, targeted extraction of page info WebFetch
Need raw HTML (meta, JSON-LD, etc.) curl
Non-public content or platforms where the static layer is invalid (examples: Xiaohongshu, WeChat Official Accounts, etc.) Browser CDP
Need login state, interaction, or human-like navigation on-site Browser CDP

Optional preprocessing: Jina (r.jina.ai/ prefix, limited to 20 RPM as noted in docs). It can be combined with WebFetch/curl to save tokens, though there may be information loss.

Browser CDP and Local Resources

  • Pre-check: Run node "${CLAUDE_SKILL_DIR}/scripts/check-deps.mjs" to check Node.js (requires 22+), debug port, and CDP Proxy. Supports --browser chrome|edge for temporary overrides; persistent preferences are written to WEB_ACCESS_BROWSER in config.env.
  • Proxy API: Default is http://localhost:3456, providing HTTP interfaces for listing tabs, /new, /eval, /screenshot, /navigate, /click, /scroll, /close, etc. (complete curl examples are included in the docs).
  • Local Bookmarks/History: node "${CLAUDE_SKILL_DIR}/scripts/find-url.mjs" searches Chrome/Edge bookmarks or history by keywords, used for “pages the user has previously visited” or internal system entrances.
  • Behavioral Principles: Do not actively operate on the user’s existing tabs; close the operation after finishing in a self-created background tab; show the user a prompt regarding automation and account ban risks before operating; support sub-Agent parallel division of labor and site experience accumulation in references/site-patterns/.

Task Type Supplements

The document also includes “Browsing Philosophy” (goal-oriented, process validation), a primary source table for information verification tasks, video frame sampling ideas, and migration notes regarding the use of POST bodies for URLs in /new and /navigate starting from v2.5.3.

Installation and Activation

1. Install SkillHub CLI

If the CLI is not installed, follow the official installation documentation:

command -v skillhub && skillhub --version
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

See instructions at: https://skillhub.cn/install/skillhub.md

2. Install Web Access Skill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it may default to ./skills/ and not be recognized.

skillhub install web-access-png --namespace user_3c6cb52e --dir <skills directory>

The installation prompt given on the SkillHub skill page is: Install @user_3c6cb52e/web-access-png according to https://skillhub.cn/install/skillhub.md (equivalent to the formula above; the coordinate is @user_3c6cb52e/web-access-png).

Common skills directories (excerpted from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the Agent according to the client’s requirements so that SKILL.md enters the skill list.

3. Package Body Description (Actual Installation Test)

After executing the above installation command in the writing environment of this article, the directory @user_3c6cb52e/web-access-png contained only SKILL.md and _meta.json. The scripts/ and references/ cited in the document did not appear in this downloaded package; if your local environment similarly lacks the scripts, you must refer to subsequent updates on the SkillHub page or repository https://github.com/1991513ccie-png before executing steps like check-deps.mjs in the documentation.

Typical Usage

Pre-connection Check and Risk Tips

node "${CLAUDE_SKILL_DIR}/scripts/check-deps.mjs"

Handle according to the exit code: 0 to continue; 2 to ask the user and write to config.env; 1 to handle according to stdout guidance. After the check passes, the Agent must display the “Browser Automation and Account Ban Risk” tip specified in the document in the reply, and then start the CDP Proxy.

Open Page and Read Title via Proxy

curl -s http://localhost:3456/targets
curl -s -X POST --data-raw 'https://example.com' http://localhost:3456/new
curl -s -X POST "http://localhost:3456/eval?target=ID" -d 'document.title'

ID is the target identifier returned by /targets or /new; the URL is passed via the POST body to avoid query truncation.

Recover User Visited URLs from Local Browser

node "${CLAUDE_SKILL_DIR}/scripts/find-url.mjs" keyword --only history --since 7d --limit 10

Suitable for entrances like “that article I read last time” or “company intranet panels” that are difficult to hit via public web searches.

Sub-Agent Parallel Research

When multiple targets are independent, the main Agent can dispatch sub-tasks and explicitly state in the sub-Agent prompt “Must load web-access skill and follow guidelines”. The sub-Agents will then choose WebSearch, WebFetch, or CDP themselves, each performing /new and /close on their own tabs.

Applicable Scenarios and Notes

Who it is for: Teams or individuals who need Agents to stably complete searches, page scraping, browsing with login states, and access to sites with heavy anti-scraping, and who wish to unify the operation philosophy and CDP API conventions.

Limitations and Notes:

  • The documentation depends on Node.js 22+ and local Chromium-based browser CDP; when switching browsers, you must end cdp-proxy.mjs first and re-run the check.
  • Some sites are sensitive to automation; the skill has explained the existence of account risks, and the user must be informed before proceeding.
  • SkillHub Statistics (scraped data): Rating 100000, Downloads 1740, Installs 0; this may change over time and differ from the page display, subject to the store.
  • The currently tested package body may only contain guidance text; if scripts are not delivered, CDP-related commands cannot be run directly. You need to confirm the complete package or repository content before using it for production tasks.

Conclusion

Web Access Skill writes the selection of Agent internet access and browser operations, CDP Proxy conventions, risk disclosures, and site experience maintenance into an installable skill document, suitable for long-term use in the skills directory of environments like Cursor, Claude Code, and Codex. Please refer to the SkillHub official page for acquisition and installation: https://www.skillhub.cn/skills/user_3c6cb52e/web-access-png

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye