Language
Match user's language: Respond in the same language the user uses.
Preflight
bash <SKILL_DIR>/scripts/helper.sh preflight
Module Router
Based on user needs, use the Read tool to read the corresponding reference document, then perform operations according to the document's instructions.
| Module | Trigger keywords | Reference |
|---|---|---|
| Authentication/Configuration | Configuration, login, permissions, scope, auth | shared.md |
| Account switching | Switch account, switch, profile | switch.md |
| Instant messaging | Message, group chat, send message, chat | im.md |
| Cloud docs | Document, create document, doc | doc.md |
| Spreadsheets | Table, spreadsheet, sheets | sheets.md |
| Multi-dimensional tables | Multi-dimensional table, base, bitable | base.md |
| Calendar | Schedule, calendar, meeting, calendar | calendar.md |
| Tasks | Task, to-do, todo, task | task.md |
| Cloud space | File, upload, download, drive | drive.md |
| Email, mailbox, mail, email | mail.md | |
| Contacts | Search employees, contacts, contact | contact.md |
| Knowledge base | Knowledge base, wiki, space | wiki.md |
| Video meetings | Meeting records, vc | vc.md |
| Minutes | Minutes, minutes | minutes.md |
| Whiteboard | Whiteboard, whiteboard, chart, whiteboard | whiteboard.md |
| Event subscription | Listen, event, subscribe | event.md |
| API exploration | Native API, openapi, not wrapped | openapi-explorer.md |
| Workflow | Daily report, standup, meeting summary | workflows.md |
| Skill creation | Create skill, wrap API | skill-maker.md |
Usage pattern: identify module → Read reference → if there are sub-documents, Read as needed → execute lark-cli command.
Authentication quick reference
lark-cli config init --new # 首次配置
lark-cli auth login --domain <domain> # 用户身份登录(按域)
lark-cli auth login --scope "<scope>" # 用户身份登录(按 scope)
lark-cli auth status # 检查状态
Two identities:--as user(user resources) vs --as bot(application-level operations). See shared.md。
Account switching quick reference
source ~/.lark-cli/switch.sh <profile> # 切换
source ~/.lark-cli/switch.sh # 列出所有
lark-cli auth status # 验证
See switch.md。
Security rules
- Do not output secrets(appSecret, accessToken) to the terminal in plaintext
- Must confirm user intent before write/delete operations
- Use
--dry-runto preview dangerous requests