بنقرة واحدة
git-automation
Automate Git workflows including branching, commits, PRs, and conflict resolution
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Automate Git workflows including branching, commits, PRs, and conflict resolution
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Mission 唯一最终负责人;M0 plan / M1 assess-research / M6 foreword / M7 sign-off 4 个 milestone 全程在场
报告撰稿人;2 种 mode(single-shot / chapter pipeline)+ 3 个 duty(chapter / dimension-outline / mission-outline / single-shot)
Mission 唯一最终负责人;M0 plan / M1 assess-research / M6 foreword / M7 sign-off 4 个 milestone 全程在场
报告撰稿人;2 种 mode(single-shot / chapter pipeline)+ 3 个 duty(chapter / dimension-outline / mission-outline / single-shot)
Manage Git operations, branches, commits, and pull requests following gens.team conventions
Perform comprehensive code reviews for security, performance, maintainability, and best practices
| name | Git Automation |
| description | Automate Git workflows including branching, commits, PRs, and conflict resolution |
| allowed-tools | ["Bash","Read","Grep","Glob"] |
| tags | ["git","automation","workflow","github"] |
You are an expert at automating Git workflows for gens.team.
main
│
├──► feat/feature-name ──► PR ──► merge
│
├──► fix/bug-description ──► PR ──► merge
│
└──► refactor/area ──► PR ──► merge
| Type | Pattern | Example |
|---|---|---|
| Feature | feat/<name> | feat/ai-writing-outline |
| Bug Fix | fix/<description> | fix/login-session-timeout |
| Refactor | refactor/<area> | refactor/auth-module |
| Docs | docs/<topic> | docs/api-reference |
| Chore | chore/<task> | chore/update-deps |
<type>(<scope>): <subject>
[optional body]
[optional footer]
| Type | Description |
|---|---|
| feat | New feature |
| fix | Bug fix |
| refactor | Code refactoring |
| docs | Documentation |
| style | Code style (formatting) |
| test | Tests |
| chore | Maintenance |
# Feature
git commit -m "feat(ai-writing): add outline generation"
# Bug fix
git commit -m "fix(auth): resolve session timeout issue"
# Refactor
git commit -m "refactor(api): consolidate error handling"
# Ensure main is up to date
git checkout main
git pull origin main
# Create and switch to feature branch
git checkout -b feat/my-feature
# Check status
git status
# Stage specific files
git add src/feature.ts
# Stage all changes
git add .
# Commit with message
git commit -m "feat(module): description"
# Push branch
git push -u origin feat/my-feature
# Create PR with gh CLI
gh pr create --title "feat(module): title" --body "$(cat <<'EOF'
## Summary
- Change 1
- Change 2
## Test Plan
- [ ] Tested locally
- [ ] Tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
# Fetch latest changes
git fetch origin
# Rebase on main
git rebase origin/main
# Or merge main
git merge origin/main
# After conflict during rebase/merge
# 1. Edit conflicted files
# 2. Stage resolved files
git add <resolved-file>
# 3. Continue rebase
git rebase --continue
# Or for merge
git commit -m "Merge main into feature"
# Undo last commit (keep changes)
git reset --soft HEAD~1
# Undo last commit (discard changes)
git reset --hard HEAD~1
# Undo specific file change
git checkout -- <file>
# Revert a pushed commit
git revert <commit-hash>
# List PRs
gh pr list
# View PR details
gh pr view <number>
# Check PR status
gh pr checks <number>
# Merge PR
gh pr merge <number> --squash
# Create issue
gh issue create --title "Bug: description" --body "Details"
# Close issue
gh issue close <number>
git push --force to main/mastergit reset --hard on shared branches#!/bin/bash
# Run before commit
npm run type-check && npm run lint
#!/bin/bash
# Format staged files
npx prettier --write $(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(ts|tsx|js|jsx|json|md)$')
git add $(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(ts|tsx|js|jsx|json|md)$')
## Summary
[Brief description of changes]
## Changes
- Change 1
- Change 2
## Test Plan
- [ ] Unit tests pass
- [ ] E2E tests pass
- [ ] Manual testing completed
## Screenshots
[If applicable]
## Related Issues
Closes #<issue-number>