본문으로 건너뛰기
cccskills
무료GitHub에 공개

land-batch

Triage, review, and merge several open PRs in order, with CI and deploy checks. Triggers: "land all PRs", "merge open PRs".

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

indigoai-us/hq-core스타 90(GitHub 90 + cccskills 0)
연동 도구GitHubAWS

실행 점수 미검증

설치 방법 보기

포함된 파일(2)

  • SKILL.md6.0 KB
  • agents/openai.yaml117 B

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Land Batch

Triage open PRs -> prioritize -> review each -> merge sequentially -> verify deploys.

This skill takes a set of open PRs from "open" to "merged and verified." It handles the full batch landing sequence: triage/prioritization, per-PR review, conflict resolution between sequentially-merged PRs, and post-merge deploy tracking.

Input

Accepts one of:

  • No argument — all open PRs on the current repo
  • PR numbers (e.g. 3040 3051 2965) — specific PRs to land
  • Label/filter (e.g. --label ready-to-merge) — filtered set

Step 0: Discover + Triage

0a: List open PRs

gh pr list --state open --json number,title,headRefName,createdAt,labels,statusCheckRollup,additions,deletions,files

0b: Classify each PR

For each PR, determine:

  • Scope: files changed, apps affected (function-v2, web-front, web-client, etc.)
  • Risk: LOW (config/docs/deletion), MEDIUM (feature, new routes), HIGH (infra, DB, auth)
  • CI status: all green, partial fail, not run
  • Merge readiness: clean, has conflicts, needs rebase
  • Dependencies: does PR X need to land before PR Y?

0c: Build merge order

Prioritize by:

  1. Blockers first — PRs that other PRs depend on
  2. Low risk first — config, docs, cleanup PRs land fast
  3. Infrastructure before features — DB/infra PRs before feature PRs that use them
  4. Smallest first within same tier — reduces conflict surface

Present triage table to user:

PR Triage
─────────
| # | Title | Risk | CI | Apps | Order |
|---|-------|------|----|------|-------|
| ... | ... | ... | ... | ... | ... |

Proposed merge order: #X -> #Y -> #Z
Proceed? (y/n/reorder)

Wait for user confirmation before proceeding.

Step 1: Per-PR Landing Loop

For each PR in merge order:

1a: Pre-merge checks

# Fresh CI status
gh pr view {number} --json statusCheckRollup,mergeable,reviewDecision

# Check for conflicts with main (PRs merged earlier may cause new conflicts)
gh pr view {number} --json mergeable

If mergeable: CONFLICTING:

  • Checkout the branch
  • Merge main in (prefer merge over rebase for branches far behind)
  • Resolve conflicts (take main for already-landed changes, keep branch for new work)
  • Push conflict resolution
  • Wait for CI to re-run

1b: Code review

Launch a review sub-agent (or inline review for small PRs <100 lines):

Review checklist:

  • Auth/security: new API routes have auth, no IDOR, no injection
  • Infra: SST/DynamoDB/Lambda changes noted for deploy
  • Code quality: no dangling imports, proper error handling
  • Tenant isolation: multi-tenant queries scoped properly
  • Data validation: input size limits, cursor validation
  • Dependencies: new packages audited

Review verdicts:

  • PASS — merge immediately
  • PASS WITH NOTES — merge, track notes for follow-up
  • FAIL — fix issues on branch before merge, then re-review

1c: Merge

gh pr merge {number} --squash --delete-branch

If branch protection blocks: use --admin if available. If E2E flake (pre-existing, unrelated): merge with --admin after confirming flake is known.

1d: Post-merge sync

# Update local main
git checkout main && git pull

# Check if next PR in queue now has conflicts
gh pr view {next_number} --json mergeable

1e: Track what needs deploy

After each merge, note:

  • Lambda/serverless changes -> needs gh workflow run cd.yml
  • SST infra changes -> needs manual SST deploy
  • DB migrations -> needs prisma migrate verification
  • Frontend changes -> auto-deploys via Vercel/CD

Step 2: Deploy Verification

After all PRs merged:

2a: Trigger deploys

# If Lambda changes were merged:
gh workflow run cd.yml -f env=development -f apps={affected-apps}

# Monitor deploy:
gh run list --workflow cd.yml -L 1 --json status,conclusion,databaseId

2b: SST deploy (if needed)

SST infra changes require manual deploy:

sst deploy --stage development

If SST lock exists: sst unlock --stage=development first (requires admin AWS creds).

2c: Post-deploy checks

  • Verify CD pipeline completes
  • Check for DB migration status if applicable
  • Run post-deploy seed scripts if any PR requires them

Step 3: Report

Batch Landing Complete
──────────────────────
Merged: {N} PRs
  - #{number}: {title} ({risk})
  ...

Deploy status:
  - Lambda: {deployed/pending/not-needed}
  - SST infra: {deployed/pending/not-needed}
  - Frontend: {auto-deployed/pending}
  - DB migrations: {applied/pending/none}

Follow-ups:
  - {any PASS WITH NOTES items}
  - {any post-deploy scripts needed}
  - {any remaining open PRs not in this batch}

Error Handling

  • Merge conflict cascade: If PR N's merge causes conflicts in PR N+1, resolve before continuing. Don't skip PRs
  • CI failure after conflict resolution: Re-run full CI. Don't merge with failing checks (except known E2E flakes)
  • Review FAIL: Fix on branch, push, wait for CI, then continue the loop
  • Deploy failure: Report immediately. Don't continue to production deploy if dev fails
  • GitGuardian false positive: Note and proceed if the flagged secret is pre-existing (not introduced by the PR)

Rules

  • Always get user confirmation on triage order before starting merges
  • Never force-push during landing
  • Merge PRs one at a time, pulling main between each
  • Track all infra changes for deploy — don't let SST/Lambda changes slip through un-deployed
  • If a PR adds new DynamoDB tables or SST resources, flag for SST deploy
  • Known E2E flakes (api-v2:e2e:development connection reset) are not merge blockers
  • Use --admin for branch protection bypass only when user has admin rights
  • Post-deploy seed scripts must be called out explicitly in the report

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

accept

무료

Accept HQ membership invites from a magic link or raw token.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

indigoai-us/hq-core902026년 10월 27일 업데이트

adr

무료

Capture qualifying architecture decisions as ADRs in the right HQ or repo location.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

indigoai-us/hq-core902026년 10월 27일 업데이트

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

indigoai-us/hq-core902026년 10월 27일 업데이트

architect

무료

Find shallow modules and propose deepening refactors, ranked with file refs; never edits code. Use when code is hard to change or planning a refactor.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

indigoai-us/hq-core902026년 10월 27일 업데이트

Generate dark ASCII banner graphics for HQ and social launch assets.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

indigoai-us/hq-core902026년 10월 27일 업데이트

Compare approaches to best-in-class prior art, merge existing work, verify cruft removal, and recommend the most durable design before PRD work.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

indigoai-us/hq-core902026년 10월 27일 업데이트

indigoai-us의 스킬 모두 보기

이 스킬의 문제 신고