This is a comprehensive guide for building OpenCLI adapters that turn websites into command-line interfaces. It walks you through discovering APIs via browser DevTools, choosing authentication strategies across five tiers (from public APIs to full UI automation), and writing TypeScript adapters using the cli() API. The workflow is methodical: open the site in a browser, interact with elements to trigger lazy-loaded endpoints, capture network requests, then write code against confirmed APIs. What stands out is the emphasis on active exploration rather than static analysis, with concrete examples from Bilibili, Reddit, and Xiaohongshu showing how different sites require different approaches (Wbi signatures, Pinia store actions, XHR interception). It includes helper utilities, common pitfalls, and a decision tree for picking the right authentication tier based on what actually works.
npx skills add https://github.com/joeseesun/qiaomu-opencli-skills --skill qiaomu-opencli-explorer