branch-workflow

branch-workflow is a skill for Claude Code from ToruAI/toru-claude-agents. It costs 31 tokens per session (628 once invoked), scanned A, original, MIT.

A Git workflow guide for keeping coding-agent work on separate branches with small, reviewable commits.

In plain words
What is it for?
Use it when naming branches, writing commit messages, running tests before completion, pushing work, and recording task status.
Why use it?
It reduces the risk of changing the main branch directly and makes each task easier to review or undo.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the toru-claude-agents plugin — 15 skills, 7 agents, 1 MCP server shipped together

Good fit Use it when naming branches, writing commit messages, running tests before completion, pushing work, and recording task status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/toruai/toru-claude-agents/branch-workflow
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 ToruAI/toru-claude-agents --skill branch-workflow
Clone the repo
git clone --depth 1 https://github.com/ToruAI/toru-claude-agents

Made for: Claude Code.

Or install toru-claude-agents, the plugin that ships this one along with the rest of its 15 skills, 7 agents, 1 MCP server.

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 branch-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/toruai/toru-claude-agents/branch-workflow/github.svg)](https://agentmods.dev/skills/toruai/toru-claude-agents/branch-workflow)
Your own site
<a href="https://agentmods.dev/skills/toruai/toru-claude-agents/branch-workflow"><img src="https://agentmods.dev/badge/skills/toruai/toru-claude-agents/branch-workflow/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 branch-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/toruai/toru-claude-agents/branch-workflow"><img src="https://agentmods.dev/badge/skills/toruai/toru-claude-agents/branch-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 628 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.00031 $0.00628
Opus 5.5 $0.00012 $0.00251
Sonnet 5.5 $0.00006 $0.00126
Haiku 4.5 $0.00003 $0.00063

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

Security

Grade A, and why

branch-workflow 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 3mo 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.

skills/branch-workflow/SKILL.md · 125 lines

How it starts

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

Branch Workflow - Safe Autonomous Coding

All work happens on branches. Main stays clean. The user reviews before merge.

Branch Naming

feat/TASK-ID-short-description    # New features
fix/TASK-ID-short-description     # Bug fixes
docs/TASK-ID-short-description    # Documentation
research/TASK-ID-description      # Exploration
refactor/TASK-ID-description      # Code improvements

Examples:

  • feat/API-142-rate-limiting
  • fix/WEB-87-login-redirect
  • docs/API-150-auth-guide

Commit Format

TASK-ID: Brief description of change

- Detail 1
- Detail 2

Co-Authored-By: Claude <co-author>

Good commits:

  • Atomic (one logical change)
  • Buildable (tests pass at each commit)
  • Descriptive (explains what, not how)

Workflow

Starting Work

git checkout main
git pull origin main
git checkout -b feat/TASK-ID-description

During Work

# Commit often
git add -A
git commit -m "TASK-ID: Implement X"

# Push periodically
git push -u origin feat/TASK-ID-description

Finishing Work

# Ensure tests pass
cargo test  # or npm test, pytest, etc.

# Push final state
git push

# Log completion (megg or BACKLOG.md)

Rules

NEVER Do

  • Push directly to main
  • Force push (git push --force)
  • Merge your own branches
  • Delete branches without the user's approval
  • Commit secrets or credentials

ALWAYS Do

  • Create branch before changing code
  • Run tests before pushing
  • Commit with clear messages
  • Push branches for review
  • Document decisions

When Blocked

  1. Push current work to branch
  2. Document blocker in .megg/blocked.md or commit message
  3. Move to next task
  4. The user will review on return

Review Workflow

The user reviews branches by:

# See all work
git branch -a

# Review specific branch
git log main..feat/BRANCH-NAME
git diff main..feat/BRANCH-NAME

# Merge if good
git checkout main
git merge feat/BRANCH-NAME

Integration with OpenSpec

For OpenSpec changes:

  • Branch name matches change ID: feat/add-plugin-system
  • One branch per OpenSpec change
  • Archive OpenSpec change only after merge

Read the full file on GitHub · 125 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. 3mo ago First seen · 125 lines · 31 tokens per session scan A 3559cb481828

Subscribe to this mod's changes

branch-workflow is a skill published in the GitHub repository ToruAI/toru-claude-agents (15 stars, last pushed 4mo ago), licensed MIT. It adds 31 tokens to every session and 628 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-08-30.

Related

branch-workflow compared with skills from other repositories

branch-workflow next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
branch-workflowToruAI/toru-claude-agentsSkill154mo agoMITA31Claude Code
what-did-i-get-donemichael-denyer/pstack-claudeSkill5.0ktodayMITA24Claude Code
ln-61-repository-publisherlevnikolaevich/claude-code-skillsSkill59819d agoMITA24Claude Code
factory-commitsnonlinear-xyz/factory-kitSkill106d agoMITA58Claude Code
creating-commitjoaquimscosta/arkhe-claude-pluginsSkill241mo agoMITA96Claude Code, Codex
ralph-loopjoaquimscosta/arkhe-claude-pluginsSkill241mo agoMITA87Claude Code, Codex
git-commitfvadicamo/dev-agent-skillsSkill722mo agoMITA49Claude Code