Introduction¶
To enable Agents in Cursor, Codex, or Claude Code to operate Feishu/Lark documents, calendars, or group chats, you typically need to first install the official CLI tool lark-cli (npm package @larksuite/cli) on your local machine, then complete app creation and OAuth authorization. Manually checking Node versions, dealing with npm permissions, and clicking through the Open Platform documentation step by step involves many steps and can easily get stuck at any point.
Below is an introduction to the SkillHub community Skill “Feishu CLI One-Click Installer Assistant” (@user_af28adda/feishu-cli-installer). It turns environment detection, CLI installation, related Skills installation, configuration initialization, authorization guidance, and result validation into executable Python scripts, driven by the Agent via SKILL.md, reducing repetitive manual operations. The tag requires_api_key=false indicates no additional API Key configuration is needed.
What Is This¶
One-sentence positioning: A one-click installation and configuration guidance Skill for AI Agents to install and configure the Feishu/Lark CLI (lark-cli).
Maintenance and source: Community-published (community), located at @user_af28adda/feishu-cli-installer, current version 1.0.0, categorized as dev-programming. SkillHub page statistics (based on crawled data): rating 100000, downloads 8060, installations 214.
Problem it solves: It chains “install CLI → install supporting Skills → initialize configuration → user authorization → verify” into a fixed workflow; supports progress recording, breakpoint resume on failure, and provides actionable fix suggestions when the environment is not met (e.g., Node version, npm permissions, mirror sources).
Core Features¶
Based on the SKILL.md and scripts/ implementation within the Skill package, the verified capabilities are as follows.
-
Smart Environment Detection (
scripts/environment_checker.py)
Checks Node.js (documented requirement 16.0+), npm/yarn, network, and system permissions, and outputs issue descriptions. -
One-Click Automatic Installation (
scripts/one_click_installer.py)
Chains the installation oflark-cli(npm install -g @larksuite/clioryarn global add @larksuite/cli), installation of related Skills, initialization of app configuration, authorization guidance, and installation verification. -
Breakpoint Resume Installation
Uses.lark_cli_install_progress.jsonin the working directory to record steps; completed steps can be skipped, and failed installations can resume from the breakpoint. -
Error Handling and Step-by-Step Entry Points
Besides the one-click script, individual scripts can be called separately:lark_installer.py,skills_installer.py,config_initializer.py,auth_guide.py,installation_validator.py. Common issues are documented inreferences/common_issues.mdandreferences/troubleshooting.md.
Verification commands after successful installation (as defined in the Skill documentation):
lark-cli help
lark-cli auth status
lark-cli config list
Installation and Enablement¶
1. Install SkillHub CLI (if not yet installed)¶
command -v skillhub && skillhub --version
If not installed, run:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
CLI only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
See SkillHub installation documentation for details.
2. Install the Skill into the current Agent’s skills directory¶
When installing, you must use --dir to point to the current client’s skills directory; otherwise, it will default to ./skills/ and the Agent may not be able to load it. Common paths given in the official documentation:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Installation command (requires namespace):
skillhub install feishu-cli-installer --namespace user_af28adda --dir ~/.cursor/skills/
You can also give the following prompt to the Agent and let it follow the SkillHub installation instructions:
Please install `@user_af28adda/feishu-cli-installer` according to https://skillhub.cn/install/skillhub.md.
After installation, restart or refresh the Agent according to the requirements of your client to make the Skill take effect.
Typical Usage¶
One-click install lark-cli in the Skill directory¶
Navigate to the installed Skill directory (the path varies by --dir; the example below uses the Cursor global directory):
cd ~/.cursor/skills/@user_af28adda/feishu-cli-installer
python scripts/one_click_installer.py
The workflow described in the documentation is divided into five steps: environment detection → install lark-cli → install Skills → initialize configuration (including App ID / App Secret) → browser OAuth authorization → run installation_validator to verify.
Step-by-step execution (for fine-grained control)¶
python scripts/environment_checker.py
python scripts/lark_installer.py
python scripts/skills_installer.py
python scripts/config_initializer.py
python scripts/auth_guide.py
python scripts/installation_validator.py
If authorization fails or the token expires, the Skill documentation suggests re-running:
lark-cli auth login
Interacting with the Agent¶
After the Skill is installed and the CLI is working, you can initiate Feishu-related tasks to the Agent according to the examples in SKILL.md, such as creating cloud documents, checking calendars, searching group chats, etc. (specific capabilities depend on the installed Feishu CLI sub-Skills and current login state).
Use Cases and Notes¶
Who it’s for
- Developers setting up Feishu/Lark CLI for Agents locally for the first time.
- Environments with interrupted installations, needing breakpoint resume, or troubleshooting Node/npm/network issues.
- Teams that prefer fixed scripts rather than scattered command copying.
Limitations and Notes
- Requires Node.js 16+ and global npm/yarn; on Linux, when permissions are insufficient, you need to adjust the npm prefix or use
sudoto install global packages according to the documentation. - Configuration and authorization involve Feishu Open Platform app information; please operate in a trusted environment and do not commit App Secret to public repositories.
- When installing the Skill via SkillHub, you must use
--namespace user_af28adda; if you only write the full slug without the namespace, the CLI may not be able to parse and download from the index. - Community Skill; behavior is subject to the
SKILL.mdand scripts in the package; the Feishu CLI itself is ultimately based on larksuite/cli and Feishu Open Platform documentation.
Conclusion¶
The “Feishu CLI One-Click Installer Assistant” consolidates lark-cli from environment checking to authorization verification into an Agent-executable script workflow, making it suitable as a prerequisite installation step for the Feishu automation Skills chain. Official entry points:
- SkillHub API:
https://api.skillhub.cn/user_af28adda/feishu-cli-installer - SkillHub page:
https://www.skillhub.cn/skills/user_af28adda/feishu-cli-installer