install
source · Clone the upstream repo
git clone https://github.com/evan966890/openclaw-bestroll-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/evan966890/openclaw-bestroll-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/feishu-card" ~/.claude/skills/evan966890-openclaw-bestroll-skills-feishu-card && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/evan966890/openclaw-bestroll-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/feishu-card" ~/.openclaw/skills/evan966890-openclaw-bestroll-skills-feishu-card && rm -rf "$T"
manifest:
skills/feishu-card/SKILL.mdsource content
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
first.feishu-common - This skill depends on
for token and API auth.../feishu-common/index.js
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.
- Write content to a temp file:
# (Use 'write' tool) write temp/msg.md "Here is some code:\n\`\`\`js\nconsole.log('hi');\n\`\`\`"
- Send using
:--text-file
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
: User Open ID (-t, --target <id>
) or Group Chat ID (ou_...
).oc_...
: Simple text content.-x, --text <string>
: Path to text file (Markdown supported). Use this for code/logs.-f, --text-file <path>
: Card header title.--title <string>
: Header color (blue/red/orange/green/purple/grey). Default: blue.--color <string>
: Text for a bottom action button.--button-text <string>
: URL for the button.--button-url <url>
: Path to a local image to upload and embed.--image-path <path>
Troubleshooting
- Missing Text: Did you use backticks in
? The shell likely ate them. Use--text
instead.--text-file
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
: Select persona (d-guide, green-tea, mad-dog).-p, --persona <type>
: Message content.-x, --text <string>
: Message content from file (supports markdown).-f, --text-file <path>