スキル一覧に戻る
0xabrar

git-pr-workflow

by 0xabrar

0🍴 0📅 2026年1月18日
GitHubで見るManusで実行

SKILL.md


name: git-pr-workflow description: Git workflows for feature branches, merges, and PR creation with GitHub CLI. Use when asked to manage branches, sync with base, resolve conflicts, or create PRs.

Git PR Workflow

Overview

Standardize branch management and PR creation with GitHub CLI. Favor clear, minimal steps and ask for missing details (base branch, target repo, reviewers, labels) only when needed.

Branch workflow

  1. Sync main (or chosen base):
git checkout main
git pull origin main
  1. Create feature branch:
git checkout -b feat/short-description
  1. Push with tracking on first push:
git push -u origin feat/short-description
  1. Subsequent pushes:
git push

Syncing with base

Rebase on the latest base branch to avoid conflicts:

git fetch origin
git rebase origin/main

If rebase is not desired, merge instead:

git fetch origin
git merge origin/main

PR preparation

  1. Ensure branch is pushed:
git push -u origin feat/short-description
  1. Confirm gh is authenticated:
gh auth status

PR creation (GitHub CLI)

Basic PR:

gh pr create --title "type(scope): short description" --body "Detailed description"

Draft PR:

gh pr create --draft --title "wip: short description" --body "Work in progress"

With reviewers/labels/base:

gh pr create --base develop --title "fix(scope): short description" --body "Details" --reviewer @username --label bug,urgent

PR description template (raw markdown)

When asked to generate PR content, output raw markdown exactly using this template:

## Summary
[1-2 sentences: what changed and why]

## High-Level Changes
- [Change 1]: [user-facing or architectural impact]
- [Change 2]: [impact]

## Detailed Implementation
- [Component Architecture]: [new/changed components]
- [State Management & Logic]: [state/data/validation changes]
- [Dependencies]: [new/updated packages]

## Test Plan
- [ ] Manual test step 1
- [ ] Manual test step 2
- [ ] Automated tests pass

Multi-worktree notes

If working across multiple worktrees (e.g. ansel-agent-a, ansel-agent-b):

  • Confirm the active worktree before running commands:
    • pwd
    • git status -sb
    • git rev-parse --show-toplevel
  • List worktrees when unsure:
    • git worktree list
  • Use git -C /path/to/worktree ... if needed.

Troubleshooting

  • Branch not on remote:
    • git push -u origin <branch>
  • No commits to PR:
    • git log main..HEAD
    • git status -sb
  • GH auth issues:
    • gh auth status
    • gh auth login

スコア

総合スコア

45/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です