🎯

git

🎯Skill

from cfircoo/claude-code-toolkit

VibeIndex|
What it does

Performs safe Git operations like committing, pushing, and creating pull requests with built-in best practices and version control safeguards.

πŸ“¦

Part of

cfircoo/claude-code-toolkit(15 items)

git

Installation

git cloneClone repository
git clone https://github.com/cfircoo/claude-code-toolkit.git
Shell ScriptRun shell script
./install.sh
Shell ScriptRun shell script
./install.sh -i
Shell ScriptRun shell script
./install-mac.sh
Shell ScriptRun shell script
./install-linux.sh

+ 5 more commands

ConfigurationMCP configuration (may be incomplete)
{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "h...
πŸ“– Extracted from docs: cfircoo/claude-code-toolkit
5Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Git operations for committing, pushing, and opening PRs using gh CLI. Use when performing version control tasks.

Overview

Never run destructive commands without explicit user request:

  • No git push --force to main/master
  • No git reset --hard
  • No --no-verify flag (skip hooks)
  • No git commit --amend on pushed commits

Never push directly to main/master:

  • If current branch is main or master, create a new branch before committing/pushing
  • Use a descriptive branch name based on the changes (e.g., fix/login-bug, feat/add-filter)
  • Only push to feature/fix branches, never directly to the default branch

Always verify before acting:

  • Check git status before staging
  • Check git log for commit style
  • Check remote tracking before push

End all commit messages with:

```

πŸ€– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude

```

Use HEREDOC for multi-line messages:

```bash

git commit -m "$(cat <<'EOF'

Message here

πŸ€– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude

EOF

)"

```

PR body structure:

```markdown

Summary

<1-3 bullet points>

Test plan

  • [ ] Test item 1
  • [ ] Test item 2

πŸ€– Generated with [Claude Code](https://claude.com/claude-code)

```

What would you like to do?

  1. Commit - Stage and commit changes
  2. Push - Push commits to remote
  3. PR - Open a pull request
  4. Ship - Full workflow: commit + push + PR

Wait for response before proceeding.

| Response | Workflow |

|----------|----------|

| 1, "commit", "stage" | workflows/commit.md |

| 2, "push", "upload" | workflows/push.md |

| 3, "pr", "pull request", "open pr" | workflows/pr.md |

| 4, "ship", "full", "all" | Run commit β†’ push β†’ pr sequentially |

After reading the workflow, follow it exactly.

| Workflow | Purpose |

|----------|---------|

| commit.md | Stage changes and create commit with proper message |

| push.md | Push commits to remote, create branch if needed |

| pr.md | Create pull request with gh CLI |