git-pr-workflows-git-workflow
Fungsinya
Agent ini membantu mengatur proses pengajuan perubahan kode Anda untuk ditinjau. Agent ini memastikan semuanya sudah diuji, tercatat dengan baik, dan dikirim sebagai pull request tanpa melanggar aturan proyek.
Kapan dipakai
- ✓Saat Anda selesai menulis kode dan ingin mengajukannya agar ditinjau orang lain.
- ✓Saat proyek memiliki aturan ketat tentang cara kode diajukan dan diuji.
- ✓Saat Anda ingin mengotomatiskan proses pembuatan pull request setelah membuat perubahan.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/git-pr-workflows-git-workflow/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Saya ingin mengajukan perubahan terbaru saya untuk ditinjau, menguji semuanya, dan membuat pull request ke branch utama.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent ini pertama-tama memeriksa kondisi kode Anda saat ini dan aturan proyek. Setelah itu, agent menjalankan tes dan validasi, menyiapkan perubahan Anda di branch baru, dan akhirnya membuat pull request beserta semua informasi yang diperlukan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Guarded Git Pull Request Workflow
Move completed changes from local review to a verified pull request without bypassing repository policy or branch protection.
When to Use
Use for completed implementation work that must be reviewed, tested, committed, pushed to a topic branch, and opened as a pull request. Use the repository's dedicated maintainer or release workflow instead when one is mandatory.
Policy Gate
Before mutation:
- Read
AGENTS.md, contribution guidance, maintainer docs, and relevant nested instructions. - Inspect the current branch, worktree, remotes, upstream, and effective target-branch protection.
- Discover repository-native validation, commit, PR, merge, and release commands.
- Preserve unrelated dirty and staged files.
Repository policy wins over flags and user shorthand. Trunk-based development does not imply a direct push: when the target is protected, use a short-lived branch and pull request. If a repository defines a mandatory maintainer skill or guarded merge command, hand off merge and release actions to it. In agentic-awesome-skills, use antigravity-maintainer-batch-release and npm run merge:batch.
Inputs
Resolve these from the request and repository:
- target branch, defaulting to the repository default branch;
- intended changed files and excluded user work;
- required test, lint, security, build, and documentation checks;
- branch naming and commit-message conventions;
- draft or ready-for-review PR state;
- required reviewers, labels, issue links, and merge method.
Ask only when a missing choice changes the result materially.
Workflow
1. Capture the exact change
git status --short --branch
git diff --stat
git diff --cached --stat
git branch --show-current
git remote -v
Confirm every file in scope. Stop if staged or dirty files cannot be separated safely.
2. Review in parallel
When subagents are available and authorized, assign independent bounded passes for:
- correctness and regression risk;
- security, secrets, permissions, and dependency risk;
- test coverage and repository-policy compliance.
Give each reviewer the raw diff and repository instructions. Keep the main agent responsible for deduplication, severity, edits, and final verification.
3. Validate and repair
Run the repository's targeted checks, then its required pre-PR suite. If a check fails:
- identify whether the cause is source, policy, environment, or infrastructure;
- fix only source or policy defects in scope;
- rerun the targeted failure;
- rerun the complete required suite.
Do not weaken gates, hide skipped tests, or treat deterministic failures as flaky.
4. Prepare the branch and commit
Fetch the target before committing. If currently on a protected/default branch, create a topic branch before mutation.
git fetch origin <target-branch>
git switch -c <topic-branch> origin/<target-branch>
git status --short --branch
Stage only intended paths and create focused conventional commits according to repository policy. Rebase or update the topic branch when strict required checks demand the latest target; never force a shared branch without explicit authorization.
5. Push and create the pull request
git push -u origin <topic-branch>
gh pr create --base <target-branch> --head <topic-branch> \
--title "<conventional title>" --body-file <body-file>
The PR body must truthfully include:
- what changed and why;
- tests and validation actually run;
- risk, deployment, rollback, and breaking-change notes when applicable;
- issue links, screenshots, and repository checklists when applicable.
Never mark a pending automated review or test as completed.
6. Verify the remote result
gh pr view <pr-number> --json headRefOid,baseRefOid,mergeable,mergeStateStatus,url
gh pr checks <pr-number>
Bind review evidence to the current full head SHA. If the head or base changes, discard stale conclusions and rerun affected checks.
Use the repository's guarded merge path. Do not replace required checks, merge queues, exact-SHA attestations, or maintainer commands with a raw merge API. After merge, fetch the target and verify the requested remote, CI, deployment, or release state.
Stop Condition
…
Pertanyaan umum
Apa itu pull request?
Pull request adalah permintaan agar perubahan kode Anda digabungkan ke dalam proyek utama. Orang lain dapat meninjau kode Anda sebelum diterima.
Apa itu branch?
Branch seperti salinan paralel dari proyek tempat Anda bisa mengerjakan fitur atau perbaikan baru tanpa memengaruhi kode utama. Setelah selesai, perubahan tersebut bisa digabungkan kembali (merge).
Apa yang terjadi jika tes gagal?
Agent akan mencoba mengidentifikasi masalahnya dan memperbaikinya jika berkaitan dengan kode Anda atau aturan proyek. Agent tidak akan melanjutkan jika tes penting gagal.
Detail
Deskripsi asli dari pembuat
Orchestrate review, tests, commits, branch pushes, and pull-request creation with parallel agents. Use when completed changes must move through validation into a PR or guarded merge.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #4737
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- …
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.