← ClaudeAtlas

wise-pr-watchlisted

Watch the current branch's PR and drive it to green: block on `gh pr checks --watch`, classify failing checks (lint / tests / other) and auto-fix them — committing via the shared Conventional-Commits routine — then walk four sequential review queues (humans → Copilot → CodeRabbit → Sonar), each gated by an interactive Paged-bulk / Fix-all / Walk-step-by-step / Skip choice with a phased collect → commit → remote-side-effects → push apply. Surfaces new PR comments each iteration (a reviewer saying "stop autofixing" short-circuits the loop) and exits on all-green, push failure, user abort, or a no-progress safety catch. Runs the shared `watch-pipelines` procedure. Requires an open PR on the current branch. Invoked as `/wise-pr-watch` (bare alias) or `/wise:wise-pr-watch` (canonical). Use when the user says "watch the PR", "drive the pipelines", "fix the failing checks", "babysit CI", or types `/wise-pr-watch`.
e1024kb/wise-claude · ★ 1 · Code & Development · score 77
Install: claude install-skill e1024kb/wise-claude
# /wise-pr-watch — watch a PR's pipelines and drive fixes ## Why this skill exists After a PR lands, the ritual is: watch checks, fix the failures, push, repeat until green. This skill is that loop, detached from PR creation / reviewer attach so you can run it on any PR whenever you want to hand off CI babysitting. (The `ticket-auto` workflow runs an autonomous analogue of the same procedure.) Single source of truth for the watch logic: `plugins/wise/references/pr/watch-pipelines.md`. The drafting routine the fix path commits with lives at `plugins/wise/references/pr/commit-from-fix.md` (distilled from `wise-commit-message` §3–§6). This skill reads `watch-pipelines.md` at run time and follows it. ## Invocation ``` /wise-pr-watch /wise:wise-pr-watch # canonical namespaced form ``` No positionals, no flags. ## Procedure This skill does NOT probe dependencies up-front. If `gh` / `git` is missing or `gh` is unauthenticated, the first command below fails with a clean error and Claude surfaces that to the user with a pointer at `/wise-init`. ### 1. Verify a PR exists for this branch ```bash BRANCH="$(git rev-parse --abbrev-ref HEAD)" PR_JSON="$(gh pr view --json number,url 2>/dev/null)" ``` If `PR_JSON` is empty, STOP with: ``` No open PR found for branch <BRANCH>. Create one first: /wise-pr-create ``` Otherwise parse: - `pr_number = .number` - `pr_url = .url` - `current_branch = <BRANCH>` ### 2. Detect the project path ```bash PROJECT_PATH="$(git rev-par