Skillpedia
البريد والرسائل18k · #10536

feishu-notify

ما الذي تفعله

ترسل هذه المهارة إشعارات إلى Feishu أو Lark، وهو تطبيق دردشة للفرق، من أدوات أخرى. وهي لمن يريد تحديثات على هاتفه أثناء المهام الطويلة.

متى تستخدمها

  • ✓عندما تنتهي تجربة طويلة أو مراجعة وتريد رسالة على هاتفك.
  • ✓عندما تحتاج مهارة أخرى إلى إرسال تحديث حالة إلى دردشتك في Feishu.
  • ✓عندما تريد إرسال رسالة إلى Feishu أو Lark يدوياً.

رابط المهارة

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/feishu-notify/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/feishu-notify/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أحتاج إلى إرسال رسالة Feishu تخبرني بانتهاء التجربة.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تقرأ المهارة ملف إعداد صغيراً فيه رابط الـ webhook لروبوت Feishu الخاص بك، ثم ترسل رسالة قصيرة عند الحدث المختار. وإذا لم يكن ملف الإعداد موجوداً فلا تفعل شيئاً.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

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" value What it does Requires
Off "off" or file absent Nothing. Pure CLI as-is Nothing
Push only "push" Send webhook notifications at key events. Mobile push, no reply Feishu bot webhook URL
Interactive "interactive" Full bidirectional. Approve/reject from Feishu, reply to checkpoints feishu-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:

Event Title Color Body
experiment_done Experiment Complete green Results table, delta vs baseline
review_scored Review Round N: X/10 blue (≥6) / orange (<6) Score, verdict, top 3 weaknesses
checkpoint Checkpoint: Waiting for Input yellow Question, options, context
error Error: [type] red Error message, what failed
pipeline_done Pipeline Complete purple Final summary, deliverables
custom Custom blue Free-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:

Skill Event When
/auto-review-loop `review_s
الأسئلة الشائعة

ماذا أحتاج إلى إعداده؟

تحتاج إلى رابط webhook لروبوت Feishu أو Lark محفوظ في ملف إعداد داخل مجلد المستخدم.

هل أستطيع الرد على الوكيل من Feishu؟

فقط في الوضع التفاعلي، الذي يحتاج إلى تشغيل برنامج جسر منفصل. أما وضع الدفع فيرسل الرسائل فقط.

ماذا يحدث إذا لم أعدّها؟

لا شيء. تعمل المهارات الأخرى كما كانت، ولا تُرسل أي إشعارات.

التفاصيل

الوصف الأصلي من المؤلف

Send notifications to Feishu/Lark. Internal utility used by other skills, or manually via /feishu-notify. Use when user says \"发飞书\", \"notify feishu\", or other skills need to send status updates.

repo: wanshuiyin/Auto-claude-code-research-in-sleep

الشعبية

نجوم GitHub
18k
الترتيب
#10536
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة