Xpersona
F

Feishu Messaging

CLAWHUB · Unverified

飞书消息发送与文档创建工作流。 触发场景:查找群成员、查找群ID、发送消息失败需要重新尝试。 适用于:发送飞书消息。 Skill: Feishu Messaging Owner: jypjypjypjyp Summary: 飞书消息发送与文档创建工作流。 触发场景:查找群成员、查找群ID、发送消息失败需要重新尝试。 适用于:发送飞书消息。 Tags: latest:0.0.3 Version history: v0.0.3 | 2026-02-06T05:27:31.477Z | auto - 移除文档中“SDK 使用说明”相关注释,使示例代码部分更简洁。 - 精简了部分代码注释,去除了冗余的“复制该 Demo 后...”说明。 - 其余功能和结构保持不变。 v0.0.2 | 2026-02-06T05:26:19.055Z | auto - 更新 SKILL.md 中获取群聊ID的示例,将查询参数由“贾玉鹏”改为“小鸭子” - 其余功能描述及用法保持不变 v0.0.1 | 2026-02-06T05:25:11.019Z | auto Ini

62
Rank
84
Safety
15k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 15K downloads reported by the source. Last updated 11/16/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17a9mby3ckqf8bftf1z0q4qdh88529x:feishu-messaging
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jypjypjypjyp-feishu-messaging-essaging-2/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

22,635 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: feishu-messaging
description: |
  飞书消息发送与文档创建工作流。
  触发场景:查找群成员、查找群ID、发送消息失败需要重新尝试。
  适用于:发送飞书消息。
---

# 飞书消息与文档 Skill

## 概述

此 Skill 通过飞书开放平台 API 帮助用户发送消息、创建文档和管理飞书资源。

## 核心能力

| 功能 | 状态 | 所需权限 |
|------|------|---------|
| 发送文本消息 | ✅ 可用 | `im:message:send_as_bot` |
| 获取群聊列表 | ✅ 可用 | `im:chat:readonly` |
| 获取群成员 | ✅ 可用 | `im:chat.members:read` |

## 使用方法

### 发送消息给指定用户

```
给 [姓名] 发一条飞书消息,告诉他 [内容]
```

**前置条件**:需要获取用户的 open_id

### 1. 获取群聊id的方法

```python
import json

import lark_oapi as lark
from lark_oapi.api.im.v1 import *


def main():
    # 创建client
    client = lark.Client.builder() \
        .app_id("YOUR_APP_ID") \
        .app_secret("YOUR_APP_SECRET") \
        .log_level(lark.LogLevel.DEBUG) \
        .build()

    # 构造请求对象
    request: SearchChatRequest = SearchChatRequest.builder() \
        .user_id_type("open_id") \
        .query("小鸭子") \
        .page_size(20) \
        .build()

    # 发起请求
    response: SearchChatResponse = client.im.v1.chat.search(request)

    # 处理失败返回
    if not response.success():
        lark.logger.error(
            f"client.im.v1.chat.search failed, code: {response.code}, msg: {response.msg}, log_id: {response.get_log_id()}, resp:
{json.dumps(json.loads(response.raw.content), indent=4, ensure_ascii=False)}")
        return

    # 处理业务结果
    lark.logger.info(lark.JSON.marshal(response.data, indent=4))


if __name__ == "__main__":
    main()
```

### 2. 发送消息

``` python
import json

import lark_oapi as lark
from lark_oapi.api.im.v1 import *


def main():
    # 创建client
    client = lark.Client.builder() \
        .app_id("YOUR_APP_ID") \
        .app_secret("YOUR_APP_SECRET") \
        .log_level(lark.LogLevel.DEBUG) \
        .build()

    # 构造请求对象
    request: CreateMessageRequest = CreateMessageRequest.builder() \
        .receive_id_type("open_id") \
        .request_body(CreateMessageRequestBody.builder()
            .receive_id("ou_7d8a6e6df7621556ce0d21922b676706ccs")
            .msg_type("text")
            .content("{\"text\":\"test content\"}")
            .uuid("选填,每次调用前请更换,如a0d69e20-1dd1-458b-k525-dfeca4015204")
            .build()) \
        .build()

    # 发起请求
    response: CreateMessageResponse = client.im.v1.message.create(request)

    # 处理失败返回
    if not response.success():
        lark.logger.error(
            f"client.im.v1.message.create failed, code: {response.code}, msg: {response.msg}, log_id: {response.get_log_id()}, resp:
{json.dumps(json.loads(response.raw.content), indent=4, ensure_ascii=False)}")
        return

    # 处理业务结果
    lark.logger.info(lark.JSON.marshal(response.data, indent=4))


if __name__ == "__main__":
    main()

```

### 3. 图片消息

```python
import json

import lark_oapi as lark
from lark_oapi.api.im.v1 import *


def main():
    # 创建client
    client = lark.Client.builder() \
        .app_id("YOUR_APP_ID") \
        .app_secret("YOUR_APP_SECRET") \
        .log_level(lark.LogLevel.DEBUG) \
        .build()

    # 构造请求对象
    file = open("小鸭子.jpg",

_meta.json

{
  "ownerId": "kn7bsdhpz7e3pyqbbtabcswgp980ncty",
  "slug": "feishu-messaging",
  "version": "0.0.3",
  "publishedAt": 1770355651477
}

skill-card.md

## Description:

Helps agents use Feishu Open Platform APIs to find chats and members, send text messages, and upload images or files.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jypjypjypjyp](https://clawhub.ai/user/jypjypjypjyp)

### License/Terms of Use:


## Use Case:

Employees, operators, and developers use this skill to send Feishu messages and resolve Feishu chat or member identifiers when coordinating work in a Feishu tenant.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Verbose DEBUG and full-response logging may expose sensitive Feishu API responses or organizational metadata.

Mitigation: Use lower log levels in tenant environments, redact API responses before logging, and avoid copying the example full-response logging pattern.

Risk: The skill handles Feishu chat/member lookup results and file uploads that may contain sensitive organizational data.

Mitigation: Limit Feishu app permissions to the minimum required scopes, confirm recipients and file paths before sending, and treat uploaded files and lookup results as sensitive.

## Reference(s):

- [Feishu API Documentation](https://open.feishu.cn/document/server-docs/api-call-guide/server-api-list)
- [ClawHub Skill Page](https://clawhub.ai/jypjypjypjyp/skills/feishu-messaging)
- [ClawHub Publisher Profile](https://clawhub.ai/user/jypjypjypjyp)

## Skill Output:

**Output Type(s):** [Guidance, Code, Configuration]

**Output Format:** [Markdown with Python code examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires Feishu app credentials, target recipient or chat identifiers, and appropriate Feishu API permissions.]

## Skill Version(s):

0.0.3 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Feishu Messaging and adjacent AI workflows.