babysit
यह क्या करती है
यह एजेंट किसी pull request पर तब तक नज़र रखता है जब तक वह merge होने के लिए तैयार न हो जाए। यह comments, reviews और automated checks पर नज़र रखता है ताकि पक्का हो कि सब कुछ सुलझ गया है।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि कोई आपके लिए pull request पर नज़र रखे।
- ✓अगर आपको pull request के सभी comments और reviews का जवाब देना सुनिश्चित करना है।
- ✓merge करने से पहले यह पक्का करने के लिए कि pull request के automated checks पास हो गए हैं।
Skill का लिंक
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/babysit/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस pull request पर तब तक नज़र रखो जब तक यह merge होने के लिए तैयार न हो जाए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह एजेंट नियमित अंतराल पर pull request की स्थिति, comments और reviews चेक करता है। जब तक सारी समस्याएँ हल न हो जाएँ और checks पास न हो जाएँ, तब तक यह निगरानी जारी रखता है।
तकनीकी सामग्री (मूल 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.
अक्सर पूछे जाने वाले सवाल
pull request क्या होता है?
यह किसी code project में बदलाव प्रस्तावित करने का तरीका है। इन बदलावों को मुख्य project में जोड़ने से पहले दूसरे लोग इन्हें review करते हैं।
'automated checks' (CI) क्या होते हैं?
ये वे checks हैं जो कंप्यूटर अपने-आप चलाता है ताकि पक्का हो सके कि नए code से project में कुछ टूटा नहीं है।
क्या एजेंट खुद समस्याएँ ठीक करेगा?
एजेंट समस्याओं पर नज़र रखता है और उन्हें रिपोर्ट करता है, लेकिन असली फिक्स आम तौर पर इंसान को करना पड़ता है।
जानकारी
लेखक का मूल विवरण
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
कमेंट
- …
इस repository की और skills
Agent Cost Report
101kआपके एजेंट की गतिविधियों की विस्तृत लागत रिपोर्ट बनाता है। दिखाता है कि टोकन और सेवाओं पर कितना खर्च हुआ।
claude-mem-install
101kयह आपके एजेंट को अलग-अलग वातावरण में Claude-Mem सेट अप करने में मदद करता है। इसमें लोकल या रिमोट वर्कर में से चुनने और observation कॉन्फ़िगर करने की सुविधा है।
mem-search
101kयह आपके एजेंट को पुरानी memories में खोजने देता है। पिछले सेशन के पुराने समाधान या काम याद करने में यह उपयोगी है।
host-observer
101kयह आपके एजेंट को Claude-Mem observer के काम का जवाब देने में मदद करता है। यह सिर्फ 'skip_summary' या पूरा XML observation ही लौटाता है।
मिलती-जुलती skills
knowledge-capture
394kयह आपके एजेंट को ज़रूरी फ़ैसले, पसंद और मुख्य तथ्य स्रोत के उल्लेख के साथ Knowledge vault में छोटे नोट्स के रूप में सेव करना सिखाती है।
knowledge-claim-consolidation
394kयह आपके एजेंट को डुप्लिकेट claims मिलाकर, उन्हें सही विषय पेज पर ले जाकर और पुराने claims हटाकर Knowledge vault को व्यवस्थित करने देती है।
knowledge-correct
394kयह आपके एजेंट को आपके कहने पर सेव किए गए Knowledge claim या पेज को सुधारने या वापस लेने देती है, और बदलाव का रिकॉर्ड रखती है।