feishu-automation

feishu-automation is a skill for Claude Code, Codex from EthanYoQ/Skill-hub. It costs 62 tokens per session (961 once invoked), scanned B, original, MIT.

An automation guide for Feishu, also called Lark, a workplace app for chat, documents, databases, tasks, and calendars.

In plain words
What is it for?
Working with Feishu messages, groups, Base databases, documents, tasks, and calendar entries through the official API tools.
Why use it?
It directs the agent to use Feishu’s official interfaces and explains the setup needed before those tools are available.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions Codex.

Good fit Working with Feishu messages, groups, Base databases, documents, tasks, and calendar entries through the official API tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ethanyoq/skill-hub/feishu-automation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add EthanYoQ/Skill-hub --skill feishu-automation
Clone the repo
git clone --depth 1 https://github.com/EthanYoQ/Skill-hub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for feishu-automation

README.md
[![agentmods](https://agentmods.dev/badge/skills/ethanyoq/skill-hub/feishu-automation/github.svg)](https://agentmods.dev/skills/ethanyoq/skill-hub/feishu-automation)
Your own site
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/feishu-automation"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/feishu-automation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for feishu-automation

Your own site · 80×15
<a href="https://agentmods.dev/skills/ethanyoq/skill-hub/feishu-automation"><img src="https://agentmods.dev/badge/skills/ethanyoq/skill-hub/feishu-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 961 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.00961
Opus 5 $0.00031 $0.00481
Sonnet 5 $0.00012 $0.00192
Haiku 4.5 $0.00006 $0.00096

Measured 12d ago against content hash 5e980803a362, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

feishu-automation scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (feishu-mcp-setup.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

3. 脚本会优先写入 `~/.codex/config.toml`,仅在 Codex 配置不存在时回退到 `~/.claude.json`。
projects/ai-seed-project/feishu-automation/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

飞书自动化

这个 Skill 以飞书官方文档与官方仓库为准,不再把 Skill 自己当作事实源。

官方来源

使用前提

  1. 当前会话必须已经加载 mcp__lark-mcp_*
  2. 如果工具不存在,先运行:
node .agents/skills/feishu-automation/feishu-mcp-setup.js <app_id> <app_secret>
  1. 脚本会优先写入 ~/.codex/config.toml,仅在 Codex 配置不存在时回退到 ~/.claude.json
  2. 配置完成后必须重启 Codex,新 MCP server 才会生效。

官方 MCP 配置原则

  • 使用官方包:@larksuiteoapi/lark-mcp
  • 默认使用应用身份,不启用 OAuth
  • 默认使用飞书中国区,不额外传 --domain
  • 工具命名固定为 camel

对应官方 MCP 命令形态为:

npx -y @larksuiteoapi/lark-mcp mcp \
  -a <app_id> \
  -s <app_secret> \
  -t preset.light,preset.default,preset.im.default,preset.base.default,preset.base.batch,preset.doc.default,preset.task.default,preset.calendar.default,docx.v1.documentBlock.patch,docx.v1.documentBlockChildren.create,docx.v1.documentBlockChildren.batchDelete \
  -c camel \
  -l zh \
  --token-mode tenant_access_token

如果后续必须访问用户私有资源,再执行官方登录命令:

npx -y @larksuiteoapi/lark-mcp login -a <app_id> -s <app_secret>

然后在 MCP 配置里追加:

--oauth --token-mode user_access_token

适合交给 MCP 的能力

  • 消息发送与查询
  • 群组创建、搜索、成员管理
  • Base 创建、表结构与记录读写
  • 文档查询、导入、权限设置
  • 任务、日历等开放接口能力

不适合交给 MCP 的能力

以下动作属于飞书开放平台控制台,不应假设能由这个 Skill 自动完成:

  • 事件订阅配置
  • 权限开关勾选
  • 机器人“仅接收被 @ 消息”等后场范围设置
  • 发布新版本

另外,基于官方仓库当前说明,以下能力仍有限制:

  • 文件上传/下载暂不支持
  • 飞书云文档直接编辑暂不支持

因此,本项目的 PDF/DOCX 下载与解析继续保留在后端实现,不迁移到 MCP。

使用规则

  • 用户要求“飞书自动化”时,优先确认 mcp__lark-mcp_* 是否可用。
  • 如果工具不可用,先补 MCP,再继续自动化,不要把 Skill 本身假装成 MCP。
  • 若任务涉及开放平台后台发布或权限切换,明确说明这是控制台动作,再把 MCP 用于后续 OpenAPI 验证或数据同步。
  • 对当前仓库,优先把 MCP 用在 Bot、群、Base、文档导入、消息发送等动作上。

Read the full file on GitHub · 92 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 92 lines · 62 tokens per session scan B 5e980803a362

Subscribe to this mod's changes

feishu-automation is a skill published in the GitHub repository EthanYoQ/Skill-hub (9 stars, last pushed 5d ago), licensed MIT. It adds 62 tokens to every session and 961 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.