Feishu-skills feishu-file

Feishu File Skill

install
source · Clone the upstream repo
git clone https://github.com/autogame-17/feishu-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/autogame-17/feishu-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/feishu-file" ~/.claude/skills/autogame-17-feishu-skills-feishu-file && rm -rf "$T"
manifest: feishu-file/SKILL.md
source content

Feishu File Skill

Manage file uploads and downloads via Feishu API.

Prerequisites

  • Install
    feishu-common
    first.
  • This skill depends on
    ../feishu-common/index.js
    for token and API auth.

Commands

Send File

Upload a local file and send it to a chat or user.

node skills/feishu-file/send.js --target <chat_id_or_user_id> --file <local_path>

Upload Only

Upload a file and get its

file_key
(for use in cards or rich text).

node skills/feishu-file/upload.js --file <local_path>

Download File

Download a file resource from a message.

node skills/feishu-file/download.js --message-id <msg_id> --file-key <file_key> --output <local_path>

Note: The bot must have access to the message (be in the chat). For files sent by others, the

im:resource:read
scope is required.