← 返回 Skills 市场
satriapamudji

Clawdbot Logs

作者 satriapamudji · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
4249
总下载
8
收藏
27
当前安装
1
版本数
在 OpenClaw 中安装
/install clawdbot-logs
功能描述
Analyze Clawdbot logs and diagnostics. Use when the user asks about bot performance, response times, errors, session stats, token usage, API costs, or wants to debug slow responses.
使用说明 (SKILL.md)

Clawdbot Logs & Diagnostics

Analyze Clawdbot performance, errors, and session data.

Quick Commands

Response Times (last N messages)

scripts/response-times.sh [count]

Recent Errors

journalctl --user -u clawdbot-gateway.service --no-pager --since "1 hour ago" | grep -iE "(error|fail|invalid)" | tail -20

Session Stats

scripts/session-stats.sh

Gateway Status

systemctl --user status clawdbot-gateway.service --no-pager

Config Validation

cat ~/.clawdbot/clawdbot.json | jq . > /dev/null && echo "Config valid" || echo "Config invalid"

Log Sources

Source Location Contains
Journal journalctl --user -u clawdbot-gateway.service Session state, errors, tool exec
Daily log /tmp/clawdbot/clawdbot-YYYY-MM-DD.log Detailed JSON logs
Session file ~/.clawdbot/agents/main/sessions/*.jsonl Full conversation, token usage, costs
Sessions meta ~/.clawdbot/agents/main/sessions/sessions.json Current session state, model info

Common Diagnostics

Slow Responses

  1. Check response times: scripts/response-times.sh 20
  2. Check token count in sessions.json: jq '.["agent:main:main"].totalTokens' ~/.clawdbot/agents/main/sessions/sessions.json
  3. If tokens > 30000, run /compact in Telegram or start new session

Config Errors

journalctl --user -u clawdbot-gateway.service --no-pager --since "10 minutes ago" | grep -i "invalid config"

API Costs (from session)

scripts/session-stats.sh

Useful Patterns

Filter journal by category

# Session state changes
journalctl --user -u clawdbot-gateway.service | grep "session state"

# Tool execution
journalctl --user -u clawdbot-gateway.service | grep "\[tools\]"

# Telegram activity
journalctl --user -u clawdbot-gateway.service | grep "\[telegram\]"

Parse session file for recent messages

tail -20 ~/.clawdbot/agents/main/sessions/*.jsonl | jq -r 'select(.message.role=="user") | .message.content[0].text' 2>/dev/null | tail -10
安全使用建议
This skill looks safe for its stated purpose, but its diagnostic value comes from reading local Clawdbot logs and session history. Before using it, make sure you are comfortable with the agent seeing those logs, prior messages, token counts, and cost summaries.
功能分析
Type: OpenClaw Skill Name: clawdbot-logs Version: 1.0.0 The skill bundle is designed for diagnosing the OpenClaw agent's performance, errors, and session data. All commands in SKILL.md and the accompanying shell scripts (`scripts/response-times.sh`, `scripts/session-stats.sh`) are focused on reading local log files (`journalctl`), application-specific configuration (`~/.clawdbot/clawdbot.json`), and session data (`~/.clawdbot/agents/main/sessions/*.jsonl`). There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts to mislead the agent into performing actions outside its stated diagnostic purpose. The file access is limited to the application's own data, which is appropriate for a diagnostic tool.
能力评估
Purpose & Capability
The stated purpose matches the included commands and scripts for Clawdbot log and session diagnostics, but the artifacts explicitly read session files that may contain full conversations and usage metadata.
Instruction Scope
The instructions are scoped to user-requested diagnostics for a specific Clawdbot service and fixed Clawdbot paths, with no evidence of destructive changes, publication, credential harvesting, or hidden network transmission.
Install Mechanism
There is no install spec, package installation, remote download, or hidden helper; the included shell scripts are visible in the artifact set.
Credentials
Reading the user-level journal and ~/.clawdbot session files is proportionate for diagnostics, but those locations may contain sensitive local bot activity and conversation content.
Persistence & Privilege
The skill does not create persistence or request elevated privileges, but it does read persistent Clawdbot session history.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawdbot-logs
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawdbot-logs 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of clawdbot-logs. - Provides commands and instructions to analyze Clawdbot logs, performance, errors, response times, session stats, token usage, and API costs. - Includes quick diagnostic scripts and common troubleshooting patterns. - Documents log locations and filtering methods for efficient debugging.
元数据
Slug clawdbot-logs
版本 1.0.0
许可证
累计安装 27
当前安装数 27
历史版本数 1
常见问题

Clawdbot Logs 是什么?

Analyze Clawdbot logs and diagnostics. Use when the user asks about bot performance, response times, errors, session stats, token usage, API costs, or wants to debug slow responses. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 4249 次。

如何安装 Clawdbot Logs?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawdbot-logs」即可一键安装,无需额外配置。

Clawdbot Logs 是免费的吗?

是的,Clawdbot Logs 完全免费(开源免费),可自由下载、安装和使用。

Clawdbot Logs 支持哪些平台?

Clawdbot Logs 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Clawdbot Logs?

由 satriapamudji(@satriapamudji)开发并维护,当前版本 v1.0.0。

💬 留言讨论