mcpField
G
git

git

github.com/bntvllntDevelopment1760 installsUpdated 27w ago
Repository

About git

A skill for safe, repeatable Git operations, routing requests to workflows for read-only inspection, branches, commits, worktrees, tags, or PRs. It is for developers who need explicit confirmation around irreversible actions.

Key features

  1. 01Route requests to Git workflows
  2. 02Inspect status, diffs, and CLI help
  3. 03Manage branches and worktrees
  4. 04Handle commits, tags, and PRs
  5. 05Require confirmation for history changes
  6. 06Apply worktree cleanup and consolidation rules

Use cases

  1. 01Check repository status or changes without modifying files
  2. 02Create branches or organize worktrees with a defined process
  3. 03Stage and commit changes after confirmation
  4. 04Handle PRs, tags, or history recovery operations

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bntvllnt/agent-skills --skill git

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

Bundled files

References and scripts installed along with SKILL.md.

README.md
references/
advanced-workflows.md
branch-workflow.md
cli-help.md
commit-workflow.md
pr-review-workflow.md
pr-workflow.md
read-only.md
tag-workflow.md
worktree-maintenance.md
worktree-summary.md
worktree-workflow.md

Details

From the project README

Git

Clear, repeatable git workflow with a bias toward safety.

Router

Use the smallest workflow that matches the user intent.

User saysLoad referenceDo
status / what changed (no "worktree" prefix)references/read-only.mdread-only inspection
help / usage / manreferences/cli-help.mdshow CLI help safely
commit / stagereferences/commit-workflow.mdstage + commit safely
branch / switchreferences/branch-workflow.mdbranch operations
worktree create/remove/listreferences/worktree-workflow.mdworktree operations
worktree cleanup / normalize / consolidatereferences/worktree-maintenance.mdauto-clean + consolidate worktrees
worktree summary / worktree status / show worktreesreferences/worktree-summary.mdproactive analysis: PR status, change classification, safe-to-delete verdicts
tag / versionreferences/tag-workflow.mdcreate/list/inspect tags
pr / pull requestreferences/pr-workflow.mdcreate/update PR via gh
pr review / fix pr comments / threadsreferences/pr-review-workflow.mdreview + respond + fix
merge / rebase / reset / revertreferences/advanced-workflows.mdadvanced/recovery (confirm first)

Config (Edit Here)

Worktree working directories (the folders you cd into) live outside .git/.

Set this once and use it everywhere:

WORKTREES_DIR=./.worktrees
WORKTREE_PATH=$WORKTREES_DIR/<topic>

If you want a different location (e.g. ../.worktrees or ~/worktrees/<repo>), update WORKTREES_DIR above and follow the same shape in references/worktree-workflow.md.

Resilience Rules (Worktrees)

  • If multiple worktree root folders are detected (example: both ./.worktrees/ and ../repo-feature-x/ exist), do not delete anything by default.
  • Prefer consolidating into WORKTREES_DIR using git worktree move (when possible) or a remove+re-add plan.
  • If stale metadata exists, propose a cleanup plan: git worktree prune + remove/quarantine orphan directories (with confirmation).

Global Safety Rules (Never Violate)

  • Never force push to main/master.
  • Never commit secrets (env files, keys, credentials).
  • Never rewrite history that is already pushed unless explicitly requested.
  • Always show what will change before an irreversible action.

Confirmation Policy

Read-only commands are always OK.

Everything that changes state/history/remote requires explicit user confirmation:

  • git add, git commit, git push
  • git merge, git rebase, git reset, git revert
  • git worktree add, git worktree remove
  • git tag (create/delete)
  • git branch -d/-D

Quick Start

# Read-only
git status
git diff

# Commit
git diff --cached
git commit -m "feat(scope): why"

# Worktrees
git worktree list

Comments

Markdown supported