Ops Dashboard
Overview
INLINECODE0 exposes a single CLI (scripts/ops_dashboard.py) that prints a snapshot of:
- - Workspace disk usage (total vs. free) and storage availability.
- Git status and the latest commits for the current branch.
- System load averages plus the top-level directory sizes so you know where data is accumulating.
Use this skill whenever you need to check health before deployments, push updates, or support teammates struggling with a slow workspace.
CLI usage
- -
python3 skills/ops-dashboard/scripts/ops_dashboard.py --show summary prints disk usage, git status, and top directories. - INLINECODE3 adds load averages and a break-down of recent git commits with author/summary.
- INLINECODE4 lets you point the tool at another clone or repo.
- INLINECODE5 emits the same report as JSON so other scripts can consume it.
Metrics explained
- - Disk usage: Reports
df results for /, /mnt/ramdisk, and any other mounted tiers in the workspace. - Git status: Shows whether the current branch is clean, lists staged/unstaged files, and prints the last three commits with sha/author.
- Load averages: Captures the 1/5/15 minute loads so you can correlate slowdowns with heavy resource usage.
- Directory sizes: Highlights the three largest directories inside the workspace root so you can spot growth vectors.
Sample command
CODEBLOCK0
This command displays the basic health story for the current repo, including git status and disk usage, before you start a risky task.
References
- -
references/ops-dashboard.md explains the meaning of each metric and how to interpret alerts like high disk usage or stale branches.
Resources
- - GitHub: https://github.com/CrimsonDevil333333/ops-dashboard
- ClawHub: https://www.clawhub.ai/skills/ops-dashboard
Ops Dashboard
概述
ops-dashboard 提供了一个单一的命令行工具(scripts/ops_dashboard.py),用于打印以下信息的快照:
- - 工作区磁盘使用情况(总量与剩余空间)及存储可用性。
- Git 状态及当前分支的最新提交记录。
- 系统平均负载以及顶级目录大小,便于了解数据积累位置。
在部署前检查运行状况、推送更新或协助因工作区缓慢而困扰的团队成员时,可使用此技能。
命令行用法
- - python3 skills/ops-dashboard/scripts/ops_dashboard.py --show summary 打印磁盘使用情况、Git 状态和顶级目录。
- --show resources 添加平均负载以及最近 Git 提交的详细信息(包含作者/摘要)。
- --workspace /path/to/workspace 允许将工具指向其他克隆或仓库。
- --output json 以 JSON 格式输出相同报告,便于其他脚本使用。
指标说明
- - 磁盘使用情况: 报告 /、/mnt/ramdisk 以及工作区中其他挂载层的 df 结果。
- Git 状态: 显示当前分支是否干净,列出暂存/未暂存文件,并打印最近三次提交的 SHA 值和作者。
- 平均负载: 捕获 1/5/15 分钟负载,便于将系统变慢与高资源使用关联。
- 目录大小: 突出显示工作区根目录下最大的三个目录,便于发现增长趋势。
示例命令
bash
python3 skills/ops-dashboard/scripts/ops_dashboard.py --show summary --workspace /path/to/workspace(或省略以使用当前目录)
在执行高风险任务前,此命令显示当前仓库的基本运行状况,包括 Git 状态和磁盘使用情况。
参考资料
- - references/ops-dashboard.md 解释每个指标的含义,以及如何解读磁盘使用率高或分支过时等告警。
资源
- - GitHub: https://github.com/CrimsonDevil333333/ops-dashboard
- ClawHub: https://www.clawhub.ai/skills/ops-dashboard