用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/arbazkhan971/godmode --skill pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pr |
| description | Pull request excellence and review optimization. |
/godmode:pr, "create a PR", "stacked PRs"/godmode:shipgit diff --stat main...HEAD
git log --oneline main...HEAD
Branch: <name> | Base: <target> | Commits: <N>
Files: <N> | +<N>/-<N> lines
Size: XS(<50) | S(50-200) | M(200-400) | L(400-500) | XL(>500)
IF >500 lines: MUST split before review. IF >200 lines: recommend splitting.
Splitting strategies:
## Summary
<1-3 sentences: what and why>
## Problem
<Issue link: Closes #NNN>
## Solution
<How this PR solves the problem>
## Test Plan
<How to verify: automated + manual steps>
## Screenshots (if UI)
main
PR 1: data model (base: main)
PR 2: service layer (base: PR 1)
PR 3: API endpoints (base: PR 2)
PR 4: UI (base: PR 3)
IF >5 PRs deep: use parallel branches instead. Max stack depth: 5.
CODEOWNERS auto-assignment, round-robin rotation, domain expert tagging, buddy system. Assign 1-2 reviewers (never >3).
Time to first review: target < 4 hours
Review rounds: target <= 2
Total cycle time: target < 24 hours
PR size (median): target < 200 lines
Approval rate (1st): target > 50%
Stale PR rate: target < 5%
IF high first-review time: set up CODEOWNERS + SLA. IF many rounds: self-review before requesting.
Create PR(s) with description template applied.
"chore: PR workflow -- <strategy> for <feature>"
Append .godmode/pr-results.tsv:
timestamp action branch diff_lines files size status
KEEP if: CI passes AND size < 400 lines
AND description complete.
DISCARD if: CI fails OR XL without justification
OR description empty.
STOP when FIRST of:
- All PRs within size limits
- Description template applied
- CI passes and reviewers assigned
On failure: git reset --hard HEAD~1. Never pause.
| Failure | Action |
|---|---|
| PR too large (>500) | Split by concern, use stacked PRs |
| CI fails | Read output, fix locally, push |
| Merge conflicts | Rebase onto target, resolve locally |
| Contradicting feedback | Check codebase conventions first |