본문으로 건너뛰기
cccskills
무료GitHub에 공개

babysitting-pr

Monitor a pull request for CI failures, review comments, and merge conflicts — then fix them automatically. Use when a PR is open and you want the agent to keep it merge-ready.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHub
설치 방법 보기

포함된 파일(1)

  • SKILL.md3.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Babysitting a PR

Use this skill when the user has an open pull request and wants the agent to monitor it, fix CI failures, resolve review comments, and keep it merge-ready.

Steps

  1. Get the PR status — fetch the current state of the PR:

    gh pr view --json number,title,state,mergeable,reviewDecision,statusCheckRollup,comments,reviews
    

    Also check for merge conflicts:

    gh pr view --json mergeStateStatus
    
  2. Check CI status — look at the statusCheckRollup field. For each failing check:

    gh pr checks
    

    This lists all CI checks and their status (pass/fail/pending).

  3. Fix CI failures — for each failing check, get the logs:

    gh run view <run-id> --log-failed
    

    Analyze the failure and fix it:

    • Lint failures: run the linter locally (npm run lint -- --fix), fix remaining issues manually, commit.
    • Type errors: run npx tsc --noEmit, read the errors, fix the types, commit.
    • Test failures: run the failing test suite locally, read the assertion errors, fix the code or update the test expectations, commit.
    • Build failures: run npm run build, read the error output, fix imports/configs/missing deps, commit.

    After fixing, push the changes:

    git add -A && git commit -m "fix: resolve CI failures" && git push
    
  4. Handle review comments — fetch PR review comments:

    gh api repos/{owner}/{repo}/pulls/{pr}/comments
    

    For each unresolved comment:

    • Read the comment and the code it references.
    • If the fix is clear (typo, naming, missing null check, style issue), apply it.
    • If the comment requires a design decision or clarification, skip it and report to the user.

    Commit fixes for resolved comments:

    git add -A && git commit -m "fix: address review feedback" && git push
    
  5. Resolve merge conflicts — if the PR has conflicts:

    git fetch origin main
    git merge origin/main
    

    Resolve conflicts by reading both sides and choosing the correct resolution. For ambiguous conflicts, ask the user. After resolving:

    git add -A && git commit -m "fix: resolve merge conflicts" && git push
    
  6. Re-check status — after pushing fixes, wait for CI to run and check again:

    gh pr checks --watch
    

    If new failures appear, go back to step 3. Limit to 3 rounds to avoid infinite loops.

  7. Report — summarize what was done:

    • Which CI checks were failing and how they were fixed
    • Which review comments were addressed
    • Whether merge conflicts were resolved
    • Current PR status (ready to merge, or what's still blocking)

Loop Behavior

This skill is designed to run in a loop:

Check PR → Find issues → Fix issues → Push → Re-check → Repeat

Stop when:

  • All checks pass, no unresolved comments, no conflicts → PR is merge-ready
  • 3 fix-push-check cycles have been attempted without full resolution → report what's still failing
  • A fix requires a design decision → ask the user

Notes

  • Never force-push to a shared PR branch.
  • Don't modify test assertions to make tests pass unless the behavior change was intentional.
  • Don't resolve review comments you're unsure about — skip them and let the user know.
  • If CI is queued/pending, wait for it to complete before analyzing failures.
  • Use gh pr ready to mark the PR as ready for review once everything is green.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use Cursor's browser aria snapshots to audit a page for accessibility issues — missing labels, broken tab order, contrast, and ARIA misuse.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

0xAidan/polymarket-bot-test42026년 9월 4일 업데이트

Add PostHog analytics to a web application, including event tracking, page views, feature flags, and session replay.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

0xAidan/polymarket-bot-test42026년 9월 4일 업데이트

Generate OpenAPI/Swagger documentation for an API, including endpoint schemas, request/response types, and interactive docs UI.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

0xAidan/polymarket-bot-test42026년 9월 4일 업데이트

Add authentication to a web application using NextAuth.js (Auth.js), including OAuth providers, session management, and protected routes.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

0xAidan/polymarket-bot-test42026년 9월 4일 업데이트

Dockerize an application with a production-ready Dockerfile, docker-compose setup, and .dockerignore.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

0xAidan/polymarket-bot-test42026년 9월 4일 업데이트

Set up Playwright end-to-end testing in a project, including test configuration, example tests, and CI integration.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

0xAidan/polymarket-bot-test42026년 9월 4일 업데이트

0xAidan의 스킬 모두 보기

이 스킬의 문제 신고