/atmos:atmos-custom-commandsfrom atmos
Defines and modifies custom CLI commands in atmos.yaml, including arguments, flags, native step types, conditions, and environment variables.
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.
Read when SKILL.md points to them.
Use this skill when users define or modify project-specific Atmos CLI commands in the top-level
commands section of atmos.yaml.
Custom commands replace scattered scripts with discoverable CLI commands that can use arguments, flags, environment variables, authentication identities, tool dependencies, component config, nested subcommands, and typed execution steps.
When a task is mainly about steps, step type, working_directory, step env, output,
scripts, workdirs, or hook-compatible step payloads, also load atmos-steps.
commands:
- name: hello
description: Say hello
arguments:
- name: name
default: World
steps:
- type: say
content: "Hello {{ .Arguments.name }}"
atmos hello
atmos hello Erik
For full field syntax, read references/command-syntax.md.
commands in atmos.yaml and imported config before adding a new command.dependencies.tools for tools the command needs in its execution context.identity when the command needs Atmos Auth credentials.atmos <command> --help and a dry-run or read-only invocation when possible.Default to structured steps before shell:
| Need | Prefer |
|---|---|
| Run an Atmos command | type: atmos |
| Operator messages | say, toast, markdown, table, pager |
| Data shaping | format, join, filter, write |
| Status/progress | spin, stage, log, linebreak |
| Concurrency | parallel, matrix, wait, wait-all |
| Containers/emulators | container, emulator |
| HTTP calls | http |
| Preconditions | require / assert |
| External command glue | shell / exec |
Shell is still appropriate for short glue commands, terminal-native tools, checked-in scripts, or commands that genuinely need shell semantics.
commands:
- name: deploy-one
arguments:
- name: component
required: true
flags:
- name: stack
shorthand: s
required: true
steps:
- type: atmos
command: terraform deploy {{ .Arguments.component }} -s {{ .Flags.stack }}
For type: atmos, a step-level stack: supplies -s to the nested command and supports
flag/argument templates. An explicit -s or --stack in command takes precedence;
the injected flag goes before -- so it is not passed to the underlying tool.
Flag type is string (default), bool, or int. An int flag registers as an integer flag
(--count int in help), its default must be a whole number, and it reaches templates and
ctx.flags as an integer. Any other type fails when Atmos loads the command, with an error that
lists the supported types. An int flag reads base-10 only (010 is 10, 0x10 is rejected). A default that does
not match the flag type makes the command a stub with a warning that names the flag. An argument with neither required: nor default: is required; set required: false to make it optional, and an
omitted optional argument with no default is an empty string in {{ .Arguments.<name> }} and ctx.arguments. Argument values keep
commas, empty strings, and non-ASCII text intact.
commands:
- name: scan
dependencies:
tools:
checkov: "latest"
steps:
- type: shell
command: checkov --directory .
commands:
- name: prod-whoami
dependencies:
tools:
aws-cli: "^2.0.0"
identity: prod-readonly
steps:
- type: shell
command: aws sts get-caller-identity
Use component.type and semantic provides bindings when a custom command should
resolve a custom component and stack. component_config is legacy Terraform syntax.
commands:
- name: render-app
arguments:
- name: component
provides: component
required: true
flags:
- name: stack
shorthand: s
provides: stack
required: true
component:
type: application
steps:
- type: shell
command: ./scripts/render-app.sh
An embedded Starlark script step in such a command reads the selected component as
ctx.component (resolved on first access). Workflows have no component in scope, so
ctx.component is None there; see atmos-starlark.
Use a type: script step with interpreter: starlark when a command needs loops,
conditionals, data shaping, or concurrency that native steps cannot express. Inputs
reach the script as values, not as text:
commands:
- name: deploy-one
description: Deploy one component
arguments:
- name: group
required: true
flags:
- name: dry-run
type: bool
- name: stack
shorthand: s
required: true
steps:
- name: deploy
type: script
interpreter: starlark
script: |
if ctx.flags["dry-run"]:
ui.info("dry run for " + ctx.arguments["group"])
else:
atmos.terraform("deploy", ctx.arguments["group"], ctx.flags["stack"])
ctx.flags (string, bool, and int types preserved)
and ctx.arguments (an omitted optional argument is ""). ctx.args is empty, and trailing
arguments after -- are not exposed to scripts.ctx.flags and ctx.arguments instead of templating them into script source.
Atmos renders valid {{ ... }} template actions before running the script; malformed or
unresolved actions can fail. A lone }} is ordinary text. Use script: !literal | or
!include.raw when the source must remain unchanged.cli.command, cli.arg, and cli.flag are only for standalone scripts
(atmos ./tool.star); declare the command interface in YAML here.show: {labels: true} restores them.
output: must be raw, log, viewport, or none; any other value (such as capture) fails
before the step runs (capture/stream errors point to exec.run, which takes stream|capture|viewport).timeout: on a script, shell, or atmos step cancels the step and fails with step timed out
(Step '<name>' (type <t>) did not finish within its timeout of <d>). On Unix, commands
without terminal input also terminate their process group. Commands with terminal input
and Windows commands terminate only the direct child; descendants may remain running.
To time an individual task, run steps.parallel(tasks=[steps.task(name="work", function=work, timeout="30s")]).
This task timeout covers work, not the surrounding script.env: as templates. The ambient process
environment reaches the script and its child processes verbatim, so an inherited
FOO='{{ bad' is harmless. In ctx-side Starlark, env holds only the step's own env:
entries, not command-level env: entries.parallel/matrix
children.output reaches later steps as JSON text
({{ .steps.<name>.value }} is {"n":3}), never Go map syntax. Single-quote it in shell
commands (echo '{{ .steps.x.value }}') because JSON contains double quotes.!included script, with
a hint to tag the field !literal when the body contains {{ (for an !included script, the hint says to move the
text into a load()ed module or use !include.raw, which is used as written). !literal also works on command,
interpreter, working_directory, timeout, and single env values, including command-level env; any other step
field fails config load. retry.conditions works for shell and atmos steps too.--profile and --identity reach nested atmos.* calls from script steps. Ctrl-C runs defer calls (30 s grace)
and exits 130 silently.| Need | Skill |
|---|---|
| Complete command schema and examples | references/command-syntax.md |
| Reusable multi-step orchestration | atmos-workflows |
| Shared step fields and step types | atmos-steps |
Embedded Starlark, parallel function calls, and standalone atmos ./tool.star CLI apps | atmos-starlark |
| Smoke tests, integration tests, and test groups | atmos-tests |
| Tool versions and PATH behavior | atmos-toolchain |
| Auth providers, identities, assume role/root, OIDC | atmos-auth |
| Components and component inheritance | atmos-components |
| Go templates and YAML functions | atmos-templates, atmos-yaml-functions |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cloudposse/atmos --plugin atmos58 skills in this plugin
/atmos-aiAtmos AI and MCP integrations: connect external AI assistants to Atmos through agent skills, atmos mcp start, multi-CLI MCP export, Atmos Pro MCP, and AWS MCP servers; run AI from Atmos through atmos ai ask/chat/exec, --ai command analysis, API providers, CLI providers, external MCP routing/pass-through, toolchain-aware export, auth-wrapped tools, and MCP+skills pairing/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.Other plugins' skills for the same job