← 返回
内容创作 Key 中文

Feishu Card

Send rich interactive Feishu cards with markdown, headers, buttons, images, and styled persona messages to users or groups.
向用户或群组发送支持 Markdown、标题、按钮、图片及个性化样式的富交互飞书卡片消息。
autogame-17
内容创作 clawhub v1.4.11 1 版本 99746.7 Key: 需要
★ 3
Stars
📥 3,878
下载
💾 417
安装
1
版本
#latest

概述

Feishu Card Skill

Send rich interactive cards to Feishu (Lark) users or groups. Supports Markdown (code blocks, tables), titles, color headers, and buttons.

Prerequisites

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

Usage

1. Simple Text (No special characters)

node skills/feishu-card/send.js --target "ou_..." --text "Hello World"

2. Complex/Markdown Text (RECOMMENDED)

⚠️ CRITICAL: To prevent shell escaping issues (e.g., swallowed backticks), ALWAYS write content to a file first.

  1. Write content to a temp file:
  2. # (Use 'write' tool)
    write temp/msg.md "Here is some code:\n\`\`\`js\nconsole.log('hi');\n\`\`\`"
    
  1. Send using --text-file:
  2. node skills/feishu-card/send.js --target "ou_..." --text-file "temp/msg.md"
    

3. Safe Send (Automated Temp File)

Use this wrapper to safely send raw text without manually creating a file. It handles file creation and cleanup automatically.

node skills/feishu-card/send_safe.js --target "ou_..." --text "Raw content with \`backticks\` and *markdown*" --title "Safe Message"

Options

  • -t, --target : User Open ID (ou_...) or Group Chat ID (oc_...).
  • -x, --text : Simple text content.
  • -f, --text-file : Path to text file (Markdown supported). Use this for code/logs.
  • --title : Card header title.
  • --color : Header color (blue/red/orange/green/purple/grey). Default: blue.
  • --button-text : Text for a bottom action button.
  • --button-url : URL for the button.
  • --image-path : Path to a local image to upload and embed.

Troubleshooting

  • Missing Text: Did you use backticks in --text? The shell likely ate them. Use --text-file instead.

4. Persona Messaging

Send stylized messages from different AI personas. Adds themed headers, colors, and formatting automatically.

node skills/feishu-card/send_persona.js --target "ou_..." --persona "d-guide" --text "Critical error detected."

Supported Personas

  • d-guide: Red warning header, bold/code prefix. Snarky suffix.
  • green-tea: Carmine header, soft/cutesy style.
  • mad-dog: Grey header, raw runtime error style.
  • default: Standard blue header.

Usage

  • -p, --persona : Select persona (d-guide, green-tea, mad-dog).
  • -x, --text : Message content.
  • -f, --text-file : Message content from file (supports markdown).

版本历史

共 1 个版本

  • v1.4.11 当前
    2026-03-28 16:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Feishu Evolver Wrapper

autogame-17
飞书集成的包装器,用于能力演进器。管理演进循环的生命周期(启动/停止/确保),发送丰富的飞书卡片报告,并提供...
★ 16 📥 66,582
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 858 📥 199,487
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,442