بنقرة واحدة
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> |