- overnight-pr-routine-loop.md 46 lines · 2.7 KB
Overnight PR Routine
Loop Engineering — the
/scheduleverb runs a routine while you are gone. This is the "I don't write code, I write loops, and they write the code while I sleep" pattern: a scheduled routine that lands the fixable PRs overnight.
🎯 Goal
Each night, work the open-PR queue: auto-fix build failures, answer review comments in an isolated worktree, rebase stale branches — and leave anything ambiguous for a human in the morning.
⏱️ Schedule
Trigger: daily (overnight routine, runs while your laptop is closed).
▶️ Run it
/schedule every night, watch my open PRs. For each: auto-fix build failures, answer review comments in a fresh worktree, and rebase what is stale. Leave anything ambiguous or product-sensitive for me. Keep state in git so a crash loses nothing. Post a morning summary.🔁 Iteration steps
- Perceive — list open PRs and their CI/review state.
- Isolate — spin a fresh worktree per PR with
/worktree-init(no cross-contamination). - Act —
git-workflow-managerfixes build failures, addresses review comments, rebases stale branches. - Verify — re-run CI; push only when green; ambiguous items are flagged, never guessed.
- Report — post a morning summary via
slack-notifications; update each PR with/create-pr.
🛑 Stopping condition
Every fixable PR is green and updated; ambiguous/product-sensitive items are flagged for human review (not auto-merged).
💰 Budget & guardrails
A nightly spend ceiling; never auto-merges; isolated worktrees so parallel fixes don't collide; state in git so a crash is recoverable.
🧩 Referenced components
command:git-workflow/worktree-init— isolated workspace per PR.command:git-workflow/create-pr— updates/opens PRs.agent:git/git-workflow-manager— safe rebases, fixes and comment replies.hook:automation/slack-notifications— the morning summary.
💡 Example
You wake up to three PRs rebased and green, two review comments answered with commits, and one PR flagged "needs a product decision" — exactly the one you should look at.
Scanned by NVIDIA SkillSpector
Automated static analysis (no LLM) · v2.12.0 · 2026-10-17
SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them.
No observations.
Learn more about NVIDIA SkillSpector or how components are reviewed.