Introduction¶
Common approaches for tasks like “fetching trending topics from Bilibili,” “posting on X,” or “downloading assets from Xiaohongshu (Little Red Book)” within Agents often involve writing Playwright scripts, maintaining cookies, or deconstructing tasks into multiple steps for the model to guess page structures. These methods are costly and require a separate set of logic for each site.
Below is an introduction to opencli-agent on SkillHub. It does not modify opencli itself; instead, it provides a set of fixed triggers and operational guidelines for Agents like Cursor and Claude Code: when a user needs to interact with websites or online services via the command line, the Agent should execute these tasks through opencli rather than improvising browser automation.
What is This¶
opencli-agent (Coordinate: @user_b733a8f4/opencli-agent, Version: 1.0.0) is an ai-agent skill under the SkillHub Community category, published by user_b733a8f4. The SkillHub page lists the author as LingtrueAI.
In one sentence: This skill should be used when a user wishes to interact with websites or online services via command-line automation. The specific capabilities are provided by the local opencli CLI, while the skill ensures the Agent selects the correct commands and workflows for the right scenarios.
The metadata tag requires_api_key=false indicates that installing this Skill does not depend on additional API Key configuration (login status for various sites still depends on opencli and browser sessions; see precautions below).
Core Features¶
The following are sourced from the official SkillHub description and verified against the page text.
- Multi-platform Coverage: Supports operations for 70+ platforms, including posting to Twitter/X, browsing Reddit, fetching Bilibili trends, and downloading content from Xiaohongshu, all unified through opencli.
- Social Media Operations: Posting, liking, following, searching, etc.
- Content Acquisition: Trend charts, timelines, activity feeds, etc.
- Download and Scraping: Videos, images, articles, etc. (on sites already adapted by opencli).
- Extension Boundaries: Any web service automation supported by opencli falls within the scope of this skill.
The Skill does not replace the installation or site login process of opencli; it solves the problem of “whether the Agent knows and should use opencli.”
Installation and Activation¶
1. Install SkillHub CLI (if not already installed)¶
For the official SkillHub installation instructions, see skillhub.cn/install/skillhub.md. Check if it is already installed:
command -v skillhub && skillhub --version
If not installed, you can run the full installation (CLI + default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
2. Install opencli-agent¶
When installing the skill, you must use --dir to point to the current Agent’s skills directory; otherwise, installing to the default ./skills/ might not be recognized.
skillhub install @user_b733a8f4/opencli-agent --dir <your Agent skills directory>
Common paths (from SkillHub installation documentation):
| Environment | skills Directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ in the project |
Cursor example:
skillhub install @user_b733a8f4/opencli-agent --dir ~/.cursor/skills/
Alternatively, you can provide the following prompt to an AI to let it complete the installation according to the SkillHub installation documentation:
Please install `@user_b733a8f4/opencli-agent` based on https://skillhub.cn/install/skillhub.md.
After installation, refresh or restart your Agent as required by your client to enable SKILL.md.
3. opencli Main Body¶
The official Skill description states that operations are “entirely completed through opencli tools.” The local machine must have opencli installed and callable. Browser-based capabilities usually require completing opencli’s Browser Bridge and environment checks like opencli doctor. For opencli installation and quick start, see the OpenCLI Documentation (e.g., npm install -g @jackwener/opencli). The Skill page does not list opencli installation steps separately; the opencli official documentation prevails.
Typical Usage¶
This skill is triggered in the following scenarios according to the SKILL.md convention; users can describe tasks in natural language, and the Agent should select opencli rather than writing custom crawlers.
Content Acquisition
- “Fetch Bilibili trending topics” → Corresponds to the Bilibili trending scenario in the description.
- “Check Reddit hot posts” → Browse Reddit.
- “Read X timeline / search for a keyword” → Social media search and timeline operations.
Publishing and Interaction
- “Post a tweet on Twitter/X” → Posting scenario in the description.
- Liking, following, searching, etc., map to site subcommands registered in opencli based on user intent.
Downloading
- “Download the video/images from this Xiaohongshu note” → Xiaohongshu download scenario in the description.
Verify if opencli is available directly in the terminal (consistent with the sites in the Skill description; commands are from the OpenCLI quick start documentation):
opencli list
opencli bilibili hot --limit 5
The typical conversation form on the Agent side: The user explains the target site and action (fetch trends, post, download, etc.), and the Agent with opencli-agent enabled generates and executes the corresponding opencli … call; output formats can use opencli options like -f json for subsequent processing.
Scenarios and Precautions¶
Who is it for
- Users already using Cursor, Claude Code, Codex, etc., who want their Agents to stably use opencli for multi-platform site automation.
- Users who need social media operations, feed scraping, and asset downloading, and want to minimize the maintenance of site-specific scripts.
Limitations and Precautions
- Depends on opencli and Login Status: The Skill only standardizes Agent behavior; whether a site can be operated depends on opencli adaptation and browser/account status. Operations like posting or private messaging will fail if not logged in.
- Compliance and Platform Rules: Automation may touch upon the Terms of Service of various sites; assess risks yourself before production or batch operations.
- Community Skill: Source is community, version 1.0.0; for upgrades, use
skillhubto reinstall/update the same coordinate (subject to current SkillHub CLI capabilities). - Statistics: SkillHub scraped metadata shows a rating of 100000, 6069 downloads, and 404 installs (subject to page display, figures change over time).
Conclusion¶
opencli-agent consolidates “Command Line + Website Automation” into a reusable skill for Agents: in scenarios involving 70+ platforms, prioritize using opencli to complete tasks such as posting, browsing, fetching trends, and downloading, and the Skill itself has requires_api_key=false.
- SkillHub Page: https://www.skillhub.cn/skills/user_b733a8f4/opencli-agent
- API Coordinate Entry: https://api.skillhub.cn/user_b733a8f4/opencli-agent