Xpersona
O

onebot

CLAWHUB · Unverified

通过 OneBot HTTP API 使用本地命令(curl)发送 QQ 私聊或群消息。 Skill: onebot Owner: jqllxew Summary: 通过 OneBot HTTP API 使用本地命令(curl)发送 QQ 私聊或群消息。 Tags: latest:1.0.3 Version history: v1.0.3 | 2026-04-11T21:38:22.211Z | user No user-visible changes in this version. - No file changes detected from previous version. - Version number remains as 1.0.2 in the skill description. v1.0.2 | 2026-04-11T21:32:36.118Z | user - Added requirement to always include the Authorization header in cu

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/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 s17fvap6y48246ndt2f2dzcge984n6mb:onebot
  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-jqllxew-onebot/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

11,956 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: onebot
description: "通过 OneBot HTTP API 使用本地命令(curl)发送 QQ 私聊或群消息。"
version: 1.0.2
---

# Skill: OneBot消息发送

## 依赖
- curl

## 触发时机
- 用户要求发送消息、通知、转告他人
- 用户说“发消息”“通知一下”“告诉某人”“帮我发到群里”
- 涉及 QQ 或群聊的信息发送需求

## 执行说明
你是一个负责发送 QQ 消息的助手,通过本地 shell 命令调用 OneBot API。

请求头:`Authorization: Bearer {token}`

在执行前必须完成:
1. 解析用户意图:
   - 判断是私聊还是群聊
   - 提取 user_id 或 group_id
   - 提取消息内容

2. 构造接口:
   - 私聊:/send_private_msg
   - 群聊:/send_group_msg

3. 生成 curl 命令,例如:

curl -X POST http://{host}:{port}/{endpoint} \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer jqllxew" \
  -d '{"user_id":"123456","message":"你好"}'

## 规则
- 只能生成 OneBot API 相关的 curl 命令
- 不允许执行任何无关的 shell 命令
- JSON 必须合法,注意转义引号等特殊字符
- 如果缺少 user_id 或 group_id,须询问

## 示例
用户:给 123456 发消息 今晚开会

助手:
curl -X POST http://{host}:{port}/send_private_msg \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer jqllxew" \
  -d '{"user_id":"123456","message":"今晚开会"}'

---

用户:在群 987654 通知大家系统维护

助手:
curl -X POST http://{host}:{port}/send_group_msg \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer jqllxew" \
  -d '{"group_id":"987654","message":"系统维护"}'

---

 支持发送特殊内容:
   - 图片:[CQ:image,file=图片URL或本地路径]
   - 文件:[CQ:file,file=文件URL或本地路径]

用户:给 123456 发一张图片 https://example.com/a.png

助手:

curl -X POST http://{host}:{port}/send_private_msg \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer jqllxew" \
  -d '{"user_id":"123456","message":"[CQ:image,file=https://example.com/a.png]"}'

用户:给群 987654 发文件 https://example.com/test.pdf

助手:

curl -X POST http://{host}:{port}/send_group_msg \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer jqllxew" \
  -d '{"group_id":"987654","message":"[CQ:file,file=https://example.com/test.pdf]"}'

---

## 备注
- 需确认napcat服务的ip与端口,ip优先验证127.0.0.1或docker中的napcat容器查看ip,端口优先验证5700,都不正确时需主动询问用户。
- 当napcat服务ip非本机访问时,通常需要校验请求头`Authorization: Bearer {token}`,需向用户询问,当以127.0.0.1访问时通常无需请求头校验

_meta.json

{
  "ownerId": "kn722tg57337526j4g1d1ympqx82w26f",
  "slug": "onebot",
  "version": "1.0.3",
  "publishedAt": 1775943502211
}

skill-card.md

## Description:

通过 OneBot HTTP API 使用本地命令(curl)发送 QQ 私聊或群消息。

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

## Publisher:

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

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to prepare QQ private-message or group-message requests for a trusted local OneBot/NapCat HTTP endpoint.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can produce shell-built HTTP commands for sending QQ messages through OneBot/NapCat, including message and file content supplied by the user.

Mitigation: Use only with a trusted local endpoint, require explicit confirmation before sending, and avoid sensitive messages or arbitrary local file paths.

Risk: The artifact includes a hardcoded bearer value and the security summary flags weak credential and confirmation handling.

Mitigation: Replace hardcoded bearer values with secure runtime configuration and confirm authentication requirements for the selected host and port.

Risk: Unsafe escaping of message or file content could make generated shell commands risky to execute.

Mitigation: Do not execute generated shell commands unless inputs are safely escaped or sent through a non-shell HTTP client.

## Reference(s):

- [ClawHub onebot skill page](https://clawhub.ai/jqllxew/skills/onebot)

## Skill Output:

**Output Type(s):** [shell commands, configuration, guidance]

**Output Format:** [Markdown with curl command blocks and concise setup guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Commands target OneBot private-message and group-message HTTP endpoints and may include CQ image or file message payloads.]

## Skill Version(s):

1.0.3 (source: server release metadata; artifact frontmatter says 1.0.2)

## 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 onebot and adjacent AI workflows.