/atmos:atmos-gitfrom atmos
Manages Git repositories and GitOps workflows via Atmos: clone, pull, commit, push, signed commits, hook shims, pre-commit checks, and GitHub auth.
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 for native Git repository management, GitOps automation, managed workdirs, local Git hook shims, signed commits, and GitHub auth through Atmos Auth or Atmos Pro STS.
| Need | Load |
|---|---|
| Atmos Pro GitHub App commits | atmos-pro |
github/sts credentials for private repos | atmos-auth |
Lifecycle git hooks | atmos-hooks |
| Modernizing old GitHub Actions GitOps patterns | atmos-modernization |
Configure managed repositories in atmos.yaml:
git:
repositories:
deployment:
uri: https://github.com/acme/deployment.git
branch: main
auth:
identity: atmos-pro
commit:
author:
name: Atmos Bot
email: [email protected]
signing: auto # auto | always | never
Use identities or github/sts for private GitHub access. Do not put tokens in repository URIs.
| Command | Purpose |
|---|---|
atmos git list | List configured repositories |
atmos git clone <name-or-uri> | Clone or reconcile a managed repository |
atmos git init <name-or-path> | Initialize a managed repository |
atmos git pull <name-or-path> | Fast-forward pull |
atmos git status <name-or-path> | Show working tree status |
atmos git diff <name-or-path> | Show changes |
atmos git commit <name-or-path> --message "msg" | Stage managed paths and commit |
atmos git push <name-or-path> | Push commits |
atmos git clean <name> | Remove managed workdirs |
Use atmos git hooks install, run, and uninstall for local Git hook shims in the current
repository. Shims pin the absolute atmos path at install time and fall back to PATH.
The atmos git hooks run command exits with the failing step's code (fail() exits 1,
errors.build().with_exit_code(5) exits 5).
Use git.hooks.pre-commit.steps for native commit checks. A type: script step
with interpreter: starlark can load a shared suite, then call steps.test(...)
with named checks, output="failures", and fail={"mode": "wait_all"}. Keep
formatters sequential. A YAML catalog loaded with yaml.decode(fs.read_file(...))
can declare each check's handler, file patterns, exclusions, and fix eligibility;
the catalog schema and handlers belong to the project, not Atmos's hook schema.
For staged checks, run the suite inside git.sandbox(run=callback, scope="staged").
This materializes the index into a private temporary Git checkout without
registering a worktree. The default fixes="none" reports differences without
changing source files. For commit-time fixes use fixes="unstaged"; the default
fail_on_changes=True blocks the commit so changes can be reviewed and restaged.
The live index is never changed. Nonconflicting unstaged edits are retained;
overlapping or concurrent edits keep the original file and produce a recovery
patch. Cancellation discards fixes. See the Starlark API.
Prepare binaries and pinned tools before installing hooks; commit hooks should
not build or install dependencies. To replace a recognized pre-commit-framework
shim, use atmos git hooks install pre-commit --force. It backs up
the old shim before replacement. This also permits replacing custom hooks, so
inspect the existing hook first and resolve core.hooksPath conflicts explicitly.
Linked worktrees may share the hook directory; prepare each worktree's tools and
preserve existing hook configuration unless replacement was requested.
Commands such as atmos check staged and atmos format pr are project-defined
custom commands, not built-in Atmos Git commands. Consult the project's catalog
and setup instructions before assuming they exist.
While a hook runs, shell steps get the hook arguments as "$@" and in ATMOS_GIT_HOOK_ARGS; Starlark
steps get ctx.args. For pre-push, pre-receive, post-receive, post-rewrite,
reference-transaction, and proc-receive, ATMOS_GIT_HOOK_STDIN is the path of a temp file holding the
data Git piped in (removed when the hook ends; the first shell step still receives it on stdin).
The ATMOS_HOOK_DEPTH variable counts nested hooks; a hook that reaches depth 8 fails with
hook recursion limit exceeded. A later config source that switches a hook between steps: and command:
replaces the earlier form. A prompt step without a default: fails under a non-TTY hook. Hook print()
reaches stdout, so a hook on a data command must use ui.*.
commit.signing: auto unless the
workflow requires always or never.github/sts in CI so Git subprocesses receive short-lived GitHub App credentials.atmos pro commit when CI-generated commits must trigger follow-on GitHub Actions workflows.atmos git clone is Atmos's native replacement for actions/checkout, including a no-arg mode
that checks out the current CI repository directly from CI environment variables. In
pull_request_target and workflow_run contexts the job holds base-repository secrets and
GITHUB_TOKEN — the same privilege GitHub hardened actions/checkout@v7 against by refusing to
fetch fork PR code by default (the "pwn request" class of risk). Atmos guards the equivalent gap:
when it detects an elevated event (pull_request_target/workflow_run) combined with a
fork-targeting clone request — an explicit --branch refs/pull/<N>/merge/refs/pull/<N>/head
override, or an ad-hoc clone URI whose host or owner/repo differs from the base repository — it
refuses to clone and exits non-zero. The safe no-arg default (base repository at its base ref) is
never gated, and pull_request/push events are not gated since they don't hold elevated
credentials against untrusted code. Opt in explicitly and only with a documented reason via
--allow-unsafe-fork, ATMOS_ALLOW_UNSAFE_FORK_EXECUTION, or
ci.allow_unsafe_fork_execution: true; the bypass logs a prominent warning so it stays visible in
CI logs and easy to grep for in review. Prefer pull_request (not pull_request_target) for
workflows that clone and plan fork contributions, since pull_request withholds fork secrets.
The clone gate has a second half for CI reporting. Under pull_request_target and workflow_run, the
posting gate holds comments, commit statuses, ci.env/ci.path exports, and SARIF uploads for a fork
pull request, from the ci script module and from native Terraform plan comments alike. Summaries,
outputs, annotations, groups, and masks are never held. A fork means the head and base repository
full_name differ; a deleted fork or an unreadable event payload counts as a fork, a repository that is
itself a fork is not penalized, and a plain pull_request event is never gated.
ci.allow_unsafe_fork_execution and ATMOS_ALLOW_UNSAFE_FORK_EXECUTION set the same key and release both
the clone gate and the posting gate.
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./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 access/atmos-aws-cloudformationNative AWS CloudFormation components (experimental): render/plan/diff/apply/deploy/delete/validate/output/fmt/list via the AWS SDK for Go v2, changesets, drift detection, S3 backend, source provisioning, StackSets, tree/logs/watch/atmos-aws-complianceAWS compliance commands in Atmos: atmos aws compliance report, Security Hub standards, CIS AWS, PCI DSS, SOC2, HIPAA, NIST, report formats, AI summariesOther plugins' skills for the same job