Skills

Docker Agent Config

Use this skill when creating or editing an agent.yaml (or .yml/.hcl) configuration file...

Install

npx skills add docker/skills --skill docker-agent-config -g -a claude-code -y
Repository
docker/skills609
Category
AI and agents
Updated
5d ago
License
Apache-2.0
Context cost
Mediumabout 2,244 tokens
Runs scripts
No, instructions only

What it does

Use this skill when creating or editing an agent.yaml (or .yml/.hcl) configuration file for Docker Agent (cagent), including defining agents, models/providers, built-in or MCP toolsets, multi-agent teams with sub_agents. Even if the user just says they want to "build an AI agent with Docker", "make a coding agent config", "add a tool to my agent", or "set up a team of agents", this skill applies. Covers agent properties (model, instruction, toolsets, sub_agents, fallback), the models/providers sections, built-in toolsets (filesystem, shell, think, todo, memory, fetch), MCP toolset references, and named commands.

Docker Agent Configuration

Overview

Docker Agent (the CLI is docker agent, the open-source project is cagent) runs AI agents declared in a YAML file instead of application code. This skill owns the agent.yaml artifact: the agents section (each entry's model, instruction, and its own toolsets/sub_agents), the top-level models/providers sections referenced from agents, and a top-level commands group agents can opt into with use_commands. It does not cover invoking the CLI or serving/sharing the config, see Related skills.

When to use this skill

Activate this skill when:

  • The user is creating, editing, or reviewing an agent.yaml/agent.yml/agent.hcl file.
  • The user wants to add a tool/toolset, an MCP server, or a sub-agent to an agent config.
  • The user wants to choose or configure a model/provider (OpenAI, Anthropic, Google, Bedrock, Docker Model Runner, custom endpoint) for an agent.
  • The user wants a multi-agent "team" with a coordinator delegating to specialists.

Do not use this skill when

Do not use this skill when:

  • The task is about running the CLI (docker agent run flags, --safety, --sandbox, aliases, worktrees), use docker-agent-run.
  • The task is about exposing an agent as a server (serve mcp/api/a2a/acp/chat), distributing it (share push/pull), or evaluating it (evaluation sessions, --baseline regression gates), use docker-agent-deploy.
  • The task is about a generic Dockerfile or Compose service unrelated to Docker Agent, use docker-build-strategies or docker-compose-patterns.

Core guidance

Read the whole SKILL.md on GitHub

More in AI and agents