pre-merge
Combined quality gate that orchestrates review, tests, verification, and AC checks before merge
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Combined quality gate that orchestrates review, tests, verification, and AC checks before merge
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Automatically implement all sub-issues of an epic in dependency order
Implement a GitHub issue with automated PR creation
End-of-session retrospective. Captures knowledge from any working session (debug, implementation, config, deployment) as reusable scripts, CLAUDE.md procedures, or skill proposals. Run before ending a session to prevent knowledge loss.
Decompose a large GitHub issue into sub-issues and create a tracking draft PR
OWASP-guided security code review for a specific domain or issue
Project kickoff checklist based on lessons learned from previous projects. Generates a tailored checklist and optionally creates GitHub issues.
| name | pre-merge |
| description | Combined quality gate that orchestrates review, tests, verification, and AC checks before merge |
| argument-hint | [PR-number] |
| user-invocable | true |
Orchestrates all quality checks into a single gate report. This is a reporting tool — it does NOT auto-fix or auto-merge. The user decides what to act on.
$ARGUMENTS can be:
~/.claude/bin/gh-save.sh /tmp/pre-merge-pr.json pr view $ARGUMENTS --json number,title,body,baseRefName,headRefName,files
Read /tmp/pre-merge-pr.json to get the base branch, head branch, changed files, and PR body.
~/.claude/bin/git-find-base-branch
Use the current branch vs the detected base branch. Get changed files from:
git diff --name-only $(git merge-base HEAD <base-branch>)..HEAD
Store: base_branch, head_branch, changed_files, pr_body (if available).
Run the /review skill logic on the branch changes:
git diff $(git merge-base HEAD <base_branch>)..HEAD/review): debug statements, secrets, large changes, TODOs/review): DRY, magic values, error handling, pattern consistency/review)Record the verdict: PASS / WARNINGS / NEEDS WORK
Run the /test skill logic in affected mode:
Record: passed/failed/skipped counts, verdict
Run a quick runtime check (equivalent to /verify quick):
Container health (if Docker detected):
~/.claude/bin/docker-health-check.sh
API smoke test (if running server detected):
~/.claude/bin/smoke-test.sh
Migration check (if alembic detected):
alembic current with alembic headsSkip any check that is not applicable. Record per-check status.
Only runs if a linked issue is found.
Closes #N) or branch name (issue-N-...)~/.claude/bin/gh-save.sh /tmp/pre-merge-issue.json issue view <N> --json body
If no issue found or no AC in the issue: mark as SKIP.
Generate the combined report:
## Pre-Merge Quality Gate
**Branch:** <head_branch> → <base_branch>
**Files changed:** <count>
### Gate Results
| Gate | Status | Summary |
|------|--------|---------|
| Code Review | PASS / WARNINGS / NEEDS WORK | <finding count and top severity> |
| Tests | PASS / FAIL | <passed>/<total> |
| Runtime | PASS / WARN / FAIL / SKIP | <check summary> |
| Acceptance | PASS / WARN / SKIP | <verified>/<total> criteria |
### Verdict: **<READY TO MERGE / NEEDS ATTENTION / NOT READY>**
<One-line summary of what needs attention, if anything>
Verdict rules:
For each gate that is not PASS, include the detailed output:
/reviewThis is a reporting gate. Do NOT auto-fix issues or suggest automatic remediation. Present the facts and let the user decide.