360 Secure SkillHub
360 安全技能中心

Ops Dashboard

该 Skill 通过单次 CLI 调用输出工作区运维快照,涵盖磁盘使用、Git 状态与最近提交、系统负载和顶层目录大小,支持文本或 JSON 输出,用于部署前检查工作区健康。

crimsondevil333333
crimsondevil333333
热度 96.41
最近更新 2026-05-11 15:53:20
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / 报告撰写 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ops-dashboard
Metadata
name
ops-dashboard
description
Gather operational signals (disk usage, git status, recent commits, and resources) so you can answer "How is the Clawdy infrastructure doing?" without manually running multiple checks.

Ops Dashboard

Overview

ops-dashboard 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.
  • --show resources adds load averages and a break-down of recent git commits with author/summary.
  • --workspace /path/to/workspace lets you point the tool at another clone or repo.
  • --output json 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

python3 skills/ops-dashboard/scripts/ops_dashboard.py --show summary --workspace /path/to/workspace (or omit to use the current directory)

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