Agent skill

Git Helper

by shepherdjerred in shepherdjerred/monorepo

Safe, current Git operations for inspection, commits, history, recovery, merging, rebasing, worktrees, configuration, maintenance, and repository troubleshooting.

GPL-3.0Auto-check passedDevelopment

Install Git Helper

skills CLI
$ npx skills add shepherdjerred/monorepo --skill git-helper -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install shepherdjerred/monorepo git-helper --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/shepherdjerred/monorepo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/dotfiles/dot_agents/skills/git-helper .claude/skills/git-helper && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-helper
GitHub stars
112
Token cost
~2k tokens
SKILL.md length
910 words
Files
4 (incl. references)
Skills in repo
63
Repo updated
First seen
Licence
GPL-3.0

At a glance

Safe, current Git operations for inspection, commits, history, recovery, merging, rebasing, worktrees, configuration, maintenance, and repository troubleshooting.

  • Git commands and diagnosis
  • SKILL.md covers Branch workflow ownership, Current baseline, Start read-only and Preserve concurrent work, plus 8 more sections
  • Calls git and gh
  • Load the repositorys owning stack

What it does

Git Helper is an agent skill from shepherdjerred/monorepo. Safe, current Git operations for inspection, commits, history, recovery, merging, rebasing, worktrees, configuration, maintenance, and repository troubleshooting. Use for Git commands and diagnosis; load the repository's owning stack or branching skill before branch or PR mutations.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/configuration-and-maintenance.md`, `references/history-and-recovery.md` and `references/releases.md`).

It sits in Development, covering Git workflow and Git worktrees. It works with Git. The repository describes itself as: Monorepo for all of my projects. The licence is GPL-3.0.

When your agent uses it

  • Git commands and diagnosis
  • Load the repositorys owning stack
  • Branching skill before branch

Example prompts

  • “/git-helper”

What it can do on your machine

Read from SKILL.md and the folder at commit 46ddf2f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Helper loads about 2k tokens when it runs, and up to ~5.2k if it reads all its reference files. Until then it costs about 74 tokens; SKILL.md has 910 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from shepherdjerred/monorepo at commit 46ddf2f, republished under its GPL-3.0 licence (© shepherdjerred). 910 words, ~2,048 tokens.

Download SKILL.mdSave it as .claude/skills/git-helper/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
git-helper
description
Safe, current Git operations for inspection, commits, history, recovery, merging, rebasing, worktrees, configuration, maintenance, and repository troubleshooting. Use for Git commands and diagnosis; load the repository's owning stack or branching skill before branch or PR mutations.

Git Helper

Inspect first, preserve user work, and use the repository's owning branch workflow for mutations. This skill covers Git itself; a stack or PR skill remains authoritative for branch creation, restacking, publishing, and synchronization.

Branch workflow ownership

In shepherdjerred/monorepo, every PR — human or agent, new or existing — is a git-spice stack. Load monorepo-delivery first; it is authoritative for branch creation, restacking, and publishing.

Use the provided isolated workspace; do not create a second worktree unless the user explicitly asks for one. Do not use a bare gh pr create or hand-written rebase in place of the owning stack tool.

Current baseline

Verified against Git 2.55.0 on 2026-08-03:

bash
git --version

Recent versions added stable switch and restore, stash export/import, refs commands, last-modified, backfill, url-parse, format-rev, maintenance improvements, and additional partial-clone and pack tooling. repo, last-modified, history, format-rev, and backfill should be treated according to their documented experimental or evolving status.

Git's future-breaking-changes document is the source of truth for planned removals. Do not state a Git 3 release date or default change as certain until the project publishes it.

Read references/releases.md when adopting a recent command or upgrading Git. Read references/history-and-recovery.md for rebase, range-diff, bisect, reflog, stash, sparse checkout, bundles, and recovery. Read references/configuration-and-maintenance.md for config, hooks, credentials, maintenance, refs, and repository health.

Start read-only

Useful inspection commands:

bash
git status --short --branch
git diff --stat
git diff
git diff --cached
git log --oneline --graph --decorate --all
git branch --verbose --verbose
git remote --verbose
git reflog
git worktree list --porcelain
git config --list --show-origin --show-scope

Use git show <ref>:<path>, git log <ref> -- <path>, and git diff <base>...<head> to inspect another branch without switching the working tree.

Preserve concurrent work

  • Never discard, stash, reset, restore, or switch away from unexpected work just to investigate.
  • Treat every existing modification as user-owned unless provenance proves otherwise.
  • Keep all agents read-only on history unless explicitly assigned an isolated branch mutation.
  • Verify the current branch and recent movements before pushing:
bash
git status --short --branch
git reflog -n 10
  • Stage whole files by explicit path. Do not use interactive, hunk-level, current-directory, or repository-wide staging in agent workflows.

Intentional commits

bash
git add path/to/first path/to/second
git diff --cached --check
git diff --cached
git commit -m "type(scope): concise description"

If core.fsmonitor makes a changed file appear unstaged, compare the working and index object IDs and disable fsmonitor for the affected command:

bash
git hash-object path/to/file
git rev-parse :path/to/file
git -c core.fsmonitor=false add path/to/file

Do not amend or force-push a commit another person may have based work on without explicit authorization.

Compare the right ranges

bash
# Tip-to-tip difference
git diff main..feature

# Changes introduced since the merge base
git diff main...feature

# Patch-series comparison before and after a rebase
git range-diff old-base..old-tip new-base..new-tip

range-diff compares two commit ranges. Do not use the invalid single-range shorthand found in older copies of this skill.

Mergeability without changing the checkout

Use the repository's independent merge oracle when readiness matters:

bash
git merge-tree --write-tree <base> <head>

Treat the exit status as the merge result: 0 is a clean merge, 1 is a real conflict. --quiet (Git 2.50+) additionally suppresses most output and object creation when the exit status is all that's needed, but isn't available on older Git — omit it rather than assume it exists, or gate it behind a version check. Do not replace this check with a checkout or an untrusted hosted mergeability field.

Undo and recovery

Choose the least destructive operation:

GoalOperationBoundary
Undo a published commitgit revert <commit>Adds a new inverse commit
Unstage a pathgit restore --staged <path>Keeps working-tree content
Recover a lost commitinspect git reflog, then create a branchPreserves the recovered object
Move a private branch while keeping changesgit reset --soft or --mixed after inspectionRewrites only local branch position
Discard workdestructive reset/restoreRequires exact target resolution and explicit user intent

Never present git reset --hard HEAD@{n} as a routine recovery recipe. First inspect the reflog entry and preserve it with a branch:

bash
git reflog
git show <recovered-commit>
git branch recovery/<name> <recovered-commit>
Show full SKILL.md (357 more words)Show less

Rebasing and pushing

Use the owning stack tool for repositories with stacked PR workflows. In a generic repository, inspect the branch, fetch explicitly, and compare the rewritten series with range-diff.

Rebase does not always require a force push: an unpublished local branch can be pushed normally. When a published branch is intentionally rewritten, background fetches can invalidate the protection expected from plain --force-with-lease; verify the remote tip and use an explicit expected object when safety matters.

Never force-push main, release branches, shared branches, or work another person may have based on without current authorization.

Hooks and credentials

Repository hooks are executable policy. Inspect the configured hook path and hook source before relying on them:

bash
git config --get core.hooksPath
ls -la "$(git rev-parse --git-path hooks)"

git config --get/--list work on every supported Git version; the newer git config get/git config list subcommand syntax does not exist before Git 2.46. git hook list <hook-name> (added in Git 2.54, and it requires a hook name — it does not list every hook) can supplement this once the installed version is confirmed; do not rely on it as the portable default.

Use credential helpers or GIT_ASKPASS; never embed tokens in remotes, configuration, logs, or files. Treat hook input and filenames as untrusted shell data.

Maintenance and repository health

Use git maintenance tasks documented for the installed version. geometric-repack is a maintenance task; geometric is a strategy, not a task name. Use git maintenance is-needed where supported to avoid unnecessary work.

For diagnosis:

bash
git fsck --full
git count-objects -vH
git reflog expire --dry-run --all

Run git gc --auto only as an explicitly authorized maintenance step: it may repack objects and prune expired unreachable data. Do not change reflog expiry, run aggressive collection, or delete unreachable objects until recovery requirements and repository ownership are clear.

Review checklist

  • Load and obey the repository's owning stack/branch skill.
  • Inspect status, diff, branch, and worktrees before mutation.
  • Keep user-owned and concurrent work intact.
  • Stage explicit whole-file paths and review the staged diff.
  • Use independent merge-tree evidence for mergeability claims.
  • Compare rewritten series with a valid two-range range-diff.
  • Resolve exact reflog/reset/restore targets before destructive actions.
  • Verify remote tips before any authorized history rewrite.
  • Treat experimental commands and future Git changes as conditional.
  • Check hook configuration and credential exposure before publishing.

© shepherdjerred, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in packages/dotfiles/dot_agents/skills/git-helper of shepherdjerred/monorepo.

  • SKILL.md
  • references/configuration-and-maintenance.md
  • references/history-and-recovery.md
  • references/releases.md

Open the folder on GitHubat commit 46ddf2f

Compare with similar skills

Git Helper next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Helper compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Helper this skillshepherdjerred/monorepo112—~2kAutomated safety check: PassGPL-3.0
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Ccmanager Configkbwo/ccmanager1.3k—~1.5kAutomated safety check: PassMIT
Git Worktree Managermicrosoft/WindowsAppSDK4.7k—~2kAutomated safety check: PassMIT
Git Worktree IsolationjnMetaCode/superpowers-zh8.3k1 repos~982Automated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Ccmanager Config

    kbwo/ccmanager

    Set up, review, or repair a CCManager config — .ccmanager.json at a git repository root, or the global ~/.config/ccmanager/config.json.

    1.3k GitHub stars~1.5k tokensUpdated 10 days ago
    DevelopmentAuto-check passed
  • Git Worktree Manager

    microsoft/WindowsAppSDK

    Official

    Creates and manages Git worktrees with PowerShell scripts so separate issues and Copilot sessions each get an isolated branch, build and test environment.

    4.7k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Git Worktree Isolation

    jnMetaCode/superpowers-zh

    Sets up an isolated workspace before feature work or plan execution, preferring native worktree tools and falling back to git worktree, with instructions in Chinese.

    8.3k GitHub starsUsed in 1 repo~982 tokens
    DevelopmentAuto-check passed
  • Git Commit

    tisfeng/Easydict

    起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。

    15k GitHub stars~535 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from shepherdjerred/monorepo

All 63 skills in this repo
  • Bun Runtime Best Practices

    shepherdjerred/monorepo

    Bun runtime APIs and current operational patterns for files, processes, modules, networking, databases, tests, and deployment.

    112 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Bun Test Patterns

    shepherdjerred/monorepo

    Current Bun test runner guidance for discovery, isolation, parallelism, sharding, changed tests, mocks, timers, snapshots, coverage, DOM Testing Library, and integration teardown.

    112 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Bun Workspaces

    shepherdjerred/monorepo

    Current Bun workspace guidance for isolated and hoisted linkers, catalogs, filters, scripts, dependency classes, lockfiles, lifecycle trust, caches, publishing, TypeScript package exports, and…

    112 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Deep Research

    shepherdjerred/monorepo

    This skill should be used when the user asks to "deep research", "research this topic", "investigate thoroughly", "do a deep dive on", "comprehensive research on", "find everything about", "survey…

    112 GitHub stars~4.7k tokensUpdated today
    Auto-check: notes
  • Figma Use

    shepherdjerred/monorepo

    This skill should be used when the user asks to "create a Figma design", "design in Figma", "make a Figma mockup", "create an app icon", "design UI", "render JSX to Figma", "export from Figma"…

    112 GitHub stars~946 tokensUpdated today
    Auto-check passed
  • Fish Helper

    shepherdjerred/monorepo

    Current Fish shell scripting, functions, abbreviations, completions, variables, events, configuration, plugins, testing, and safety guidance.

    112 GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Git Helper

What does Git Helper do?

Safe, current Git operations for inspection, commits, history, recovery, merging, rebasing, worktrees, configuration, maintenance, and repository troubleshooting. Git Helper is an agent skill from shepherdjerred/monorepo. Safe, current Git operations for inspection, commits, history, recovery, merging, rebasing, worktrees, configuration, maintenance, and repository troubleshooting.

When should I use Git Helper?

Git Helper fits situations like: Git commands and diagnosis; load the repositorys owning stack; branching skill before branch.

How do I install Git Helper in Claude Code?

Run `npx skills add shepherdjerred/monorepo --skill git-helper -a claude-code`. Or copy the skill folder (packages/dotfiles/dot_agents/skills/git-helper in shepherdjerred/monorepo) into .claude/skills/git-helper in your project. Claude Code loads it when a task matches its description.

How do I install Git Helper in Codex?

Run `npx skills add shepherdjerred/monorepo --skill git-helper -a codex`. Or copy the skill folder (packages/dotfiles/dot_agents/skills/git-helper in shepherdjerred/monorepo) into .agents/skills/git-helper in your project. Codex loads it when a task matches its description.

Can I use Git Helper in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shepherdjerred/monorepo --skill git-helper -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-helper, .gemini/skills/git-helper, .github/skills/git-helper and .opencode/skills/git-helper in your project.

What does Git Helper need to run?

Going by SKILL.md and its folder, Git Helper needs the command-line tools its instructions call (git and gh).

Does Git Helper access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Helper safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Git Helper use?

Git Helper is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Helper use?

About 2k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.2k tokens, read only when the agent opens those files.

What are the alternatives to Git Helper?

Skills that share tags, products or a category with Git Helper: Finishing a Development Branch (obra/superpowers, 296k stars), Git Worktree Cleanup (lobehub/lobehub, 83k stars), Ccmanager Config (kbwo/ccmanager, 1.3k stars) and Git Worktree Manager (microsoft/WindowsAppSDK, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Helper?

shepherdjerred (a GitHub user) maintains it in shepherdjerred/monorepo, which has 112 GitHub stars. The repository holds 63 skills in this directory. The repository was last updated on October 7, 2026.

Source: shepherdjerred/monorepo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.