byted-openclaw-diag

byted-openclaw-diag is a skill for Claude Code, Codex from bytedance/agentkit-samples. It costs 187 tokens per session (1,672 once invoked), scanned A, original, Apache-2.0.

A diagnostic tool for OpenClaw, a system that runs AI agents. It examines agent runs, response time, token use, tool calls, errors, and Gateway restart history.

In plain words
What is it for?
It is for checking system status, reviewing agent activity, investigating errors, comparing performance, and filtering reports by agent or date.
Why use it?
It helps explain slow runs, high usage, failed tasks, and other problems by bringing operational details into reports and summaries.

Skill for Claude CodeCodex ✓ vendor

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit It is for checking system status, reviewing agent activity, investigating errors, comparing performance, and filtering reports by agent or date.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bytedance/agentkit-samples/byted-openclaw-diag
About the project

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.

bytedance/agentkit-samples · 496 stars · on GitHub

Install

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.

Any agent
npx skills add bytedance/agentkit-samples --skill byted-openclaw-diag
Clone the repo
git clone --depth 1 https://github.com/bytedance/agentkit-samples

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for byted-openclaw-diag

README.md
[![agentmods](https://agentmods.dev/badge/skills/bytedance/agentkit-samples/byted-openclaw-diag/github.svg)](https://agentmods.dev/skills/bytedance/agentkit-samples/byted-openclaw-diag)
Your own site
<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.

agentmods 80×15 button for byted-openclaw-diag

Your own site · 80×15
<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>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,672 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00187 $0.01672
Opus 5.5 $0.00075 $0.00669
Sonnet 5.5 $0.00037 $0.00334
Haiku 4.5 $0.00019 $0.00167

Measured 2mo ago against content hash 5bc602bb9168, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/byted-openclaw-diag.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/byted-openclaw-diag/SKILL.md · 156 lines

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) 执行完整报告,只提取错误部分汇总

规则:

  1. 无参数时默认 -s(摘要模式,最简洁)
  2. full 关键词 → 去掉 -s,输出含 Run 详情
  3. errors 关键词 → 执行完整报告,只摘出错误列表
  4. -a、-l、日期参数直接透传给脚本
  5. 去除 ANSI 颜色码:管道 | sed 's/\x1b\[[0-9;]*m//g'
  6. 不支持 -f(实时跟踪),该模式需在 SSH 终端运行
  7. 直出模式:脚本输出直接用 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(消息时间戳推算)

Read the full file on GitHub · 156 lines

Files

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.

Changes

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.

  1. 2mo ago First seen · 156 lines · 187 tokens per session scan A 5bc602bb9168

Subscribe to this mod's changes

byted-openclaw-diag is a skill published in the GitHub repository bytedance/agentkit-samples (496 stars, last pushed 5d ago), licensed Apache-2.0. It adds 187 tokens to every session and 1,672 once invoked, about $0.0007 per session on Opus 5.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.

Related

byted-openclaw-diag compared with skills from other repositories

byted-openclaw-diag next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
byted-openclaw-diagbytedance/agentkit-samplesSkill4965d agoApache-2.0A187Claude Code, Codex
triage-issuesgoogleapis/mcp-toolboxSkill17k2d agoApache-2.0A164Claude Code, Codex
adk-debuggoogle/adk-pythonSkill22k2d agoApache-2.0A191Claude Code, Codex
rubber-duckkirodotdev/KiroCrewSkill5.1ktodayApache-2.0A161Claude Code, Codex
deep-investigationvercel/eveSkill6.1ktodayApache-2.0A28Claude Code, Codex
scanner-overviewPurpleAILAB/DecepticonSkill6.9k10d agoApache-2.0A40Claude Code, Codex
smiles-validationsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A24Claude Code, Codex