Community生产力与协作github.com

jackwener/opencli-browser

当智能体需要通过 opencli 驱动真实的 Chrome 浏览器窗口时使用——检查页面、填写表单、点击登录流程或临时提取数据。涵盖以选择器为先的目标合约、复合表单字段、陈旧引用处理、网络捕获以及 CLI 返回的智能体原生信封。不用于编写适配器——请参见 opencli-adapter-author。

opencli-browser 是什么?

该技能为 AI 智能体(如 Claude Code、Cursor 等)提供了通过 opencli 工具直接控制真实 Chrome 浏览器窗口的能力。它允许智能体执行浏览器自动化操作,包括页面检查、表单填写、点击交互、登录流程处理以及临时数据提取。技能核心特点包括:支持以 CSS 选择器为首要定位方式的目标合约机制、处理复杂的复合表单字段、自动应对 DOM 元素的陈旧引用(stale references)问题、捕获网络请求与响应数据,以及解析 CLI 返回的智能体友好型信封(envelopes)结构。该技能面向需要真实浏览器环境(而非模拟或无头模式)的自动化场景,特别适合需要处理已登录状态、动态加载内容或复杂用户交互的任务。注意:该技能不用于编写浏览器适配器——相关需求应参见 opencli-adapter-author。支持平台包括但不限于 Claude Code、Cursor、Codex 等兼容 opencli 的 AI 开发工具,能够显著提升智能体在真实 Web 环境中的执行可靠性与交互深度。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/jackwener/opencli/tree/main/skills/opencli-browser

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

opencli-browser 是做什么的?

当智能体需要通过 opencli 驱动真实的 Chrome 浏览器窗口时使用——检查页面、填写表单、点击登录流程或临时提取数据。涵盖以选择器为先的目标合约、复合表单字段、陈旧引用处理、网络捕获以及 CLI 返回的智能体原生信封。不用于编写适配器——请参见 opencli-adapter-author。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

jackwener/opencli-adapter-author

Use when writing an OpenCLI adapter for a new site or adding a new command to an existing site. Guides end-to-end from first recon through field decoding, adapter coding, and verify. Replaces opencli-oneshot / opencli-explorer. For ad-hoc browser driving (no adapter), see opencli-browser instead; for a top-level orientation to opencli, see opencli-usage.

jackwener/opencli-autofix

Automatically fix broken OpenCLI adapters when commands fail. Load this skill when an opencli command fails — it guides you through collecting a trace artifact, patching the adapter, retrying, and filing an upstream GitHub issue after a verified fix. Works with any AI agent.

jackwener/opencli-explorer

Use when creating a new OpenCLI adapter from scratch, adding support for a new website or platform, exploring a site's API endpoints via browser DevTools, or when a user asks to automatically generate a CLI for a website (e.g. "帮我生成 xxx.com 的 cli"). Covers automated generation, API discovery workflow, authentication strategy selection, TS adapter writing, and testing.

jackwener/opencli-oneshot

Use when quickly generating a single OpenCLI command from a specific URL and goal description. 4-step process — open page, capture API, write TS adapter, test. For full site exploration, use opencli-explorer instead.

jackwener/opencli-operate

Make websites accessible for AI agents. Navigate, click, type, extract, wait — using Chrome with existing login sessions. No LLM API key needed.

jackwener/opencli-usage

Use at the start of any OpenCLI session — this is the top-level map of what `opencli` can do, how to discover adapters, what flags and output formats are universal, and which specialized skill to load next. Point here when an agent asks "what can opencli do?" or "how do I find the right command?".

jackwener/smart-search

基于 opencli 命令的智能搜索路由器。当用户想要使用 OpenCLI、CLI 或 API 搜索、查询、查找或研究信息时,尤其是涉及指定网站、社交媒体、技术资料、新闻、购物、旅游、求职、金融或中文内容时,务必使用此 skill

相关技能