/atmos:atmos-lintfrom atmos
Configures and runs Terraform/OpenTofu linting in Atmos projects using TFLint. Covers standalone atmos terraform lint commands, component-aware config discovery, toolchain version pinning, and lifecycle hooks for CI enforcement.
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 to design or operate Terraform/OpenTofu linting in Atmos. Prefer
the native atmos terraform lint command for deliberate lint runs and the
tflint hook kind for linting as part of a Terraform lifecycle.
| Need | Use |
|---|---|
| Check one component or every component without plan/apply | atmos terraform lint |
| Check only changed component sources | atmos terraform lint --affected |
| Enforce lint before or after a Terraform action | kind: tflint hook |
| Run a provider-plugin initialization command or a bespoke script | kind: command hook or workflow step |
# All Terraform component directories, once each (default)
atmos terraform lint
atmos terraform lint --all
# A component; Atmos selects a stack context deterministically when needed
atmos terraform lint vpc
atmos terraform lint vpc --stack test
# Changed Terraform components only
atmos terraform lint --affected
Atmos resolves the selected component instance before linting. Declare tflint
under that component's dependencies.tools to pin the binary version; Atmos
installs it and supplies its PATH for that lint execution. A component used by
multiple stacks is linted once, with a deterministic stack context used only to
resolve its settings and toolchain.
components:
terraform:
vpc:
dependencies:
tools:
tflint: "0.59.1"
Do not use atmos toolchain install as a prerequisite for normal component
linting when dependencies.tools declares TFLint. Use it only to warm a cache
or troubleshoot an interactive shell. For precedence of tool declarations,
load atmos-toolchain.
When no hook or workflow explicitly passes --config, Atmos finds
.tflint.hcl in this order. The most-specific existing path wins:
components.terraform.base_path)components.terraform.lint.config (an absolute path or a path relative to the Atmos base path)Use the explicit lint.config setting for a nonstandard shared config path:
components:
terraform:
lint:
config: config/tflint/company.hcl
The tflint hook and TFLint workflow step use the same discovery. An explicit
--config in their args is intentional and overrides discovery.
Use a component hook when lint must be enforced for normal Terraform commands. Choose the earliest event that gives the desired feedback; static TFLint checks usually belong before init or plan.
components:
terraform:
vpc:
dependencies:
tools:
tflint: "0.59.1"
hooks:
lint:
events:
- before.terraform.plan
kind: tflint
on_failure: fail
The built-in hook runs TFLint with --chdir=$ATMOS_COMPONENT_PATH and
--format=sarif. Its default on_failure: warn reports findings without
blocking the Terraform command; set on_failure: fail to make lint gating.
SARIF is captured from stdout and can render terminal summaries, CI annotations,
and code-scanning results.
Use a kind: command hook for provider plugin initialization when required:
hooks:
tflint-init:
events:
- before.terraform.plan
kind: command
command: tflint
args: [--init]
Command hooks run in the component directory, so --init uses that component’s TFLint configuration.
Keep initialization and lint separate so its network/plugin behavior is clear.
Load atmos-hooks for hook inheritance, conditions,
and failure handling; load atmos-ci for CI integration.
Read references/tflint.md before changing rules, adding
provider plugins, or selecting TFLint flags. Preserve an existing project's
config style and run the exact component or --affected selection that verifies
the intended scope.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
58 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.npx claudepluginhub cloudposse/atmos --plugin atmosOther plugins' skills for the same job