원클릭으로
git
Git operations for commit, push, PR, and ship workflows with safety rules. Use for any version control task.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Git operations for commit, push, PR, and ship workflows with safety rules. Use for any version control task.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Promotes recurring feedback into the right skill, then guides /compact at phase boundaries.
Testing guidance for pytest, Jest/Vitest, Go, and TDD. Use when writing tests or improving coverage.
Methodical debugging with evidence and hypothesis testing. Use when troubleshooting fails or root cause is unclear.
Create new skills, commands, hooks, or subagents. Use when adding capabilities to Claude Code or Cursor.
PostgreSQL patterns for queries, schema, indexing, security. Use when writing SQL, designing schema, or adding indexes.
Reviews a GitHub PR diff for correctness, security, tests, architecture. Use when asked to review a PR or pull request.
| name | git |
| description | Git operations for commit, push, PR, and ship workflows with safety rules. Use for any version control task. |
<essential_principles>
<git_safety> Never run without explicit user request:
git push --force to main/mastergit reset --hard--no-verify flag (skip hooks)git commit --amend on pushed commitsAlways verify before acting:
git status before staginggit log --oneline -5 for commit stylegit worktree remove is destructive — sweep first. Before removing ANY worktree, in EACH worktree run:
git status --short — surface uncommitted edits (modified, untracked, staged)git log --oneline <upstream>..HEAD — surface unpushed commitsgit diff > /tmp/<name>.patch) for later, or (c) discard. Don't assume "the work is mirrored elsewhere" — the whole reason worktrees exist is to hold work that isn't yet on the canonical branch. Surfacing the diff one-line-per-file BEFORE the user makes the call is the right move; running git worktree remove --force to bypass a "worktree contains modified files" warning is the wrong one. Also delete stale local branch labels (git branch -D <name>) AFTER worktree removal if the label points at a commit the user has confirmed they're done with.Branch naming: See ~/.claude/rules/git-workflow/RULE.md §"Branch Strategy".
</git_safety>
<commit_format> Commit message structure:
type(scope): short description
- What changed (if not obvious from description)
- Why it changed (motivation)
Co-Authored-By: Claude <noreply@anthropic.com>
Types: see ~/.claude/rules/git-workflow/RULE.md §"Commit Messages (Conventional Commits)" for the canonical type list.
Use HEREDOC for multi-line messages:
git commit -m "$(cat <<'EOF'
feat(auth): add JWT refresh token rotation
- Rotates refresh tokens on every use
- Prevents replay attacks on stolen tokens
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
</commit_format>
<pr_format> PR body:
## Summary
- [What this PR does in 1-3 bullets]
## Test plan
- [ ] [Test 1]
- [ ] [Test 2]
## Changes
- [File 1]: [What changed]
- [File 2]: [What changed]
</pr_format>
</essential_principles>
What would you like to do?Wait for response.
| Response | Workflow | |----------|----------| | 1, "commit" | `workflows/commit.md` | | 2, "push" | `workflows/push.md` | | 3, "pr", "pull request" | `workflows/pr.md` | | 4, "ship", "all" | commit → push → pr (sequential) |<workflows_index>
| Workflow | Purpose |
|---|---|
| commit.md | Stage changes and create commit |
| push.md | Push to remote, create branch if needed |
| pr.md | Create pull request with gh CLI |
| </workflows_index> |