.claude/skills/aiops-gordon/SKILL.md
Setup and use Docker AI (Gordon) for intelligent container operations
npx skillsauth add maneeshanif/todo-spec-driven aiops-gordonInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
docker ai "What can you do?"Docker AI (codenamed Gordon) is an AI-powered assistant built into Docker Desktop that helps with:
# If not using Docker Desktop, try CLI extension
# (Note: Gordon is primarily in Docker Desktop)
docker context list
# See if AI context is available
# Generate Dockerfile from requirements
docker ai "Create a Dockerfile for FastAPI application with Python 3.13"
# Optimize existing Dockerfile
docker ai "Optimize this Dockerfile for smaller image size" < Dockerfile
# Create multi-stage Dockerfile
docker ai "Convert this to a multi-stage Dockerfile" < Dockerfile
# Generate docker-compose.yml
docker ai "Create a docker-compose file with frontend, backend, and mcp-server services"
# Analyze startup failures
docker ai "Why is my container exiting immediately?"
# Debug build errors
docker ai "Fix this Docker build error" < error.log
# Troubleshoot networking
docker ai "Why can't container1 connect to container2?"
# Analyze logs
docker ai "Analyze these container logs for issues" < logs.txt
# Reduce image size
docker ai "Make this Dockerfile produce a smaller image"
# Optimize layer caching
docker ai "Optimize layer caching in this Dockerfile"
# Security scan
docker ai "Scan this image for security vulnerabilities" todo-backend:latest
# Best practices review
docker ai "Review this Dockerfile for security best practices"
# Generate compose file
docker ai "Create docker-compose for Next.js frontend, FastAPI backend, PostgreSQL"
# Add health checks
docker ai "Add health checks to this docker-compose file"
# Configure networking
docker ai "Set up bridge networking for these 3 containers"
# Ask Gordon to create Next.js Dockerfile
docker ai "Create a production-ready Dockerfile for Next.js 16 with TypeScript, using multi-stage build, with nginx or standalone server"
Expected output from Gordon:
# Gordon will generate optimized Dockerfile
# Review and save to frontend/Dockerfile
docker ai "Create a multi-stage Dockerfile for FastAPI with Python 3.13, SQLModel, and OpenAI dependencies"
docker ai "Create a minimal Dockerfile for Python FastMCP server with minimal dependencies"
docker ai "Create a docker-compose.yml file for:
- Frontend: Next.js on port 3000
- Backend: FastAPI on port 8000
- MCP Server: Python on port 8001
- Network: todo-network
- Health checks for all services
- Environment variables from .env file"
# If build fails, paste the error
docker ai "I'm getting this error when building:
Error: ModuleNotFoundError: No module named 'fastapi'
How do I fix this?"
# Or redirect error file
docker ai "Fix the errors in this build log" < build-error.log
| Limitation | Notes | |------------|--------| | Cloud-only features | Some features require Docker Desktop Pro/Team | | Context awareness | Gordon has limited context of your project structure | | Complex networking | May struggle with advanced networking scenarios | | Security scanning | Basic scanning only - use dedicated tools for production |
| Task | Gordon | Manual Docker | |------|---------|----------------| | Simple Dockerfile | Faster, optimized | More control | | Debugging | Excellent - analyzes context | Requires manual investigation | | Learning | Great for learning | Requires documentation | | Production-ready | Good, but review manually | Full control | | Custom requirements | May need manual edit | Full control |
Combine Gordon with:
| Issue | Fix | |--------|-----| | Gordon not available | Update Docker Desktop to 4.53+ | | "Beta features" missing | Sign out and sign in to Docker Desktop | | Gordon gives errors | Check Docker Desktop logs, try reinstall | | Limited functionality | Check Docker subscription tier |
# Step 1: Ask Gordon
docker ai "Create Dockerfile for Next.js with TypeScript and Tailwind CSS"
# Step 2: Save output to file
# Copy Gordon's response to Dockerfile
# Step 3: Build and test
docker build -t test-image .
docker run --rm test-image
# Step 1: Get container logs
docker logs <container-name> > logs.txt
# Step 2: Ask Gordon
docker ai "Analyze this log file and tell me what's wrong" < logs.txt
# Step 3: Apply fix
# Update Dockerfile or code based on Gordon's suggestion
# Step 4: Rebuild and test
docker build -t fixed-image .
docker run --rm fixed-image
# Step 1: Build initial image
docker build -t todo-backend:latest ./backend
# Step 2: Check size
docker images todo-backend
# Step 3: Ask Gordon to optimize
docker ai "Reduce the size of this Dockerfile while maintaining all functionality" < backend/Dockerfile
# Step 4: Compare
docker build -t todo-backend:optimized ./backend
docker images | grep todo-backend
After using Gordon:
After successful Docker setup with Gordon:
docker-compose up -dtools
Implement WebSocket service for real-time task synchronization across clients. Use when building real-time updates for Phase 5. (project)
data-ai
Implement Urdu language support with RTL layout, translations, and AI responses in Urdu. Bonus feature (+100 points) for Phase 5. (project)
development
DEPRECATED - Use chatkit-backend skill instead. SSE streaming is now part of the chatkit-backend skill for ChatKit integration.
development
Install and configure Shadcn/ui component library with Radix UI primitives, Aceternity UI effects, set up components, and manage the component registry. Use when adding Shadcn/ui to a Next.js project or installing specific UI components for Phase 2.