# Aegis Orchestrator: Docker SRE Copilot

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

Aegis Orchestrator: Docker SRE Copilot is a free AI agent skill on Agensi by Vijit Vishnoi, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Vijit Vishnoi](https://www.agensi.io/creators/vijit-vishnoi)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-11-17
- Security: scan passed (2026-11-17); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/aegis-orchestrator-docker-sre-copilot
- Tags: llm-ops, docker, sre, monitoring, devops, prometheus

## 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.

## Requires

- Python
- Docker Desktop

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Aegis Orchestrator: Docker SRE Copilot skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from manually asking an AI to fix a Docker container?

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.

### What infrastructure is required to run the Untitled Skill?

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.

### Will the agent automatically restart my containers every time it sees an error?

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.

### Can I use this skill to manage a Kubernetes cluster?

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

### How does the Prometheus integration help with incident resolution?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
