Skip to Content
Back to Marketplace

server-agent

Universal production server monitoring, healing, and reporting skill for cmdop

1installs
v0.1.1
demonick85DevOps & CI/CDcmdop, devops, docker, monitoring, security, self-healing, server3/14/2026

server-agent

CMDOP Skill β€” install and use via CMDOP agent:

Loading code...

Universal production server monitoring, self-healing, and reporting skill for cmdop.

Watches over Docker containers, detects anomalies, heals what is safe to heal, scans for vulnerabilities, and writes structured Markdown reports β€” all driven by the cmdop agent.

Quick Start

Loading code...

Commands

CommandDescription
checkFull health check: containers, disk, Redis. Auto-heals safe issues.
scanSecurity scan: trivy CVEs, open ports, auth logs.
healTargeted remediation for a specific container.
reportWrite structured MD reports (daily, security).
statusQuick server snapshot β€” no files written.

All commands support --json for structured output and --dry-run to preview actions without executing them.

Environment Variables

VariableRequiredDescription
REPORTS_DIRyesAbsolute path to reports directory
TELEGRAM_BOT_TOKENnoBot token for Telegram notifications
TELEGRAM_CHAT_IDnoTarget chat/channel ID

Autonomy Model

  • SAFE (executes immediately): docker restart, docker system prune
  • ESCALATE (sends Telegram alert): image rebuild, config changes, containers with >2 restarts, OOM
  • NEVER: database commands, rm -rf outside /tmp, firewall changes

Protected containers (never auto-restarted): shared-db-redis, traefik

Setup on Production Server

Loading code...

Two Modes of Operation

Scheduled monitoring (Python CLI)

Triggers call server-agent binary directly. No LLM in the check loop β€” fast, deterministic, cheap.

Loading code...

Interactive investigation (cmdop skill)

Use when you need the agent to reason about an incident:

Loading code...

The agent reads skill/readme.md as its system prompt and uses server-agent CLI as a tool to gather data and take action.

Reports Structure

$REPORTS_DIR/ index.md baseline/ports.json 2026-03-14/ 10-23-incident-reforms-django.md 14-05-security-scan.md daily-summary.md

Reviews

No reviews yet.