agentleFS
GloriaGuoGloriaGuo/opencli-skill/SKILL.md

opencli

Skill4 starsChanged 8 months agoMITView on GitHub

Use when an AI agent needs to install, inspect, troubleshoot, or operate a local OpenCLI setup, or when a task involves websites, Electron desktop apps, browser-login reuse, downloads, plugins, external CLI passthrough, or adapter generation through OpenCLI.

  • Installs packages

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 4 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Prefer -f json for agent-readable output.

    line 42
  2. Distinctive:

    If a browser-backed command returns empty data or authorization errors, verify the Chrome login state before changing commands or code.

    line 43
  3. Very specific:

    Before any write-like action such as post, reply, send, publish, greet, or follow, do at least one read-only command first unless the user …

    line 44
  4. Very specific:

    Use this path for sources such as hackernews, wikipedia, google, arxiv, or similar read-only commands.

    line 50
  5. Very specific:

    Use this path for adapters such as bilibili, zhihu, xiaohongshu, twitter, reddit, pixiv, weixin, boss, or other commands that reuse Chrome …

    line 54
  6. Very specific:

    Use this path for apps such as cursor, codex, chatgpt, notion, discord-app, or doubao-app.

    line 58
  7. Very specific:

    Use this path when the user really wants the underlying CLI but wants discovery, installation help, or a unified entrypoint.

    line 62
  8. Very specific:

    Use opencli explore <url> --site <name> to inspect a site, opencli synthesize <site> to build an adapter, opencli generate <url> --goal …

    line 66
  9. Very specific:

    Use explicit limits like --limit 5 for exploratory reads.

    line 70
  10. Distinctive:

    Prefer structured output over prose whenever another tool or agent will consume the result.

    line 71
  11. Distinctive:

    When a command is likely browser-backed, assume login state matters until proven otherwise.

    line 73
  12. Very specific:

    Treat opencli list -f yaml as the source of truth when the README and installed commands disagree.

    line 75
  13. Distinctive:

    Read references/troubleshooting.md before concluding that an adapter is broken.

    line 76

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

OpenCLI

OpenCLI turns websites, Electron apps, and existing local CLIs into structured terminal commands. Prefer it when deterministic CLI output is more useful than ad-hoc browser automation.

Trigger Cues

Load this skill when the task sounds like any of these:

  • "use opencli"
  • "pull data from Bilibili/Zhihu/Xiaohongshu/Weixin/Boss"
  • "reuse my Chrome login"
  • "control Cursor/Codex/Notion/ChatGPT from the terminal"
  • "download article/video/media through OpenCLI"
  • "inspect what OpenCLI supports on this machine"
  • "create or troubleshoot an OpenCLI adapter"

Reference Files

ReferenceUse for
references/agent-playbook.mdAgent-first trigger patterns, action order, and safe defaults
references/commands.mdCommon commands, category selection, and example invocations
references/china-workflows.mdChina-focused site templates and desktop-agent workflows
references/practical-scenarios.mdDetailed field manual for choosing OpenCLI and executing end-to-end workflows
references/troubleshooting.mdFailure signatures, browser bridge issues, auth problems, and fixes

Core Workflow

  1. Confirm the binary exists. If opencli is missing, install it with npm install -g @jackwener/opencli.
  2. Discover before guessing. Run opencli list -f yaml to inspect available adapters and commands.
  3. Choose the command class:
    • Public commands: run directly. No browser login is required.
    • Browser commands: ensure Chrome is open and already logged in to the target site, then run opencli doctor if this is the first browser-backed task or if anything looks broken.
    • Desktop adapters: make sure the target app is running, inspect the registered commands first, then start with read, history, model, send, ask, or adapter-specific commands.
    • External CLI passthrough: use opencli <tool> ... and keep the original arguments intact.
    • New site development: use explore, synthesize, generate, and cascade.
  4. Prefer -f json for agent-readable output. Use -f yaml for human inspection, -f table for terminal browsing, and -v only when debugging.
  5. If a browser-backed command returns empty data or authorization errors, verify the Chrome login state before changing commands or code.
  6. Before any write-like action such as post, reply, send, publish, greet, or follow, do at least one read-only command first unless the user explicitly asks to skip that safety step.

Decision Guide

Public data

Use this path for sources such as hackernews, wikipedia, google, arxiv, or similar read-only commands. These are the cheapest and most reliable because they do not depend on Chrome state.

Browser-backed sites

Use this path for adapters such as bilibili, zhihu, xiaohongshu, twitter, reddit, pixiv, weixin, boss, or other commands that reuse Chrome login. Keep Chrome running, keep the account logged in, and use opencli doctor before deeper debugging.

Desktop adapters

Use this path for apps such as cursor, codex, chatgpt, notion, discord-app, or doubao-app. Do not assume a command exists just because another adapter or README example has it; inspect the registry first with opencli list -f yaml or adapter help.

External CLI hub

Use this path when the user really wants the underlying CLI but wants discovery, installation help, or a unified entrypoint. Examples include opencli gh ..., opencli docker ..., opencli obsidian ..., and opencli gws ....

Adapter generation

Use opencli explore <url> --site <name> to inspect a site, opencli synthesize <site> to build an adapter, opencli generate <url> --goal "<goal>" for the fast path, and opencli cascade <url> to probe authentication strategy.

Operating Rules

  • Use explicit limits like --limit 5 for exploratory reads.
  • Prefer structured output over prose whenever another tool or agent will consume the result.
  • For media downloads, install yt-dlp when the adapter requires it.
  • When a command is likely browser-backed, assume login state matters until proven otherwise.
  • For desktop adapters, check --help before assuming command parity across apps or versions.
  • Treat opencli list -f yaml as the source of truth when the README and installed commands disagree.
  • Read references/troubleshooting.md before concluding that an adapter is broken.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.