Skip to content

AI Skills

The Docker lexicon ships two AI skills that give coding agents operational knowledge about Docker Compose and Dockerfile patterns without requiring manual explanation.

Skills are installed automatically when you scaffold a project:

Terminal window
chant init --lexicon docker my-project

To refresh skills after a lexicon update:

Terminal window
chant update

Core Docker lexicon usage:

  • Resource types — Service, Volume, Network, Config, Secret, Dockerfile
  • Buildchant build src --lexicon docker -o docker-compose.yml
  • Lintchant lint src/ + post-synth checks
  • Variable interpolationenv() with required/default semantics
  • Default labelsdefaultLabels() scope and merge

Common patterns and composition:

  • Database services with health checks and named volumes
  • Redis cache, Nginx reverse proxy
  • Multi-stage Dockerfiles
  • Secret management with env() and Docker secrets
  • Service networking with named networks

The lexicon provides MCP tools usable by AI agents programmatically:

ToolDescription
buildBuild the chant project
lintRun lint rules
explainSummarize project resources
scaffoldGenerate starter files
searchSearch available resource types
diffShow changes between builds

Via chant serve lsp:

  • Completions — type new to get Docker resource completions
  • Hover — hover over type names to see Compose/Dockerfile serialization hints