bl-init

bl-init is a skill for Claude Code from jpoutrin/product-forge. It costs 16 tokens per session (1,049 once invoked), scanned C, original, MIT.

A setup command for git-branchless, a Git workflow tool for working with stacks of commits. It prepares the repository and can use a chosen branch as the main branch.

In plain words
What is it for?
Use it to initialize git-branchless in an existing repository and choose its main branch. You can also control whether Git leaves the current branch.
Why use it?
It removes the manual setup steps and checks needed before using git-branchless. It also leaves the repository in the expected state for stack-based work.

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 initialize git-branchless in an existing repository and choose its main branch. You can also control whether Git leaves the current branch.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jpoutrin/product-forge/bl-init"><img src="https://agentmods.dev/badge/skills/jpoutrin/product-forge/bl-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,049 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00016 $0.01049
Opus 5.5 $0.00006 $0.00420
Sonnet 5.5 $0.00003 $0.00210
Haiku 4.5 $0.00002 $0.00105

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

Security

Grade C, and why

bl-init scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

1. Remove: rm -rf .git/branchless .git/hooks/post-*
plugins/git-workflow/skills/bl-init/SKILL.md · 175 lines

How it starts

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

/bl-init - Git-Branchless Repository Initialization

Category: Git Workflow

Initialize git-branchless in the current repository, using the current branch as the main branch by default. Automatically detaches HEAD so you're ready to start stacking commits.

Usage

/bl-init [options]

Options

Option Description
(none) Initialize using current branch as main, then detach HEAD
--main-branch <branch> Specify a different branch as main
--no-detach Initialize without detaching HEAD

Examples

# Initialize with current branch as main
/bl-init

# Initialize with a specific branch as main
/bl-init --main-branch develop

Execution

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

Task(subagent_type="git-workflow:bl-init-expert",
     prompt="Initialize git-branchless: <options>")

Execution Instructions

  1. Check Prerequisites

    • Verify this is a git repository
    • Check if git-branchless is installed
    • Check if already initialized
  2. Determine Main Branch

    • Use current branch if no --main-branch specified
    • Validate the branch exists
  3. Initialize Git-Branchless

    • Run git branchless init --main-branch <branch>
    • Configure recommended settings
  4. Detach HEAD (unless --no-detach)

    • Run git checkout --detach
    • This prepares you for the stacked commits workflow
  5. Verify Installation

    • Run git sl to confirm working
    • Show current state with detached HEAD
  6. Provide Next Steps

    • Explain basic commands (git sl, git sync, git submit)

Interactive Flow

User: /bl-init

Agent: Initializing git-branchless...

Current branch: main
Repository: /path/to/project

Checking prerequisites...
✓ Git repository detected
✓ git-branchless is installed (v0.9.0)
✗ Not yet initialized

Initializing with main branch: main

$ git branchless init --main-branch main
Created config file at .git/branchless/config
Installed hooks at .git/hooks/
branchless: processing 1 update: main

Detaching HEAD for stacked workflow...
$ git checkout --detach

✓ Git-branchless initialized successfully!

Current state:
◆ abc1234 (main) Latest commit message
┃
● abc1234 (HEAD)  ← You are here (detached)

Ready to stack commits! Next steps:
1. Use `git record -m "msg"` to create commits
2. Use `git sl` to see your commit stack
3. Use `git sync --pull` to sync with remote
4. Use `git submit` to create/update PRs

Read the full file on GitHub · 175 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 · 175 lines · 16 tokens per session scan C 689d747bdac7

Subscribe to this mod's changes

bl-init is a skill published in the GitHub repository jpoutrin/product-forge (16 stars, last pushed 7mo ago), licensed MIT. It adds 16 tokens to every session and 1,049 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.