Token导航 LogoToken导航TokenDH.com
图像处理敏感数据github未标认证来源可访问许可证需确认审计通过

feishu-image飞书图像

Agent Skill

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

总安装

5,267

周安装

211

GitHub Stars

2

下载量

1,705
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:feishu-image(飞书图像)
来源仓库:https://github.com/zrong/skills
仓库路径:skills/feishu-image
安装命令:
npx skills add https://github.com/zrong/skills --skill feishu-image
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zrong/skills --skill feishu-image

简介

用于辅助图像生成、图片编辑和视觉素材处理。

  • 适合让 Agent 根据文本生成图片或调用图像工具。
  • 使用时需确认输入图片、版权来源、输出格式和模型限制。
  • 涉及人物、品牌或公开展示素材时应核对授权和真实性。
  • 安装前建议确认权限范围和维护状态。feishu-image 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Feishu Image Sender

Send images to Feishu (Lark) conversations. This skill works both inside OpenClaw and as a standalone CLI tool.

When to use this skill

  • User asks to "截图发给我" (send me a screenshot)
  • User wants to share any image file through Feishu
  • Need to send visual content (charts, diagrams, photos) via Feishu
  • OpenClaw's built-in message tool fails to send images

Configuration

For OpenClaw Users

When running inside OpenClaw, this skill automatically reads credentials from OpenClaw's Feishu configuration. No manual setup required.

For Standalone Usage

Set the following environment variables:

export FEISHU_APP_ID="cli_xxxxxxxxxxxxxxxx"
export FEISHU_APP_SECRET="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Or create a .env file in your project root:

FEISHU_APP_ID=cli_xxxxxxxxxxxxxxxx
FEISHU_APP_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Note: If running outside OpenClaw without credentials configured, this skill will display a clear error message with setup instructions.

Feishu App Setup

  1. Go to Feishu Developer Console
  2. Create a new app (Enterprise self-built app)
  3. Enable the following permissions:

- im:resource - Upload images - im:message - Send messages

  1. Get your App ID and App Secret from the app credentials page
  2. Publish the app and make it available to your organization

Usage

As a Skill in OpenClaw

The skill will automatically use OpenClaw's Feishu configuration:

// Example: User asks to "send me a screenshot"
// The skill will automatically:
// 1. Read OpenClaw config for Feishu credentials
// 2. Upload the screenshot to Feishu
// 3. Send it to the user

As a CLI Tool

Send an image to a Feishu user:

node feishu-image.js --image /path/to/screenshot.png --to ou_xxxxxxxx

With an optional message:

node feishu-image.js --image chart.png --to ou_xxxxxxxx --text "Q4 Sales Report"

Send to a chat group:

node feishu-image.js --image announcement.png --to oc_xxxxxxxx --chat

As a Node.js Library

const { FeishuImage } = require('./scripts/feishu-image.js');

const sender = new FeishuImage({
  appId: 'cli_xxxxxxxxxxxxxxxx',
  appSecret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
});

// Send image to a user
await sender.sendImage({
  imagePath: '/path/to/screenshot.png',
  receiveId: 'ou_xxxxxxxx',
  receiveType: 'user'
});

// Send image with text
await sender.sendImage({
  imagePath: '/path/to/chart.png',
  receiveId: 'ou_xxxxxxxx',
  receiveType: 'user',
  text: 'Here is the sales report'
});

CLI Reference

Options

OptionShortDescriptionRequired
--image-iPath to the image fileYes
--to-tRecipient's Feishu open_id or chat_idYes
--textOptional text message to includeNo
--chat-cSend to a chat group (default: user)No
--help-hShow help messageNo

Examples

# Basic usage
node feishu-image.js -i screenshot.png -t ou_123456

# With message
node feishu-image.js --image chart.png --to ou_123456 --text "Q4 Report"

# To group chat
node feishu-image.js -i announcement.png -t oc_789012 --chat

Library API Reference

new FeishuImage(config)

Creates a new Feishu Image sender instance.

Parameters:

  • config.appId (string): Feishu app ID
  • config.appSecret (string): Feishu app secret
  • config.baseUrl (string, optional): API base URL, defaults to 'https://open.feishu.cn/open-apis'

Example:

const sender = new FeishuImage({
  appId: process.env.FEISHU_APP_ID,
  appSecret: process.env.FEISHU_APP_SECRET
});

async sendImage(options)

Uploads an image and sends it to a Feishu conversation.

Parameters:

  • options.imagePath (string, required): Path to the local image file
  • options.receiveId (string, required): Recipient's open_id (for users) or chat_id (for groups)
  • options.receiveType (string, optional): 'user' or 'chat', defaults to 'user'
  • options.text (string, optional): Optional text message to send with the image

Returns: Promise - The ID of the sent message

Throws:

  • FeishuImageError - Various error codes: MISSING_CREDENTIALS, AUTH_FAILED, FILE_NOT_FOUND, UPLOAD_FAILED, SEND_FAILED

Example:

try {
  const messageId = await sender.sendImage({
    imagePath: '/path/to/screenshot.png',
    receiveId: 'ou_xxxxxxxx',
    receiveType: 'user',
    text: 'Here is the screenshot you requested'
  });
  console.log('Image sent successfully, message ID:', messageId);
} catch (error) {
  console.error('Failed to send image:', error.message);
}

Error Handling

All errors are instances of FeishuImageError with specific error codes:

Error CodeDescriptionSolution
MISSING_CREDENTIALSFEISHU_APP_ID or FEISHU_APP_SECRET not setSet environment variables or pass to constructor
AUTH_FAILEDAuthentication with Feishu API failedCheck app_id and app_secret are correct
FILE_NOT_FOUNDImage file does not existCheck the image path is correct
UPLOAD_FAILEDImage upload to Feishu failedCheck network connection and file size limits
SEND_FAILEDMessage sending failedCheck recipient ID and permissions

Example error handling:

const { FeishuImage, FeishuImageError } = require('./scripts/feishu-image.js');

try {
  await sender.sendImage({ ... });
} catch (error) {
  if (error instanceof FeishuImageError) {
    switch (error.code) {
      case 'MISSING_CREDENTIALS':
        console.error('Please set FEISHU_APP_ID and FEISHU_APP_SECRET');
        break;
      case 'AUTH_FAILED':
        console.error('Invalid credentials. Check your app ID and secret.');
        break;
      case 'FILE_NOT_FOUND':
        console.error(`Image file not found: ${error.details.path}`);
        break;
      default:
        console.error(`Error: ${error.message}`);
    }
  } else {
    console.error('Unexpected error:', error);
  }
}

Limitations

  • Image size: Subject to Feishu API limits (check Feishu documentation for current limits)
  • Supported formats: PNG, JPG, GIF (as supported by Feishu)
  • Rate limiting: Subject to Feishu API rate limits

See Also

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.3%
按下载量换算585

Claude

30.27%
按下载量换算516

Cursor

17.19%
按下载量换算293

Gemini CLI

8.89%
按下载量换算152

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills