feishu-fetch-doc

feishu-fetch-doc is a skill for Claude Code, Codex from chuancyzhang/deepseek-cowork. It costs 80 tokens per session (967 once invoked), scanned A, original, Apache-2.0.

A reader for Feishu online documents and knowledge-base document pages that returns their contents as Markdown, a plain-text format commonly used in software projects.

In plain words
What is it for?
Use it to read Feishu document URLs and wiki document pages. It does not read downloaded Word, PDF, or Excel files.
Why use it?
It brings document content into code workflows without requiring manual copying from the Feishu interface.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is node ../feishu-search-doc/search-doc.js --open-id "SENDER_OPEN_ID" --query "文档标题".

Good fit Use it to read Feishu document URLs and wiki document pages. It does not read downloaded Word, PDF, or Excel files.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/chuancyzhang/deepseek-cowork
agentmods
npx agentmods add skills/chuancyzhang/deepseek-cowork/feishu-fetch-doc

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-fetch-doc

README.md
[![agentmods](https://agentmods.dev/badge/skills/chuancyzhang/deepseek-cowork/feishu-fetch-doc/github.svg)](https://agentmods.dev/skills/chuancyzhang/deepseek-cowork/feishu-fetch-doc)
Your own site
<a href="https://agentmods.dev/skills/chuancyzhang/deepseek-cowork/feishu-fetch-doc"><img src="https://agentmods.dev/badge/skills/chuancyzhang/deepseek-cowork/feishu-fetch-doc/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-fetch-doc

Your own site · 80×15
<a href="https://agentmods.dev/skills/chuancyzhang/deepseek-cowork/feishu-fetch-doc"><img src="https://agentmods.dev/badge/skills/chuancyzhang/deepseek-cowork/feishu-fetch-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 967 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00080 $0.00967
Opus 5.5 $0.00032 $0.00387
Sonnet 5.5 $0.00016 $0.00193
Haiku 4.5 $0.00008 $0.00097

Measured 1mo ago against content hash 9cc06a3cba9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

feishu-fetch-doc scanned grade A with 0 findings 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (fetch-doc.js, fetch-doc.mjs), 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ai_skills/feishu-docs/feishu-fetch-doc/SKILL.md · 77 lines

What it actually says

feishu-fetch-doc

模块兼容:所有脚本均提供 .js 和 .mjs 两个版本。优先使用 .js,若报 require is not defined 错误则改用同名 .mjs 文件。

直接用 exec 执行,不要检查文件或环境。

命令

node ./fetch-doc.js --open-id "SENDER_OPEN_ID" --doc-id "文档TOKEN或URL"

若为 wiki 链接,加 --wiki。脚本自动从 URL 解析 token。

适用范围(先判断再调用)

用户描述 是否用本技能
「读取这个文档」+ URL 含 /docx/ 或 /docs/ ✅ 用本技能
「读取 wiki 文档」+ Wiki 节点 obj_type=docx/doc ✅ 用本技能
「读取/下载云盘里的 Word/PDF/Excel 文件」 ❌ 用 feishu-docx-download
「读取我那个 .docx / .pdf 文件」 ❌ 用 feishu-docx-download
Wiki 节点 obj_type=file(附件文件) ❌ 用 feishu-docx-download

⚠️ 「Word 文档」≠ 飞书在线 docx:用户说"Word 文档"通常指 .docx 二进制文件(云盘附件),应走 feishu-docx-download。

用户只提供文档标题时

如果用户只提供了文档标题而非链接或 token,必须先用 feishu-search-doc 搜索,从结果中取得文档 token 后再执行本脚本:

node ../feishu-search-doc/search-doc.js --open-id "SENDER_OPEN_ID" --query "文档标题"

从搜索结果中找到匹配的文档 token(doc_token 字段),再传给 --doc-id。不要因为缺少 token 就向用户询问,应主动搜索。

必须确认的参数

参数 何时询问
--doc-id 用户未提供文档链接或 token,且通过 feishu-search-doc 搜索后仍无法确定目标文档时

输出

脚本返回 JSON,将 markdown 字段内容展示给用户。

授权

若返回 {"error":"auth_required"} 或 {"error":"permission_required"},不要询问用户是否授权,直接立即执行以下命令发送授权链接:

  • 若返回 JSON 中包含 required_scopes 字段,将其数组值用空格拼接后传入 --scope 参数:
node ../feishu-auth/auth.js --auth-and-poll --open-id "SENDER_OPEN_ID" --chat-id "CHAT_ID" --timeout 60 --scope "<required_scopes 用空格拼接>"
  • 若返回中不包含 required_scopes,则不加 --scope 参数(使用默认权限)。

  • {"status":"authorized"} → 重新执行原始命令

  • {"status":"polling_timeout"} → 立即重新执行此 auth 命令(不会重复发卡片)

  • CHAT_ID 不知道可省略

权限不足时(应用级)

若返回中包含 "auth_type":"tenant",说明需要管理员在飞书开放平台开通应用权限,必须将 reply 字段内容原样发送给用户。

文件类型不支持时

若返回 {"error":"unsupported_type"} 且 hint 字段提示使用 feishu-docx-download,说明该文档是附件文件(Word、PDF 等),不是在线云文档。必须立即改用 feishu-docx-download 技能处理,不要放弃或自行总结。

Files

What ships with it

2 files 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. 1mo ago First seen · 77 lines · 80 tokens per session scan A 9cc06a3cba9d

Subscribe to this mod's changes

feishu-fetch-doc is a skill published in the GitHub repository chuancyzhang/deepseek-cowork (18 stars, last pushed today), licensed Apache-2.0. It adds 80 tokens to every session and 967 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

apify-youtube-transcript-scraper

Get YouTube captions, timestamped quotations, SRT/VTT and translated transcripts for videos, channels and playlists through the harshmaur/youtube-transcript-scraper Apify Actor.

sickn33/agentic-awesome-skills · 48 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens