Skip to main content
skill CX Codex

container-debugging — Claude Code skill for container debugging

Troubleshoot Docker and Kubernetes issues, from startup failures and crashes to resource limits and network problems.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aj-geddes/useful-ai-prompts --skill container-debugging -a claude-code
Open on GitHub

What container-debugging does

This skill guides you through diagnosing container problems, including containers that fail to start, apps that crash, resource limits, and connectivity issues. It also covers performance troubleshooting.

Its quick commands include docker ps, docker inspect, docker stats, docker logs, docker exec, and docker top. More detailed material lives in references/: Docker debugging basics, common issues, container optimization, and a debugging checklist. The command checks require Docker CLI access; without it, you cannot run them.

What it helps with

  • find why a container will not start
  • trace an application crash through container logs
  • check a container’s CPU and memory usage
  • investigate network problems in a containerized app

Example prompts for the agent

  • Find out why the api container will not start and suggest diagnostic commands.
  • Inspect the worker container logs and identify a likely cause of the crash.
  • Show me how to check whether this container is hitting its CPU or memory limits.

How to install container-debugging

1Skills CLI (Vercel)

npx skills add aj-geddes/useful-ai-prompts --skill container-debugging -a claude-code

2Manually: put the files in place

~/.claude/skills/container-debugging/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/container-debugging/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about container-debugging

How do I install container-debugging in Claude Code?

Run npx skills add aj-geddes/useful-ai-prompts --skill container-debugging -a claude-code. The skill file is at ~/.claude/skills/container-debugging/SKILL.md.

What does the container-debugging skill do?

It helps diagnose Docker container and application issues by checking status, logs, processes, and resource usage.

Which Docker commands does the skill use?

The quick-start checks use docker ps, docker inspect, docker stats, docker logs, docker exec, and docker top.

Source text

SKILL.md · MIT
---
name: container-debugging
description: >
  Debug Docker containers and containerized applications. Diagnose deployment
  issues, container lifecycle problems, and resource constraints.
---

# Container Debugging

## Table of Contents

- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)

## Overview

Container debugging focuses on issues within Docker/Kubernetes environments including resource constraints, networking, and application runtime problems.

## When to Use

- Container won't start
- Application crashes in container
- Resource limits exceeded
- Network connectivity issues
- Performance problems in containers

## Quick Start

Minimal working example:

```bash
# Check container status
docker ps -a
docker inspect <container-id>
docker stats <container-id>

# View container logs
docker logs <container-id>
docker logs --follow <container-id>  # Real-time
docker logs --tail 100 <container-id>  # Last 100 lines

# Connect to running container
docker exec -it <container-id> /bin/bash
docker exec -it <container-id> sh

# Inspect container details
docker inspect <container-id> | grep -A 5 "State"
docker inspect <container-id> | grep -E "Memory|Cpu"

# Check container processes
docker top <container-id>

# View resource usage
docker stats <container-id>
# Shows: CPU%, Memory usage, Network I/O

// ... (see reference guides for full implementation)
```

## Reference Guides

Detailed implementations in the `references/` directory:

| Guide | Contents |
|---|---|
| [Docker Debugging Basics](references/docker-debugging-basics.md) | Docker Debugging Basics |
| [Common Container Issues](references/common-container-issues.md) | Common Container Issues |
| [Container Optimization](references/container-optimization.md) | Container Optimization |
| [Debugging Checklist](references/debugging-checklist.md) | Debugging Checklist |

## Best Practices

### ✅ DO

- Follow established patterns and conventions
- Write clean, maintainable code
- Add appropriate documentation
- Test thoroughly before deploying

### ❌ DON'T

- Skip testing or validation
- Ignore error handling
- Hard-code configuration values

© aj-geddes · MIT · aj-geddes/useful-ai-prompts

Similar skills

All skills for DevOps and infrastructure →

From the same set149

database-performance-debugging A skill that walks your agent through finding slow SQL queries and reading their execution plans. Useful when the app drags or the database burns CPU. CX Codex +1 493installs code-documentation A skill that makes the agent write documentation inside your code: JSDoc, Python docstrings, JavaDoc, inline comments and API notes. Useful when functions and classes need describing, not rewriting. CX Codex +1 492installs reactive-programming A skill for reactive streams in RxJS: observables, operators, backpressure. Useful when a project leans on async data and events. CX Codex +1 491installs api-pagination A skill that tells the agent how to page through big collections: offset/limit, cursors, keyset. Useful when a user list or search result set outgrows one response. CX Codex +1 489installs user-persona-creation Builds realistic user personas from qualitative research and interview notes. Useful for guiding product design and feature prioritization. CX Codex +1 486installs nosql-database-design Guides the agent through NoSQL schema work: MongoDB collections, DynamoDB tables, embedding vs referencing, indexes. Useful before the schema hardens in code. CX Codex +1 486installs database-indexing-strategy A skill for planning indexes: picks the type, builds composite and partial ones, covers maintenance. Useful when queries slow down. CX Codex +1 486installs uptime-monitoring A skill that walks your coding agent through uptime checks, a public status page and incident tracking. Useful when you need to know which dependency actually broke. CX Codex +1 484installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor