- Verify
gh auth status. If unauthenticated, ask user to rungh auth login. - Identify PR using
gh pr view --json number,urlor$ARGUMENTS. - If
rtkis available, preferrtk gh ...,rtk read, andrtk grepfor exploratory steps. Use rawghor the bundled script when another command needs machine-friendly JSON or uncompressed logs. - Run
python "$SKILL_DIR/scripts/inspect_pr_checks.py" --repo "." [--pr "$ARGUMENTS"] --jsonto collect failing checks, log snippets, and local reproduction hints. - Summarize GitHub Actions failures with check names, the smallest useful log snippet, and the suggested local repro commands. Mark external providers (for example Buildkite) as out-of-scope unless the user explicitly asks for them.
- Propose a concise fix plan and request explicit approval before editing when the user asked only for diagnosis. Otherwise proceed to fix.
- Implement the approved fix, rerun the relevant local repro commands, then re-run
gh pr checksto verify.
References
See references/BACKGROUND.md for detailed workflow and manual fallbacks.