Works with the AI Agents you already use

    Aegis Orchestrator: Docker SRE Copilot

    by Vijit Vishnoi

    1

    An autonomous Site Reliability Engineering (SRE) skill using MCP to diagnose Docker container alerts via log inspection and execute targeted remediation.

    Free

    Security scanned
    Aegis Orchestrator: Docker SRE Copilot

    Aegis Orchestrator: Docker SRE Copilot

    Example session with this skill installed

    We just received a HighCPUUsage alert for the target_app container. Please investigate the root cause using your diagnostic tools and remediate the issue if necessary.

    • Read your context and instructions
    • Compiled the aegis orchestrator

    Aegis Orchestrator Incident Report

    • ALERT: High CPU usage detected on container target_app.
    • DIAGNOSIS: Executed get_container_stats and fetch_container_logs. The container logs reveal that requests to the CPU chaos endpoint (/chaos/cpu) were executed, intentionally burning CPU cycles and triggering the high CPU alert. Current container stats show that CPU utilization has since subsided (currently at 0.23%).
    • PROPOSED FIX: Restart container target_app.
    • REMEDIATION STATUS: Executed execute_container_restart. Container target_app restarted successfully. Uptime has been reset.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Incidents in containerized environments often lead to manual, repetitive log diving and metric checking while downtime accumulates. This skill automates the standard SRE investigative loop to diagnose and resolve Docker container failures autonomously.

    What it does

    • Resource Monitoring retrieves real-time CPU and memory usage snapshots to identify starvation or leaks.
    • Log Analysis fetches recent stdout/stderr logs to find stack traces, database timeouts, or exit signals.
    • Metric Aggregation queries Prometheus-style CPU rates over defined windows to distinguish transient spikes from sustained load.
    • Historical Auditing searches for crash signatures and kernel OOM-killer events within specific time windows.
    • Auto-Remediation executes controlled container restarts once a root cause is identified and verified.

    How it works

    1. Identify the target service from the alert payload or user description.
    2. Inspect live resource stats and historical metrics to confirm performance anomalies.
    3. Analyze logs for fatal exceptions, connection pool exhaustion, or memory pressure signals.
    4. Diagnose the root cause in a concise SRE report including symptoms and triggers.
    5. Remediate by triggering restarts and verifying post-restart health metrics.

    Frameworks & tools

    This skill is built for Docker and Docker Compose environments. It integrates with Prometheus for historical metric evaluation and utilizes Model Context Protocol (MCP) to interface with the Aegis Infrastructure APIs.

    Why this beats prompting it yourself

    Generic prompts lack a structured 5-phase SRE protocol, often leading to "hallucinated" fixes before checking logs. This skill enforces a strict dependency chain: it requires evidence from stats and logs before it permits a remediation command.

    Use cases

    • Investigate and resolve HTTP 5xx spikes caused by backend deadlocks.
    • Automatically recover services stuck in OOM (Out Of Memory) crash loops.
    • Diagnose database connection pool exhaustion by correlating logs with CPU thrashing.
    • Verify service recovery after a container restart by monitoring post-action telemetry.

    Known limitations

    Requires connection to an Aegis Infrastructure MCP server. Restricted to Docker Compose restart logic and does not support complex Kubernetes orchestration or horizontal scaling actions.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 17 days ago

    • Free with an Agensi account

    Software
    PythonDocker Desktop

    Permissions

    Read Files
    Network Access
    Terminal / Shell
    Listed17 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the full SRE diagnostic loop—resource monitoring, log analysis, and metric aggregation—to identify root causes and execute container restarts without manual intervention.

    It is specifically designed for Docker and Docker Compose environments and requires a connection to an Aegis Infrastructure MCP server to interface with your system APIs.

    No, this skill enforces a strict evidence-based protocol; it will only trigger a restart after verifying logs and metrics confirm the root cause, preventing unnecessary service disruptions.

    While it excels at real-time diagnostics and Docker Compose remediation, it does not currently support Kubernetes orchestration or horizontal scaling actions.

    The skill integrates with Prometheus-compatible endpoints to analyze historical CPU and memory trends, allowing it to distinguish between one-off spikes and sustained performance degradation.

    New in DevOps & Cloud

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Free