Skip to content
Back to skills

Custom Staged Create Branch

ASecurity

- Current Git diff (staged changes only): !`git --no-pager diff --staged`

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
toolsbashgit

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add mauroporras/dotfiles --skill custom-staged-create-branch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Custom Staged Create Branch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Custom Staged Create Branch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mauroporras-custom-staged-create-branch/badge)](https://www.skillsdirectory.com/skills/mauroporras-custom-staged-create-branch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
disable-model-invocation: true
context: fork
background: false
allowed-tools: Bash(git checkout *), Bash(git --no-pager diff *)
model: haiku
effort: low
---

# New branch for STAGED changes

## Context

- Current Git diff (staged changes only): !`git --no-pager diff --staged`

## Your task

Based on the above STAGED changes, create a new branch with a descriptive name.

Unstaged and untracked changes do not exist for this skill: never mention them,
and never let them influence the branch name.

Guard clause: if the staged diff above is empty, do NOT create a branch (there
is nothing to derive a name from). Tell the user nothing is staged and stop.

ALWAYS:

- Prioritize brevity over grammar:
  Keep the branch name short, even if grammatically imperfect
- Name the branch `<type>/<short-kebab-description>`, where `<type>` is one of the
  widely known conventional commit types.
- Immediately invoke the Bash tool to create and switch to the new branch.
  Do not just print the command, actually run it: `git checkout -b <branch-name>`

NEVER:

- Run additional Git commands

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.