Feishu File and Image Transfer: Enabling Agents to Send Local Files to Feishu Users

Introduction

In Feishu collaboration, it is often necessary to send local screenshots, documents, or images to specific users. Manually uploading and then pasting messages interrupts your conversation flow with the Agent. If you want the Agent to complete the “Select file → Upload → Send message” process directly within the conversation, you need to encapsulate Feishu’s open capabilities at the skill layer and configure the app credentials in advance.

The following introduces the SkillHub community skill “Feishu File Image Sender” (@user_037a0790/feishu-file-image-sender), which is used to trigger the sending of local files to Feishu users via the Agent side.

What is This

“Feishu File Image Sender” is a community skill on SkillHub (Version 1.0.0, Category office-efficiency), published by user_037a0790. The official description summarizes it as: sending local files to Feishu users, uploading files and sending messages; invoked by the Agent when the user intends to send an image or a file.

The skill is marked as requires_api_key=true. The actual dependency is configured in openclaw.json with the Feishu app’s appId and appSecret, rather than hardcoding the keys into the skill package.

Core Features

Based on the SkillHub page and metadata, the confirmed capabilities are as follows:

  1. Local File Sending: Targeting Feishu users, reading files from local paths and proceeding with Feishu-side upload and messaging flows.
  2. Images and Generic Files: The description explicitly states it is invoked in scenarios where users send images or files, covering common office attachment types (specific MIME types and size limits depend on the Feishu Open Platform and runtime implementation; these are not listed separately on the page).
  3. Message Integration: Not just uploading, but also sending a message to deliver the file content to the recipient.

Interface names, callback addresses, or CLI subcommands not appearing in the official description are not expanded upon in this article to avoid inconsistency with the actual SKILL.md.

Installation and Enablement

Install SkillHub CLI (if not installed)

First, check if the CLI already exists:

command -v skillhub && skillhub --version

If not installed, follow the SkillHub installation documentation to perform a full installation (including CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Install This Skill

When installing, you must use --dir to point to the skills directory actually used by the current Agent; otherwise, it will default to ./skills/, and the Agent may fail to load it.

skillhub install @user_037a0790/feishu-file-image-sender --dir <skills directory>

Common client skills paths (from SkillHub installation documentation, choose one based on your current environment):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

You can also provide the following prompt to an AI that supports Skill installation and let it install according to the SkillHub Installation Guide:

Please install `@user_037a0790/feishu-file-image-sender` based on https://skillhub.cn/install/skillhub.md.

If the Agent does not immediately recognize the new skill after installation, restart or refresh the skill list according to your client’s instructions.

Feishu App Configuration

Configure the Feishu appId and appSecret in openclaw.json. This is a mandatory prerequisite in the skill description; without configuration, upload and messaging capabilities will not function properly.

The page does not provide a complete field example for openclaw.json. Please refer to the OpenClaw-based runtime you are using and the Feishu Open Platform documentation to fill in valid app credentials, and ensure the app has the necessary permission scopes for sending messages and transferring files.

Typical Usage

Official materials do not include a copyable end-to-end conversation script; usage can be inferred from the description as a reproducible working method:

  1. Complete the Skill installation and Feishu credential configuration in openclaw.json.
  2. Specify the recipient (Feishu user) and local file path in the conversation, or explicitly state “send this image/file to someone”.
  3. The Agent invokes this skill when it recognizes the intent to send an image or file, executing the upload and message sending.

You do not need to memorize Feishu REST steps; the skill consolidates “Upload + Send Message” into a capability callable by the Agent. Specific parameter names and error code handling are subject to the SKILL.md within the skill package.

Scenarios and Notes

Who is it for

  • Teams or individuals who have already created an app on the Feishu side and can maintain appId / appSecret in openclaw.json.
  • Those who want to use natural language to have the Agent send local attachments, reducing the need to repeatedly click upload in the Feishu client.

Limitations and Notes

  • Community sourced (community); upgrade and maintenance rhythms depend on the publisher. It is recommended to verify permissions and quotas in a test tenant before using in a production environment.
  • Tag requires_api_key=true: Keys should only be placed in configuration files, not written into conversations or repository plaintext.
  • SkillHub statistics (at time of crawl): Rating 100000, Downloads 1236, Installs 50; data changes over time, please refer to the Skill Page.

Conclusion

“Feishu File Image Sender” encapsulates the messaging pipeline from local files to Feishu users into an Agent Skill, suitable for office efficiency automation. The installation coordinate is @user_037a0790/feishu-file-image-sender. Be sure to configure the Feishu app information in openclaw.json before use.

Official Entrances:

  • SkillHub Page: https://www.skillhub.cn/skills/user_037a0790/feishu-file-image-sender
  • API Coordinate Page: https://api.skillhub.cn/user_037a0790/feishu-file-image-sender
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye