mcpField
S
send-feishu

send-feishu

github.com/jssfyProductivity399 installs
Repository

About send-feishu

send-feishu is a skill for sending Feishu messages through its bundled script. It supports text, cards, images, and files, with routing and token handling based on configured environment variables.

Key features

  1. 01Sends text, cards, images, and files
  2. 02Routes messages to groups or individuals
  3. 03Resolves Feishu configuration variables
  4. 04Handles upload, sending, and error reporting

Use cases

  1. 01Sending a brief status update
  2. 02Sharing a formatted report or warning
  3. 03Sending an image or screenshot
  4. 04Delivering a document to a chat

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/jssfy/k-skills --skill send-feishu

After installing, type/send-feishuin Claude Code to confirm it loaded.

Bundled filesEXAMPLES.mdscripts/feishu-send

Details

From the project README

Send Feishu Message

The send logic is in scripts/feishu-send (bundled with this skill).

Step 0 — Locate and prepare the script

# Find the script relative to where this skill is installed
SKILL_DIR="$(find ~/.claude/plugins -name 'send-feishu' -path '*/skills/*' -type d 2>/dev/null | head -1)"
FEISHU_SEND="${SKILL_DIR}/scripts/feishu-send"
chmod +x "$FEISHU_SEND" 2>/dev/null
echo "script: $FEISHU_SEND"

If the script is not found (e.g., skill loaded from local dev path), use:

FEISHU_SEND="$(dirname "$0")/scripts/feishu-send"

Choose Format

SituationFormat
Simple one-liner, status updatetext
Has title + body, structured data, reportcard
Image file / screenshot / chartimage
.md / .html / .pdf / .doc / large contentfile
User says "发给我" / "私发" / names a personuse FEISHU_USER_OPEN_ID

Card color: green=success, orange=warning, red=error, blue=info (default), purple=highlight.

Send

# Text
"$FEISHU_SEND" text "消息内容"

# Card
"$FEISHU_SEND" card "标题" "正文(支持 lark_md:**粗体** *斜体* \n换行)" --color blue

# Image
"$FEISHU_SEND" image /path/to/image.png

# File
"$FEISHU_SEND" file /path/to/report.md

# Dry-run (verify vars without sending)
"$FEISHU_SEND" --dry-run text "test"

The script handles: variable resolution (including CTI_FEISHU_* aliases) → routing → token acquisition → upload → send → error reporting.

Environment Variables

VariablePurpose
FEISHU_WEBHOOKGroup webhook URL
FEISHU_APP_ID + FEISHU_APP_SECRETRequired for image/file upload and API sends
FEISHU_CHAT_IDGroup chat ID (oc_xxx)
FEISHU_USER_OPEN_IDIndividual (ou_xxx)
FEISHU_WEBHOOK_SECRETOnly if webhook signature is enabled

If vars are unset after resolution, tell user which ones to configure.

Comments

Markdown supported