> opencli
Use when you want to turn websites into CLI commands with browser session reuse or public APIs. Useful for browser-backed data extraction, logged-in site queries, AI-generated adapters, and web-to-CLI workflows with `@jackwener/opencli`.
curl "https://skillshub.wtf/mxyhi/ok-skills/opencli?format=md"OpenCLI
Turn websites into CLI commands while reusing an existing Chrome login session when needed.
When to Use
- You need data from a website that already works in the browser but does not expose a clean public API.
- You want browser-backed extraction without exporting credentials out of Chrome.
- You want structured output from a website in
table,json,md, orcsv. - You want to explore a site, generate an adapter, probe auth strategy, or smoke-test a generated workflow.
Install
npm install -g @jackwener/opencli
opencli list
Prerequisites
Browser-backed commands require:
- Chrome running and already logged into the target site
- Playwright MCP Bridge installed
PLAYWRIGHT_MCP_EXTENSION_TOKENconfigured for the Playwright MCP server
Public API commands such as hackernews, v2ex, and some github search flows do not need the browser setup.
Core Usage
opencli <site> <command> [flags]
opencli list
opencli list --json
opencli hackernews top --limit 5 -f json
opencli bilibili hot --limit 10
opencli github search --keyword "cli"
AI-Native Workflows
opencli explore <url> --site <name>
opencli synthesize <site>
opencli generate <url> --goal "hot"
opencli cascade <api-url>
opencli verify <site/name> --smoke
explore: inspect a site and capture artifacts for later generationsynthesize: generate adapters from existing explore artifactsgenerate: run the end-to-end explore to register flow in one stepcascade: auto-probe auth strategy frompublictocookietoheaderverify: smoke-test a generated adapter
If you need to build new adapters, read references/cli-creator.md.
Output And Debugging
opencli <site> <command> -f table
opencli <site> <command> -f json
opencli <site> <command> -f md
opencli <site> <command> -f csv
opencli <site> <command> -v
Common Targets
- Browser-backed:
bilibili,zhihu,xiaohongshu,twitter,reddit,weibo,youtube,boss,yahoo-finance,reuters,smzdm,ctrip - Public or mixed:
hackernews,v2ex,github,bbc
Notes
- Tabs opened during execution are usually auto-closed afterwards.
- If a browser command returns empty data, first verify the site is reachable in Chrome and the session is logged in.
- For the full upstream command matrix and release details, start from
https://github.com/jackwener/opencli.
> related_skills --same-repo
> yeet
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
> 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
> vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
> test-driven-development
Use when implementing any feature or bugfix, before writing implementation code