debugging-atmos
БесплатноБез исполняемых скриптовНе проверенUse when troubleshooting Atmos configuration, deployment errors, or unexpected behavior. Covers debug logging, describing stacks/components, interpreting…
Об этом скилле
Debugging Atmos
Techniques for troubleshooting Atmos configuration and deployment issues.
Quick Debugging Commands
# See the fully-resolved YAML for a component
atmos describe component <component> -s <stack>
# Enable verbose debug logging
ATMOS_LOGS_LEVEL=debug atmos terraform plan <component> -s <stack>
# Validate all stack configurations
atmos validate stacks
# Reset local state and cache
atmos terraform clean <component> -s <stack>
Inspecting Resolved Configuration
The most powerful debugging tool is atmos describe stacks, which shows the final YAML after all imports, merges, and
inheritance:
# Describe all components in a stack (most useful for debugging)
atmos describe stacks -s plat-use2-dev
# Describe all stacks (very large output)
atmos describe stacks
# Describe a specific component in a stack
atmos describe component vpc -s plat-use2-dev
The output includes the fully-resolved configuration for each component:
- vars - All variables with their final values
- settings - Component settings
- metadata - Component metadata (type, inheritance chain)
- backend - Terraform backend configuration
- env - Environment variables
What to Look For
- Variable values - Are vars what you expect? Check inheritance from catalog vs stack overrides
- Component resolution - Is
metadata.componentpointing to the right root module? - Backend configuration - Is the S3 bucket/DynamoDB table correct?
- Atmos function results - Have
!terraform.stateexpressions resolved?
Filtering with yq
Use yq to filter the YAML output and extract specific information:
# Get vars for a specific component
atmos describe stacks -s plat-use2-dev | yq '.components.terraform.vpc.vars'
# Get all component names in a stack
atmos describe stacks -s plat-use2-dev | yq '.components.terraform | keys'
# Check a specific variable across components
atmos describe stacks -s plat-use2-dev | yq '.components.terraform.*.vars.enabled'
# Get backend config for a component
atmos describe stacks -s plat-use2-dev | yq '.components.terraform.vpc.backend'
Disabling Templates and Functions
To debug configuration before template/function processing, disable them:
# See raw config before Go templates are processed
atmos describe stacks -s plat-use2-dev --process-templates=false
# See config before Atmos functions (!terraform.state, etc.) are evaluated
atmos describe stacks -s plat-use2-dev --process-functions=false
# See completely raw config (no templates or functions)
atmos describe stacks -s plat-use2-dev --process-templates=false --process-functions=false
Use cases:
- Debugging templates - See the raw
{{ }}expressions before evaluation - Debugging functions - See
!terraform.stateexpressions before they resolve - Faster iteration - Skip slow
!terraform.statelookups when debugging other issues - No authentication needed - Functions like
!terraform.staterequire AWS access; disable to debug without auth
When to Use Each Command
| Command | Use When |
|---|---|
atmos describe stacks -s <stack> |
Debugging a stack - see all components and their resolved config |
atmos describe stacks -s <stack> | yq '...' |
Extract specific values from a stack |
atmos describe stacks |
Understanding full infrastructure (large output) |
atmos describe component <comp> -s <stack> |
Focused debugging of a single component |
Debug Logging
Enable debug logging for detailed Atmos operations:
ATMOS_LOGS_LEVEL=debug atmos terraform plan <component> -s <stack>
Debug output includes:
- Stack file loading and import resolution
- Variable inheritance chain
- Atmos function evaluation (
!terraform.state, etc.) - Provider configuration
- Backend initialization
Log Levels
info(default) - Normal operationdebug- Detailed debugging informationtrace- Maximum verbosity (rarely needed)
Common Issues
Stack Not Found
Error: stack 'xyz' not found
Debug:
# List available stacks
ls stacks/orgs/acme/
# Check stack file exists
cat stacks/orgs/acme/<tenant>/<stage>/<region>/<layer>.yaml
Common causes:
- Typo in stack name
- Stack file doesn't exist
- Stack name doesn't match naming convention (
{tenant}-{region}-{stage})
Component Not Found
Error: component 'xyz' not found in stack
Debug:
# Check component exists in filesystem
ls components/terraform/
# Check component is configured in stack
atmos describe stacks -s <stack> | grep -A5 "xyz:"
Common causes:
- Component not imported in stack file
Установить debugging-atmos в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл debugging-atmos?
Use when troubleshooting Atmos configuration, deployment errors, or unexpected behavior. Covers debug logging, describing stacks/components, interpreting errors, and common issues with stack resolution and Atmos functions.
Как установить скилл debugging-atmos?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл debugging-atmos запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic