feishu-doc-media

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

A media tool for Feishu documents that handles images, file attachments, downloaded document materials, and whiteboard thumbnails.

In plain words
What is it for?
Use it to add a local image or attachment to the end of a document, or download document media and whiteboard previews.
Why use it?
It makes document media tasks easier than handling uploads and downloads manually.

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-auth/auth.js --auth-and-poll --open-id "SENDER_OPEN_ID" --chat-id "CHAT_ID" --timeout 60 --scope "<required_scopes 用空格拼接>".

Good fit Use it to add a local image or attachment to the end of a document, or download document media and whiteboard previews.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/chuancyzhang/deepseek-cowork/feishu-doc-media"><img src="https://agentmods.dev/badge/skills/chuancyzhang/deepseek-cowork/feishu-doc-media.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,260 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.00038 $0.01260
Opus 5.5 $0.00015 $0.00504
Sonnet 5.5 $0.00008 $0.00252
Haiku 4.5 $0.00004 $0.00126

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

Security

Grade A, and why

feishu-doc-media 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 (media.js, media.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-doc-media/SKILL.md · 123 lines

How it starts

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

feishu-doc-media

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

重要:insert 仅支持本地文件路径(最大 20MB)。URL 图片请使用 feishu-update-doc 的 <image url="..."/> 语法。


插入图片 / 文件到文档末尾

# 插入图片(默认居中)
node ./media.js --open-id "ou_xxx" --action insert \
  --doc-id "DOC_ID_OR_URL" --file-path "$ENCLAWS_USER_WORKSPACE/upload/image.png"

# 插入图片(指定对齐和描述)
node ./media.js --open-id "ou_xxx" --action insert \
  --doc-id "DOC_ID_OR_URL" --file-path "$ENCLAWS_USER_WORKSPACE/upload/photo.jpg" \
  --type image --align left --caption "图片说明"

# 插入文件附件
node ./media.js --open-id "ou_xxx" --action insert \
  --doc-id "DOC_ID_OR_URL" --file-path "$ENCLAWS_USER_WORKSPACE/upload/report.pdf" --type file

--doc-id 支持文档 ID 或完整 URL(自动提取 document_id)。

--align 可选值:left(居左)、center(居中,默认)、right(居右),仅图片生效。

返回字段:block_id、file_token、file_name、url(文档链接)。

返回后必须将 url 字段作为文档链接展示给用户。


下载文档素材

# 下载文档中的图片/视频等素材(file_token 从文档块获取,不传 --output-path 则自动存到默认目录)
node ./media.js --open-id "ou_xxx" --action download \
  --resource-token "FILE_TOKEN" --resource-type media

# 指定保存路径
node ./media.js --open-id "ou_xxx" --action download \
  --resource-token "FILE_TOKEN" --resource-type media \
  --output-path "/path/to/image"

# 下载画板缩略图
node ./media.js --open-id "ou_xxx" --action download \
  --resource-token "WHITEBOARD_ID" --resource-type whiteboard

--output-path 若不带扩展名,自动根据 Content-Type 补充(如 .png、.pdf)。

返回字段:saved_path、size_bytes、content_type。


参数说明

参数 必填 说明
--open-id 是 当前用户 open_id
--action 是 insert / download
insert 参数
--doc-id insert 必填 文档 ID 或 URL
--file-path insert 必填 本地文件绝对路径(≤20MB),必须在允许目录内
--type 可选 image(默认)/ file
--align 可选 left / center(默认)/ right,仅图片
--caption 可选 图片描述文字
download 参数
--resource-token download 必填 file_token(媒体)或 whiteboard_id(画板)
--resource-type download 必填 media / whiteboard
--output-path 可选 本地保存路径(默认:$ENCLAWS_USER_WORKSPACE/download/<resource_token> 或 ./download/<resource_token>),必须在允许目录内

Read the full file on GitHub · 123 lines

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 · 123 lines · 38 tokens per session scan A a963c9605fe5

Subscribe to this mod's changes

feishu-doc-media is a skill published in the GitHub repository chuancyzhang/deepseek-cowork (18 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 1,260 once invoked, about $0.0002 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