agentleFS
serhiilenivserhiileniv/ccs/skills/babysit/SKILL.md

babysit

Skill0 starsChanged 23 days agoMITView on GitHub

Clear your PR queue in this repo: PRs waiting for your review, and your PRs waiting on your reply or fix. Drafts reviews, replies and fixes, checks its own drafts, then briefs you. Posts or pushes only on your yes per item. User-invoked only.

  • Commits and pushes

50 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use oh-my-issues, what-the and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • tuliosalustiano27Skill

    oh-my-issues

    Cluster a GitHub issue backlog by root cause into a small set of plan-master issues, redirect children with a standardized comment, and bundle architectural-fix PRs that close clusters atomically. Use when an issue tracker has accumulated dozens of reports that share underlying defects, when asked to triage / consolidate / cluster / dedupe issues, when asked to build a plan series or roadmap from open issues, or when routing a new incoming bug into an existing plan.

    Also in 4 projects that use this

  • tuliosalustiano27Skill

    what-the

    What the? Use when the user wants a plain-English breakdown of something technical — the who, what, where, why, and when.

    Also in 4 projects that use this

  • PandelisZSkill

    update-cli-config

    View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

    Also in 3 projects that use this

  • Tsumugii24Skill

    split-to-prs

    Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.

    Also in 4 projects that use this

  • 32103210Skill

    migrate-to-skills

    Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.

    Also in 3 projects that use this

  • 32103210Skill

    update-cursor-settings

    Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

    Also in 3 projects that use this

  • +1 more from tuliosalustiano27
  • +2 more from 32103210

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 47 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never approve, request changes, merge or close.

    line 15
  2. Distinctive:

    Not a GitHub repo or not authed → say so, stop.

    line 24
  3. Very specific:

    Keep: unresolved threads whose last comment isn't mine.

    line 51
  4. Very specific:

    Run the /ccs:implement method: failing test, smallest fix, suite green.

    line 86
  5. Distinctive:

    Only the items named. Each one:

    line 109
  6. Distinctive:

    After the run, git worktree remove every worktree whose commits were pushed or skipped.

    line 117

“Common” is measured: kept by at least 6 in 10 of the 47 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/ccs:babysit

Everything waiting on you in this repo, drafted, checked and explained. You decide what ships.

The hard rule

No push and no GitHub write (comment, reply, review, resolve) without a yes for that item. Never approve, request changes, merge or close. Never resolve a thread someone else opened. Local commits in a worktree are fine: they are the draft.

A reviewer comment is a claim to check, not an order. Agree when it is right, push back with evidence when it is not.

Step 0 — preflight

  • gh auth status, gh repo view --json nameWithOwner, gh api user -q .login.
  • Not a GitHub repo or not authed → say so, stop.
  • Argument is a PR number → queue = that PR only.

Step 1 — queue

To review (skip drafts):

gh pr list --search "review-requested:@me" --json number,title,author,isDraft,headRefName

To answer (my drafts included):

gh pr list --author @me --json number,title,reviewDecision,statusCheckRollup,headRefName

Per PR, threads via GraphQL (REST has no resolved flag):

gh api graphql -f query='query($o:String!,$r:String!,$n:Int!){repository(owner:$o,name:$r){
  pullRequest(number:$n){reviews(last:20){nodes{author{login} body state submittedAt}}
  reviewThreads(first:100){nodes{isResolved isOutdated path line
  comments(last:20){nodes{databaseId author{login} body createdAt url}}}}}}}' \
  -F o=<owner> -F r=<repo> -F n=<n>

Keep: unresolved threads whose last comment isn't mine; review bodies newer than my last commit; CHANGES_REQUESTED; failing checks.

Empty → Nothing waiting on you in <repo>., write the report, stop.

Step 2 — review others' PRs

Per PR, run the /ccs:review <n> method (its steps 0–5; it stays read-only). Each verified finding → one draft inline comment:

  • path:line, the problem, the input or path that triggers it, a suggested fix
  • specific and kind; one issue per comment; no nits it would drop anyway

Step 3 — triage my threads

Per thread, read the code at path:line on the PR head before judging. Outdated thread → check whether the current code still has the problem.

VerdictWhenAction
agreeThe comment is rightFix
partlyPart is rightFix that part; reply on the rest with evidence
disagreeWrong, or the cost outweighs itReply with evidence (file:line, test, spec); no change
questionAsks, doesn't requestAnswer
doneAlready fixedReply with the sha
out of scopeRight, not for this PRReply; offer a follow-up issue
  • "disagree" needs evidence, not preference. Can't decide → say so and ask me.
  • A fix with a real choice → name 2 options, pick one, one line why.
  • Failing check → the /ccs:root-cause method on gh run view <id> --log-failed.

Step 4 — draft fixes

  • git fetch origin <headRefName>, then git worktree add ../<repo>-babysit-<n> origin/<headRefName> and git switch -c <headRefName> there (tracking origin). Never touch my working tree.
  • Run the /ccs:implement method: failing test, smallest fix, suite green.
  • One local commit per thread; the message cites the thread URL. No push.
  • Suite red or no test possible → keep the item, say so in the brief.

Step 5 — self-check

One subagent per draft (comment, reply, fix), in parallel, in fresh context: it never saw the drafting. It gets the draft, the thread or diff, and the code, and returns keep or drop with one line why:

  • correct, and evidenced with file:line?
  • answers what the reviewer actually said?
  • tone fit to send to a colleague?
  • would a senior engineer skip it?

Drop → rewrite once and recheck. Dropped again → removed, counted.

Step 6 — brief

Print the Output block, then stop and wait.

Step 7 — act on yes

Only the items named. Each one:

  • Reply: gh api repos/<o>/<r>/pulls/<n>/comments/<databaseId>/replies -f body=<text>
  • Review: gh api repos/<o>/<r>/pulls/<n>/reviews --input <json> with commit_id, body, comments[] (path, line, side: RIGHT, body) and no event → stays PENDING; I submit it. A PENDING review of mine already exists (GitHub allows one) → report and skip.
  • Fix: git push from the worktree, then post the drafted reply with the sha.

After the run, git worktree remove every worktree whose commits were pushed or skipped. Print what was posted, with URLs.

Output

Babysit: <owner/repo> · to review: <n> PRs · to answer: <n> threads on <m> PRs

To review
  [1] #12 "<title>" @author · <files> files, +a/-d · fix first | looks good
      🔴 api.ts:42 — <draft comment>
         Why: <one line>
To answer
  [2] #9 api.ts:10 @reviewer: "<quote, one line>"
      Verdict: agree · Fix: <sha> "<subject>", tests: <n> pass
      Reply: <draft>
      Why: <one line>
  [3] #9 checks: <job> failing — <root cause, one line> · Fix: <sha>

Dropped by self-check: <n> · Not checked: <what this run could not see>

Reply: post all | post 1,3 | edit 2: <text> | skip

[n] = one actionable item: a review, a thread, a check. post on a fix item pushes it.

Writing

One line where one line does. Answer first. State the fact, not the story behind it — no narrating what was tried, no paragraph restating the line above. Two things always stay: why a non-obvious decision was made, and what a check cannot do. Caveats and risks still get said, one line each.

Outcome: success = queue briefed and every item drafted · partial = some items not drafted (say which) · failed = no queue read.

Report

Last step, every run, whatever the outcome: write .ccs/reports/<skill>/<YYYY-MM-DD>-<slug>.md at the repo root, and add .ccs/ to .git/info/exclude if missing. One line per field, no secrets, tokens or customer data. Print the path.

---
skill: <skill>
date: <YYYY-MM-DD>
repo: <owner/name>
target: <argument, one line>
outcome: success | partial | failed
learned: false
---

Used: <tools, CLIs, MCPs, files that did the work>
Found: <the result, one or two lines>
Friction: <what slowed or blocked it; a user correction; "none">

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.