跳到正文
cccskills
免费在 GitHub 公开

ls-system-baseline-diagnostics

Quick system diagnostics: CPU, memory, disk, uptime. Use when capturing server baseline or recording host layout and specs for further operations.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md4.2 KB
  • scripts/system_snapshot.py6.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

System info

Quick system diagnostics covering CPU, memory, disk, and uptime. Uses standard Linux utilities that are typically available. Use when you need a baseline snapshot of a server (layout, specs, installed software hints) to record for later operations.

Commands

Run via your platform's command or terminal (e.g. shell tool, exec, or run command):

# CPU
lscpu
# or: cat /proc/cpuinfo

# Memory
free -h

# Disk
df -h

# Uptime
uptime

For a single combined snapshot, run in order: lscpu, free -h, df -h, uptime. Capture output to a file or paste into your baseline record.

Extended snapshot (maximum context, no sudo)

To get maximum context without sudo or extra dependencies, use the bundled script. It uses only Python stdlib and commands/files readable by unprivileged users, with no network access. By default it writes only to stdout; --output-basename enables timestamped file output for unattended runs.

Choose the command for your current working directory. The repository-root examples apply to this document in the LocalSetup source checkout. Installed copies rewrite bundled paths; use the skill-directory examples there, from the directory containing this SKILL.md.

From the LocalSetup source repository root:

python3 ls/skills/ls-system-baseline-diagnostics/scripts/system_snapshot.py

From the skill directory (in the source checkout or an installed package):

python3 scripts/system_snapshot.py

Output is GFM markdown to stdout. It includes: identity and time, OS release, uptime and load, CPU, memory, disk and block devices, network (ip addr/route, resolv.conf), sessions (w/who), loaded kernel modules sample, and runtimes in PATH (e.g. python3, node). Redirect to a file to save a baseline, e.g. ... > baseline.md.

For cron or unattended runs, set the job's working directory explicitly and write a timestamped markdown file with a relative output basename. From the LocalSetup source repository root:

python3 ls/skills/ls-system-baseline-diagnostics/scripts/system_snapshot.py --output-basename reports/system-snapshots/daily

From the skill directory (in the source checkout or an installed package):

python3 scripts/system_snapshot.py --output-basename reports/system-snapshots/daily

The output basename is relative to the process working directory, not the script location. These examples create parent directories as needed and write reports/system-snapshots/daily-YYYYMMDDTHHMMSSZ.md beneath the selected repository root or skill directory, respectively. Choose a writable working directory for unattended output. The script prints the written path to stdout and emits warnings to stderr when optional commands are unavailable or exit nonzero.

If you prefer not to run the script, you can run these manually (all no sudo):

  • hostname; uname -a; date -Iseconds
  • cat /etc/os-release
  • uptime; cat /proc/loadavg; cat /proc/uptime
  • lscpu (or cat /proc/cpuinfo)
  • free -h; cat /proc/meminfo
  • df -h; df -i; lsblk -o NAME,SIZE,TYPE,MOUNTPOINT; cat /proc/partitions
  • ip -br addr; ip route; cat /etc/resolv.conf
  • w or who
  • cat /proc/modules (sample)
  • which python3 node; python3 --version; node --version (if needed)

Install

No installation needed. The quick commands use free, df, uptime, and lscpu (or /proc); the extended script uses Python 3.12+ stdlib only. If lscpu or lsblk is missing, the script retains its /proc fallbacks. To add an optional command, consult the target distribution's package metadata and obtain the required installation approval; do not assume a package named util-linux supplies it on every image. For example, Alpine lists separate lscpu and lsblk packages with util-linux as their origin.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

中文简介正在准备中。当前显示原文说明。

CruxExperts/LocalSetup62026年10月22日 更新

查看 CruxExperts 的全部技能

报告此技能的问题