skills/feishu-cli-manager/SKILL.md
Use when the user asks to install Feishu/Lark CLI, configure lark-cli, connect an agent with Feishu CLI, check or refresh lark-cli auth, recover expired tokens, or start a Feishu device-flow login.
npx skillsauth add csfuwwc/md-skills feishu-cli-managerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to install, configure, and maintain local lark-cli for agent workflows.
which lark-cli, lark-cli --version, and npm list -g --depth=0 as installation evidence.lark-cli auth status as the first source of truth for local auth state.lark-cli auth status --verify only when network verification is needed.auth login for bot-only permission issues.lark-cli auth login must request an explicit range with --domain, --scope, or --recommend.lark-cli config bind, lark-cli config init --new, or lark-cli config init --force-init unless the user confirms the intended app/config identity.Prefer the bundled helper when available from this skill directory:
python3 scripts/feishu_cli_setup.py --check
Manual checks:
node --version
npm --version
which lark-cli
lark-cli --version
lark-cli is normally installed as the global npm package @larksuite/cli.
Install only when lark-cli is missing:
python3 scripts/feishu_cli_setup.py --install
Equivalent direct command:
npm install -g @larksuite/cli
Update an existing install:
lark-cli update
Use lark-cli update --check --json when only checking update availability.
If lark-cli is installed but not configured, inspect before changing anything:
lark-cli auth status
lark-cli config init --help
lark-cli config bind --help
Inside an agent workspace, prefer lark-cli config bind only after the user confirms the target app and identity mode. Use bot-only unless the task needs personal resources; use user-default only when the user explicitly needs user-resource access.
For a brand-new standalone app setup, and only after the user confirms that intent:
lark-cli config init --new
Run:
lark-cli auth status
Use server verification only when needed:
lark-cli auth status --verify
If an environment reports keychain not initialized, first suspect that the current process cannot access the local keychain. Re-run the check in an environment with normal keychain access before assuming the Feishu account or token is broken.
If the token is expired, missing, revoked, or too close to expiry, start a scoped login:
lark-cli auth login --domain all --scope offline_access
Use narrower domains or scopes when the task is limited:
lark-cli auth login --domain docs --domain drive
lark-cli auth login --scope "docs:document.content:read drive:file:download offline_access"
The bundled helper can summarize expiry and decide whether login is needed, but it must run with the same keychain access as lark-cli:
python3 scripts/feishu_auth_refresh.py --login-if-needed --domain all --scope offline_access
lark-cli is installed.@larksuite/cli with npm after confirming Node/npm are available.lark-cli auth status.tokenStatus is valid and refreshExpiresAt is not close, report that no reconnect is needed.lark-cli auth status --verify once and re-check.lark-cli auth login with the smallest explicit domain/scope that fits the task.lark-cli auth status --verify.documentation
Use when a user provides Xiaohongshu/XHS/xhslink URLs, asks to fetch 小红书 note or video content, likes, saves/collections, comments, publish metadata, or wants to fill a spreadsheet/Base from 小红书 links.
content-media
Use when a user provides Weibo/微博 links, asks to fetch 微博 post text, likes, video visual content, or wants to fill a Lark Base table from 微博 links.
testing
Read and send email via IMAP/SMTP. Check for new/unread messages, fetch content, search mailboxes, mark as read/unread, and send emails with attachments. Supports multiple accounts. Works with any IMAP/SMTP server including Gmail, Outlook, 163.com, vip.163.com, 126.com, vip.126.com, 188.com, and vip.188.com.
content-media
Use when a user provides Douyin/抖音 links, v.douyin.com short links, asks to fetch 抖音 video text, likes, collections/favorites, video visual content, or wants to fill a Lark Base table from 抖音 links.