stack-absorb

A manual way to distribute working-tree edits across the appropriate branches in a Graphite stack. A Graphite stack is a series of dependent branches or commits built on top of one another.

In plain words
What is it for?
Use it to inspect pending changes, preview absorption, assign edits to specific commits, and create a clean reviewable history.
Why use it?
It helps keep each branch focused when automatic blame-based splitting puts changes in the wrong place or misses new files.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/maximhq/bifrost/stack-absorb
Any agent
npx skills add maximhq/bifrost --skill stack-absorb
Clone the repo
git clone --depth 1 https://github.com/maximhq/bifrost

Made for: Claude Code, Codex.

Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,536 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00125 $0.02536
Opus 5 $0.00063 $0.01268
Sonnet 5 $0.00025 $0.00507
Haiku 4.5 $0.00013 $0.00254

Measured 2d ago against content hash 6be35192e9aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stack-absorb 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 2d ago.

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/stack-absorb/SKILL.md · 200 lines

How it starts

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

Stack Absorb

Distribute a set of changes across the correct commits in a Graphite stack, by hand, when gt absorb's blame-based algorithm won't produce a clean result. This is slower than gt absorb -f but gives a coherent, reviewable history: each target branch gets exactly the hunks that belong to it, described in its own commit message, with nothing stray swept in.

When to reach for this vs. plain gt absorb

Check git status --short first. Untracked (??) files are never absorbed even with gt absorb -a - that flag only stages unstaged tracked changes, file creations are never picked up. If any untracked files are part of the intended change, treat them as part of the manual split below rather than expecting the dry-run to cover them.

Then try gt absorb -a --dry-run first - it's free and sometimes it's exactly right. Read its output critically:

  • If every hunk absorbs into a commit that's a good semantic fit, there's no significant "Not absorbed" leftover, and no untracked files were left out of consideration, just run gt absorb -a -f (or let the user run it) and stop here.
  • If it scatters hunks across commits that are a poor conceptual fit (a stale docs-sync commit, a commit about a different concern that happens to touch the same lines), or leaves substantial new code as "Not absorbed" (no prior line to blame onto - new functions, new JSX blocks, new state), that's the signal to do this manually. Tell the user what gt absorb --dry-run would do and why it's messier than a hand split, and confirm before proceeding (AskUserQuestion) - this is a judgment call about commit history shape, not a mechanical one.

Step 1: Map every change to its target branch

For each distinct concern in the diff, find the commit that should own it:

git log --oneline -S"<distinctive string from the change>" --all -- "<file>"

Pick a string that's specific to the concept being changed (a function name, a UI label, an error message), not boilerplate. The oldest/most relevant match is usually the commit that introduced what you're now modifying. Then resolve that commit to a current branch tip - git branch --contains alone is not the answer, only a candidate list: in a stacked history every branch above the true owner also contains that commit, since it's in their ancestry too.

Read the full file on GitHub · 200 lines

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. 2d ago First seen · 200 lines · 125 tokens per session scan A 6be35192e9aa

Subscribe to this mod's changes

stack-absorb is a skill published in the GitHub repository maximhq/bifrost (7,738 stars, last pushed today), licensed Apache-2.0. It adds 125 tokens to every session and 2,536 once invoked, about $0.0006 per session on Opus 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-08-30.

Related

Other skills, from other repositories

release-alignment

Use this skill for MCPMate pre-release or post-release documentation alignment, including GitHub Release Notes, website changelog entries, README release-facing copy, roadmap positioning, localized website docs, and release-description/changelog consistency checks.

loocor/mcpmate · 49 tokens

uat-acceptance

Use this skill for MCPMate UI/UX review, UAT planning, Playwright acceptance, Admin Console acceptance, Board acceptance, Extension delivery acceptance, or any request to judge whether a page, flow, component, PR, or deliverable conforms to MCPMate product taste and acceptance standards. Use it even when the user does…

loocor/mcpmate · 98 tokens

project-flow

Use this skill whenever work needs to be aligned with the MCPMate GitHub Project, including roadmap slicing, draft-item planning, PR scoping, worktree setup, or task-status updates. Trigger on requests about planning, roadmap, project board, task center, worktree discipline, or how to split work into reviewable slices.

loocor/mcpmate · 69 tokens

review-flow

Use this skill whenever MCPMate work needs code review, PR readiness checks, severity calibration, or final findings ordering. Trigger on review requests, merge-readiness checks, PR cleanup, risk discussion, or any request to assess whether a change is ready to land.

loocor/mcpmate · 55 tokens

validation

Use this skill whenever MCPMate work needs test, lint, build, Inspector, or release-slice verification. Trigger on implementation, review, bug fixes, PR preparation, regression checks, or any request to validate backend, frontend, desktop, or MCP behavior before reporting completion.

loocor/mcpmate · 57 tokens

quality

Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

google-gemini/gemini-cli · 24 tokens