skills/pr-babysitter/SKILL.md
Autonomous PR monitor — polls every 2 minutes for merge conflicts, CI/CD failures across GitHub Actions, Buildkite, Vercel, and Fly.io, review comments, and merge readiness. Auto-detects PR from current branch, fixes what it can, notifies on state changes. No setup questions. Also runs as one-shot for specific concerns. Use when asked to babysit a PR, watch a PR, monitor CI, keep a PR green, handle merge conflicts, poll PR status, run `/pr-babysitter`, fix CI, diagnose CI failure, why is CI red, CI is broken, loop on CI, fix CI checks, resolve merge conflicts, or fix conflicts.
npx skillsauth add mblode/agent-skills pr-babysitterInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Autonomous PR monitor. Detects the PR from your current branch and starts polling every 2 minutes. No setup questions — auto-detects everything and applies sensible defaults.
| File | Read When |
| --------------------------------- | ---------------------------------------------------------------------------------------------------- |
| references/github-api.md | Default: GraphQL queries for fetching, replying, and resolving threads |
| references/bot-patterns.md | Comment triage: bot detection, severity parsing, deduplication, false positive rules |
| references/fix-plan-template.md | Comment triage: generating the fix plan document |
| references/monitoring-setup.md | Default: CronCreate configuration, state file, defaults |
| references/ci-platforms.md | CI/CD check: gh for GitHub, Buildkite auth fallback chain, vercel/flyctl for platform logs, stale-dependency and knip failures |
| references/merge-conflicts.md | Conflict check: detecting and resolving merge conflicts |
| references/verification-gate.md | Before any commit/push: lint, type-check, test, knip gate and stray-artifact sweep |
| references/git-resilience.md | When a git command hangs or fails transiently (core.fsmonitor, stale lock, IPC hiccup) |
Copy this checklist to track progress:
PR babysit progress:
- [ ] Phase 1: Initialize — auto-detect PR, snapshot state, start cron
- [ ] Phase 2: Conflict check — detect and resolve merge conflicts
- [ ] Phase 3: CI/CD check — poll checks, diagnose failures, fix and push
- [ ] Phase 4: Comment check — detect new comments, triage autonomously
- [ ] Phase 5: Readiness check — evaluate merge readiness, notify user
Load references/monitoring-setup.md for CronCreate configuration and defaults.
gh pr view --json number,url,title,headRefName,baseRefName,mergeable,mergeStateStatus,reviewDecision from the current branch. If no PR found, tell the user and stop. If a PR number was passed as an argument, use it directlygh repo view --json owner,name.claude/scratchpad/babysit-pr-{N}.md: current HEAD SHA, mergeable status, check statuses, unresolved thread count, review decisiongh pr checks to identify active platforms (GitHub Actions, Buildkite, Vercel, Fly.io)*/2 * * * * schedule running phases 2-5. Print a single confirmation:Monitoring PR #{N}: {title}
Polling every 2 minutes | Auto-resolve noise: yes | Auto-merge: no
Detected CI: {platforms}
Current state: {mergeable} | {reviewDecision} | {check_summary}
Load references/merge-conflicts.md for resolution strategy.
gh pr view --json mergeable,mergeStateStatus
MERGEABLE → skip to Phase 3CONFLICTING → proceed to resolveUNKNOWN → wait, recheck next cyclegit fetch origin {base_branch} && git rebase origin/{base_branch}
git push --force-with-lease → notify usergit rebase --abort → notify user with detailsNever force-push without --force-with-lease. If the lease fails, someone else pushed — abort and notify. If git fetch/rebase hangs, see references/git-resilience.md.
Load references/ci-platforms.md for platform-specific commands and the Buildkite auth fallback chain.
gh pr checks --json name,state,conclusion,detailsUrlgh run view --log-failed (GitHub Actions), Buildkite auth fallback chain (Buildkite), vercel logs (Vercel), flyctl logs (Fly.io)references/verification-gate.md) before pushingIf any git command hangs or fails transiently here, see references/git-resilience.md before aborting.
gh pr view --jsonmergeable == MERGEABLE (no conflicts)reviewDecision == APPROVEDWhen Phase 4 detects new comments, run this inline — no separate invocation needed.
Load references/github-api.md for query templates and references/bot-patterns.md for detection rules.
reviewThreads query with pagination. Filter to isResolved == falseFor each item:
CHANGES_REQUESTED, Minor for APPROVED + questionHuman comments are never auto-ignored. Always classify as fix unless clearly already resolved or explicitly marked optional by the reviewer.
.claude/scratchpad/pr-{N}-review-plan.md as audit trailreferences/verification-gate.md): lint, type-check, test, and knip where present must pass, and strip stray artifacts (e.g. a root schema.gql left by a hook) before staging. Do not push until green. One commit per logical fix group, staging only the fix's filesOn stop, report a final summary: total polls, fixes applied, conflicts resolved, current state.
--force-with-lease — risks overwriting teammate commitsknip) passes locallyschema.gql) emitted by pre-commit hooks — sweep the tree and stage only the fix's filesgit command instead of recovering (see git-resilience.md)github-actions[bot] as always noise — it is a shared identity used by DangerJS, schema checkers, and other active tools. Classify by contentbk CLI without checking auth first — test with bk auth status and fall back to REST API or gh pr checkspr-reviewer for local self-review before pushing fixesdevelopment
Reverse-engineers a UI animation from a screen recording — extracts frames, tracks motion per frame, fits easing and spring curves, annotates choreography, and emits CSS, Motion/Framer Motion, SwiftUI, React Native, or UIKit code. Use when the user shares or uploads a screen recording or video of a UI animation, or asks to "reverse engineer this animation", "recreate this animation", "match this easing", "extract the animation curve", "figure out the spring from this video", "copy this transition from a video", "how does this animation work", or "reproduce this motion".
development
Produces a read-only review report of the current local diff or branch — it lists findings and does NOT edit files. Use when asked to run `/pr-reviewer` before commit, before push, or before handing changes off for PR creation or update; also use for "review my changes", "code review", "code quality review", or when you want findings listed by severity so you can decide what to fix yourself. Also use for "thermo-nuclear review", "deep code quality audit", "structural review", "harsh maintainability review", or "code judo" — these load the structural quality rubric for an unusually strict maintainability pass. Also use for "deslop this", "clean up AI code", "remove slop", or "review for AI patterns" — these load the AI slop detection catalog. For automatic fix-in-place (no manual review step needed), use the private `simplify` skill instead.
development
Feature-level UX audit for React/Next.js code. Catches what Lighthouse, axe, ESLint, and Storybook miss — state coverage gaps (missing loading/empty/error), form data loss on validation, broken focus management, optimistic UI without rollback, skeleton-induced layout shift, vague microcopy, and 25+ other modern frontend UX bugs. Diff-aware (audits changed files only) and produces a 3-tier ship-readiness verdict (release-blocker / fix-this-sprint / backlog) grouped by surface, with concrete fixes using modern React 19 APIs (useActionState, useFormStatus, useOptimistic, useTransition, Suspense). Use before merging a frontend PR, before shipping a feature, or when asked "is this checkout/onboarding/dashboard ready?", "review this PR for UX bugs", "audit this component", "what would break in production?", "is this ready to ship?"
development
--- name: ui-design description: Defines visual systems and design direction before code is written — colour palettes, typography scales, layout patterns, design tokens, and component styling for product dashboards (SaaS/admin/data-heavy) or marketing/brand landing pages. Includes CRO strategy, conversion benchmarks, persuasion psychology, A/B testing methodology, and social proof patterns. Use when choosing visual direction, selecting colour palettes and fonts, establishing layout patterns, sta