babysit
Что он делает
Этот агент следит за запросом на слияние (pull request), пока он не будет готов к слиянию. Он отслеживает комментарии, ревью и автоматические проверки, чтобы убедиться, что все вопросы решены.
Когда использовать
- ✓Когда вы хотите, чтобы кто-то отслеживал запрос на слияние вместо вас.
- ✓Если нужно убедиться, что на все комментарии и ревью в запросе на слияние ответили.
- ✓Чтобы убедиться, что автоматические проверки запроса пройдены перед слиянием.
Ссылка на скилл
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/babysit/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Следите за этим запросом на слияние, пока он не будет готов к слиянию.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент регулярно проверяет статус запроса на слияние, комментарии и ревью. Он продолжает наблюдение, пока все замечания не будут решены и проверки не пройдут.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Babysit PR
Stay with the PR until it is actually clean. Do not stop after one check pass if comments or review threads are still unresolved.
Workflow
- Identify the PR number, branch, and base branch.
- Confirm the PR is not draft and inspect mergeability, checks, review decision, comments, and review threads.
- Watch pending checks until they finish. Poll at a practical interval, usually 30-60 seconds unless the user asks for a different cadence.
- Read new comments and unresolved review threads. Treat bot summaries as useful, but verify actionable findings against the code.
- Fix real issues in focused commits, run relevant tests/builds, push, and return to step 2.
- Resolve stale review threads only after verifying the code or generated artifact now addresses the comment.
- Stop only when checks are passing or intentionally skipped, review decision is acceptable, no actionable comments remain, and no unresolved review threads remain.
GitHub CLI Checks
Use gh pr view for the coarse status:
gh pr view <number> --json \
number,state,isDraft,mergeable,mergeStateStatus,reviewDecision,headRefOid,statusCheckRollup,url
Resolve the repository owner/name before using GraphQL:
repo_json=$(gh repo view --json owner,name)
owner=$(jq -r '.owner.login // .owner.name' <<<"$repo_json")
repo=$(jq -r '.name' <<<"$repo_json")
Use GraphQL for unresolved review threads. Include pageInfo; omit cursor on the first page, then pass the previous endCursor with -f cursor="$cursor" while hasNextPage is true.
gh api graphql \
-f query='query($owner:String!,$repo:String!,$number:Int!,$cursor:String){repository(owner:$owner,name:$repo){pullRequest(number:$number){reviewThreads(first:100,after:$cursor){pageInfo{hasNextPage endCursor}nodes{id,isResolved,isOutdated,path,line,comments(last:1){nodes{author{login},body,createdAt,url}}}}}}}' \
-f owner="$owner" -f repo="$repo" -F number=<number>
Use this loop when a PR may have many review threads:
thread_query='query($owner:String!,$repo:String!,$number:Int!,$cursor:String){repository(owner:$owner,name:$repo){pullRequest(number:$number){reviewThreads(first:100,after:$cursor){pageInfo{hasNextPage endCursor}nodes{id,isResolved,isOutdated,path,line,comments(last:1){nodes{author{login},body,createdAt,url}}}}}}}'
cursor_args=()
while :; do
page=$(gh api graphql -f query="$thread_query" -f owner="$owner" -f repo="$repo" -F number=<number> "${cursor_args[@]}")
printf '%s\n' "$page" | jq -r '.data.repository.pullRequest.reviewThreads.nodes[]
| select(.isResolved==false)
| [.id,.path,(.line//""),(.isOutdated|tostring),(.comments.nodes[-1].author.login//""),(.comments.nodes[-1].body|gsub("\n";" ")|.[0:240])]
| @tsv'
jq -e '.data.repository.pullRequest.reviewThreads.pageInfo.hasNextPage' >/dev/null <<<"$page" || break
cursor=$(jq -r '.data.repository.pullRequest.reviewThreads.pageInfo.endCursor' <<<"$page")
cursor_args=(-f cursor="$cursor")
done
Filter unresolved threads with jq:
jq -r '.data.repository.pullRequest.reviewThreads.nodes[]
| select(.isResolved==false)
| [.id,.path,(.line//""),(.isOutdated|tostring),(.comments.nodes[-1].author.login//""),(.comments.nodes[-1].body|gsub("\n";" ")|.[0:240])]
| @tsv'
Resolve a stale thread only when the fix is verified:
gh api graphql \
-f query='mutation($threadId:ID!){resolveReviewThread(input:{threadId:$threadId}){thread{id,isResolved}}}' \
-f threadId=<thread-id>
Operating Rules
- Keep the watcher running while long checks are pending.
- If a generated file is part of the distribution, verify the source and generated artifact agree before resolving comments.
- If a bot reports an issue against stale code, confirm whether the thread is outdated or addressed in the latest head.
- Before final reporting, do one fresh sweep of PR status, unresolved threads, recent comments, and local
git status. - Report concrete evidence: latest commit SHA, check names and results, unresolved thread count, tests run, and any dirty local files left untouched.
Частые вопросы
Что такое запрос на слияние?
Это способ предложить изменения в коде проекта. Прежде чем добавить их в основной проект, другие участники их просматривают.
Что такое «автоматические проверки» (CI)?
Это проверки, которые компьютер запускает автоматически, чтобы убедиться, что новый код не сломал проект.
Будет ли агент сам исправлять проблемы?
Агент отслеживает проблемы и сообщает о них, но исправлять их обычно должен человек.
Подробности
Оригинальное описание автора
Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.
repo: thedotmack/claude-mem
Популярность
- Звёзды на GitHub
- 101k
- Место в рейтинге
- #1267
- Лицензия
- Apache-2.0
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
Agent Cost Report
101kАгент составляет подробные отчёты о расходах на свою работу: сколько ушло на токены и сервисы.
claude-mem-install
101kПомогает агенту настроить Claude-Mem в разных окружениях с локальными или удалёнными воркерами и наблюдением.
mem-search
101kАгент ищет в прошлых воспоминаниях, чтобы вспомнить прежние решения или работу из старых сессий.
host-observer
101kПомогает агенту отвечать на задачи наблюдателя Claude-Mem только «skip_summary» или полным XML-наблюдением.
Похожие скиллы
knowledge-capture
394kУчит агента сохранять решения, предпочтения и ключевые факты в хранилище Knowledge короткими заметками с указанием источника.
knowledge-claim-consolidation
394kПомогает агенту навести порядок в хранилище Knowledge: объединить дубликаты, перенести утверждения на нужные страницы и убрать устаревшие.
knowledge-correct
394kПозволяет агенту исправить или отозвать конкретное сохраненное утверждение или страницу Knowledge по вашей просьбе и вести запись изменений.