make-branch
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Context
Current branch: !git branch --show-current
Default base: !git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||' || echo main
Commits ahead of default base on current branch:
!git log $(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||' || echo main)..HEAD --oneline 2>/dev/null || echo "(none or base not found)"
Uncommitted changes
!git status --short
Potentially relevant ignored files
!git ls-files --others --ignored --exclude-standard 2>/dev/null | head -20 || echo "(none)"
Runtimes that do not auto-run the commands above marked with ! (Claude Code executes them and injects their output) should run each one to gather this context; treat any $ARGUMENTS or $1 as the input the user provided.