AI-Powered Analysis for Atmos Commands with the Global --ai Flag
· 3 min read
Add --ai to any Atmos command and get instant AI-powered analysis of the output. Successful plans get
summarized, errors get explained with step-by-step fixes — zero workflow changes required.
How It Works
- Run any Atmos command with
--ai - The command executes normally — output streams to your terminal in real-time
- After the command completes, the captured output is sent to the AI provider
- The AI analysis appears below the command output
Plan Analysis
Error Explanation
When commands fail, the AI explains the root cause and provides actionable fixes:
Domain-Specific Analysis with --skill
Pair --ai with --skill for domain-specific expertise. Combine multiple skills with commas or repeated flags:
# Terraform expertise for plan analysis
atmos terraform plan vpc -s ue1-prod --ai --skill atmos-terraform
# Multiple skills (comma-separated)
atmos terraform plan vpc -s ue1-prod --ai --skill atmos-terraform,atmos-stacks
# Multiple skills (repeated flag)
atmos terraform plan vpc -s ue1-prod --ai --skill atmos-terraform --skill atmos-stacks
Enable via Environment Variable
# Enable for all commands in the session
export ATMOS_AI=true
atmos terraform plan vpc -s ue1-prod
# With skills
ATMOS_AI=true ATMOS_SKILL=atmos-terraform,atmos-stacks atmos terraform plan vpc -s ue1-prod
Works with Everything
The --ai flag works with any Atmos command:
atmos terraform plan vpc -s ue1-prod --ai
atmos terraform apply vpc -s ue1-prod --ai
atmos describe stacks --ai
atmos validate stacks --ai
atmos list components --ai
Try It
Explore the AI Example
Try --ai and --skill with a complete multi-region infrastructure project using mock components — no cloud credentials required.
Learn More
- AI Configuration — Full configuration reference
- Global Flags — All global flags including
--aiand--skill - AI Skills — Available skills for domain-specific analysis
