Skip to content

chore(skills): teach babysit about cubic, not just Greptile - #7372

Merged
waleedlatif1 merged 2 commits into
stagingfrom
chore/babysit-skill-cubic
Sep 1, 2026
Merged

chore(skills): teach babysit about cubic, not just Greptile#7372
waleedlatif1 merged 2 commits into
stagingfrom
chore/babysit-skill-cubic

Conversation

@icecrasher321

Copy link
Copy Markdown
Collaborator

The babysit loop only re-triggered @greptile after a push. Two bots review this repo, so a round would end with Greptile at 5/5 and cubic's threads still open against an earlier commit — its findings never re-checked against the fix. Hit this live on #7370.

What the skill now knows

Greptile (greptile-apps) cubic (cubic-dev-ai)
Verdict Confidence Score: X/5 no score — inline threads only
Summary comment edited in place across rounds fresh review per run
Re-trigger @greptile @cubic-dev-ai review this PR

Four things that were easy to get wrong:

  • @cubic does not work. The documented wording is @cubic-dev-ai review this PR.
  • Two separate comments. A combined one does not reliably trigger both.
  • Confirm before waiting. gh pr checks must show both as pending; one still showing pass from the previous round means its trigger never landed. A failed trigger is otherwise indistinguishable from a reviewer that hasn't started.
  • cubic reviews the commit that was HEAD when its run started, so a thread can describe code the next commit already fixed. Check current HEAD before treating a cubic finding as real — a stale round is a reply-and-resolve, not a fix.

CI is now a stop condition

"Clean" was two conditions (Greptile 5/5, zero open threads) and is now three, adding: no failing required check. A red check is not clean regardless of what either reviewer says, and the lint/audit jobs routinely catch what a local run misses — on #7370 they caught a hand-written instanceof Error ternary and stale generated metadata that every local check passed over.

Docs-only change to .agents/skills/babysit/SKILL.md; sync-skills.ts reports all 40 skills in sync.

🤖 Generated with Claude Code

The loop only re-triggered `@greptile` after a push. Two bots review this repo,
so a round would end with Greptile at 5/5 and cubic's threads still open against
an earlier commit, their findings never re-checked against the fix.

Adds what distinguishes them: cubic has no score and reports only inline
threads, posts a fresh review per run rather than editing one comment in place,
answers to `@cubic-dev-ai review this PR` rather than `@cubic`, and reviews the
commit that was HEAD when its run started — so a stale thread is a
reply-and-resolve, not a fix.

Both are now re-triggered as separate comments and confirmed `pending` before
the loop waits, since a trigger that silently failed is indistinguishable from a
reviewer that has not started.

Also promotes CI to a stop condition. A red required check is not clean no
matter what either reviewer says, and the lint and audit jobs routinely catch
what a local run does not.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 1, 2026 9:53pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The babysit skill now coordinates Greptile and cubic review rounds and requires all CI checks to finish successfully before declaring a PR clean.

  • Documents each review bot’s trigger and behavior.
  • Re-triggers and confirms both reviewers after every push.
  • Treats failing or pending CI checks as non-clean states.
  • Clarifies correct review-thread author attribution.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
.agents/skills/babysit/SKILL.md Documents the two-reviewer loop and fully addresses the previously reported pending-check and thread-author issues.

Reviews (2): Last reviewed commit: "chore(skills): treat a pending check as ..." | Re-trigger Greptile

Comment thread .agents/skills/babysit/SKILL.md Outdated
Comment thread .agents/skills/babysit/SKILL.md Outdated
Two defects in the round this adds, both caught in review.

The stop condition tested only for a failing check, so a check still running
when both reviewers finished counted as clean and the loop reported the PR
ready before CI had its say. It now requires every check to have finished and
passed, and sends a pending one back to the wait step.

The thread-attribution note pointed at `author.login` per thread, but
`PullRequestReviewThread` has no author field — GitHub rejects the query with
`Field 'author' doesn't exist on type 'PullRequestReviewThread'`. Identity
lives on the comments, so it now names the real path and says not to lift the
field to the thread level.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@icecrasher321

Copy link
Copy Markdown
Collaborator Author

@greptile

@icecrasher321

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@icecrasher321 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Heads up: you’re close to your included review allowance. Set a flex budget so reviews don’t pause.

Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 1c2f708 into staging Sep 1, 2026
6 checks passed
@waleedlatif1
waleedlatif1 deleted the chore/babysit-skill-cubic branch September 1, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants