roderik / bellwether
bellwether
Bring the current PR to a mergeable state: CI green, all review comments resolved, no merge conflicts. Self-contained — watches CI, fixes issues, watches again until merge-ready. Use when the user wants to keep a PR green, auto-fix CI, resolve review comments, or says "get this merged".
Self-contained cycle: watch CI -> the instant work appears, fix it -> push -> watch again -> until merge-ready.
IMPORTANT: Execute ALL work in the main thread. Do NOT use the Agent tool, Task tool, or spawn sub-agents. Track all state in your working memory (context window). This skill runs as a sequential loop — you fetch, evaluate, fix, commit, reply, then loop.
Critical: Use the bellwether CLI
- The ONLY way to check CI status, PR state, and reviews is
bellwether check --watch. This command returns only when the PR is actually merge-ready (pr.ready=true), when actionable work appears (CI failures, unresolved reviews, merge conflicts), when the PR reaches a terminal state (mergedorclosed), or on timeout. It keeps polling while the PR is still not ready but there is nothing local to fix yet, including pending external checks andmergeable=blocked|unstable|unknown. Do NOT add sleep or polling. pendingorin_progressCI is NOT success, NOT "probably fine", and NOT a reason to stop. It means the loop is still running. Keepbellwether check --watchin control until it returns actionable work orpr.ready=true.- NEVER use
gh api,gh pr checks, `gh pr
SKILL.md