bl-stack

bl-stack is a skill for Claude Code from jpoutrin/product-forge. It costs 18 tokens per session (962 once invoked), scanned A, original, MIT.

A command for managing a git-branchless commit stack, meaning a sequence of related commits that can be edited together. It lets you view, move through, amend, rename, reorder, squash, or restack those commits.

In plain words
What is it for?
Use it to inspect a stack, move between parent and child commits, edit commit messages, amend commits, restack descendants, or reorder and squash history.
Why use it?
It reduces the manual work involved in keeping later commits aligned after an earlier commit changes. It also makes navigating and reorganizing a stack more direct.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the git-workflow plugin — 11 skills, 8 agents shipped together

Good fit Use it to inspect a stack, move between parent and child commits, edit commit messages, amend commits, restack descendants, or reorder and squash history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jpoutrin/product-forge/bl-stack
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.

Any agent
npx skills add jpoutrin/product-forge --skill bl-stack
Clone the repo
git clone --depth 1 https://github.com/jpoutrin/product-forge

Made for: Claude Code.

Or install git-workflow, the plugin that ships this one along with the rest of its 11 skills, 8 agents.

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 bl-stack

README.md
[![agentmods](https://agentmods.dev/badge/skills/jpoutrin/product-forge/bl-stack/github.svg)](https://agentmods.dev/skills/jpoutrin/product-forge/bl-stack)
Your own site
<a href="https://agentmods.dev/skills/jpoutrin/product-forge/bl-stack"><img src="https://agentmods.dev/badge/skills/jpoutrin/product-forge/bl-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 bl-stack

Your own site · 80×15
<a href="https://agentmods.dev/skills/jpoutrin/product-forge/bl-stack"><img src="https://agentmods.dev/badge/skills/jpoutrin/product-forge/bl-stack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 962 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.00018 $0.00962
Opus 5.5 $0.00007 $0.00385
Sonnet 5.5 $0.00004 $0.00192
Haiku 4.5 $0.00002 $0.00096

Measured 1mo ago against content hash 2eb12a78720d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bl-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 1mo 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.

plugins/git-workflow/skills/bl-stack/SKILL.md · 153 lines

How it starts

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

/bl-stack - Git-Branchless Stack Management

Category: Git Workflow

Manage commit stacks using git-branchless. View your stack, navigate between commits, and edit any commit in the stack with automatic restacking.

Usage

/bl-stack [action] [options]

Actions

Action Description
show Display the commit stack (default)
prev [N] Move to parent commit (N commits up)
next [N] Move to child commit (N commits down)
amend Amend current commit + restack descendants
reword Change commit message + restack descendants
restack Rebase descendants onto amended commit
reorder Interactive rebase to reorder/squash commits

Examples

# View current stack
/bl-stack
/bl-stack show

# Navigate
/bl-stack prev      # Go up one commit
/bl-stack prev 2    # Go up two commits
/bl-stack next      # Go down one commit

# Edit commits
/bl-stack amend     # After making changes, amend current commit
/bl-stack reword    # Change current commit's message

# Reorganize
/bl-stack reorder   # Interactive rebase (pick, squash, drop, reorder)
/bl-stack restack   # Fix abandoned commits after manual amend

Execution

This command delegates to the bl-stack-expert agent:

Task(subagent_type="git-workflow:bl-stack-expert",
     prompt="Execute stack operation: <action>")

Execution Instructions

  1. Verify Prerequisites

    • Check git-branchless is installed
    • Check repository is initialized for branchless
  2. Show Current State

    • Run git sl to display the stack
    • Explain smartlog icons (◆ ◯ ● ✕)
  3. Execute Action

    • For show: Display and explain the stack
    • For prev/next: Navigate and confirm position
    • For amend: Stage changes and run git amend
    • For reword: Open editor for message change
    • For restack: Rebase descendants onto current commit
    • For reorder: Run git rebase -i main
  4. Confirm Result

    • Show final state with git sl

Read the full file on GitHub · 153 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. 1mo ago First seen · 153 lines · 18 tokens per session scan A 2eb12a78720d

Subscribe to this mod's changes

bl-stack is a skill published in the GitHub repository jpoutrin/product-forge (16 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 962 once invoked, about $0.0001 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-09-03.