Logo vun Babysit Pr

Babysit Pr

Organisatioun
uiverify
babysit-pr

Raise a pull request from the current branch and babysit it to green. Opens the PR, then polls CI (~every 10 min) until every check passes, reacting to each failure by reading the logs, fixing locally, and pushing. When a failure exposes a generalizable lesson it proposes capturing it as a rule (via /add-rule). Does NOT approve or merge. Use when asked to "raise a PR", "open a PR and watch it", "push this and monitor CI", "get this PR green".

Iwwersiicht

Editeuruiverify
Repositoryuiverify
Skill-Nummbabysit-pr
Stären
27
Forks
1
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum uiverify op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Babysit Pr an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/uiverify/uiverify/tree/main/packages/workflow-skills/skills/babysit-pr
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/uiverify/uiverify.git /tmp/uiverify
mkdir -p .claude/skills
cp -r /tmp/uiverify/packages/workflow-skills/skills/babysit-pr .claude/skills/babysit-pr
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Babysit Pr an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Babysit Pr automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Babysit Pr net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

/babysit-pr - raise a PR and drive it to green

Open a pull request from the current branch, then babysit it: poll CI, react to every failure until all checks pass, and hand back a PR that is green and ready for a human to merge. This is the tail of the local agentic loop - it does not approve or merge (that's a deliberate human step for this project), and it does not run the code review (that's review-loop, run before you get here).

Execute directly - do not enter plan mode. Report progress inline as you go.

Step 0 - Preconditions (get to a pushable branch)

  1. Never open a PR from your default branch. If git branch --show-current is your default branch, create a feature branch first (git switch -c <descriptive-slug>) - do not rename the current branch if it's already a feature branch.
  2. Commit any uncommitted work relevant to this change with a clear message, per your commit conventions. Don't sweep unrelated changes into the commit.
  3. Push with upstream tracking (git push -u origin HEAD).
  4. Run the local gate first so you don't burn a CI round on something caught locally - from the repo root, stop on the first failure: your local gate (format, lint, typecheck, test). Fix and re-push before opening the PR. (If you arrived here from /factory, this already passed - a quick lint + typecheck is enough.)

Step 1 - Open the PR

Write the title and body from the actual diff (git diff origin/<default-branch>...HEAD), not from memory. Base defaults to your default branch (or the argument). The body is a tight what + why, not a file-by-file restatement - reviewers and CI read it. End the body with a clear commit message per your commit conventions.

bash
gh pr create --base <default-branch> --title "<type(scope): summary>" --body "<what + why>"

If a PR for this branch already exists (gh pr view --json number succeeds), skip creation and go straight to monitoring - this skill is idempotent, re-running it resumes the babysit.

Step 2 - The babysit loop (poll ~every 10 min, react to failures)

Watch the checks until they all settle. Prefer a backgrounded watch so a long CI run notifies you on completion instead of blocking (foreground sleep is unavailable):

bash
gh pr checks <n> --watch --fail-fast    # run in the background; it exits when checks settle

A backgrounded watch is a notifier, not a wait. It hands control straight back, so you still need exactly one thing that parks the run until the notification lands: a ScheduleWakeup (~600s) or a Monitor until-loop. Pairing a backgrounded watch with one ScheduleWakeup fallback is the correct shape, not a redundancy - the wakeup is the heartbeat that keeps the loop alive if the watch never fires. Say so in the reason ("fallback heartbeat while CI runs; the watch should notify first").

What is actually forbidden is burning tool calls to pass time. Never emit a no-op (echo ., "still waiting") to fill a turn, and never re-poll gh pr checks faster than the CI cadence - ~10 minutes between reactions, not seconds. If you find yourself checking every few seconds, you have no parking mechanism armed; arm one instead of polling. Concretely: one parking mechanism live at a time, and zero tool calls between arming it and being woken.

When it returns, read the outcome (gh pr checks <n>). Three cases:

  • All green → stop. Report the PR is green and ready for the user to merge (§4). Do not merge or approve.
  • Still running after a poll → re-arm the watch. Cadence is ~10 min between reactions; don't hammer gh in a tight loop. If the background watch isn't available, use a ScheduleWakeup / /loop-style ~600s tick to re-check rather than a foreground sleep.
  • A check failed → go to §3, fix it, push, and the watch restarts on the new commit.

A full CI cycle here is expensive and slow - and that makes a second cycle the most expensive thing this skill can trigger, so treat "everything I know I need is in this push" as a precondition, not a nicety: run the full local gate, settle open questions (see factory's guidance on asking about a decision the work surfaced), and fold in known follow-ups before pushing rather than after CI goes green.

Step 3 - React to a failed check

Pull the actual failure - never guess from the check name:

bash
gh run view <run-id> --log-failed          # the failing job's logs
  • Lint / typecheck / unit-test failure: reproduce locally (your local gate), fix at the correct layer per the repo conventions, re-run locally to confirm, commit, push.
  • Visual regression check (if you run one, e.g. UI Verify): a changed-snapshot signal, not necessarily a bug. Triage it by invoking your visual tool's triage skill as the action - for UI Verify that is the triage-visual-changes skill - not by hand-rolling raw review/MCP calls; the skill carries the guardrails that ad-hoc calls skip. Whatever tool you use, hold three disciplines: (1) adjudicate each story baseline-vs-candidate - look at BOTH the baseline and the candidate image and compare, never judge the candidate alone (a change being caused by your diff says nothing about whether the result is correct - a global CSS/theme change can quietly break an unrelated page). (2) Triage stops at the pixels - classify intended vs regression vs flake and attribute the change to the diff, but do NOT assert a code-level mechanism (an animation, a race, a specific CSS cause) unless you have verified it against the actual element and code; a metric that contradicts your proposed mechanism refutes it (a tiny changed-pixel count cannot be a whole-element fade - a missing element is a didn't-render problem, not a frozen frame). Root-causing is a separate step. (3) If the diff is an intended change, accept the baseline so the check clears; if it's a regression you introduced, fix the code and push. Never blanket-accept to make the check pass - that defeats the whole point of the tool. (4) A reviewer's comment on a diff is part of the job, not decoration. A green check does not mean done while a human's note on the build is open: read the comments on every poll (for UI Verify, the comments {unresolved} count on each story, then list_comments), do what they ask, and resolve the thread when it is addressed. UI Verify refuses to accept a story whose note is still open.
  • e2e / integration failure: read the log, reproduce the flow locally (/e2e-verify can drive it), fix, push.
  • Flaky / infra failure (a check that failed for reasons unrelated to the diff): re-run it (gh run rerun <run-id> --failed) once before treating it as real; if it flakes repeatedly, say so rather than silently re-running forever.

After any fix: commit, push, and return to §2 - the fresh CI run is what confirms the fix, the same way review-loop only trusts a clean re-review.

Step 4 - Capture the lesson (propose a rule)

When a CI failure exposed a generalizable mistake - something a rule or a lint guard would have caught before you pushed (an inline route path, a missing route.test.ts, an em dash in shipped copy, a boundary violation) - propose capturing it before you finish:

"CI caught X. That generalizes - want me to /add-rule it so the linter/CLAUDE.md catches it next time?"

Only act on a yes ("adds a rule agreed"). A one-off typo is not a rule; a mistake you (or a future agent) would plausibly repeat is. Hand the confirmed lesson to the /add-rule skill, which decides the enforcement layer and writes the rule + guard.

Step 5 - Report

Report the final state plainly: the PR link, the check trajectory (what failed, what you did, what's green now), any baseline you accepted through the MCP and why, and any rule you proposed. End with the explicit handoff: the PR is green and ready for you to merge - this skill never merges.

Guardrails

  • Never approve or merge. Green + ready-to-merge is the terminal state; the human clicks merge.
  • Never blanket-accept visual baselines to force a check green - triage each diff and accept only genuinely intended changes.
  • Don't loop forever. If the same check fails across ~3 fix attempts with no progress, stop and surface it for a human decision rather than churning CI.
  • Stay on this branch. Don't switch the user's branch/worktree; commit and push to the branch you were invoked on.

Heefeg gestallte Froen

Wat mécht de KI-Skill Babysit Pr?

Raise a pull request from the current branch and babysit it to green. Opens the PR, then polls CI (~every 10 min) until every check passes, reacting to each failure by reading the logs, fixing locally, and pushing. When a failure exposes a generalizable lesson it proposes capturing it as a rule (via /add-rule). Does NOT approve or merge. Use when asked to "raise a PR", "open a PR and watch it", "push this and monitor CI", "get this PR green".

Firwat Babysit Pr op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Babysit Pr besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Babysit Pr an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/uiverify/uiverify/tree/main/packages/workflow-skills/skills/babysit-pr an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Babysit Pr benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Babysit Pr benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Babysit Pr domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Babysit Pr gratis?

Jo. De Skill gëtt vum uiverify ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇