本文へ移動
cccskills
無料GitHub で公開

feishu-integration

Feishu (Lark) unified CLI for tasks, documents, wiki, bitable, messaging, approval, and Drive. Supports search/create/edit/publish/export across all modules. Use when reading/writing Feishu docs, searching docs or wiki, managing tasks, sending messages, creating approvals, exporting to Markdown, or any 飞书/Lark interaction.

インストール方法を見る

含まれるファイル(44)

  • SKILL.md7.6 KB
  • agents/openai.yaml259 B
  • evals/evals.json3.9 KB
  • feishu2.6 KB
  • references/cli_reference.md7.9 KB
  • references/feishu-api/docx/open.feishu.cn_docs-overview.md14.2 KB
  • references/feishu-api/drive/drive-v1_faq.md7.6 KB
  • references/feishu-api/drive/drive-v1_introduction.md3.2 KB
  • references/feishu-api/drive/file_batch_query.md5.5 KB
  • references/feishu-api/drive/file_copy.md9.3 KB
  • references/feishu-api/drive/file_create_shortcut.md6.3 KB
  • references/feishu-api/drive/file_create-cloud-document.md2.5 KB
  • references/feishu-api/drive/file_delete.md6.4 KB
  • references/feishu-api/drive/file_file-overview.md8.1 KB
  • references/feishu-api/drive/file_get.md5.0 KB
  • references/feishu-api/drive/file_move.md6.4 KB
  • references/feishu-api/drive/folder_create_folder.md5.9 KB
  • references/feishu-api/drive/search_document-search.md5.3 KB
  • references/feishu-api/wiki/space_create.md5.3 KB
  • references/feishu-api/wiki/space_get.md6.3 KB
  • references/feishu-api/wiki/space_list.md4.5 KB
  • references/feishu-api/wiki/space-member_create.md8.6 KB
  • references/feishu-api/wiki/space-member_delete.md7.1 KB
  • references/feishu-api/wiki/space-node_copy.md7.1 KB
  • references/feishu-api/wiki/space-node_create.md7.8 KB
  • references/feishu-api/wiki/space-node_get_node.md7.1 KB
  • references/feishu-api/wiki/space-node_list.md6.8 KB
  • references/feishu-api/wiki/space-node_move.md6.8 KB
  • references/feishu-api/wiki/space-node_update_title.md5.6 KB
  • references/feishu-api/wiki/space-setting_update.md6.3 KB
  • references/feishu-api/wiki/task_get.md8.6 KB
  • references/feishu-api/wiki/task_move_docs_to_wiki.md8.0 KB
  • references/feishu-api/wiki/wiki-v2_wiki-overview.md9.5 KB
  • references/feishu-api/wiki/wiki-v2_wiki-qa.md11.8 KB
  • scripts/approval.py12.0 KB
  • scripts/auth.py22.1 KB
  • scripts/bitable.py17.0 KB
  • scripts/credential_store.py9.1 KB
  • scripts/docx.py46.2 KB
  • scripts/feishu_api.py19.0 KB
  • scripts/members.py8.4 KB
  • scripts/msg.py8.3 KB
  • scripts/task.py16.2 KB
  • scripts/wiki.py27.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Feishu Integration

CLI: ./feishu <module> <command> [options] Parameter details: references/cli_reference.md

Auth

Check: ./feishu auth status. Token auto-refreshes on any API call — no manual refresh needed.

If no credentials exist, guide user through first-use setup:

  1. Create app at 飞书开放平台 → 自建应用
  2. 全选开通用户权限; add redirect http://localhost:9876/callback; publish
  3. export FEISHU_APP_ID="<id>" FEISHU_APP_SECRET="<secret>" → ./feishu auth login

Intent → Command

Task

IntentCommand
查任务 / 未完成task list [--completed false]
建任务task create --summary "..." [--due ISO8601] [--members "Name1,Name2"]
完成任务task list --keyword "..." → task complete --task-id ID
改截止 / 去掉截止task update --task-id ID --due ISO8601 / --clear-due
建清单/Sprinttask tasklist-create --name "...", then task batch-create
评论task comment --task-id ID --content "..."

task list defaults to Markdown table (状态/标题/截止/负责人). Use --format json for raw data.

Document

IntentCommand
浏览文件doc list or doc tree
搜索+读取doc read-raw --name "keyword"
全文搜索doc search-content --query "退款"
搜索+自动读取doc search-content --query "库存" --read
按类型过滤搜索doc search-content --query "数据" --type docx,wiki
从 MD 创建doc create-from-markdown --file path.md
追加内容doc append-markdown --document-id ID --file content.md
清理doc list → doc trash --token TOKEN
共享doc shared-add --url "..." (user provides URL)
导出为 Markdowndoc export --document-id TOKEN --output path.md
导出含图片doc export --document-id TOKEN --images
按名称导出doc export --name "方案"

Batch Upload with Cross-Document Linking

When uploading a directory where an index (e.g., README.md) has relative .md links:

  1. Create target folder in Drive
  2. Upload child docs first via doc create-from-markdown → capture {filename: feishu_url} map
  3. Replace relative links in index with Feishu URLs
  4. Upload processed index

Markdown → Feishu Notes

Auto-handled by create-from-markdown:

  • CJK table columns: 2x width for proportional sizing
  • Relative links [text](file.md) → plain text (Feishu only supports HTTP links)
  • Code blocks, headings, lists, quotes, dividers, todos: fully supported

Wiki

IntentCommand
看知识库wiki space-list → wiki tree --space-id ID
读页面wiki node-read --token TOKEN
发方案到 wikiwiki create-from-markdown --space-id ID --file path.md
搜索知识库wiki search --query "关键词"
搜索+读取wiki search --query "退款" --read
搜索指定空间wiki search --query "退款" --space-id ID
导出 Wiki(含图片)wiki export --url "https://xxx.feishu.cn/wiki/TOKEN"
导出(仅文本)wiki export --token TOKEN --no-images

Message

IntentCommand
发消息到群msg send --chat-id oc_xxx --text "消息内容"
发消息给个人msg send --user "张三" --text "消息内容"
发卡片消息msg send --chat-id oc_xxx --card card.json
查看群列表msg chats
按名称找群msg chats --name "产品"
查看群详情msg chat-info --chat-id oc_xxx
查看消息记录msg history --chat-id oc_xxx [--count 20]
发富文本消息msg send --chat-id oc_xxx --post "内容" --title "标题"

Approval (审批)

IntentCommand
查看审批模板approval list-definitions
查看模板详情approval get-definition --code CODE
创建审批approval create --code CODE --form '{...}'
查看审批详情approval get --instance-id ID
列出审批实例approval list --code CODE [--status PENDING]
同意审批approval approve --instance-id ID --task-id TID
拒绝审批approval reject --instance-id ID --task-id TID --comment "理由"
撤销审批approval cancel --instance-id ID

Bitable

IntentCommand
看表格数据bitable list-tables → bitable list-records --json
按条件筛选bitable list-records --filter 'CurrentValue.[status]="active"'
导出bitable export --format csv --output path.csv
写入/更新bitable create-record / bitable update-record
批量bitable batch-create --file records.json (auto-chunks at 500)

Member

IntentCommand
找人member find --name "keyword" (substring match)
我是谁member whoami

Output Formatting

task list defaults to table output. All other commands output JSON.

Agent should transform JSON for user when applicable:

  • Doc list → numbered list with name, type, date
  • Bitable records → Markdown table matching field names
  • Member lookup → inline: "张三 → ou_xxxxx"

Include url field as clickable link when present.

Error Recovery

CodeMeaningAction
99991663Token expiredAuto-handled by engine. If persists: auth refresh
99991679Scope missingAuto-handled by incremental auth. If persists: auth relogin
100003Permission deniedUser enables scope in console → auth relogin
1470400Invalid paramCheck format (URLs need http:///https://)
Member not found—member scan to refresh cache, retry shorter keyword

Key Behaviors

  • Member resolution: Names auto-resolve to open_id via local cache (~/.agents/data/feishu/members.json, 7d TTL). Substring match on name/en_name.
  • Auto-assign: task create assigns current user unless --no-assign
  • Agent badge: Created tasks show "🤖 Agent" origin in Feishu UI
  • Date clearing: Use --clear-due/--clear-start (not timestamp=0)
  • Shared folders: API can't discover — user must provide URL via doc shared-add
  • Retry: Built-in 429/5xx auto-retry (max 3, exponential backoff)

Structure

feishu-integration/
├── feishu                ← CLI entry (bash)
├── SKILL.md              ← This file
├── scripts/
│   ├── feishu_api.py     ← Core (auth + HTTP + retry + pagination + media download)
│   ├── auth.py           ← OAuth2 (login/refresh/relogin/incremental)
│   ├── task.py           ← Task v2 (table + JSON output)
│   ├── docx.py           ← Document & Drive (+ full-text search + export with images)
│   ├── wiki.py           ← Knowledge base (+ wiki export)
│   ├── bitable.py        ← Bitable (多维表格)
│   ├── msg.py            ← Messaging (send/chats/history + rich-text post)
│   ├── approval.py       ← Approval (审批: create/get/list/approve/reject)
│   └── members.py        ← Member directory (scan/cache/resolve/reverse-resolve)
├── evals/
│   └── evals.json        ← Test cases
└── references/
    └── cli_reference.md  ← Full parameter reference

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

adb-mysql

無料

阿里云 AnalyticDB (ADB) for MySQL 只读数据分析。 多维分析(计数/聚合/时间序列)、交叉验证、Schema 文档生成、多 Profile。

日本語の概要は準備中です。原文の説明を表示しています。

northseadl/norix-skills62026年4月10日 更新

Multi-agent brainstorming: async opinion collision with expert personas. Mixed Codex/Claude Code engine. Use when multiple AI agents need to collaboratively discuss, debate, and converge on solutions through structured dialog. Triggers: brainstorm, multi-perspective discussion, opinion collision, expert debate, war room, collective intelligence, 头脑风暴, 多视角讨论, 集思广益.

日本語の概要は準備中です。原文の説明を表示しています。

northseadl/norix-skills62026年4月10日 更新

Frontend design blueprints with craftsmanship scoring, self-critique loops, and engineering handoff. Aesthetic intelligence against AI homogeneity. Use for: UI/UX design specs, design system creation, visual direction exploration, component design review, design-to-engineering handoff.

日本語の概要は準備中です。原文の説明を表示しています。

northseadl/norix-skills62026年4月10日 更新

Multi-agent SWE team built on the Workshop model. Full-stack vertical workers, meeting room with @mention notification, private pipes, shared task board. Git worktree isolation, Leader-driven coordination. Mixed Codex/Claude Code engine. Use when a task needs engineering depth beyond a single agent. NOT for simple task parallelism (use agent-task-orchestration) or design discussions (use agent-brainstorm).

日本語の概要は準備中です。原文の説明を表示しています。

northseadl/norix-skills62026年4月10日 更新

Task decomposition and multi-agent orchestration with retry, checkpoint recovery, and real-time monitoring. Mixed Codex/Claude Code engine. Parallel/sequential execution.

日本語の概要は準備中です。原文の説明を表示しています。

northseadl/norix-skills62026年4月10日 更新

针对 cnb.cool 的云原生构建(CNB Build):生成/修改 .cnb.yml 流水线、触发规则、 构建环境、runner 资源、缓存、环境变量、手动触发与调试。 在接入、迁移、优化或排查 CNB 构建配置时使用。

日本語の概要は準備中です。原文の説明を表示しています。

northseadl/norix-skills62026年4月10日 更新

northseadl のスキルをすべて見る

このスキルの問題を報告する