返回顶部
h

homelab-runbook

Scan and document all running services on this machine — Docker containers, system services (launchd/systemd), and open listening ports. Generates a human-readable Markdown runbook with service names, ports, images, mount points, and health status. Use when the user asks about homelab, runbook, document services, what's running, service inventory, homelab docs, list my services, scan ports, or wants a snapshot of what's active on the host machine. Can run on demand or on a cron schedule. Works o

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
74
下载量
0
收藏
概述
安装方式
版本历史

homelab-runbook

# Homelab Runbook Scan the host machine and generate a Markdown runbook documenting all running services. ## Scripts All scripts are in `scripts/`. Run with `python3 <script>`. All output JSON to stdout. | Script | Purpose | |--------|---------| | `scan_docker.py` | Running containers: name, image, ports, mounts, status | | `scan_services.py` | System services via launchd (macOS) or systemd (Linux) | | `scan_ports.py` | Open TCP listening ports with process and PID | | `generate_runbook.py` | Combine all scans → formatted Markdown runbook | ## Generating a Runbook **Quickest — run all scanners inline and print to stdout:** ```bash python3 scripts/generate_runbook.py ``` **Save to a file:** ```bash python3 scripts/generate_runbook.py --output ~/homelab-runbook.md ``` **Save to workspace:** ```bash python3 scripts/generate_runbook.py --output /Users/openclaw/.openclaw/workspace/homelab-runbook.md ``` **Pre-collect then generate (useful for cron or piping):** ```bash python3 scripts/scan_docker.py > /tmp/docker.json python3 scripts/scan_services.py > /tmp/services.json python3 scripts/scan_ports.py > /tmp/ports.json python3 scripts/generate_runbook.py --docker /tmp/docker.json --services /tmp/services.json --ports /tmp/ports.json --output ~/homelab-runbook.md ``` ## Agent Workflow When the user asks for a homelab runbook or service inventory: 1. Run `generate_runbook.py` (all scanners inline, save to workspace file). 2. Read the output file and summarize key findings: - How many Docker containers are running and what they are - Notable open ports and the processes owning them - Any errors or warnings (Docker not found, permission denied, etc.) 3. Offer to save to Obsidian vault if the user wants it persisted. Use the `--output` flag to write to the workspace. Do not dump the full raw Markdown at the user — summarize it and offer the file path. ## Edge Cases - **Docker not installed:** `scan_docker.py` returns `{"error": "Docker not installed or not running", "containers": []}` — runbook shows a warning, continues. - **No containers running:** Returns empty list, runbook shows "_No running containers._" - **Port scan permission denied:** `scan_ports.py` returns an error — runbook shows warning. Tell the user to re-run with `sudo` if full port visibility is needed. - **Linux without systemd:** `scan_services.py` will return an error — acceptable, runbook notes it. ## Customization See `references/customization.md` for: - Excluding specific services/containers/ports - Adding manual service notes (URLs, config paths, restart commands) - Scheduling with cron - Modifying output format

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 homelab-runbook-1775932724 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 homelab-runbook-1775932724 技能

通过命令行安装

skillhub install homelab-runbook-1775932724

下载 Zip 包

⬇ 下载 homelab-runbook v1.0.0

文件大小: 9.72 KB | 发布时间: 2026-4-12 10:12

v1.0.0 最新 2026-4-12 10:12
Initial release: Auto-document running services — Docker containers, system services (launchd/systemd), and open ports. Generates Markdown runbook.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部