← Back to Skills Marketplace
Clawdbot Logs Litiao
by
litiao1224
· GitHub ↗
· v1.0.0
· MIT-0
199
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install clawdbot-logs-litiao
Description
Analyze Clawdbot logs and diagnostics. Use when the user asks about bot performance, response times, errors, session stats, token usage, API costs, or wants...
README (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
- Check response times:
scripts/response-times.sh 20 - Check token count in sessions.json:
jq '.["agent:main:main"].totalTokens' ~/.clawdbot/agents/main/sessions/sessions.json - If tokens > 30000, run
/compactin 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
Usage Guidance
This skill appears to do exactly what it claims: read Clawdbot journals and session files and summarize performance and cost data. Before installing or running it, remember: (1) it reads local session files (~/.clawdbot/...) that contain full conversation history, tokens, and cost information — treat that as highly sensitive; only run the skill on a trusted machine and avoid exposing its output to untrusted parties; (2) it relies on common system tools (journalctl, systemctl, jq, grep, tail) though they are not declared as required—ensure those binaries exist and are the expected versions; (3) there is a minor metadata mismatch (ownerId differs in _meta.json vs registry metadata) — likely benign but worth noting. If you want extra assurance, inspect the session files yourself before running or run the scripts with limited privileges / under a non-privileged account.
Capability Analysis
Type: OpenClaw Skill
Name: clawdbot-logs-litiao
Version: 1.0.0
The skill bundle is designed for monitoring and debugging Clawdbot performance, errors, and session statistics. It uses bash scripts (scripts/response-times.sh and scripts/session-stats.sh) to parse local systemd journal logs and session data stored in ~/.clawdbot. The behavior is consistent with the stated purpose, and there are no indicators of data exfiltration, malicious command execution, or unauthorized persistence.
Capability Assessment
Purpose & Capability
Name/description align with requested actions: the SKILL.md and included scripts only read clawdbot journals, user systemd service status, and files under ~/.clawdbot to report response times, errors, token usage and costs. One minor mismatch: SKILL.md uses common system tools (journalctl, systemctl, jq, grep, tail) but the skill declares no required binaries—this is an omission but not a functional incoherence.
Instruction Scope
Instructions and scripts explicitly read sensitive local data (session JSON/JSONL containing full conversation history, token/cost info) and the user journal for the clawdbot service. All referenced paths and commands are within the expected scope for diagnostics; there are no steps that transmit data externally. Users should be aware that running this skill exposes local conversation contents to whoever or whatever is invoking the skill.
Install Mechanism
Instruction-only skill with two small shell scripts included. No install spec, no downloads, and nothing is written to disk beyond running the provided scripts. This is low-risk from an installation perspective.
Credentials
The skill requests no environment variables or credentials, which is appropriate. However it reads files in $HOME and queries the user journal/systemd user service; access to these filesystem and journal entries grants visibility into sensitive conversation content and token/cost data—this is expected for a diagnostics tool but worth highlighting.
Persistence & Privilege
always is false and there is no install-time privilege escalation or modification of other skills or system-wide config. The skill does not request persistent platform privileges beyond being invoked.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clawdbot-logs-litiao - After installation, invoke the skill by name or use
/clawdbot-logs-litiao - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Bug fixes and improvements with -litiao suffix
Metadata
Frequently Asked Questions
What is Clawdbot Logs Litiao?
Analyze Clawdbot logs and diagnostics. Use when the user asks about bot performance, response times, errors, session stats, token usage, API costs, or wants... It is an AI Agent Skill for Claude Code / OpenClaw, with 199 downloads so far.
How do I install Clawdbot Logs Litiao?
Run "/install clawdbot-logs-litiao" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Clawdbot Logs Litiao free?
Yes, Clawdbot Logs Litiao is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Clawdbot Logs Litiao support?
Clawdbot Logs Litiao is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Clawdbot Logs Litiao?
It is built and maintained by litiao1224 (@litiao1224); the current version is v1.0.0.
More Skills