360 Secure SkillHub
360 安全技能中心

feishu-sticker

feishu-sticker 是一个 Node 命令行 Skill,用 send.js 把本地图片上传到飞书后作为原生贴纸发送给指定用户或群组,支持按文件、关键词或情绪搜索贴纸;用 MD5 缓存 image_key,借助 ffmpeg-static 将 GIF 转为 WebP 并压缩过大图片。贴纸默认放在宿主媒体目录,需自行安装依赖。

autogame-17
autogame-17
热度 84.42
最近更新 2026-05-20 03:35:38
分类:协作依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add feishu-sticker
Metadata
name
feishu-sticker
description
Send images as native Feishu stickers. Features auto-upload, caching, and GIF-to-WebP conversion.
tags
["feishu","lark","sticker","image","fun"]

Feishu Sticker Skill

Sends a sticker (image) to a Feishu user or group. Automatically uploads the image to Feishu (caching the image_key via MD5), converts GIFs to WebP for efficiency, and supports smart search.

Features

  • Auto-Upload: Uploads local images to Feishu CDN on demand.
  • Caching: Caches image_key by file hash to avoid re-uploading.
  • Optimization: Auto-converts GIFs to WebP (via ffmpeg-static) and compresses large images (>5MB).
  • Smart Search: Find stickers by --query or --emotion.

Usage

# Send random sticker
node skills/feishu-sticker/send.js --target "ou_..."

# Send specific file
node skills/feishu-sticker/send.js --target "ou_..." --file "/path/to/image.jpg"

# Search and send
node skills/feishu-sticker/send.js --target "ou_..." --query "angry cat"
node skills/feishu-sticker/send.js --target "ou_..." --emotion "happy"

Setup

  1. Put your stickers in ~/.openclaw/media/stickers/ (or set STICKER_DIR).
  2. Install dependencies: npm install (requires axios, commander, ffmpeg-static, form-data, dotenv).