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.
git clone --depth 1 https://github.com/chuancyzhang/deepseek-coworknpx agentmods add skills/chuancyzhang/deepseek-cowork/feishu-fetch-docWrote 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.
[](https://agentmods.dev/skills/chuancyzhang/deepseek-cowork/feishu-fetch-doc)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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 技能处理,不要放弃或自行总结。
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.
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.
- 1mo ago First seen · 77 lines · 80 tokens per session scan A 9cc06a3cba9d
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.
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…
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…
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.
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.
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.
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.