mcpField
B
branch

branch

github.com/owainlewisDevelopment423214 installsUpdated 2w ago
Repository

About branch

branch is a workflow skill for preparing a Git branch before implementation. It checks repository state, follows the repository’s naming style, and protects existing uncommitted work.

Key features

  1. 01Review branch, status, remotes, and task
  2. 02Name branches using repository conventions
  3. 03Branch from the latest default branch
  4. 04Reuse existing branches and report commits
  5. 05Preserve uncommitted work

Use cases

  1. 01Prepare a task branch before coding
  2. 02Resume an existing branch and inspect its divergence

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/owainlewis/blueprint --skill branch

After installing, type/branchin Claude Code to confirm it loaded.

Details

From the project README

Branch

  1. Check the current branch, git status --short, remotes, and task details.
  2. Name it. A name from the user wins as given. Otherwise use <ticket-id>-<short-kebab-summary>, or just the summary if there is no ticket. Follow the repo's existing naming style.
  3. Fetch, then branch from the latest default branch when a remote exists, unless the user says otherwise.
  4. If the branch already exists, switch to it and report commits it has beyond the base.
  5. Report the branch name, its base, and any uncommitted work that was present.

Rules

  • Never stash, discard, or force through uncommitted work. If switching is blocked, stop and ask.
  • Never invent ticket IDs. If a ticket exists but its ID is not visible, ask; if no human is available, proceed without it and say so in the report.

Comments

Markdown supported