/atmos:atmos-aifrom atmos
Coordinates AI and MCP integrations with Atmos: connects external AI assistants via agent skills and MCP servers, and runs AI from Atmos through commands like atmos ai ask/chat/exec with API/CLI providers.
Ships in atmos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the work is about AI and Atmos together. There are two integration patterns:
atmos mcp start, atmos mcp export, the Atmos MCP server,
Atmos Pro MCP, AWS MCP servers, and MCP+skills setup for Claude Code, Codex, Gemini, Cursor,
Windsurf, GitHub Copilot, and similar clients.atmos ai ask, atmos ai chat, atmos ai exec, --ai command analysis, API
providers, CLI providers, external MCP server routing, and CLI provider MCP pass-through.This skill is the coordination layer for AI providers, agent skills, MCP configuration, MCP export, and the "AI inside AI" setup where an external assistant calls Atmos, and Atmos can also call AI.
| Work | Use |
|---|---|
AI provider setup, atmos ai, --ai, MCP server/client config, MCP export, agent-skill pairing | Stay in atmos-ai |
| Project discovery, resolved stacks/components, provenance, query filters, affected analysis | Load atmos-introspection |
Terraform plan/apply/deploy/destroy, --affected, --all, --query, CI execution matrices | Load atmos-terraform or atmos-ci |
| Cloud credentials, identities, SSO/OIDC, auth-wrapped MCP servers | Load atmos-auth |
Tool binaries for MCP servers, uvx/npx resolution, Aqua aliases, PATH injection | Load atmos-toolchain |
atmos ai chat
atmos ai ask "What stacks do we have?"
atmos ai exec "validate stacks" --format json
atmos ai sessions list
atmos ai skill list
# Analyze any Atmos command output with AI
atmos terraform plan vpc -s prod --ai
atmos terraform plan vpc -s prod --ai --skill atmos-terraform
atmos terraform plan vpc -s prod --ai --skill atmos-terraform,atmos-stacks
Use API providers for CI/CD and non-interactive automation. Use CLI providers when the user wants to reuse an existing local subscription such as Claude Code, Codex CLI, or Gemini CLI.
ai:
enabled: true
default_provider: claude-code
providers:
claude-code:
max_turns: 10
tools:
enabled: true
mode: require_confirmation # require_confirmation (default) | allow | yolo
ai.tools.mode controls tool approval. require_confirmation prompts, allow never prompts
(ai.tools.blocked still applies), and yolo bypasses blocked/restricted checks. The older
yolo_mode and require_confirmation booleans are deprecated aliases; mode wins when set.
With claude-code, atmos ai chat, ask, and exec show an approval prompt in the terminal and continue in the
same run. Claude-native and provider-preapproved requests follow Claude’s own policy and do
not reach Atmos’s checker. --no-tools and ai.tools.enabled only control Atmos tools.
Always choices display the command/path/tool scope being cached; a bare MCP tool name covers
all arguments. In CI without a terminal, set ai.tools.mode: allow or add the tool to
ai.providers.claude-code.allowed_tools.
Atmos MCP has two separate capabilities:
atmos mcp start exposes Atmos AI tools to external clients.mcp.servers lets Atmos or an AI CLI use AWS, cloud, database,
or custom MCP servers.The Atmos MCP server is disabled by default. Enabling AI does not enable MCP.
mcp:
enabled: true
ai:
enabled: true
tools:
enabled: true
Use Atmos Agent Skills with MCP. MCP provides live tools; skills provide Atmos-native knowledge and conventions.
| Layer | What it provides | Example |
|---|---|---|
| MCP | Tools -- live data and execution capability | "What stacks exist?" -> atmos MCP tool call |
| Skills | Knowledge -- domain patterns and conventions | "How should I structure cross-stack deps?" -> skill |
Without skills, an AI assistant falls back to general training data that may generate invalid
YAML, miss features like !store / !terraform.output, or use wrong CLI flags. With skills,
the assistant loads the right Atmos context just before answering.
The same prompt -- "set up cross-stack dependencies with remote state" -- pulls live data
through MCP and applies Atmos-native patterns (!terraform.state, abstract components,
inheritance, remote-state-bridge)
from the relevant skill.
atmos ai skill (canonical, cross-client)atmos ai skill install/list/update/uninstall is the canonical, cross-client way to manage
skills -- it works for every supported client (Claude Code, VS Code/Copilot, Gemini), not just
Claude Code.
atmos ai skill list # Browse the bundled catalog + what's installed
atmos ai skill install atmos-terraform # Bundled skill, offline, no network/Git needed
atmos ai skill install github.com/user/repo # Community skill from GitHub
atmos ai skill install # Install every bundled skill at once
atmos ai skill update # Refresh installed bundled skills to the latest catalog version
atmos ai skill uninstall atmos-terraform
Installing a bundled skill copies its content at that point in time -- upgrading the atmos
binary alone doesn't refresh a skill you already installed. Run atmos ai skill update after
upgrading Atmos to pick up any bundled skill content that shipped since you installed it. Skills
installed from GitHub aren't covered by update yet; re-run install <source> --force for those.
By default the skill is copied into every detected client's project-local skill directory
(.claude/skills/, .github/skills/ for VS Code/Copilot, .gemini/skills/) with zero extra
flags. Use --client/--all-clients to target specific clients, --scope user/--global to
install into each client's user-level directory instead of the project one, or --path to take
full manual control of the install location (this skips auto-distribution to clients). See
atmos ai skill for the full flag reference.
Declare external skill sources under ai.skills.<label> with source, ref, kind, subpath,
plugins, include, exclude, clients, and scope. Keep source declarations separate from inline
prompt/tool entries. Use ref: !version dependency to select a locked version track dependency.
atmos ai skill add <source> --name <label>, set, and remove edit configuration only.atmos ai skill sync reconciles declarations with skills.lock.yaml and installed copies.sync --frozen requires matching locks; sync --check is an offline, read-only drift check.sync --prune for explicit removal.--source <label> to disambiguate installation/update/uninstall targets.atmos version track update, then synchronize skills. Skill updates do
not advance managed dependencies independently..atmos/skills/, which stores project content and ownership.--force; unowned destinations and symlink escapes are refused.atmos ai skill sync --recover from the owning project.For Claude Code specifically, the skills plugin is a lighter-weight alternative that also wires up marketplace updates:
/plugin marketplace add cloudposse/atmos
/plugin install atmos@cloudposse
For Codex, Gemini, Cursor, Windsurf, GitHub Copilot, JetBrains Junie, and Amazon Q, see the
AI Agent Skills announcement for tool-specific
install paths, or use atmos ai skill install above, which works for all of them.
A complete AI assistant setup typically uses three layers of MCP servers, each answering a different question:
| Layer | Server(s) | Answers |
|---|---|---|
| Defined | atmos (Atmos MCP server) | What's in the stacks, components, repo |
| Deployed | AWS MCP server suite (awslabs/*) | What's live in the cloud right now |
| Over time | atmos-pro (Atmos Pro MCP) | What changed, when, why, who, drift |
Use this framing when helping users decide which servers to enable. Pure stack questions need
only the atmos server. Live-cloud questions need AWS servers. History/drift/deployment
questions need Atmos Pro.
Configure servers once in atmos.yaml. atmos mcp export writes them to per-CLI config files.
@latest below is for brevity -- pin every uvx package to a reviewed version before treating
this as a production setup (unpinned @latest on an MCP server is a supply-chain risk; see
Guardrails below).
toolchain:
aliases:
uv: astral-sh/uv # Pin uvx via the Atmos toolchain
mcp:
enabled: true
servers:
# Atmos's own MCP server — exposes describe/list/validate as tools
atmos:
command: atmos
args: ["mcp", "start"]
description: "Atmos AI tools — stacks, components, validation"
# AWS MCP server suite — credentials injected via Atmos Auth
aws-docs:
command: uvx
args: ["awslabs.aws-documentation-mcp-server@latest"]
description: "AWS docs (public, no auth)"
aws-billing:
command: uvx
args: ["awslabs.billing-cost-management-mcp-server@latest"]
identity: readonly
env: { AWS_REGION: us-east-1 }
description: "AWS billing summaries"
aws-iam:
command: uvx
args: ["awslabs.iam-mcp-server@latest"]
identity: readonly
description: "IAM role/policy analysis"
The canonical AWS server set (use identity: readonly via Atmos Auth for servers that
need AWS credentials; aws-docs is commonly no-auth):
| Server | Purpose |
|---|---|
| aws-docs | Search AWS documentation (no auth) |
| aws-knowledge | Managed AWS knowledge base (remote) |
| aws-pricing | Real-time pricing and cost analysis |
| aws-billing | Billing summaries and payment history |
| aws-iam | IAM role/policy analysis |
| aws-cloudtrail | Event history and API call auditing |
| aws-security | Well-Architected security assessment |
| aws-api | Direct AWS CLI (read-only by default) |
The Atmos Pro MCP server is HTTP transport (not stdio), runs at
https://atmos-pro.com/mcp, and is registered separately from atmos mcp export. Auth
is a one-time browser OAuth (GitHub); short-lived tokens land in the OS keychain.
Capabilities: drift detection, deployment history, workflow runs, failed-step logs, audit log, repair recommendations, flapping detection.
Register it directly with each AI CLI:
# Claude Code
claude mcp add --transport http atmos-pro https://atmos-pro.com/mcp
# Gemini CLI
gemini mcp add --transport http atmos-pro https://atmos-pro.com/mcp
For Codex CLI, append to ~/.codex/config.toml:
[mcp_servers.atmos-pro]
type = "http"
url = "https://atmos-pro.com/mcp"
For MCP servers that need cloud credentials, prefer Atmos Auth identities over ambient
AWS_PROFILE switching. When identity is set on an MCP server, Atmos injects isolated
credential files and profile env vars into that subprocess.
A common pattern is a single readonly identity (with default: true) used by every
AWS-querying MCP server, plus per-domain identities (e.g., billing-auditor,
security-audit) for servers that need different account access:
auth:
providers:
sso:
kind: aws/iam-identity-center
start_url: "https://your-org.awsapps.com/start"
region: us-east-1
identities:
readonly:
kind: aws/permission-set
default: true
via: { provider: sso }
principal:
name: ReadOnlyAccess
account: { id: "123456789012" }
For local use, authenticate once with the relevant identity:
atmos auth login readonly
atmos mcp test aws-security
For CLI providers, export ATMOS_PROFILE when the active profile defines the auth identities
or MCP servers:
export ATMOS_PROFILE=managers
atmos ai ask "What did we spend on EC2 last month?"
Do not add an atmos auth login step to non-interactive GitHub OIDC CI unless a specific
integration requires it. In CI, set ATMOS_PROFILE and let Atmos exchange the OIDC token when
the command runs.
atmos mcp export generates MCP client config from mcp.servers. The format adapts to the
client based on the output filename: .toml selects Codex TOML; other extensions use JSON.
| Client | Native config path | Format | Export command |
|---|---|---|---|
| Claude Code | .mcp.json (project root) | JSON | atmos mcp export |
| Gemini CLI | .gemini/settings.json | JSON | atmos mcp export --output .gemini/settings.json |
| Cursor | .cursor/mcp.json | JSON | atmos mcp export --output .cursor/mcp.json |
| Codex CLI | ~/.codex/config.toml | TOML | atmos mcp export --output ~/.codex/config.toml |
Claude Code and Gemini share the same JSON schema (mcpServers object). Codex uses TOML with
[mcp_servers.<name>] tables.
Exported configs preserve two critical behaviors:
identity are wrapped as atmos auth exec -i <identity> -- <command> ....env.PATH includes the Atmos toolchain PATH so tools like uvx and
npx resolve even when the AI client does not inherit the user's shell environment.Inspect and test exported configurations:
atmos mcp list
atmos mcp status
atmos mcp tools aws-docs
atmos mcp test aws-security
atmos mcp export
atmos mcp restart <name> validates that the server can stop and start during the command; do
not describe it as creating a long-running background service for stdio servers.
atmos mcp export does not target.atmos mcp export --output .gemini/settings.json, the user must trust the folder once via
the Gemini UI/settings before the MCP servers will start. Symptom: servers configured
correctly but no tools available in Gemini.atmos ai ask) instead of an external CLI.atmos ai ask.atmos.yaml so agents, IDEs, and CI share one source of truth.@latest in production workflows.atmos toolchain for binaries that MCP servers need, then rely on export/toolchain PATH injection.--identity=false, off, 0, or no only when deliberately disabling Atmos Auth for a command.env values. Review those values before
committing client configuration. Credentials supplied by an Atmos Auth identity resolve at
runtime through the exported atmos auth exec wrapper.awslabs/* MCP servers, prefer a single readonly identity by default and switch only
for servers that genuinely need elevated access.What SKILL.md sets; muted values are Claude Code's defaults
58 skills in this plugin
/atmos-ansibleAnsible orchestration: playbook execution, variable passing, inventory management, stack-based configuration for configuration management/atmos-asciicastCreate and review portable Atmos CLI asciicast demos for community-facing documentation, examples, and training materials./atmos-authAuthentication and identity management: providers (SSO/SAML/OIDC/GCP/Atmos Pro), identities, keyring, identity chaining, login/exec/shell/console, AWS credential_process (consume helpers, serve the AWS CLI), and github/sts for private GitHub accessnpx claudepluginhub cloudposse/atmos --plugin atmosOther plugins' skills for the same job