atmos: Skill for Claude Code

.claude/skills/gh-stack/SKILL.md

gh-stack is a skill for Claude Code from cloudposse/atmos. It costs 73 tokens per session (2,794 once invoked), scanned A, original, Apache-2.0.

A GitHub workflow for splitting a large change into a chain of dependent pull requests with the gh-stack command-line extension. Each pull request contains one reviewable layer and is based on the layer before it.

In plain words
What is it for?
Use it to initialize a stack, add branches, submit or update its pull requests, switch layers, rebase them, and merge the completed stack.
Why use it?
A large pull request is harder to review and merge safely. Stacked pull requests let related phases be reviewed separately while preserving their order and dependency.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is cloudposse/atmos's own configuration. It tells Claude Code how to work on atmos itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything atmos configures →

About the project

Atmos is an infrastructure runtime that coordinates tools such as Terraform, OpenTofu, Kubernetes, Helm, Packer, Ansible, and containers through consistent commands and configuration. It is for teams running cloud infrastructure on laptops, in CI, or through AI agents across environments and regions. Its catalogue entries provide skills, agents, commands, and other add-ons for Atmos workflows.

cloudposse/atmos · 1,405 stars · on GitHub · atmos.tools

Reuse

Borrowing it

Nothing to install: this file belongs to cloudposse/atmos. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cloudposse/atmos/main/.claude/skills/gh-stack/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cloudposse/atmos

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh-stack

README.md
[![agentmods](https://agentmods.dev/badge/skills/cloudposse/atmos/gh-stack/github.svg)](https://agentmods.dev/skills/cloudposse/atmos/gh-stack)
Your own site
<a href="https://agentmods.dev/skills/cloudposse/atmos/gh-stack"><img src="https://agentmods.dev/badge/skills/cloudposse/atmos/gh-stack/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gh-stack

Your own site · 80×15
<a href="https://agentmods.dev/skills/cloudposse/atmos/gh-stack"><img src="https://agentmods.dev/badge/skills/cloudposse/atmos/gh-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,794 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.02794
Opus 5.5 $0.00029 $0.01118
Sonnet 5.5 $0.00015 $0.00559
Haiku 4.5 $0.00007 $0.00279

Measured yesterday against content hash 3e4da3a74539, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gh-stack scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/gh-stack/SKILL.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub PR stacks

Use this skill for dependent pull requests. Read maintenance and recovery before changing an existing published stack or operating its CI/review queue. Use the pull-request skill for labels, signing, descriptions, and release documentation.

Discover the tool and the actual stack

Start with gh stack --help and the relevant subcommand's --help; commands and supported flags can change. If the extension is missing, identify github/gh-stack as the required extension (gh extension install github/gh-stack). Follow the environment's installation permissions; do not silently replace native stacks with an unregistered branch chain.

A feature branch based on another feature branch is only a dependency chain. GitHub's native stack is a separate object. Creating PRs with gh pr create --base <parent> alone does not register that object. Check both the configured base branches and native stack membership. A bottom PR may target main and still belong to a stack; also look for open PRs based on its head branch.

When native registration is requested or otherwise authorized, use gh stack link for existing PRs in the intended bottom-to-top order. Inspect current remote membership first, since linking changes the stack. Do not convert an ordinary chain into a native stack merely to inspect it. Verify the resulting object and ordering on GitHub, not just local branch ancestry. For example, after substituting the actual repository and PR number:

gh stack link <bottom-pr> <middle-pr> <top-pr>
gh api graphql -f query='{ repository(owner:"OWNER", name:"REPO") {
  pullRequest(number:123) { stack { number size entries(first:100) {
    nodes { position pullRequest { number } }
  } } }
} }'

Paginate if the returned entries do not cover the reported size. gh stack link can register remote PRs without initializing local tracking; a local gh stack view failure alone does not prove the remote stack is absent. Inspect the installed checkout/link help to reconcile local tracking.

Read the full file on GitHub · 195 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +21 lines · -51 tokens per session 3e4da3a74539
  2. 3d ago First seen · 174 lines · 124 tokens per session scan A 52d88cd221d5

Subscribe to this mod's changes

gh-stack is a skill published in the GitHub repository cloudposse/atmos (1,405 stars, last pushed today), licensed Apache-2.0. It adds 73 tokens to every session and 2,794 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-18.