lark-shared
Installation
Summary
Lark CLI configuration, authentication, and operational guidelines for agent workflows.
- Requires initial setup via
lark-cli config init --new; generate QR codes for all verification URLs usinglark-cli auth qrcodebefore sharing with users - Supports two identity types—user (personal resources via
auth login) and bot (application-level via appId/appSecret)—with distinct permission models; confirm identity matches the operation's intent - Handle permission errors differently by identity: bot requires backend scope setup (provide
console_url), user requiresauth login --scopeor--domainwith explicit scope specification - Use split-flow for agent-initiated auth: execute
--no-wait --jsonto get verification URL and device code, display to user, then execute--device-codein a follow-up step after user confirms completion - High-risk write operations require explicit user confirmation; when CLI exits with code 10 and
confirmation_requirederror, display the action details, obtain user consent, then retry with--yesappended to the original command
SKILL.md
lark-cli 共享规则
本技能指导你如何通过lark-cli操作飞书资源, 以及有哪些注意事项。
配置初始化
首次使用需运行 lark-cli config init 完成应用配置。
当你帮用户初始化配置时,使用background方式使用下面的命令发起配置应用流程,启动后读取输出,从中提取授权链接并发给用户。
URL 转发规则:当命令输出 verification_url、verification_uri_complete、console_url 等 URL 字段时,必须将 URL exactly as returned by the CLI 转发给用户,并把它视为不可修改的 opaque string;不要做 URL encode/decode,不要补 %20、空格或标点,不要重新拼接 query,不要改写成 Markdown link text,建议用只包含原始 URL 的代码块单独输出。
# 发起配置(该命令会阻塞直到用户打开链接并完成操作或过期)
lark-cli config init --new
认证
Explore more of GLSRM
