feishu-cli-platform
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese飞书平台能力
Feishu Platform Capabilities
先判断意图,再读取对应工作流。不要一次加载全部 reference。
加载后,将工作流中的 、、、 相对路径按该
所在目录解析;执行脚本时使用解析后的实际路径,不要依赖当前 shell 目录。
references/scripts/templates/examples/workflow.mdFirst determine the intent, then read the corresponding workflow. Do not load all references at once.
After loading, resolve the relative paths , , , in the workflow according to the directory where the is located; use the resolved actual path when executing scripts, do not rely on the current shell directory.
references/scripts/templates/examples/workflow.md路由
Routing
| 意图 | 读取文件 |
|---|---|
| 登录、登出、scope 预检、Token、profile、config、doctor | |
调任意 OpenAPI、 | |
| 查询本地 OpenAPI path、参数和 scope | |
| 搜索文档、消息或应用 | |
| 查询用户、邮箱、手机号、部门 | |
Schema 只负责发现接口;API 负责执行请求。通常先查 schema,再调用 api。
| Intent | File to Read |
|---|---|
| Login, logout, scope pre-check, Token, profile, config, doctor | |
Call any OpenAPI, | |
| Query local OpenAPI path, parameters and scope | |
| Search documents, messages or apps | |
| Query users, emails, phone numbers, departments | |
Schema is only responsible for discovering interfaces; API is responsible for executing requests. Usually, check the schema first, then call the api.
执行规则
Execution Rules
- 优先运行仓库当前编译产物 ;安装环境才使用 PATH 中的
./feishu-cli。feishu-cli - User Token 操作先执行 。不要在输出、文件或命令历史中暴露真实 Token。
auth check --scope - 多 Bot / 不确定当前是哪个应用时,先 ;单次目录/Token 选择用
profile list --json,不要为一条命令去--profile <name>。若profile use,环境变量仍覆盖 App 凭证,需先提示用户 unset 对应变量。env_overrides.app_id/app_secret=true - 写请求先用 ;API 不支持 dry-run 的端点需明确告知用户副作用。
--dry-run - 搜索与通讯录结果默认只读取;用户要求后续写操作时再切换到对应领域 Skill。
- Prioritize running the current compiled product in the repository; use
./feishu-cliin PATH only for environment installation.feishu-cli - Execute first for User Token operations. Do not expose real Tokens in output, files or command history.
auth check --scope - When there are multiple Bots / unsure which application is currently in use, run first; use
profile list --jsonfor single directory/Token selection, do not use--profile <name>for a single command. Ifprofile use, environment variables still override App credentials, you need to prompt the user to unset the corresponding variables first.env_overrides.app_id/app_secret=true - Use first for write requests; for endpoints that do not support dry-run, clearly inform users of side effects.
--dry-run - Search and address book results are read-only by default; switch to the corresponding domain Skill only when the user requests subsequent write operations.
领域边界
Domain Boundaries
- 文档读写与导入导出:
feishu-cli-docs - 云盘、知识库、评论和权限:
feishu-cli-storage - 消息、群聊、卡片和事件:
feishu-cli-messaging - Sheet/Bitable:
feishu-cli-data
- Document read/write and import/export:
feishu-cli-docs - Cloud disk, knowledge base, comments and permissions:
feishu-cli-storage - Messages, group chats, cards and events:
feishu-cli-messaging - Sheet/Bitable:
feishu-cli-data