Skip to main content

feishu-card

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

Informações da origem

Repositório
atxinsky/skills
Última atividade na origem
16 de março de 2026 às 15:47
Idioma detectado do SKILL.md
inglês
Estrelas
5
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
feishu-card
description
Send rich interactive cards to Feishu (Lark) users or groups. Supports Markdown (code blocks, tables), titles, color headers, and buttons.
tags
["feishu","lark","card","message","interactive","markdown"]
# Feishu Card Skill Send rich interactive cards via Feishu Open API. ## ⚠️ CRITICAL FORMATTING RULES (READ BEFORE USING) 1. **Escape Newlines**: If using `--text` via CLI, you MUST escape newlines as `\\n`. - ❌ Wrong: `--text "Line 1\nLine 2"` (Shell eats the backslash) - ✅ Right: `--text "Line 1\\nLine 2"` 2. **Prefer File Input**: For any content longer than one line, **ALWAYS** use `--text-file`. - ✅ Best: `echo "Line 1\nLine 2" > msg.md && node send.js ... --text-file msg.md` - This avoids ALL shell escaping issues. 3. **Markdown Support**: Supports **Bold**, *Italic*, [Links](url). - ⚠️ **Code Blocks**: Support is limited. Use single backticks \`code\` for safety. ## Usage ```bash # Via argument (Simple) node skills/feishu-card/send.js --target "ou_..." --text "Hello **World**" # Via file (Recommended for Reports/Long Text) cat <<EOF > msg.md **Status**: Ready **Details**: - Item 1 - Item 2 EOF node skills/feishu-card/send.js --target "ou_..." --title "Report" --text-file msg.md rm msg.md ``` ## Options - `-t, --target`: User Open ID (`ou_...`) or Group Chat ID (`oc_...`). - `-x, --text`: Markdown content. - `-f, --text-file`: Read markdown from file. - `--title`: Card header title. - `--color`: Header color (blue, red, green, etc.). - `--button-text`: Add a bottom button. - `--button-url`: Button URL.
Ver no GitHub