<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
cloudposse/atmos/atmos-cache
──Details
PublishedOctober 22, 2026 at 12:46 PM
Content Hashsha256:42c0fd98d2c04743...
Git SHA0bed64ed1c7b
──Files
Files (1 file, 3.1 KB)
SKILL.md3.1 KBactive
SKILL.md · 83 lines · 3.1 KB

version: "1.0.0" name: atmos-cache description: "Atmos caching: CI cache configuration and commands, GitHub Actions cache integration, Terraform registry cache mirror/list/prune/stats/trust, and cache modernization guidance" metadata: copyright: Copyright Cloud Posse, LLC 2026 version: "1.0.0" category: ci-automation


Atmos Cache

Use this skill for Atmos cache behavior. There are two distinct cache surfaces: CI cache and Terraform registry cache.

Related Skills

NeedLoad
Native CI workflowsatmos-ci
Tool versions installed into cache rootsatmos-toolchain
Terraform component executionatmos-terraform

CI Cache

The CI cache restores and saves the Atmos XDG cache root, including toolchain installs and other known cache directories. GitHub Actions is the supported CI provider today.

yaml
ci:
cache:
enabled: true
auto: true
paths:
- .terraform
key: atmos-${{ runner.os }}-${{ hashFiles('**/.tool-versions') }}
restore_keys:
- atmos-${{ runner.os }}-

Commands:

CommandPurpose
atmos ci cache pathsPrint cache key, paths, and restore keys for actions/cache
atmos ci cache restoreRestore the well-known cache directory
atmos ci cache saveSave the well-known cache directory
atmos ci cache listList CI cache entries
atmos ci cache delete <key>Delete a CI cache entry

Use cloudposse/atmos/actions/cache@v1 when the workflow wants a composite action wrapper around Atmos cache behavior. Otherwise use atmos ci cache paths with actions/cache.

Terraform Registry Cache

atmos terraform cache manages the Atmos Terraform registry cache. It is not Terraform's provider plugin cache (TF_PLUGIN_CACHE_DIR).

Commands:

CommandPurpose
atmos terraform cache listList cached providers/modules
atmos terraform cache mirrorPre-seed provider artifacts for multiple platforms
atmos terraform cache statsShow cache size and object counts
atmos terraform cache pruneRemove stale metadata
atmos terraform cache delete <key>Delete a cached object
atmos terraform cache trustTrust the cache proxy certificate
atmos terraform cache untrustRemove the trusted certificate

Use mirror before offline or high-fanout CI runs that need predictable provider availability. Use --all, --components, or --query filters when warming only part of the project.

Guidance

  • Do not conflate CI cache, Terraform registry cache, and Terraform plugin cache.
  • Prefer cache keys that include Atmos/toolchain config and lock files.
  • Keep cache restores before toolchain-heavy steps and saves after all Atmos commands complete.
  • Treat toolchain cache warming as an optimization after atmos ci cache restore, not as required

correctness. Declared dependencies.tools still auto-install when the owning operation runs.

  • For private registry or GitHub reads, solve auth first with Atmos Auth or github/sts; cache

should not be used as an auth workaround.

All versions