OpenClaw System Performance Diagnostics and Optimization
Paste the following prompt into your AI chat to install this skill:
Please install @user_babefe87/system-diagnostics according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
In OpenClaw-style LLM gateway systems, performance issues often appear as slow responses, CPU or memory usage above 80%, context usage above 70%, cache hit rates below 50%, or API timeouts. These problems may not come from a single failure; they can combine long conversation history, poor cache settings, dependency jitter, scheduled job peaks, or abnormal token cost.
How the skill works
system-diagnostics organizes debugging into four steps: quick diagnosis, deep analysis, immediate remediation, and long-term optimization. It checks a fixed set of thresholds: CPU, memory, context, cache hit rate, API success rate, and response time. Each symptom maps to concrete actions: for high CPU, inspect the gateway service, clean temporary files, and review concurrent connections; for high memory, trace leaks and review cache strategy; for high context usage, clean session history and tune pruning parameters; for low cache hit rate, warm frequently used entries and adjust TTL; for API failures, validate network, keys, timeout, and retry behavior.
Boundary
The skill is best suited to operational environments that already have OpenClaw gateways, session management, caching, and API call paths. It focuses on diagnostics and configuration tuning rather than replacing a full APM platform, capacity planning system, or self-healing automation. Users should feed real logs, metrics, and service configuration into the analysis; if baseline monitoring is missing, establish metric collection first, otherwise threshold checks remain mostly heuristic.
Use Cases
- When an OpenClaw gateway slows down and CPU or memory exceeds 80%, isolate bottlenecks and clean sessions or caches.
- During API timeouts or abnormal token cost, inspect network, keys, timeouts, retries, and call-batching strategies.
- Run daily health checks to verify context usage, cache hit rate, and response time against thresholds.
- Review periodic slowdowns caused by scheduled jobs, backups, or cleanup tasks.
Best For
- Ops engineers maintaining OpenClaw gateways who need to triage high CPU, memory, and context issues.
- Backend engineers responsible for LLM service stability who must debug API timeouts, retries, and dependency failures.
- Algorithm platform engineers watching token and resource costs who need to improve cache hits and call batching.
- SREs building gateway monitoring who need threshold alerts and performance baselines.
Related Skills
Analyzes network captures from Wireshark, tcpdump, Fiddler, and Charles, then pinpoints TCP, HTTP, DNS, and TLS issues with filter expressions and remediation steps.
Detects AI-generated images from Stable Diffusion, Midjourney, and GPT-4o via Tencent Cloud image moderation and returns risk scores.
Sets up a baseline Dynamo router, enables KV-aware routing when appropriate, and smoke tests the frontend endpoint locally or on Kubernetes.
CTF cryptography quick reference for engineers covering classic, modern, RSA, ECC, stream, PRNG, and lattice attacks.