Seth Rose

Pi Admin

运维安全v1.0.0
作者:Seth Rose更新于 2026-05-11pi-admin@clawhub_thesethrose/pi-admin
监控告警服务器运维配置生成#System Administration

据 AlphaMoat 统计,截至 2026-09,Pi Admin 累计下载 4,489 次、获 6 个星标,在全部 5,078 个 AI 技能中排名第 2,150 位,在「运维安全」分类(264 个)中排名第 116 位。

累计安装
754
累计下载
4,489
星标
6
全站排名
#2,150
全站前 43% · 「运维安全」前 44%
平台累计安装累计下载星标评论
ClawHub ↗1293,8355-
SkillHub ↗7544,4896—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

可查看网络配置(含 IP 与 Tailscale)、CPU 内存与存储占用,以及正在运行的服务状态,并执行更新与维护操作。改动类操作支持预览模式,先看将要发生的变化再决定是否应用;升级前需要确认。

资料发布于 2026-10-27

可以用来做什么

  • 排查树莓派内存占用偏高的原因。
  • 升级前先预览会改动哪些软件包。

什么时候用

  • 设备运行异常需要看资源与服务状态时。
  • 要执行升级或维护但想先确认影响时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

看看这台树莓派的 CPU 和内存占用情况。
先预览一下这次升级会改动什么,别直接执行。

月度数据趋势

累计下载4,489
3,2703,9254,5792026-03 · 累计下载 3,3602026-05 · 累计下载 3,7042026-07 · 累计下载 3,9122026-08 · 累计下载 3,9832026-09 · 累计下载 4,48926-0326-09
星标6
4562026-03 · 星标 42026-05 · 星标 62026-07 · 星标 62026-08 · 星标 62026-09 · 星标 626-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,489—6
2026-083,983+1.8%6
2026-073,912—6
2026-053,704—6
2026-033,360—4

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.9 KB · ClawHub v1.0.0
---
name: pi-admin
description: Raspberry Pi system administration. Monitor resources, manage services, perform updates and maintenance.
metadata: {"clawdis":{"emoji":"🥧","requires":{"bins":[]}}}
---

# Raspberry Pi Administration

Complete system monitoring and introspection for the Raspberry Pi host. Access network details, system resources, storage, services, and more.
展开全部(共 154 行)
## When to Use
- Checking Pi network configuration (IP, Tailscale)
- Monitoring system resources (CPU, memory, storage)
- Viewing running services and their status
- Checking temperature and hardware info
- Troubleshooting system issues
- Getting system overview for debugging

## Usage

```bash
# Information Commands
cd /home/srose/clawd/skills/pi-admin
./skill.sh overview
./skill.sh network
./skill.sh tailscale
./skill.sh resources
./skill.sh storage
./skill.sh services
./skill.sh hardware

# Maintenance Commands
./skill.sh update       # Update system packages
./skill.sh clean        # Clean unused packages, logs, Docker
./skill.sh reboot       # Reboot with countdown
./skill.sh restart-gateway  # Restart the Clawdis Gateway

# Complete system info
./skill.sh all
```

## Tools Available

| Tool | Description |
|------|-------------|
| `overview` | Quick system summary |
| `network` | IP addresses, hostname, network interfaces |
| `tailscale` | Tailscale status, IP, peers |
| `resources` | CPU, memory, temperature |
| `storage` | Disk usage, mount points |
| `services` | Running services, Gateway status |
| `hardware` | CPU info, Raspberry Pi model, GPU |
| `all` | Complete detailed dump |

## Examples

```bash
# Quick system check
./skill.sh overview

# Debug network issues
./skill.sh network && ./skill.sh tailscale

# Check if Gateway is running
./skill.sh services | grep gateway

# Monitor disk space
./skill.sh storage
```

## Information Collected

**Network:**
- Hostname
- Local IP addresses (eth0, wlan0)
- Network interface details
- DNS configuration

**Tailscale:**
- Status (running/stopped)
- Tailscale IP
- Connected peers
- Exit node status

**Resources:**
- CPU usage
- Memory usage (used/free/total)
- CPU temperature
- Uptime

**Storage:**
- Disk usage by mount point
- Inode usage
- Free space

**Services:**
- Gateway service status
- Docker containers
- Systemd services
- Port listeners

**Hardware:**
- CPU model and cores
- Raspberry Pi model
- GPU memory
- Total RAM

## Maintenance Commands

### `update`
Update system packages via apt:
- Updates package lists
- Shows upgradable packages
- Requires confirmation before upgrading
- Reports if reboot is needed
- **Dry run:** `./skill.sh update --dry-run` shows what would be updated

### `clean`
Clean up system to free disk space:
- Removes unused packages (autoremove)
- Clears package cache
- Cleans old journal logs (keeps 7 days)
- Optionally cleans Docker artifacts
- Shows space saved
- **Dry run:** `./skill.sh clean --dry-run` shows what would be cleaned

### `reboot`
Graceful system reboot:
- 10-second countdown
- Ctrl+C to cancel
- Uses systemctl reboot
- **Dry run:** `./skill.sh reboot --dry-run` shows countdown without rebooting

### `restart-gateway`
Restart the Clawdis Gateway service:
- Stops all running gateway processes
- Starts fresh gateway on port 18789
- Confirms port is listening
- Shows access URLs
- **Dry run:** `./skill.sh restart-gateway --dry-run` shows what would happen

### `optimize`
Apply safe system optimizations:
- Disable Bluetooth service (~50MB RAM saved)
- Disable ModemManager (~30MB RAM saved)
- Disable Avahi/Zeroconf (~20MB RAM saved)
- Set swappiness to 10 (better RAM utilization)
- **Dry run:** `./skill.sh optimize --dry-run` shows what would change
- **Undo:** `./skill.sh optimize --undo` reverts all changes

**Total RAM savings:** ~100MB
**Reversibility:** Yes, use `--undo` flag to revert

**Note:** All maintenance commands require sudo and ask for confirmation before making changes. Use `--dry-run` flag to preview changes without applying them.

「运维安全」分类下的热门技能

Seth Rose 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。