opencli
Operate websites and Electron apps through CLI commands, reusing Chrome login sessions. Prefer over browser_task for supported sites (GitHub, Bilibili, Twitter/X, YouTube, etc.) — deterministic commands with structured JSON output.
Best use case
opencli is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Operate websites and Electron apps through CLI commands, reusing Chrome login sessions. Prefer over browser_task for supported sites (GitHub, Bilibili, Twitter/X, YouTube, etc.) — deterministic commands with structured JSON output.
Teams using opencli should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/opencli/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How opencli Compares
| Feature / Agent | opencli | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Operate websites and Electron apps through CLI commands, reusing Chrome login sessions. Prefer over browser_task for supported sites (GitHub, Bilibili, Twitter/X, YouTube, etc.) — deterministic commands with structured JSON output.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# OpenCLI - 网站 CLI 操作 通过 [OpenCLI](https://github.com/jackwener/opencli) 将网站和 Electron 应用转化为 CLI 命令。 复用用户 Chrome 登录态,无需输入密码,返回结构化 JSON。 ## 核心优势 - **复用 Chrome 登录态** — 无需密码/token,直接用已登录的 Chrome - **确定性命令** — 比 browser_task 的 "让 LLM 猜" 可靠得多 - **结构化 JSON 输出** — LLM 解析零歧义 ## 何时使用 OpenCLI(优先于 browser_task) | 场景 | 推荐工具 | 原因 | |------|---------|------| | 操作有 adapter 的网站(GitHub、Bilibili 等)| `opencli_run` | 确定性命令,JSON 输出 | | 需要登录态的操作 | `opencli_run` | 复用 Chrome 登录 | | 无 adapter 的网站 | `browser_task` / 手动 browser_* | OpenCLI 不支持的站点 | | 简单读取网页内容 | `web_fetch` | 无需浏览器 | ## 工具 ### opencli_list — 发现可用命令 ```python opencli_list() ``` ### opencli_run — 执行命令 命令格式: `<site> <subcommand>`,直接传给 opencli。 ```python opencli_run(command="zhihu hot list") opencli_run(command="hackernews top") opencli_run(command="bilibili video info", args=["BV1xx411c7XW"]) ``` ### opencli_doctor — 诊断环境 ```python opencli_doctor() ``` ## 前置条件 1. 安装 opencli: `npm install -g @jackwener/opencli` 2. Chrome 浏览器正在运行并已登录目标网站 3. Browser Bridge 扩展已安装(首次运行 `opencli setup` 配置) ## 决策路径 ``` 需要操作网站? ├─ 目标网站有 opencli adapter → opencli_run(首选) ├─ 需要登录但无 adapter → browser_task → 手动 browser_click/type 组合 ├─ 只需读取内容 → web_fetch └─ 只需搜索 → web_search ``` ## 相关技能 - `browser_task` — 无 adapter 时的降级方案 - `browser_navigate` — 简单导航 - `web_fetch` — 轻量 URL 内容获取 - `web_search` — 搜索引擎查询
Related Skills
openakita/skills@yuque-skills
Manage Yuque (语雀) knowledge bases, documents, and team collaboration through API integration. Supports personal search, weekly reports, knowledge base management, document CRUD, and group collaboration workflows. Based on yuque/yuque-skills.
openakita/skills@youtube-summarizer
Summarize YouTube videos by extracting transcripts and generating structured notes. Use when the user wants to summarize a YouTube video, extract key points from a talk, create study notes from a lecture, or get timestamps for important moments. Supports multiple URL formats and languages.
openakita/skills@xlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.
openakita/skills@xiaohongshu-creator
Create engaging Xiaohongshu (RED/小红书) content including titles, body text, hashtags, and image style recommendations. Supports multiple content types such as product reviews, tutorials, lifestyle sharing, and shopping guides with platform-specific optimization.
openakita/skills@wechat-article
Create and format WeChat Official Account (公众号) articles with proper Markdown-to-WeChat HTML conversion, rich formatting, cover image guidance, and both API and manual publishing workflows.
openakita/skills@webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
openakita/skills@web-artifacts-builder
Suite of tools for creating elaborate, multi-component interactive HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
openakita/skills@video-downloader
Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.
openakita/skills@translate-pdf
Translate PDF documents while preserving original layout, styling, tables, images, and formatting. Supports Simplified Chinese, Traditional Chinese, English, Japanese, Korean, and more. Page-by-page translation with structure preservation.
openakita/skills@todoist-task
Manage Todoist tasks, projects, sections, labels, and filters via REST API v2. Supports task CRUD, due dates, priorities, recurring tasks, project organization, and advanced filtering. Based on doggy8088/agent-skills/todoist-api, using curl + jq.
openakita/skills@theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
write-file
Write content to file, creating new or overwriting existing. When you need to create new files, update file content, or save generated code/data.