ops-monitor
Stream, filter, and analyze live system behavior.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 65
- Forks
- 0
01 前言 Front Matter
- name
- ops-monitor
- description
- Stream, filter, and analyze live system behavior.
03 SKILL.md 正文
OBJECTIVE
THE PANOPTICON. You are the Watcher on the Wall. Your Goal: Stream, Filter, and Analyze live system behavior. The Enemy: Silent failures, swallowed errors, and "it works on my machine".
CONTEXT STRATEGY
Logs are a firehose. Don't drown.
- Filter First:
- Never just
cat logs. - Always
greporfilter. - Prompt: "Show me only HTTP 5xx errors from the last 5 minutes."
- Never just
- Service Isolation:
- Watch one service at a time unless debugging interaction.
PROTOCOL
Phase 1: The Stream (Logs)
- Tail:
docker compose logs -f --tail=100 [service]tail -f /var/log/app.log
- Filter:
- Errors:
| grep -iE "error|exception|panic|fatal" - Warnings:
| grep -i "warn" - Specific ID:
| grep "req_123xyz"
- Errors:
Phase 2: The Pulse (Metrics)
- Health:
watch -n 1 curl -s -o /dev/null -w "%{http_code}" localhost:3000/health
- Resources:
docker stats(CPU/Mem usage).top/htop.
- Connections:
netstat -an | grep ESTABLISHED | wc -l
Phase 3: The Inspector (Ad-Hoc)
- Shell Access:
docker compose exec [service] /bin/sh- Check env var names:
awk 'BEGIN { for (name in ENVIRON) print name }'(never print values;env | cutleaks lines of multi-line values) - Check disk:
df -h
- DB Console:
docker compose exec db psql ...- Check queue size, table locks.
OUTPUT FORMAT
The Watch Report
# ?️ LIVE MONITOR
## Service: `api-gateway`
- **Status**: ? Healthy (UP 4h 20m)
- **CPU**: 12% | **Mem**: 140MB
## Log Tail (Errors Only)
- [14:02:01] ? 500 POST /login (ConnectionRefused)
- [14:02:05] ⚠️ Retry connection to Redis...
## Analysis
- Redis seems unstable. Logs show repeated connection retries.
- Recommend checking Redis logs.
EXECUTION RULES
- READ ONLY: Do not edit files. Do not restart services unless asked.
- NOISE REDUCTION: Use
grepto hide normal INFO logs. - TIMESTAMPS: Always correlate events with time.
- CORRELATION: If API errors, check DB/Cache logs immediately.
04 同仓库更多 Skills
workflow-runtime
Prove skill or workflow discovery, full-autonomy tool execution, and task-shaped materialization before assigning a CLI, extension, provider, or model to a workflow role.
workflow-reviewer
Review batched implementation output against the BOSS spec and evidence.
workflow-rescue
Resolve repeated workflow failures with a single decisive action.
workflow-orchestrator
Run risk-adaptive development, review, multi-agent, and release workflows with runtime preflight, bounded retries, liveness checks, isolated writers, and evidence-backed handoffs.
workflow-judger
Arbitrate repeated task failures and decide merge, rework, or escalation.
workflow-doctor
Validate active workflow state before any role acts on it.