Skip to content

AI Skills

The AWS lexicon ships an AI skill called chant-aws that teaches AI coding agents (like Claude Code) how to build, validate, and deploy CloudFormation templates from a chant project.

Skills are structured markdown documents bundled with a lexicon. When an AI agent works in a chant project, it discovers and loads relevant skills automatically — giving it operational knowledge about the deployment workflow without requiring the user to explain each step.

When you scaffold a new project with chant init --lexicon aws, the skill is installed to skills/chant-aws/SKILL.md for automatic discovery by Claude Code.

For existing projects, create the file manually:

.claude/
skills/
chant-aws/
SKILL.md # skill content (see below)

The chant-aws skill covers the full deployment lifecycle:

  • Buildchant build src/ --output stack.json
  • Validatechant lint src/ + aws cloudformation validate-template
  • Deployaws cloudformation deploy with capabilities
  • Update — change sets for preview, or direct deploy
  • Deleteaws cloudformation delete-stack
  • Statusdescribe-stacks and describe-stack-events
  • Troubleshooting — event inspection, rollback recovery, drift detection

The skill is invocable as a slash command: /chant-aws

The lexicon also provides MCP (Model Context Protocol) tools and resources that AI agents can use programmatically:

MCP toolDescription
buildBuild the chant project
lintRun lint rules
explainSummarize project resources
scaffoldGenerate starter files
searchSearch available resource types
aws:diffCompare current build output against previous
MCP resourceDescription
resource-catalogJSON list of all supported CloudFormation resource types
examples/basic-stackExample stack with S3 bucket and IAM role