Patterns for working with git branches, remotes, diffs against the default branch, and rebases. Use when resolving rebase conflicts, continuing interactive rebases, amending commits, or any git operation that would open an interactive editor.
Ships in timmo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when working with branches, remotes, or comparing changes.
For branch, working-tree, commit, diff and pull request context, including PR checks, reviews and comments, take a Context git snapshot: the context Code Mode namespace's git tool when the agent has it, otherwise load context-cli and run context git. That skill owns the options and output handling. For the diff against the default branch, use the CLI's --branch-diff when the tool has no diff option; the commits section lists the branch's commits.
context reads the local <remote>/HEAD without fetching. When the comparison must reflect the current remote, run git-default-ref first: it verifies and fetches the default branch.
Prefer the installed helpers over rebuilding default-branch operations with ad-hoc shell commands:
git-default-ref is the guarded resolver used by all helpers. It prefers upstream, falls back to origin, verifies local <remote>/HEAD against the advertised default, and fetches it. A missing or mismatched ref requires human confirmation; under dot agent detect or without a TTY it fails instead of prompting.git-switch-default (gsd) switches to the resolved default branch and fast-forwards it.git-rebase-default (grd) rebases the checked-out branch onto the resolved default with --autostash.gra prints a status message and runs git rebase --abort.These commands are stowed from scripts/.local/bin/; the aliases are defined in zsh/.zshrc.
Git opens an interactive editor for many operations. Since the agent runs in a non-interactive shell, bypass the editor with GIT_EDITOR=true (which makes the "editor" succeed immediately, accepting defaults).
GIT_EDITOR=trueGIT_EDITOR=true git rebase --continue # After resolving conflicts
GIT_EDITOR=true git merge --continue # After resolving merge conflicts
GIT_EDITOR=true git revert --continue # After resolving revert conflicts
For any requested commit amendment, load dot-git-commit and use its dot git commit --amend gateway flow instead of raw git commit --amend.
git add.GIT_EDITOR=true git rebase --continue.git rebase --abort / git merge --abort (no editor involved)git rebase --skip (no editor involved)Ordinary commits are outside this skill. Load dot-git-commit after an explicit commit request and use its gateway.
Use this when a branch is too large and needs to be split into stacked branches with predictable file counts.
git-split-branch-by-files~/.local/bin/git-split-branch-by-files<source-branch>-b1, <source-branch>-b2, and so onDefault behavior:
origin/HEAD (fallback dev, main, then master)--equal-up-to 4)Typical commands:
# Preview only
git-split-branch-by-files --source <branch> --base <base> --branches 5 --equal-up-to 4 --dry-run
# Recreate output branches if they already exist
git-split-branch-by-files --source <branch> --base <base> --branches 5 --equal-up-to 4 --force
Safety notes:
What SKILL.md sets; muted values are Claude Code's defaults
/timmo:git-contextfrom timmo
npx claudepluginhub timmo001/skills --plugin timmo55 skills in this plugin
/agentic-workflowsDesign, create, update, debug, audit, or upgrade GitHub Agentic Workflows with the `gh aw` extension. Use when work involves workflow Markdown, compiled `.lock.yml` files, agent engines, MCP tools, safe outputs, work queues, scheduled memory consolidation, local SDLC issue bootstrap, or `gh aw` commands./asking-questionsDecide when to ask the user a question and how to present it. Use before any clarifying question, choice, or confirmation, whether through the Plannotator Inbox or in chat, and to decide whether to hold questions until findings are presented or divert to grilling; do not use to run light or full grilling rounds./broRe-pitch the immediately preceding response with enough context to follow, using plain, concise, unambiguous language. Use ONLY when the user explicitly invokes /bro or says the previous response did not land.Other plugins' skills for the same job