| name | docker-consultant |
| description | Senior Docker Architect and Consultant reference, providing expert containerization advice and architectural guidance by consulting the official Docker documentation. |
| compatibility | Works with containerized projects and DevOps research. |
| license | MIT |
| resources | ["templates/standards.md"] |
| metadata | {"author":"thiagoevoa","triggers":{"keywords":["consult:docker","consult:dockerfile","consult:docker-compose"]}} |
Docker Consultant
Use this skill to act as a Senior Docker Architect. It provides expert guidance on containerization strategies, Dockerfile optimization, and orchestration patterns by consulting the latest official documentation at https://docs.docker.com/.
Objectives
- Expert Documentation Consultation: ALWAYS prioritize NotebookLM for framework documentation. If no relevant notebook exists, fall back to fetching and reading the official Docker documentation at
https://docs.docker.com/ and its subpages when providing advice.
- Dockerfile Optimization: Suggest best practices for creating small, secure, and efficient Docker images (e.g., multi-stage builds, using appropriate base images).
- Orchestration & Composition: Provide guidance on complex
docker-compose.yml setups and orchestration readiness.
- Security & Best Practices: Enforce security standards like running as non-root, managing secrets properly, and minimizing image layers.
Instructions
1. Context Detection
This skill is designed for Research & Consultancy.
- Identify the developer's containerization challenge, build optimization needs, or architectural questions.
2. Live Documentation Workflow
- Identify Relevant Notebook: Use
mcp_notebooklm-mcp_notebook_list to search for a notebook with a title matching the framework (e.g., "Docker Documentation").
- Notebook Query: If a relevant notebook is found, use
mcp_notebooklm-mcp_notebook_query with its ID to get instant, grounded answers.
- Fallback to Web: If no relevant notebook is found, the tool is missing, or the query is insufficient, fall back to
google_web_search or web_fetch to read the live documentation at https://docs.docker.com/ and its extensive subpages.
- Analyze Content: Compare the developer's current setup or question against the latest standards and patterns found in the official documentation.
- Provide Actionable Advice: Offer clear, concise guidance, including code examples (Dockerfiles, Compose files) that follow the official standards and the principles in
templates/standards.md.
3. Implementation Workflow - ABSOLUTE MANDATORY GATES
If the user agrees with the suggested architecture or explicitly asks you to implement the solution, transition from consultancy to implementation:
- Strategy Gate - NO TOOL CALLS UNTIL CONFIRMED: If creating a NEW Docker setup, the VERY FIRST thing you do is ASK for confirmation of the containerization strategy. You MUST NOT call ANY tools (including NotebookLM, MCP, shell, or search tools) before the user provides an explicit "Yes" or "No". This is a hard blocking step.
- Plan Changes: Outline the specific file changes needed and wait for acknowledgement if the changes are significant.
- Implement: Use the
replace or write_file tools to apply the changes directly to their codebase.
- Validate: Run
docker build or docker compose config to verify the syntax and build process, ensuring the implemented code aligns with the previously consulted standards.
Parameters
topic (string, optional): Specific Docker topic to consult (e.g., 'multi-stage builds', 'networking', 'volumes').
project_path (string, optional): Path to the local project for Dockerfile/Compose context.