babysit-pdq-pr
БесплатноБез исполняемых скриптовНе проверенBabysit PR review cycles for PDQ organization repositories only. Use only when the user explicitly asks to run this skill (for example, "use babysit-pdq-pr")…
от dkarter★ 130 звёзд на GitHubОб этом скилле
Babysit PDQ PR
Guardrails
- Confirm the request is explicit. If the user did not specifically ask to use this skill, do not use it.
- Confirm repository scope before doing any work:
- Get owner/name via
gh repo view --json owner,name. - Continue only if the owner is a PDQ org (owner login contains
pdq, case-insensitive). - If not PDQ, stop and tell the user this skill is not applicable.
- Get owner/name via
- Operate only on the target PR branch and do not change unrelated files.
- Do not post noisy trigger commands (for example
@coderabbitai review/@coderabbitai resume) unless the user explicitly asks. - Prefer automatic CodeRabbit re-reviews triggered by pushed commits.
Setup
- Resolve the PR number (from user input or current branch):
gh pr view --json number,url,headRefName,baseRefName,state
- Ensure clean local state before starting each cycle:
git status --short- If dirty due to unrelated work, isolate or stash only if the user asks.
- Capture a processing checkpoint timestamp (
last_checked_at) so each loop handles only new CodeRabbit feedback.
Review Cycle Loop
Repeat this loop until CodeRabbit approval is reached.
- Fetch latest PR feedback from CodeRabbit:
- Reviews:
gh api repos/{owner}/{repo}/pulls/{pr}/reviews --paginate - Inline comments:
gh api repos/{owner}/{repo}/pulls/{pr}/comments --paginate - Issue comments:
gh api repos/{owner}/{repo}/issues/{pr}/comments --paginate
- Reviews:
- Build the current batch:
- Include only items authored by
coderabbitai. - Include only items newer than
last_checked_at. - If no new items, wait and poll again (see Wait Strategy).
- Include only items authored by
- Evaluate each comment one by one.
Per-Comment Decision
For every coderabbitai comment, decide fix or ignore.
- Treat the comment as a hypothesis, not a fact.
- Validate against the actual code, PR goals, project conventions, tests, and runtime behavior.
- Ignore if the concern is hallucinated, out of scope, already addressed, or would degrade correctness/design.
- Fix if the concern is valid and improves correctness, safety, maintainability, or clarity in this PR.
If Decision Is fix
- Implement the minimal correct change.
- Run focused verification (tests/lint/typecheck) for the impacted area.
- Commit immediately with a conventional commit title only (no body), for example:
git commit -m "fix: handle nil input in session parser"
- Prefer one commit per accepted concern for clean auditability.
- Keep commits local until the current batch of new comments is fully processed.
If Decision Is ignore
- Record a short rationale in your working notes so future cycles do not re-litigate the same point.
- If helpful, leave a concise PR reply explaining why no change is needed.
End of Batch
After all comments in the current batch are processed:
- Push branch updates once for the whole batch:
git push- Do not push after every single commit.
- If the batch produced no new commit, do not push just to poll.
- Update
last_checked_atto the most recent processed CodeRabbit item. - Wait for CodeRabbit to re-review automatically; do not post trigger comments unless explicitly requested.
- Return to waiting for the next cycle.
Wait Strategy
- Poll for new CodeRabbit feedback on an interval (for example 60-120 seconds).
- Use the
timeoutCLI to bound each wait window when needed, then continue polling:- Example pattern:
timeout 10m <poll-command>
- Example pattern:
- Continue iterating until exit conditions are met.
Exit Conditions
Stop the loop only when both are true:
- The latest CodeRabbit review state is
APPROVED. - There are no newer unresolved
coderabbitaicomments after the approval.
Then report:
- Which comments were fixed and corresponding commit titles.
- Which comments were ignored and the rationale for each.
Установить babysit-pdq-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл babysit-pdq-pr?
Babysit PR review cycles for PDQ organization repositories only. Use only when the user explicitly asks to run this skill (for example, "use babysit-pdq-pr"). Monitor a PR for new feedback from `coderabbitai`, evaluate each concern for validity, fix only valid issues with conventional commits, push, and repeat until CodeRabbit approves.
Как установить скилл babysit-pdq-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл babysit-pdq-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub