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
累計下載
4489
星標
6
全站排名
#2,150
全站前 43% · 「運維安全」前 44%
平台累計安裝累計下載星標評論
ClawHub ↗12938355-
SkillHub ↗75444896—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

可檢視網路配置(含 IP 與 Tailscale)、CPU 記憶體與儲存佔用,以及正在執行的服務狀態,並執行更新與維護操作。改動類操作支援預覽模式,先看將要發生的變化再決定是否應用;升級前需要確認。

資料釋出於 2026-10-27

可以用來做什麼

  • 排查樹莓派記憶體佔用偏高的原因。
  • 升級前先預覽會改動哪些軟體包。

什麼時候用

  • 裝置執行異常需要看資源與服務狀態時。
  • 要執行升級或維護但想先確認影響時。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

看看這臺樹莓派的 CPU 和記憶體佔用情況。
先預覽一下這次升級會改動什麼,別直接執行。

月度資料趨勢

累計下載4489
3270392545792026-03 · 累計下載 33602026-05 · 累計下載 37042026-07 · 累計下載 39122026-08 · 累計下載 39832026-09 · 累計下載 448926-0326-09
星標6
4562026-03 · 星標 42026-05 · 星標 62026-07 · 星標 62026-08 · 星標 62026-09 · 星標 626-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094489—6
2026-083983+1.8%6
2026-073912—6
2026-053704—6
2026-033360—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),按月更新。口徑說明見資料方法。