Community编程与开发github.com

qqbot-media

QQBot 富媒体收发支持。使用 <qqmedia> 标签显式发送/查看媒体,将入站附件路径视为当前会话私有上下文。

qqbot-media 是什么?

该技能使 AI 智能体能够通过 QQBot 收发富媒体内容,包括图片、语音、视频和文件。它使用统一的 <qqmedia> 标签包裹路径或 URL 来显式发送或查看媒体,系统根据文件扩展名自动识别类型并路由。对于用户发来的媒体附件,路径仅作为当前会话的私有上下文使用,不会自动持久化或跨会话转发。技能明确规定了路径使用规则(例如使用实际创建路径而非改写)、大小限制(图片 30MB、视频和文件 100MB、语音 20MB)以及安全约束,确保仅操作授权工作区内的文件。该技能适用于任何基于 QQBot 的 AI 代理平台,如 Claude Code、Cursor 或 Codex,通过简单的标签语法即可在对话中发送图片、语音、视频或文件。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/extensions/qqbot/skills/qqbot-media

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

QQBot 富媒体收发

用法

<qqmedia>{实际路径或URL}</qqmedia>

系统根据文件扩展名自动识别类型并路由:

  • .jpg/.png/.gif/.webp/.bmp → 图片
  • .silk/.wav/.mp3/.ogg/.aac/.flac 等 → 语音
  • .mp4/.mov/.avi/.mkv/.webm 等 → 视频
  • 其他扩展名 → 文件
  • 无扩展名的当前会话本地/host-read 媒体 → 按加载出的实际媒体类型路由
  • 无扩展名的远程 URL → 可能按文件发送;如需图片/语音/视频,请提供能识别类型的 URL/路径或使用明确媒体标签

接收媒体

  • 用户发来的图片会由 QQBot 运行时下载到 OpenClaw 管理的 QQBot media 目录,路径只作为当前会话的附件上下文使用。
  • 用户发来的语音路径在上下文中;若有 STT 能力则优先转写。
  • 附件路径和远程 URL 可能包含用户私有内容。不要无关输出本地绝对路径,不要把附件转发到其他会话;只有用户明确要求回发、分析或转存该媒体时才使用。
  • 不承诺长期保留附件。若用户需要长期保存,说明应由用户自行保存或重新发送。

规则

  1. 标签必须用开闭标签包裹实际路径或 URL:<qqmedia>{实际路径或URL}</qqmedia>
  2. 使用你实际看到的文件路径:刚创建文件时,用创建结果显示的路径;只有当沙箱 workspace-write 创建结果实际显示 /workspace/... 时,才按原样使用该路径,例如 <qqmedia>/workspace/report.pdf</qqmedia>。
  3. 附件路径直接使用上下文给出的路径:如果路径来自会话【附件】上下文,不要改写成 /workspace/...。
  4. URL 可以直接发送:例如 <qqmedia>https://example.com/image.png</qqmedia>。
  5. 本地路径仍受安全根限制:只能发送当前会话授权的 agent workspace、scoped media roots、OpenClaw 媒体目录或 QQBot 媒体目录内的文件;不要使用 .. 逃出工作区。
  6. 不要扫描或主动发送上下文之外的本地文件:只使用用户提供、工具刚生成,或当前会话上下文明确给出的路径。
  7. 文件大小上限:图片 30MB / 视频 100MB / 文件 100MB / 语音 20MB
  8. 你有能力发送本地图片/文件,直接用标签包裹路径即可,不要说"无法发送"
  9. 发送语音时不要重复语音中已朗读的文字
  10. 多个媒体用多个标签
  11. 以会话上下文中的能力说明为准(如未启用语音则不要发语音)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能