container_diagnosis

Diagnose and triage local Docker containers via CLI status, logs, and configuration.

Updated May 16, 2026
One-click install
npx skills add https://github.com/baiyaoshi/SmartOperationsAssistant --skill container-diagnosis-baiyaoshi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: container_diagnosis
Source: https://github.com/baiyaoshi/SmartOperationsAssistant/tree/main/app/skills/definitions/container_diagnosis
Command: npx skills add https://github.com/baiyaoshi/SmartOperationsAssistant --skill container-diagnosis-baiyaoshi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you diagnose and triage local Docker containers that are unhealthy, stuck in crash loops, or consuming excessive resources by querying docker CLI for status, logs, and configuration.

Core Features & Use Cases

  • Real-time container status checks (Up/Restarting/Exited)
  • Resource and log analysis to identify issues
  • Phase-based guidance for remediation (Phase 2: health check; Phase 3: kill/restart)

Quick Start

Check the health and logs of a running container named your_container to begin diagnostics.

Frequently Asked Questions about container_diagnosis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose a local Docker container stuck in a crash loop?

Diagnose a Docker container crash loop by querying the docker CLI for real-time container status, resource usage, and application logs. This skill identifies the root cause and provides phase-based remediation guidance.

What is the best way to troubleshoot a Docker container that keeps restarting?

The best way to troubleshoot a restarting Docker container is to analyze its status and logs via docker CLI. This skill automates container diagnosis by checking health status and extracting log metrics to guide remediation actions.

How do I check Docker container logs and status for troubleshooting?

Check Docker container logs and status by querying the docker CLI. This skill performs real-time container status checks and analyzes logs and metrics to identify why a container is unhealthy or consuming excessive resources.

Can I use this to diagnose high resource usage on a single-host Docker environment?

Yes, you can diagnose high resource usage on a single-host development environment. This skill queries the docker CLI to analyze container metrics and status to triage unhealthy containers and provide remediation guidance.

What should I do when a Docker container exits unexpectedly and how do I restart it?

When a Docker container exits unexpectedly, use this skill to analyze its logs and status. It provides structured phase-based guidance for health checks and kill/restart actions to remediate the local container.