원클릭으로
pr-merge
Merge GitHub pull requests with strict CI validation. Never bypasses failed checks. Use when merging PRs or when user says /pr-merge.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Merge GitHub pull requests with strict CI validation. Never bypasses failed checks. Use when merging PRs or when user says /pr-merge.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes or mentions "/commit".
Scaffold a new skill directory using the multi-YAML pattern. Use when user says /create-skill.
Write, run, and refine fast direct-mode tests for GenLayer intelligent contracts using the in-memory pytest fixtures.
Refresh documentation with deterministic generation from source files. Use when user says /docs-refresh.
Deploy, interact with, inspect, and debug GenLayer intelligent contracts with the GenLayer CLI across local Studio, hosted Studio, and testnet.
Install, upgrade, and monitor a GenLayer validator node on AMD64 Linux, including zero-downtime updates and LLM provider setup.
| name | pr-merge |
| description | Merge GitHub pull requests with strict CI validation. Never bypasses failed checks. Use when merging PRs or when user says /pr-merge. |
| user-invocable | true |
| allowed-tools | ["Bash","Read"] |
Merge GitHub pull requests with strict CI validation and merge state checking. Enforces the rule: NEVER bypass failed CI checks. Only offers bypass for missing reviews when all checks pass.
gh pr merge --squashtask claude:validate-skill -- --skill pr-mergeNEVER offer to bypass failed CI checks.
Failed checks mean broken code. The only acceptable bypass is for missing review when ALL checks pass.
┌─────────────────────────────────────────────────────────────────────────────┐
│ All checks pass + CLEAN → Auto-merge │
│ All checks pass + BEHIND → Update branch, re-check │
│ All checks pass + BLOCKED → Ask: "Bypass review?" │
│ Any check FAILED → STOP. Investigate failure. │
│ Conflicts (DIRTY) → Cannot auto-merge │
│ Checks still running → Wait and re-check │
└─────────────────────────────────────────────────────────────────────────────┘
# If PR number provided, use it
gh pr view 123 --json state,mergeable,mergeStateStatus,statusCheckRollup
# Otherwise, find PR for current branch
gh pr list --head $(git branch --show-current) --json number,state
| State | Action |
|---|---|
MERGED | "PR already merged" - done |
CLOSED | "PR is closed" - stop |
OPEN | Continue to CI check |
For each check in statusCheckRollup:
| Status | Action |
|---|---|
IN_PROGRESS | Wait 30s, retry (max 5 retries) |
FAILURE | STOP. Display failed check name. Investigate. |
SUCCESS | Continue |
CRITICAL: On FAILURE, do NOT offer to bypass. Say:
"CI check '' failed. Please investigate before merging."
| mergeStateStatus | Action |
|---|---|
CLEAN | Proceed to merge |
BEHIND | Update branch, re-check CI |
BLOCKED | If all checks pass → ask "Bypass review?" |
DIRTY | "Conflicts detected. Resolve before merging." |
gh pr merge <number> --squash
When mergeStateStatus is BEHIND:
git fetch origin main
git merge origin/main --no-edit
git push
# Then re-check from Step 3
See skill.yaml for the full procedure and patterns.
See sharp-edges.yaml for common failure modes.