bytedance/agentkit-samples is a collection of examples and tutorials for Volcengine AgentKit, an AI-agent development platform for building, deploying, and operating agent applications. Developers use the samples to learn agent creation, multi-agent collaboration, memory, retrieval, MCP integrations, media generation, customer service, and other workflows. The catalogue skills provide agent workflows based on these examples.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add bytedance/agentkit-samples --skill byted-openclaw-diaggit clone --depth 1 https://github.com/bytedance/agentkit-samplesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/bytedance/agentkit-samples/byted-openclaw-diag)<a href="https://agentmods.dev/skills/bytedance/agentkit-samples/byted-openclaw-diag"><img src="https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-openclaw-diag/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/bytedance/agentkit-samples/byted-openclaw-diag"><img src="https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-openclaw-diag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00187 | $0.01672 |
| Opus 5 | $0.00093 | $0.00836 |
| Sonnet 5 | $0.00037 | $0.00334 |
| Haiku 4.5 | $0.00019 | $0.00167 |
Grade A, and why
byted-openclaw-diag scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenClaw 诊断工具
指令模式
当用户发送 /diag 指令时,直接执行脚本,不做额外解释:
| 用户输入 | 执行命令 | 说明 |
|---|---|---|
/diag |
-s |
今日摘要(默认) |
/diag full |
(无-s) |
完整报告(含 Run 详情 + 错误列表) |
/diag full -l 3 |
-l 3 |
最近 3 个 Run 完整详情 |
/diag -a waicode |
-s -a waicode |
指定 agent 摘要 |
/diag -a main full |
-a main |
指定 agent 完整报告 |
/diag 2026-03-19 |
-s 2026-03-19 |
指定日期摘要 |
/diag errors |
(无-s) |
执行完整报告,只提取错误部分汇总 |
规则:
- 无参数时默认
-s(摘要模式,最简洁) full关键词 → 去掉-s,输出含 Run 详情errors关键词 → 执行完整报告,只摘出错误列表-a、-l、日期参数直接透传给脚本- 去除 ANSI 颜色码:管道
| sed 's/\x1b\[[0-9;]*m//g' - 不支持
-f(实时跟踪),该模式需在 SSH 终端运行 - 直出模式:脚本输出直接用
message工具原样发送给用户,不经过模型总结。 具体做法:- 执行脚本,将 stdout 存入变量
- 用
message(action="send", message=output)发送原始输出 - 然后回复
NO_REPLY(避免重复发送) - 如果输出超过 4000 字符,按 4000 字符分段发送(Telegram 消息长度限制)
- 每段用 ``` 代码块包裹,保持等宽字体排版
自然语言模式
当用户用自然语言询问(如"运行状态怎么样"、"waicode今天干了啥")时, 自行选择合适参数执行脚本,并用中文汇总关键信息。
快速使用
# 诊断今天的数据
bash scripts/byted-openclaw-diag.sh
# 诊断指定日期
bash scripts/byted-openclaw-diag.sh 2026-03-19
# 只看摘要
bash scripts/byted-openclaw-diag.sh -s
# 实时跟踪(类似 tail -f)
bash scripts/byted-openclaw-diag.sh -f
# 高级实时跟踪(自动开启 debug 日志,退出时恢复)
bash scripts/byted-openclaw-diag.sh -f --advanced
# 只看指定 agent
bash scripts/byted-openclaw-diag.sh -a waicode
# 最近 5 个 Run
bash scripts/byted-openclaw-diag.sh -l 5
模式说明
| 模式 | 参数 | 说明 |
|---|---|---|
| 摘要统计 | -s(默认) |
KPI 概览,最简洁 |
| 完整报告 | 无 -s |
含 Run 详情 + 时间线 + 错误列表 |
| Agent 过滤 | -a <name> |
只看指定 agent |
| 限制数量 | -l N |
只显示最近 N 个 Run |
| 指定日期 | YYYY-MM-DD |
默认今天 |
参数可组合:-s -a main、-l 3 -a wairesearch。
实时跟踪(
-f)和高级模式(--advanced)需在 SSH 终端运行, 详见 references/advanced-mode.md。
数据源
脚本有两种数据源,自动切换:
| 数据源 | 路径 | 需要配置 | 精度 |
|---|---|---|---|
| Debug 日志 | /tmp/openclaw/openclaw-YYYY-MM-DD.log |
diagnostics.enabled: true |
精确 Run 边界 |
| Session 文件 | ~/.openclaw/agents/*/sessions/*.jsonl |
无需配置 | 虚拟 Run(消息时间戳推算) |
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 156 lines · 187 tokens per session scan A 5bc602bb9168
byted-openclaw-diag is a skill published in the GitHub repository bytedance/agentkit-samples (450 stars, last pushed 5d ago), licensed Apache-2.0. It adds 187 tokens to every session and 1,672 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
triage-issues
Triage GitHub issues in the googleapis/mcp-toolbox repo: propose the correct labels (type / priority / product / status), check for duplicates, verify a bug has enough info to act on, and draft a triage comment. Use whenever a maintainer asks you to triage, label, categorize, prioritize, or "look at" an issue (or a…
adk-debug
Diagnoses misbehaving ADK agents by inspecting sessions, events, tool calls, and the exact request that reached the model. Covers the adk run CLI and the adk web dev server with its session, trace, and debug HTTP endpoints. Use when an agent returns the wrong answer, ignores a tool or swallows a tool error, hangs…
claw-admin
Claw system administration: service management, IM connections, logs, cron, and workspace diagnostics. Use when the user asks to manage claw services, connect/disconnect IM platforms, view logs, or perform system-wide operations.
rubber-duck
Adversarial "rubber duck" review that turns explaining-out-loud into a hallucination check. The main session is the PRESENTER (it did the work — a design doc, investigation, or analysis — and holds the real reasoning) and reconstructs the topic to a LISTENER — a spawned subagent pinned to a DIFFERENT-vendor model that…
optimize
Review code for efficiency and performance. Triggered by "/optimize" when user wants to identify bottlenecks or improve performance.
golang-troubleshooting
Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, races, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve, race detection, GODEBUG tracing, and production…