Lark Shared
Shared Lark CLI foundation covering identity, auth scopes, output contracts, and high-risk write approval.
- CCM score
- 72 of 100
- skills.sh installs
- 499.6K
- GitHub stars
- 18.2K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers
lark-clisetup and auth:auth login,auth status, andauth logout, plus revoking authorization - Explains user versus bot identity, where
--as useracts on personal resources and--as botacts on app-owned resources - Manages business-domain permissions through
--domain(includingall,docs, anddrive) and resolves missing scopes - Enforces exit code 10 as a high-risk confirmation gate, with
--dry-runpreviews and the rule that_noticeoutput is reviewed
Install
$ npx -y skills add larksuite/cli --skill lark-shared -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
lark-cli 共享规则
所有 lark-* skill 共享的底座:身份、认证、输出契约与高风险操作。
通用准则
-
调用前先确认用法:执行前读对应 reference 或跑
--help,别猜 flag 盲调。 -
身份决定你代表谁操作:
--as user代表用户本人(能看到、也能操作其日历、云空间/云盘/云存储等个人资源),--as bot代表应用自己,应用级操作,只能访问bot自己的资源,bot 查用户资源会返回空成功而非报错。动手前先搞清楚身份identity。身份模型和权限管理 →lark-shared-identity-and-permissions.md。 -
授权 / 配置类 URL 必须配二维码:当命令输出
verification_url、verification_uri_complete、console_url等 URL 字段时,必须用lark-cli auth qrcode生成并在回复中展示,URL 在前二维码在后;优先生成 PNG(--output),仅当用户明确要求时才使用 ASCII(--ascii)。URL 原样转发——不编解码、不加标点、不重拼 query,二维码和链接请一起展示给用户。 -
--format json(默认)下,判断成功用ok == true(或进程退出码 0),不要用code == 0:成功信封没有顶层code/msg字段,code只出现在错误信封的error内。按 OpenAPI 老格式{"code": 0, "msg": "ok"}判断会把所有成功调用误判为失败——封装写入类命令时尤其危险。JSON 输出契约 →lark-shared-output-contract.md。
安全规则
-
禁止输出密钥(appSecret、accessToken等)到终端明文。
-
写入/删除操作前必须确认用户意图。
-
目标命令支持
--dry-run时,用--dry-run预览危险请求。
Details
- Repository
- github.com/larksuite/cli
- Category
- Productivity & Notes
- First seen
- Apr 16, 2026
Questions
What does the lark-shared skill do?
It is the shared base for the lark-cli skills, covering identity (user versus bot), authentication, auth login, status and logout, business-domain permissions, missing scopes, and revoking authorization. It also explains how to handle the _notice JSON field that lark-cli outputs.
How do I install the lark-shared skill?
Run npx -y skills add larksuite/cli --skill lark-shared -y in your project. Once installed, the agent can follow the lark-cli setup and authorization rules in the skill's reference files.
Which other skills rank highly in the Productivity and Notes category?
In Productivity and Notes, lark-shared ranks in the top 3 alongside loop-me, lark-base, lark-wiki, lark-task and lark-calendar. Where those skills act on Lark data, lark-shared covers the setup, identity and permission rules those skills depend on.
Does lark-shared need an app configuration or account before use?
The skill requires the lark-cli binary to be available. It points to the lark-shared-config-init reference for first-time app configuration with lark-cli config init, which must be done before authorizing with auth login.
More from larksuite/cli
All 27- Lark Drive497.2K
- Lark Im497.1K
- Lark Sheets496.4K
- Lark Wiki495.9K
- Lark Whiteboard494.1K
- Lark Task494K
- Lark Calendar493K
- Lark Mail491.3K
- Lark Event490.7K
- Lark Contact490.4K
- Lark Workflow Meeting Summary489.6K
- Lark Workflow Standup Report488.7K
- Lark Openapi Explorer488.6K
- Lark Skill Maker488.2K
- Lark Vc478.5K
- Lark Approval464.2K
- Lark Slides444.8K
- Lark Attendance441.7K
- Lark Okr427.9K
- Lark Markdown409.5K
- Lark Apps339.8K
- Lark Note266K
- Lark Meeting77.6K
- Lark Whiteboard Cli16.5K
Similar to Lark Shared
More Productivity & Noteslark-skill-makerlarksuite/cli488.2K installsGuide for building reusable Feishu lark-cli skills that wrap atomic API calls or multi-step workflows.
lark-baselarksuite/cli500.3K installsManage Feishu/Lark Base (bitable) tables, fields, records, views, forms, dashboards, workflows, and roles from the CLI.
gws-sharedgoogleworkspace/cli70.1K installsShared reference for the gws CLI covering authentication, global flags, and output formatting across Google Workspace commands.
google-workspace-clihoodini/ai-agents-skills458 installsCommand-line access to every Google Workspace API, with commands discovered from Google's live API metadata at runtime.
copilot-cli-quickstartgithub/awesome-copilot8.8K installsInteractive step-by-step Copilot CLI tutorial with Developer and Non-Developer tracks and on-demand Q&A.
basecampbasecamp/skills2.5K installsCommand-line interface for Basecamp covering projects, todos, cards, messages, files, schedules, check-ins, and pings.