coze-file-send SKILL.md skillA
coze-file-send from ethanyoq/skill-hub is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add ethanyoq/skill-hub/coze-file-send@git:20260912.84c6c93Pins git:20260912.84c6c93 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- ethanyoq/skill-hub
- Path
archives/user-installed-skills/coze-file-send/c38411dafecd7435/coze-file-send/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260912.84c6c93, committed Sep 12, 2026
- Size
- 11,134 bytes
- Repository stars
- 11
- License
- MIT
在 Coze 聊天里需要把文件、图片、截图、图表、PDF、报告或任何可视化/二进制产物送达用户时使用——本地文件 (你刚生成的) 和群文件 (你从 `coze agent` 拿到群文件路径的) 两种来源都走这个技能。聊天默认纯文本, 生成的文件不会自动送达用户。触发: 用户明说要看 ("把图发我"、"send me the chart"); 隐式产出 (你刚生成 plot.png 用户在等结果); 主动展示 (做完该让用户看到的文件); 群文件转发 (你通过 `coze agent` 命令上传/获取到群文件路径后)。不适用于: 纯文本回答、短代码块、大于 50MB 的本地文件。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# coze-file-send: 把文件 / 图片发给用户
你跟用户在 coze 平台聊天, 对话默认纯文本。生成的**图片 / PDF / 报告 / 图表**等文件用户**不会自动看到** — 必须用 `coze-bridge send` 主动发, 用户才能在聊天界面看到。
## 先决条件: 从 `<coze-context>` 提取身份 ID
**每条用户消息开头**云端会注入一段身份上下文块。Coze 有两种聊天形态, 上下文块格式不同:
**单聊消息**:
```
<coze-context>
单聊消息
account_id: 7639...001
agent_id: 7639...571
session_id: 7639...999
</coze-context>
```
**群聊消息** (多了 `group_id`):
```
<coze-context>
群聊消息
account_id: 7639...001
agent_id: 7639...571
session_id: 7639...999
group_id: 7639...888
</coze-context>
```
调 `coze-bridge send` 时**必须**用 `--agent-id` 和 `--session-id` flag 把对应 ID 带上。命令无状态, 每次调用都要带, 不带会 exit 4。
## 两种模式: 决策树
```
你要发的文件在哪里?
├─ 本地 (你刚生成 / cp 来的) → 模式 A (本地文件)
└─ 已在群文件里 (你从 coze agent 拿到 path) → 模式 B (群文件)
需要群聊上下文, 单聊场景没有这种 path
```
**关键差异**:
| 维度 | 模式 A: 本地文件 | 模式 B: 群文件 |
|---|---|---|
| 适用场景 | 单聊 / 群聊均可 | **仅群聊** (需要 group_id 来源) |
| `<path>` 含义 | 本地文件路径 | 群文件路径 (原样透传) |
| 是否上传 | 是 (走 HTTP API) | 否 (直接 WS 通知 IM) |
| `--mime` | 自动探测 (忽略) | **必填** |
| 大小限制 | ≤ 50MB | 无 (云端管) |
## 命令调用规范
…Read the whole file at its exact version.
How to install
mdr add ethanyoq/skill-hub/coze-file-send@sha256:c0f5ce83f647e648The line at the top of this page pins the label git:20260912.84c6c93, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_fbwlq5uc4ulijnwj)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Sep 12, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (11134 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
ethanyoq/skill-hub · 11 stars · license MIT · pushed 2026-11-07 · branch mine
API
GET https://markdownregistry.com/api/v1/artifacts/art_fbwlq5uc4ulijnwj GET https://markdownregistry.com/api/v1/resolve?ref=ethanyoq/skill-hub/coze-file-send GET https://markdownregistry.com/api/v1/blob/c0f5ce83f647e6483771a30bc4259461ca842e2cc5ce46c59f0952213a881570
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.