بنقرة واحدة
await-ci
Poll a PR's CI checks until all pass, any fail, or timeout — then report the result
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Poll a PR's CI checks until all pass, any fail, or timeout — then report the result
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Run the full forge pipeline end-to-end within this Claude Code session, processing multiple issues autonomously until a stop condition is met
Interactive project bootstrapping — generates CLAUDE.md, VISION.md, CI workflow, forge.toml, and configures GitHub
Pick the next backlog/ready issue, claim it, and prepare a branch — without implementing it
Perform a final review check on a PR and merge it if clean, or report what's blocking
Process all open review comments on a PR: fix addressable issues, reply in-thread, create follow-up issues for deferred items
Pick an issue from the backlog, implement it in a fresh worktree, and open a PR
| name | await-ci |
| description | Poll a PR's CI checks until all pass, any fail, or timeout — then report the result |
| disable-model-invocation | true |
Poll a pull request's CI status until all required checks pass, any required check
fails, or the timeout is reached. Reports the result clearly so the caller (human or
/forge-loop) can decide what to do next.
$ARGUMENTS — PR number (required).
/await-ci 97 — wait for PR #97's checksRead forge.toml:
[project]
repo = "org/project"
[loop]
ci_poll_interval_minutes = 5 # How long to wait between checks
ci_timeout_minutes = 60 # Max total wait time
Defaults if not set: ci_poll_interval_minutes = 5, ci_timeout_minutes = 60.
gh pr view $PR_NUMBER --repo $REPO --json number,title,state,headRefName
Verify the PR is open. If closed or merged, report immediately:
PR #$PR_NUMBER is already $STATE — no checks to wait for.
Poll on the configured interval until checks settle or timeout:
gh pr checks $PR_NUMBER --repo $REPO --json name,state,conclusion
Check states:
PENDING / IN_PROGRESS / QUEUED → still running, keep pollingSUCCESS / NEUTRAL / SKIPPED → passedFAILURE / ERROR / CANCELLED / TIMED_OUT / ACTION_REQUIRED → failedSettled when: no checks are in a pending/running state.
Print a progress line on each poll:
[12:03] PR #97 — 3/5 checks passing, 2 pending (elapsed: 8m)
[12:08] PR #97 — 5/5 checks passing (elapsed: 13m)
Timeout: If elapsed time exceeds ci_timeout_minutes, stop polling and report:
CI timeout after $TIMEOUT_MINUTES minutes. PR #$PR_NUMBER checks did not settle.
Still running: <list check names>
CI PASSED — PR #$PR_NUMBER is green.
Checks: $PASS_COUNT passed, $SKIP_COUNT skipped
Elapsed: $ELAPSED_MINUTES minutes
Ready for review and merge.
Exit with success.
CI FAILED — PR #$PR_NUMBER has failing checks.
Failed: $FAIL_COUNT check(s)
- $CHECK_NAME: $CONCLUSION ($DETAILS_URL)
Passed: $PASS_COUNT
Elapsed: $ELAPSED_MINUTES minutes
Recommended action: read the failure logs and either fix the code or mark the PR
human/blocked if the failure requires investigation.
Exit with failure.
CI TIMEOUT — PR #$PR_NUMBER did not finish within $TIMEOUT_MINUTES minutes.
Still running: $PENDING_COUNT check(s)
- $CHECK_NAME (running for $ELAPSED_MINUTES minutes)
Recommended action: check if CI is stuck (flaky test, hung job). Consider re-running
failed checks or marking human/blocked.
Exit with failure.
gh pr checks returns no checks at all, wait one full interval and retry (checks
may not have started yet)