跳到正文
cccskills
免费在 GitHub 公开

land

Land a PR: watch CI, resolve review issues, merge, verify production. Triggers: "land this", "merge and monitor".

中文简介正在准备中。当前显示原文说明。

indigoai-us/hq-core星标 90(GitHub 90 + cccskills 0)
集成工具GitHubVercelAWS

实测评分 未实测

查看安装方法

包含的文件(2)

  • SKILL.md4.9 KB
  • agents/openai.yaml118 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Land

Monitor CI → Resolve reviews → Merge → Monitor production.

This skill takes a PR from "open" to "merged and verified in production." It handles the full landing sequence, including CI polling, review resolution, merge strategy selection, and post-merge production verification.

Input

Accepts one of:

  • PR number (e.g. 3021) — looks up repo from cwd or context
  • PR URL (e.g. https://github.com/org/repo/pull/3021)
  • No argument — finds the open PR for the current branch

Step 0: Resolve PR

If no PR number/URL given:
  branch=$(git branch --show-current)
  gh pr list --head "$branch" --json number,url --jq '.[0]'

Extract: repo, pr_number, branch, base_branch.

Display:

Landing PR #{number}: {title}
Branch: {branch} → {base}

Step 1: Monitor CI

Poll CI checks every 30s (max 10 minutes):

gh pr checks {pr_number} --repo {repo}

Outcomes:

  • All pass → proceed to Step 2
  • Any fail → read the failing check's logs, diagnose, and attempt fix. Push fix, re-poll
  • Timeout (10min) → report status and ask user whether to continue waiting or merge anyway

Display check status on each poll (only changed states).

Step 2: Resolve Reviews

gh pr view {pr_number} --repo {repo} --json reviews,comments,reviewRequests

Outcomes:

  • No reviews/comments, no review requests → proceed to Step 3
  • Pending review requests → notify user, ask whether to wait or proceed
  • Review comments exist → read each comment, assess if actionable:
    • Codex/bot suggestions: evaluate and apply if valid, push fix
    • Human comments: summarize for user, ask for guidance
    • Approved with no blocking comments → proceed
  • Changes requested → summarize feedback, attempt fixes if code-related, push, re-request review

After resolving, re-check CI (fixes may have broken something).

Step 3: Merge

Determine merge strategy:

  • Default: --squash (clean single commit)
  • If branch has meaningful commit history user wants preserved: --merge
  • If user specified: use their preference
gh pr merge {pr_number} --repo {repo} --squash --delete-branch

If branch protection blocks merge:

  • Check if --admin is available (user has admin rights)
  • If yes: use --admin flag
  • If no: report the blocking requirement and ask user

Verify merge:

gh pr view {pr_number} --repo {repo} --json state,mergedAt,mergeCommit

Step 4: Monitor Production

Post-merge verification. This step is context-dependent — the skill adapts based on what was changed.

4a: Identify what to monitor

From the PR diff, determine:

  • Lambda/serverless changes → check if SST deployment is needed (code on main ≠ deployed)
  • Database changes → query for expected state changes
  • API changes → test endpoints
  • Frontend changes → check deployment status (Vercel, etc.)

4b: Execute monitoring

For Lambda changes ({PRODUCT} pattern):

  • Note: merging to main does NOT auto-deploy Lambda. SST deployment is separate
  • Query DB for expected state changes (e.g. stale messages expiring)
  • Check CloudWatch logs if accessible
  • Report: "Code is on main. Lambda redeploy needed for changes to take effect"

For deployed services (Vercel, etc.):

  • Check deployment status: vercel ls --scope {team} or GitHub deployment status
  • Verify the deployment completed
  • If accessible, hit a health endpoint or verify the change visually

For database/data fixes:

  • Run verification queries to confirm expected state
  • Compare against baseline captured before merge

4c: Report

Landing Complete
────────────────
PR: #{number} merged → {merge_commit[:8]}
CI: All {N} checks passed
Reviews: {resolved|none}
Merge: squash → {base_branch}
Production: {status}
  - {monitoring_detail_1}
  - {monitoring_detail_2}

If production verification reveals issues, flag immediately and offer to investigate.

Error Handling

  • CI flake: If a check fails but the failure looks transient (network timeout, flaky test), offer to re-run: gh run rerun {run_id} --repo {repo} --failed
  • Merge conflict: gh pr view shows mergeable state. If conflicted, report to user — don't attempt auto-resolution
  • Rate limiting: If gh commands hit rate limits, back off and retry with increasing intervals

Rules

  • Never force-push during landing — the PR branch is shared state
  • Never skip CI checks without explicit user approval
  • Always verify merge succeeded before reporting completion
  • If production monitoring reveals a regression, prioritize flagging over completing the skill
  • Respect repo-specific merge policies ({PRODUCT}: bun run pr:create for creation, but gh pr merge for merging is fine)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

accept

免费

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

中文简介正在准备中。当前显示原文说明。

indigoai-us/hq-core902026年10月26日 更新

adr

免费

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

中文简介正在准备中。当前显示原文说明。

indigoai-us/hq-core902026年10月26日 更新

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月26日 更新

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月26日 更新

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

中文简介正在准备中。当前显示原文说明。

indigoai-us/hq-core902026年10月26日 更新

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月26日 更新

查看 indigoai-us 的全部技能

报告此技能的问题