New to Claude Skills? Learn how to install them →

wanshuiyin on GitHub

Feishu/Lark Notification

Free

Integrate notifications with Feishu for seamless updates.

Get this skill

Free · Opens the source repo

What Feishu/Lark Notification does

Feishu/Lark Notification is a skill designed to facilitate integration with the Feishu messaging platform, primarily for sending notifications during key events in automated workflows. This skill acts as an internal utility, allowing other skills to send status updates, such as experiment completions or review scores, directly to Feishu. Users can also invoke this skill manually, making it versatile for various notification needs.

The skill operates based on a configuration file located at ~/.claude/feishu.json. If this file is absent or set to 'off', the skill will not execute any notifications, ensuring that existing workflows remain unaffected. When configured correctly, it can operate in two modes: 'push' for sending notifications without waiting for a response and 'interactive' for bidirectional communication, allowing users to approve or reject actions directly from Feishu.

In push mode, notifications are sent as rich cards via webhook to the specified Feishu URL, providing essential information like experiment results or review scores. The interactive mode allows for more complex interactions, enabling users to respond to notifications, which can be particularly useful in collaborative environments. This flexibility makes the skill suitable for teams that rely on Feishu for communication and need timely updates on project statuses.

Overall, the Feishu/Lark Notification skill is a valuable addition for developers and teams using Feishu, enhancing their ability to stay informed about ongoing tasks and facilitating better communication within automated processes.

When to use it

Use this skill when you need to send automated notifications to Feishu during workflow events or when you want to manually notify team members.

When not to use it

This skill is not suitable for environments that do not use Feishu or where real-time notifications are not required.

What you can build with it

Automated Experiment Updates

Automatically notify your team in Feishu when an experiment is completed, providing results and comparisons.

Review Score Notifications

Send notifications to Feishu after each round of reviews, including scores and feedback for better team awareness.

Interactive Checkpoints

Use the interactive mode to send checkpoint notifications that allow team members to approve or reject actions directly from Feishu.

How to install Feishu/Lark Notification

View source

1. Install with the skills CLI

npx skills add wanshuiyin/auto-claude-code-research-in-sleep/feishu-notify --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by wanshuiyin

Feishu/Lark Notification

Send a notification: $ARGUMENTS

Overview

This skill provides Feishu/Lark integration for ARIS. It is designed as an internal utility — other skills call it at key events (experiment done, review scored, checkpoint waiting). It can also be invoked manually.

Zero-impact guarantee: If no feishu.json config exists, this skill does nothing and returns silently. All existing workflows are completely unaffected.

Configuration

The skill reads ~/.claude/feishu.json. If this file does not exist, all Feishu functionality is disabled — skills behave exactly as before.

Config Format

{
  "mode": "push",
  "webhook_url": "https://open.feishu.cn/open-apis/bot/v2/hook/YOUR_WEBHOOK_ID",
  "interactive": {
    "bridge_url": "http://localhost:5000",
    "timeout_seconds": 300
  }
}

Modes

Mode"mode" valueWhat it doesRequires
Off"off" or file absentNothing. Pure CLI as-isNothing
Push only"push"Send webhook notifications at key events. Mobile push, no replyFeishu bot webhook URL
Interactive"interactive"Full bidirectional. Approve/reject from Feishu, reply to checkpointsfeishu-claude-code running

Workflow

Step 1: Read Config

cat ~/.claude/feishu.json 2>/dev/null
  • File not found → return silently, do nothing
  • "mode": "off" → return silently, do nothing
  • "mode": "push" → proceed to Step 2 (push)
  • "mode": "interactive" → proceed to Step 3 (interactive)

Step 2: Push Notification (webhook)

Send a rich card to the Feishu webhook:

curl -s -X POST "$WEBHOOK_URL" \
  -H "Content-Type: application/json" \
  -d '{
    "msg_type": "interactive",
    "card": {
      "header": {
        "title": {"tag": "plain_text", "content": "TITLE"},
        "template": "COLOR"
      },
      "elements": [
        {"tag": "markdown", "content": "BODY"}
      ]
    }
  }'

Card templates by event type:

EventTitleColorBody
experiment_doneExperiment CompletegreenResults table, delta vs baseline
review_scoredReview Round N: X/10blue (≥6) / orange (<6)Score, verdict, top 3 weaknesses
checkpointCheckpoint: Waiting for InputyellowQuestion, options, context
errorError: [type]redError message, what failed
pipeline_donePipeline CompletepurpleFinal summary, deliverables
customCustomblueFree-form message from $ARGUMENTS

Return immediately after curl — push mode never waits for a response.

Step 3: Interactive Notification (bidirectional)

Interactive mode uses feishu-claude-code as a bridge:

  1. Send message to the bridge:

    curl -s -X POST "$BRIDGE_URL/send" \
      -H "Content-Type: application/json" \
      -d '{"type": "EVENT_TYPE", "title": "TITLE", "body": "BODY", "options": ["approve", "reject", "custom"]}'
    
  2. Wait for reply (with timeout):

    curl -s "$BRIDGE_URL/poll?timeout=$TIMEOUT_SECONDS"
    

    Returns: {"reply": "approve"} or {"reply": "reject"} or {"reply": "user typed message"} or {"timeout": true}

  3. On timeout: Fall back to AUTO_PROCEED behavior (proceed with default option).

  4. Return the user's reply to the calling skill so it can act on it.

Step 4: Verify Delivery

  • Push mode: Check curl exit code. If non-zero, log warning but do NOT block the workflow.
  • Interactive mode: If bridge is unreachable, fall back to push mode (if webhook configured) or skip silently.

Helper Function (for other skills)

Other skills should use this pattern to send notifications:

### Feishu Notification (if configured)

Check if `~/.claude/feishu.json` exists and mode is not "off":
- If **push** mode: send webhook notification with event summary
- If **interactive** mode: send notification and wait for user reply
- If **off** or file absent: skip entirely (no-op)

This check is always guarded. If the config file doesn't exist, the skill skips the notification block entirely — zero overhead, zero side effects.

Event Catalog

Skills send these events at these moments:

SkillEventWhen
/auto-review-loopreview_scoredAfter each round's review score
/auto-review-looppipeline_doneLoop complete (positive or max rounds)
/auto-paper-improvement-loopreview_scoredAfter each round's review score
/auto-paper-improvement-looppipeline_doneAll rounds complete
/run-experimentexperiment_doneScreen session finishes
/idea-discoverycheckpointBetween phases (if interactive)
/idea-discoverypipeline_doneFinal report ready
/monitor-experimentexperiment_doneResults collected
/research-pipelinecheckpointBetween workflow stages
/research-pipelinepipeline_doneFull pipeline complete

Key Rules

  • NEVER block a workflow because Feishu is unreachable. Always fail open.
  • NEVER require Feishu config — all skills must work without it.
  • Config file absent = mode off. No error, no warning, no log.
  • Push mode is fire-and-forget. Send curl, check exit code, move on.
  • Interactive timeout = auto-proceed. Don't hang forever waiting for a reply.
  • Respect AUTO_PROCEED: In interactive mode, if the user doesn't reply within timeout, use the same auto-proceed logic as the calling skill.
  • No secrets in notifications. Never include API keys, tokens, or passwords in Feishu messages.

Frequently asked questions about Feishu/Lark Notification

Similar skills