web-access
联网任务优先使用现有的 web_fetch、custom_command(web_fetch) 与 bash(curl)。当任务需要登录态、真实浏览器交互或动态页面调试时,切换到本地 CDP Chrome 代理模式。
Skill by 一泽Eze, adapted for OceanKing
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/asuta-web-access
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/web-access
What's inside
- Skill name
web-access- Description
- 联网任务优先使用现有的 web_fetch、custom_command(web_fetch) 与 bash(curl)。当任务需要登录态、真实浏览器交互或动态页面调试时,切换到本地 CDP Chrome 代理模式。
- License
- MIT
- Metadata
- author: 一泽Eze, adapted for OceanKing · version: 0.1.0
- Instructions
- 142 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (4)
- README.oceanking.md
- SKILL.md
- cdp-proxy.mjs · scripts/
- check-deps.sh · scripts/
SKILL.md (first lines)
# Web Access ## 适用范围 当用户要求以下任务时,优先按本 skill 处理: - 搜索最新信息、读取网页、核实在线内容 - 访问动态渲染页面 - 处理需要登录态的网站 - 需要真实浏览器交互的任务,如点击、滚动、上传文件、截图 OceanKing 已内置 `web_fetch`、`custom_command`、`bash`、房间工具与项目上下文工具,所以这里不是照搬 Claude Code 版,而是把它的核心哲学适配到当前 Agent 架构。 ## 核心原则 Skill = 浏览哲学 + 技术事实,不是固定步骤手册。 执行联网任务时,按以下逻辑决策: 1. 先定义目标与完成标准 - 用户到底要信息、证据、摘要,还是页面操作结果。 - 停止条件必须明确,避免为了“更完整”而过度操作。 2. 先走最轻路径,再按证据升级 - 已知 URL 且页面公开:优先 `web_fetch` - 只需要快速发现来源:优先 `custom_command` 的 `web_fetch` 或外部搜索入口 - 需要原始 HTML、headers、接口探测:优先 `bash` + `curl` - 需要登录态、动态交互、真实浏览器:再切换到 CDP 代理 3. 每一步都用结果校验方向 - 搜不到不等于不存在,也可能是入口不对 - 平台报“内容不存在”不一定是真的,可能是访问方式、参数或反爬问题 - 同一路径重复失败时,应更换获取方式,而不是机械重试 4. 优先一手来源 - 搜索和聚合只用于发现线索 - 核实时,优先官网、官方文档、源码或原始页面 ## OceanKing 下的工具分层 | 场景 | 首选工具 | |------|----------| | 已知公开 URL,想读正文 | `web_fetch` | | 想获取当前时间、项目概况或委托式网页抓取 | `custom_command` | | 要看原始 HTML / 调接口 / 下载文件 / 访问本地 CDP API | `bash` | | 需要给用户回传结果 | `send_message_to_room` | | 需要本地项目说明 | `project_context_list` / `project_context_read` | ### 默认策略 - 不要为了“像浏览器”而默认启用浏览器。 - OceanKing 已有的 `web_fetch` 能满足大量公开网页读取任务。 - 浏览器 CDP 是高成本模式,只在必要时用。 ## CDP 模式何时启用 满足任一条件时,可启用本地 CDP 模式: - 页面依赖前端渲染,`web_fetch`/`curl` 无法拿到目标内容 - 需要登录态 - 需要点击、滚动、翻页、上传文件、截图 - 需要像用户一样在站内导航探索 ## 本地环境要求 当前项目运行在 OceanKing 工作区,适配后的 CDP 方案要求: - Node.js 22+ - 用户本机 Chrome 已开启 remote debugging - 本地启动一个轻量 HTTP CDP 代理,供 `bash` 里的 `curl` 调用 ## CDP 代理约定 推荐代理监听:`http://127.0.0.1:3456` 常用接口: - `GET /targets` 列出 tab - `GET /new?url=...` 新建后台 tab - `POST /eval?target=...` 执行 JS - `POST /click?target=...` JS 点击 - `POST /clickAt?target=...` 真实鼠标点击 - `POST /setFiles?target=...` 文件上传 - `GET /scroll?target=...&direction=bottom` 滚动 - `GET /screenshot?target=...&file=...` 截图 - `GET /close?target=...` 关闭 tab ## 浏览器操作守则 - 默认不要动用户现有 tab - 优先新建自己的后台 tab 完成任务 - 结束后关闭自己创建的 tab - 只有在确认登录能解决问题时,才提示用户去 Chrome 完成登录 - 用户登录后不需要重启 OceanKing,只需继续当前流程 ## 站点经验 如果某站点反复出现固定模式,可把已验证经验沉淀到 `skills/web-access/references/site-patterns/<domain>.md`,内容只记录经过验证的事实: ```md --- domain: example.com updated: 2026-03-29 --- ## 平台特征 ## 有效模式 ## 已知陷阱 ``` 不要写未经验证的猜测。 ## 在 OceanKing 中的推荐执行顺序 1. 先判断公开读取是否足够:`web_fetch` 2. 不够时再用 `bash` + `curl` 看原始响应 3. 仍不够且确认需要浏览器时,检查 CDP 环境并启动代理 4. 用 `bash` 调本地代理 API 驱动 Chrome 5. 从页面 DOM 提取信息,而不只是盲目截图 6. 任务完成后关闭创建的 tab,并向房间回传结果
From Asuta/OceanPiAgent, MIT.
More from Asuta/OceanPiAgent
- 0.399score
operations-briefing
Asuta
Use when the room needs a clear execution plan, status update, blocker summary, or handoff.
SkillDFreshness: DClaude Code +9 - 0.399score
research-rigor
Asuta
Use when the agent is investigating, verifying, or comparing information.
SkillDFreshness: DClaude Code +9 - 0.399score
room-delivery
Asuta
Use when the task depends on sending clean, intentional messages back into a room.
SkillDFreshness: DClaude Code +9 - 0.380score
novel-room-orchestrator
Asuta
Use when the user wants to turn a novel outline into multi-room chapter drafting with shared-workspace outputs and progress reporting.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 29, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 0.1.0
- License
- MIT
- Repository
- github.com/Asuta/OceanPiAgent
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Cite this page
web-access skill. Agent Mart. https://agentmart.dev/skills/asuta-web-access (last updated 2026-10-24)