Feishu Pdf Downloader logo

Feishu Pdf Downloader

Community
wulaosiji
feishu-pdf-downloader

通过文件 token 从飞书云盘下载 PDF 及其他文件 / Download PDF and other files from Feishu/Lark cloud drive using file token. 支持自动凭证加载,可批量下载多个文件。 Use when: "下载飞书文件", "download feishu files", "飞书PDF下载", "feishu pdf download", "云盘文件导出", "cloud drive export", "提取飞书文档", "extract feishu documents", "文件token下载", "file token download". 通过飞书 Open API 下载文件,支持自动凭证加载,下载后可配合 PDF 处理工具进行文本提取或 OCR。Cross-references: feishu-doc, feishu-doc-converter, feishu-doc-orchestrator. Built by UniqueClub 🌐 https://uniqueclub.ai

Overview

Publisherwulaosiji
Repositoryskills
Skill namefeishu-pdf-downloader
Stars
28
Forks
11
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by wulaosiji on GitHub. Read the source before you install it.

Installation

Install the Feishu Pdf Downloader AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wulaosiji/skills/tree/main/feishu-pdf-downloader
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wulaosiji/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/feishu-pdf-downloader .claude/skills/feishu-pdf-downloader
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Feishu Pdf Downloader in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Feishu Pdf Downloader on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Feishu Pdf Downloader is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Feishu PDF Downloader

通过文件 token 从飞书云盘下载 PDF 及其他文件,支持自动凭证加载。

When to Use

Use this skill when:

  • 需要从飞书云盘下载 PDF 或其他文件到本地时
  • 已知文件 token 需要批量下载多个文件时
  • 需要提取飞书存储的文档进行离线处理时
  • 需要配合 PDF 处理工具进行后续文本提取或 OCR 时

Do NOT use this skill if:

  • 需要读取飞书文档内容而不下载文件 → use feishu-doc instead
  • 需要将文档转换为 Markdown → use feishu-doc-converter instead
  • 需要创建新文档 → use feishu-doc-orchestrator instead

Typical triggers:

  • 「帮我把飞书云盘的文件下载下来」「提取飞书 PDF 到本地」
  • "Download this file from Feishu drive", "根据 file_token 下载文档"

Workflow

  1. 探查 (Probe) 确认文件 token 和期望的本地保存路径。从 Web URL 提取 token:https://xxx.feishu.cn/file/<file_token>。

  2. 约束 (Constrain) 确保 ~/.openclaw/.env 中包含有效的 FEISHU_APP_ID 和 FEISHU_APP_SECRET。确保应用具备 drive:file:read 权限。文件 token 必须有效且文件存在。不降级——凭证缺失时停止并提示用户。

  3. 证据 (Evidence) 确认文件 token 有效,调用飞书认证 API 获取 tenant_access_token。

  4. 执行 (Execute) 调用下载 API 获取文件二进制内容并保存到本地:

bash
python3 skills/feishu-pdf-downloader/scripts/download_feishu_pdf.py <file_token> [output_path]
  1. 验证 (Verify) 检查文件大小和完整性,确认下载的文件非空且格式正确。

  2. 交付 (Deliver) 返回本地文件路径,清理临时文件。

Output

返回下载的本地文件路径。下载的 PDF 可配合 pdf skill 进行文本提取、OCR 或表格提取。

Guardrails

Anti-patterns

  • NEVER 在没有 drive:file:read 权限的情况下尝试下载
  • Do NOT 使用无效的文件 token(下载会失败)
  • Do NOT 跳过文件完整性验证

Constraints

  • 确保应用具备 drive:file:read 权限
  • 文件 token 必须有效且文件存在,否则下载会失败
  • 下载的 PDF 如需 OCR 或表格提取,建议使用 pdfplumber、pdf2image 等工具

How to Get File Token

From Web URL

  • https://xxx.feishu.cn/file/<file_token>
  • https://xxx.feishu.cn/drive/folder/<folder_token>

From API

Use Feishu drive API to list files and get tokens.

Processing Downloaded PDFs

After downloading, use the pdf skill to:

  • Extract text: pdftotext input.pdf output.txt
  • OCR scanned PDFs: Convert to images → pytesseract
  • Extract tables: Use pdfplumber

Troubleshooting

IssueSolution
"FEISHU_APP_ID not set"Check ~/.openclaw/.env file format
"Failed to get token"Verify app_id and app_secret are correct
"Download failed"Check file_token is valid and file exists
Permission deniedEnsure app has drive:file:read permission

Related Skills

  • feishu-doc — 只读读取飞书文档内容
  • feishu-doc-converter — 将飞书文档转换为 Markdown
  • feishu-doc-orchestrator — 创建飞书文档

About UniqueClub

Part of the UniqueClub toolkit. 🌐 https://uniqueclub.ai

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Feishu Pdf Downloader AI skill do?

通过文件 token 从飞书云盘下载 PDF 及其他文件 / Download PDF and other files from Feishu/Lark cloud drive using file token. 支持自动凭证加载,可批量下载多个文件。 Use when: "下载飞书文件", "download feishu files", "飞书PDF下载", "feishu pdf download", "云盘文件导出", "cloud drive export", "提取飞书文档", "extract feishu documents", "文件token下载", "file token download". 通过飞书 Open API 下载文件,支持自动凭证加载,下载后可配合 PDF 处理工具进行文本提取或 OCR。Cross-references: feishu-doc, feishu-doc-converter, feishu-doc-orchestrator. Built by UniqueClub 🌐 https://uniqueclub.ai

Why use Feishu Pdf Downloader on TypingMind?

Because you install it once and use it with any model. Feishu Pdf Downloader is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Feishu Pdf Downloader in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wulaosiji/skills/tree/main/feishu-pdf-downloader. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Feishu Pdf Downloader?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Feishu Pdf Downloader?

As many as you like. As long as a model supports skills, you can use Feishu Pdf Downloader with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Feishu Pdf Downloader AI skill free?

It is published on GitHub by wulaosiji. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇