aiops-gordon
БесплатноБез исполняемых скриптовНе проверенSetup and use Docker AI (Gordon) for intelligent container operations
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Docker AI (Gordon) Setup Skill
Quick Start
- Verify Docker Desktop - Version 4.53+ required
- Enable Gordon - Settings → Beta features → Toggle "Docker AI"
- Test Gordon - Run
docker ai "What can you do?" - Use Gordon - For building, debugging, and optimizing containers
What is Docker AI (Gordon)?
Docker AI (codenamed Gordon) is an AI-powered assistant built into Docker Desktop that helps with:
- Building containers - Generate Dockerfiles from requirements
- Debugging issues - Analyze logs and errors
- Optimizing images - Reduce size and improve performance
- Scanning vulnerabilities - Security analysis
- Explaining commands - Learn Docker and Kubernetes
Enabling Docker AI
Docker Desktop 4.53+
- Open Docker Desktop
- Go to Settings → Beta features
- Toggle on "Docker AI"
- Click "Get started" or "Enable"
- Accept terms and conditions
Alternative: Docker CLI Extension
# If not using Docker Desktop, try CLI extension
# (Note: Gordon is primarily in Docker Desktop)
docker context list
# See if AI context is available
Gordon Commands Reference
Building Containers
# 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"
Debugging Issues
# 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
Image Optimization
# 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"
Multi-Service Orchestration
# 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"
Gordon Examples for Todo Project
Frontend Dockerfile Generation
# 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
Backend Dockerfile Generation
docker ai "Create a multi-stage Dockerfile for FastAPI with Python 3.13, SQLModel, and OpenAI dependencies"
MCP Server Dockerfile
docker ai "Create a minimal Dockerfile for Python FastMCP server with minimal dependencies"
Docker Compose Generation
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"
Debug Build Issues
# 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
Gordon Limitations
| 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 |
Gordon vs Manual Docker
| 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 |
Best Practices with Gordon
- Always review output - Gordon generates good code, but review before saving
- Iterative refinement - Use follow-up prompts to refine Gordon's output
- Test locally - Always test Dockerfiles generated by Gordon
- **Ve
Установить aiops-gordon в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashWriteReadGlobВложенные файлы
FAQ
Что делает скилл aiops-gordon?
Setup and use Docker AI (Gordon) for intelligent container operations
Как установить скилл aiops-gordon?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aiops-gordon запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub