/claude-skills:babysit-prfrom claude-skills
Creates, monitors, and shepherds a GitHub pull request end-to-end: respects PR templates, watches CI and reviews, fixes branch failures, addresses comments, and validates post-merge deployment.
Ships in claude-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Own the pull request from creation through post-merge validation with as little manual babysitting as possible.
Terminal outcomes:
Do not stop at "PR created" or "CI is green once." Keep following the PR until one of the terminal outcomes is true.
These gotchas appear during real PR automation and require proactive handling:
Watcher Script Exits Silently (Template Resolution)
The watcher can exit unexpectedly if PR template resolution fails during preflight. Root cause: resolve_pr_template.py may fail to parse custom template syntax, or template file is unreadable. Mitigation: always run the resolver in --json mode first to validate template before starting the watcher. If resolution fails, fall back to the bundled default template at assets/default_pr_template.md.
Multiple Watchers on Same PR (Duplicate Comments)
Running multiple gh_pr_watch.py instances for the same PR causes duplicate comment processing and can result in duplicate bot comments or conflicting retry actions. This typically happens when the watcher is restarted without properly stopping the previous session. Mitigation: use one watcher session per PR. Verify no orphaned watcher processes exist before starting: ps aux | grep gh_pr_watch. Kill any stale sessions before resuming.
CI Retry Logic Triggers on Non-Flaky Failures (Quota Waste)
The retry logic may consume the CI retry budget on failures that are not actually transient (e.g., legitimate test failures from branch-specific issues). This wastes quota and can block progress on legitimate issues. Mitigation: always inspect CI logs with gh run view <run-id> --log-failed before retrying. Confirm the failure is truly flaky or unrelated to branch changes. Apply the heuristics in references/heuristics.md strictly before calling --retry-failed-now.
Review Score Extraction Fails with Markdown Formatting
When reviewers use markdown formatting in their score phrases (e.g., **4/5** stars or `4 out of 5`), the review score extraction regex may fail to match. This results in the watcher missing explicit scores and potentially merging PRs prematurely despite unfinished reviewer feedback. Mitigation: the score extractor looks for patterns like 5/5 and 5 out of 5. If a reviewer uses markdown around the score, manually extract the numeric rating and document it in the PR thread before proceeding.
See references in each workflow section below for prevention strategies.
gh auth status works.Use the resolver script first:
python3 skills/babysit-pr/scripts/resolve_pr_template.py --json
⚠️ Related gotcha: See "Watcher Script Exits Silently (Template Resolution)" under Common Failure Modes. Always validate template resolution before starting the watcher.
Rules:
assets/default_pr_template.md.gh pr create --body-file or gh pr edit --body-file with a prepared body that mirrors the resolved template.Helpful commands:
gh pr create --base <default-branch> --title "<title>" --body-file <body-file>
gh pr edit <pr-number> --title "<title>" --body-file <body-file>
python3 skills/babysit-pr/scripts/gh_pr_watch.py --pr auto --watch
The watcher emits snapshots and recommended actions. Start with:
python3 skills/babysit-pr/scripts/gh_pr_watch.py --pr auto --watch
⚠️ Related gotchas: See Common Failure Modes for "Multiple Watchers on Same PR" and "Watcher Script Exits Silently." Ensure no stale watcher processes are running before starting, and verify template resolution completes cleanly.
Key actions:
process_review_comment: inspect the new comment or review and decide whether it is valid, relevant, and actionable on the current branch.improve_review_score: a trusted reviewer gave an explicit score below the maximum; do not treat the work as complete yet.diagnose_ci_failure: inspect failed logs and decide whether the failure is branch-related.retry_failed_checks: rerun failed checks only when the failure looks flaky or unrelated.stop_ready_to_merge: CI is green, no outstanding trusted review items remain, and mergeability is clean.stop_pr_closed: the PR merged or closed; if merged, transition to deployment monitoring.stop_exhausted_retries: flaky retry budget is exhausted; ask the user for help with evidence.Use references/heuristics.md for the classification checklist.
⚠️ Related gotcha: See "CI Retry Logic Triggers on Non-Flaky Failures" under Common Failure Modes. Always inspect logs before retrying to avoid wasting quota on legitimate failures.
Default commands:
gh run view <run-id> --json jobs,name,workflowName,conclusion,status,url,headSha
gh run view <run-id> --log-failed
python3 skills/babysit-pr/scripts/gh_pr_watch.py --pr auto --retry-failed-now
Rules:
Apply feedback from trusted humans and approved bots when it is technically correct, actionable, and consistent with user intent.
When new feedback appears:
Ignore or escalate feedback when it is:
The watcher now extracts explicit score phrases such as 5/5 and 5 out of 5 from trusted comments and reviews.
⚠️ Related gotcha: See "Review Score Extraction Fails with Markdown Formatting" under Common Failure Modes. If reviewers use markdown around scores, manually extract ratings before proceeding.
Rules:
After merge, start the deployment watcher:
python3 skills/babysit-pr/scripts/gh_deploy_watch.py --pr auto --watch
The deployment watcher uses GitHub deployment records and deployment-like workflow runs tied to the merge commit. It stops with one of these actions:
wait_deployment: a deployment signal exists and is still running.wait_for_deployment_signal: the PR merged recently and the grace window has not expired yet.alert_deployment_failure: a deployment signal failed; inspect logs and decide whether to ship a fix.validate_production: deployment signals look successful; run the narrowest useful production validation.no_deployment_signal: no machine-readable deployment signal was found after the grace window.stop_pr_not_merged: the PR is not merged yet.Use references/deployment-monitoring.md for provider-specific follow-up, smoke tests, logs, and metrics guidance.
references/heuristics.mdreferences/github-api-notes.mdreferences/deployment-monitoring.mdagents/openai.yaml (opens in a new tab)assets/default_pr_template.md (opens in a new tab)references/deployment-monitoring.md (opens in a new tab)references/github-api-notes.md (opens in a new tab)references/heuristics.md (opens in a new tab)scripts/gh_deploy_watch.py (opens in a new tab)scripts/gh_pr_watch.py (opens in a new tab)scripts/resolve_pr_template.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (ckorhonen/claude-skills) — no native marketplace selected
npx claudepluginhub p/ckorhonen-claude-skills59 skills in this plugin
/agent-browserAutomate headless browser interactions using agent-browser CLI. Use when scraping web pages, automating form submissions, testing web apps, or performing browser automation tasks. Works with element refs (@e1, @e2) optimized for AI agent reasoning./agent-engineeringBattle-tested engineering principles for AI coding agents. Covers plan-first workflow, subagent delegation, self-improvement loops, verification gates, elegant solutions, autonomous bug fixing, and structured task management. Use when configuring agent behavior, writing AGENTS.md files, or improving agent reliability and code quality./app-marketing-copyWrite marketing copy and App Store / Google Play listings (ASO keywords, titles, subtitles, short+long descriptions, feature bullets, release notes), plus screenshot caption sets and text-to-image prompt templates for generating store screenshot backgrounds/promo visuals. Use when asked to: write/refresh app marketing copy, craft app store metadata, brainstorm taglines/value props, produce ad/landing/email copy, or generate prompts for screenshot/creative generation.Other plugins' skills for the same job