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

ca-watch

Watch a PR's CI to completion — diagnose on red, notify and offer the merge on green. Never auto-merges.

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

연동 도구GitHub
설치 방법 보기

포함된 파일(1)

  • SKILL.md4.0 KB

SKILL.md(원문)

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

$ca-watch — PR CI babysitter

<!-- catalog-compatibility-notice:start -->

Compatibility route. Prefer $ca-pr --watch for new usage. This installed route remains functional under the command-route compatibility policy at includes/command-compatibility.md; continue with the unchanged watcher workflow below.

<!-- catalog-compatibility-notice:end -->

Watch a pull request's checks to completion without babysitting them by hand. The wait happens server-side, so it costs nothing while CI runs; arbiter wakes once, on the verdict — diagnoses a red, or offers you the merge on a green. Arbiter never pulls the merge trigger.

Precondition

Requires the GitHub CLI authenticated (gh auth status). If gh is absent or unauthenticated, report the precondition failure naming gh and STOP — do not start a phantom watcher.

Flow

  1. Resolve the PR from $ARGUMENTS (number, URL, or branch; default to the current branch's PR).
  2. Watch to completion — run the watch as a detached background task built on the server-side block:
    gh pr checks <PR> --watch
    
    This blocks until every check finishes and then exits non-zero on failure. It is NOT a polling loop — there is no interval-based wake-up. Arbiter is re-invoked once when the watch process exits.
  3. On red — retrieve the failing job's logs (gh run view --log-failed / gh pr checks) and act at the configured depth. Resolve that depth with the canonical resolver rather than reading the env var by hand (so the accepted values can't drift). Resolve the interpreter once by presence — PY=python3; { command -v python3 >/dev/null 2>&1 && python3 --version >/dev/null 2>&1; } || PY=python — never python3 X || python X, which reruns X on any nonzero exit (#577):
    "$PY" "${PLUGIN_ROOT}/hooks/babysit.py" --root "<project-root>"
    
    It prints one JSON line; act at its on_red value (CODEARBITER_BABYSIT_ONRED, default propose):
    • propose — name the likely cause and propose a concrete fix. Do NOT edit any tracked file; applying the fix routes through $ca-fix or $ca-feature.
    • branch — additionally open a spike/fix-* branch carrying the proposed change for review. That branch is a spike: it can never PR or merge. The default branch is left untouched.
  4. On green — notify the user and present a merge offer (the gh pr merge command, ready to run). The watcher itself NEVER merges. If the PR targets the default branch, the merge routes through the merge-to-default hard gate — the offer cannot bypass it.

On/off

A global flag, CODEARBITER_BABYSIT (default off, mirrors CODEARBITER_PRUNE), governs auto-attachment: when on, $ca-pr auto-attaches a watcher to the PR it opens. $ca-watch <PR> works ad-hoc regardless of the flag. The flag is never set on the user's behalf — enabling it is the user's explicit choice. Both the command and the flag are dormant in a repo without arbiter: enabled.

When NOT to use

  • Open the PR first → $ca-pr.
  • Apply a fix for a diagnosed red → $ca-fix (or $ca-feature).
  • Review a diff without watching CI → $ca-review.

Hard gate

  • MUST NOT auto-merge. Green → notify + offer only; the watcher never invokes gh pr merge.
  • A merge into the default branch MUST route through the merge-to-default hard gate — the green offer cannot and does not bypass it.
  • MUST NOT implement a polling loop that re-invokes the model on a timer — the watch is the server-side gh pr checks --watch block.
  • MUST surface a missing/unauthenticated gh as a precondition failure, not a silent no-op.
  • At depth propose MUST NOT edit any tracked file; at depth branch the proposed change lands only on an unmergeable spike/fix-* branch.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Refine feature and sprint intent into a useful specification. Capture scope, observable criteria and material choices without repeated artifact approval ceremonies.

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

arbiterForge/codeArbiter1492026년 10월 20일 업데이트

Vet a new or changed third-party dependency for license, provenance, and supply-chain risk before any install runs.

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

arbiterForge/codeArbiter1492026년 10월 20일 업데이트

ca-adr

무료

Record user-decided ADRs or inspect their health read-only. Preserve attribution and acceptance evidence.

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

arbiterForge/codeArbiter1492026년 10월 20일 업데이트

Inspect ADR health read-only; optionally select one ADR with --adr N.

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

arbiterForge/codeArbiter1492026년 10월 20일 업데이트

ca-audit

무료

Assemble the governance record for a range — commits, overrides, ADRs, sprint auto-decisions, open questions, checkpoint findings — into one dated audit packet. Read-only.

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

arbiterForge/codeArbiter1492026년 10월 20일 업데이트

ca-btw

무료

Lightweight Q&A about the project — answer from context and return, no routing, no state change.

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

arbiterForge/codeArbiter1492026년 10월 20일 업데이트

arbiterForge의 스킬 모두 보기

이 스킬의 문제 신고