feishu
它能做什么
这个技能引导与 Feishu 或 Lark(办公应用)相关的集成工作。适合把机器人、文档或工作流程连接到这些应用的开发者。
适用场景
- ✓当你希望机器人在 Feishu 或 Lark 中发送消息的时候。
- ✓当你需要读取或写入 Feishu 文档、表格或 Bitable 记录的时候。
- ✓当你想设置 Feishu 或 Lark 的 MCP 服务器的时候。
技能链接
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/feishu/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请设置一个 Feishu 机器人,在构建完成时向我们的团队频道发送消息?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会确认你使用的是 Feishu 还是 Lark,选择正确的凭证类型,并使用官方端点,把机密信息保存在环境变量中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Feishu / Lark
Use this skill when the user asks for Feishu, Lark, or "飞书" integration work.
Ground Rules
- Feishu China APIs use
open.feishu.cn; Lark international APIs useopen.larksuite.com. - Never hardcode app secrets, webhook secrets, tenant tokens, or user tokens.
Use environment variables such as
FEISHU_APP_ID,FEISHU_APP_SECRET,FEISHU_WEBHOOK_URL, andFEISHU_WEBHOOK_SECRET. - If credentials are unavailable, produce setup instructions or a local stub instead of pretending the integration is live.
Common Use Cases
- Bot webhook messages
- App access token and tenant access token flows
- Docs, Sheets, Wiki, and Bitable reads/writes
- Approval or workflow status updates
- Feishu/Lark MCP server configuration
Workflow
- Clarify whether the target is Feishu or Lark.
- Identify the credential type: webhook, internal app, marketplace app, or OAuth user token.
- Prefer official OpenAPI endpoints and signed webhooks when secrets are configured.
- For MCP, build or configure a server that exposes narrow tools such as
send_message,read_doc,append_sheet_row, orquery_bitable. - Register the MCP server with
codewhale mcp add, then runcodewhale mcp validateandcodewhale mcp tools. - Verify with a dry run, sandbox document, or read-back call before sending externally visible messages.
Ask for confirmation before sending messages, writing production documents, or changing approval/workflow state.
常见问题
凭证应该放在哪里?
技能要求使用 FEISHU_APP_ID 和 FEISHU_APP_SECRET 等环境变量,绝不硬编码机密信息。
如果我还没有凭证怎么办?
技能要求提供设置说明或本地桩代码,而不是假装集成已经可用。
消息会在未经检查的情况下发出吗?
不会。技能要求在发送可见消息前,先通过试运行、沙盒文档或回读进行验证。
详情
作者的原始描述
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
repo: codewhale-hq/Codewhale
热度
- GitHub 星标
- 41k
- 排名
- #6528
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …