overnight
Skill0 starsChanged 4 months agoMITView on GitHub
Kick off an unattended overnight implementation run with rate-limit protection. Use when the user invokes /overnight [task], or says "run this overnight" / "work on this while I sleep". Pre-flights weekly quota, arms the stall watcher, then executes the task autonomously; the limit-guard hook handles 5h parking automatically.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- Celorus/celorus-plugintheir own version, first seen Nov 6, 2026
- Kooooojun/skillstheir own version, first seen Oct 25, 2026
- emanueledenaro/claude-skillstheir own version, first seen Oct 15, 2026
- Cleveland-RD/hivehousetheir own version, first seen Oct 13, 2026
- jdurey/skillstheir own version, first seen Jul 19, 2026
- david-vrba/claude-power-skillstheir own version, first seen Jun 27, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- Cleveland-RD/hivehouse★ 46same name
- david-vrba/claude-power-skills★ 4same name
- Kooooojun/skills★ 1same name
- Celorus/celorus-plugin★ 0same name
- choism4/overnight-skill★ 0same name
- emanueledenaro/claude-skills★ 0same name
- Evil-Bane/argus★ 0same name
- jdurey/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- commit-pushSkill
- design-modeSkill
- md2pdfSkill
- overnight-parkSkill
- rename-to-dirSkill
- screenshotSkill
- skillspectorSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
WAIT for the answer. This is the only permitted question.
- Distinctive: line 31
No questions mid-run. Make reasonable calls.
- Distinctive: line 42
Verify as you go (build/test) — morning-you reviewing a broken tree is the failure mode.
- Distinctive: line 109
Never park preemptively without an injection.
- Very specific: line 120
Write the morning summary in chat, built from the ledger's final state: what was done, judgment calls made, gate findings (fixed and any …
“Common” is measured: kept by at least 6 in 10 of the 7 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.
Files
Overnight Run Kickoff
Arms the overnight protection stack, then executes the given task autonomously until done. The user is leaving — after kickoff, assume nobody answers questions until morning.
Steps
- Pre-flight quota check — read
~/.claude/usage-cache.json:- 7d > 60%: warn in chat: "7d at
<X>% — this run may not fit in the remaining weekly quota. Proceed?" The user is still present at kickoff — WAIT for the answer. This is the only permitted question. - 5h ≥ 85% already: recommend waiting for the 5h reset (state the time) before starting; ask proceed/wait.
- Cache missing/stale (>10 min): note it, proceed anyway (statusline will refresh it as soon as work starts).
- 7d > 60%: warn in chat: "7d at
- Arm the stall watcher — session-scoped, single Bash call:
Writes the 3-line armed file (epoch / lead pid / run cwd) that lets the watcher's hard-death branch revive a crashed lead instead of only alerting, and clears this session's stale alert/revive flags.~/.claude/scripts/arm-overnight.sh - Restate the task in 3-6 bullets (goal, definition of done, planned
approach). Then execute autonomously:
- No questions mid-run. Make reasonable calls; log each judgment call in a running "morning review" list to include in the final summary.
- A message with no tool call ends the run. Nothing re-invokes you until the stall watcher texts the user. Opus/Sonnet 5.5 end turns early in four recognizable ways, and none is allowed here: (1) a progress summary that announces the next step instead of taking it; (2) an offer to continue "unless you'd prefer otherwise"; (3) a list of decisions for the user when none of them blocks the remaining work; (4) deciding a milestone or a long turn is a good place to report. Status notes are fine, but put them in the same message as the next tool call. The only stops are step 5 (done) and step 6 (blocked).
- Verify as you go (build/test) — morning-you reviewing a broken tree is the failure mode.
- Hard gate: do not mark any item done until it's verified, not just implemented. "Verified" = tests pass (parity tests too, if JS/Python both exist) AND, where the change has a runtime surface, behavior is actually exercised (Playwright, hardware write, on-device run) — not just typecheck/build green. If a spec item can't be verified this way (blocked, no test surface), say so explicitly in the morning summary instead of marking it done.
- Open the run ledger before the first delegated dispatch —
docs/overnight-gates/ledger.md, schema in~/.claude/skills/overnight/gates.md. Baseline commit at kickoff, one row per atomic step, append-only attempt log. Reconcile it againstgit statusandgit logafter any park, compaction, or restart before dispatching anything — a stale VERIFIED row ships broken work, which is worse than a stale PENDING that merely gets redone. - Every implementation dispatch declares its WRITE SET — the exact files that agent may touch — and the ticket says so. Overlapping write sets (including manifests, lockfiles, and generated project files) never run in parallel: serialize, or give each a worktree. This is the preventive form of non-negotiable 2 below.
- Every implementation brief ends with this paragraph, verbatim. Sonnet
5.5 adds tests, docs, and small supporting files nobody asked for (at
every effort level), which silently breaks the declared write set; at
lower effort it can also stop to check in before the work is done, or
report a change done without running a check. Nobody answers a
subagent's check-in overnight, so an early stop is a lost step.
Keep working until everything in this brief is done. Stop early only if you can't go on without information you don't have, or before a risky or irreversible step; then say exactly what is blocking you. When the work in this brief is done and checked, stop and report. Don't add features, tests, files, docs or refactors the brief didn't ask for, and touch nothing outside your write set; if you think one would help, say so in your report instead. When you change code that can be run, built, or type-checked, run a real check that exercises the change before reporting it done: the project's tests, type-checker, or build, or the changed command itself. A syntax-only check, or a check command that failed to start, does not count. If only the project's declared dependencies are missing, install them with its own package manager and lockfile, never via sudo or the system package manager. If no real check can run, say which one you did not run and why instead of reporting the change as done.
- Dispatch subagents with an explicit
modelparam, always — see~/.claude/skills/overnight/gates.mdfor the routing table. Never omitmodelon a subagent call: omitting it inherits this session's model, and if this run was kicked off as opus/fable (common for lead coordination quality on long unattended runs), every grep/locate/gate call would silently inherit that premium tier too. Route by task — haiku for locate/grep, sonnet for implementation and gates, opus/fable reserved for subtasks that genuinely need lead-tier reasoning — not by what the lead happens to be running as. - Run quality gates at each atomic-step checkpoint, not on every single
edit and not skipped entirely — see
~/.claude/skills/overnight/gates.mdfor the trigger rules (which gate fires on which kind of diff) and how to dispatch them (plain parallelAgentcalls, never theWorkflowtool — see gates.md for why). Gate findings get fixed inline before the step is marked done; that's part of "verified," not a separate pass. - One of those gates asks a different question than the rest. The
best-practices, security, and a11y gates grade the diff; all three pass
a clean, well-written implementation of the wrong thing. The
task-conformance gate (
task-conformance-verifier,model: "sonnet") is handed the original task text verbatim — never your restatement, never the worker's account — and grades the result against what was actually asked. ItsNot checkedlist is unverified territory: an item resting on one of those lines does not get marked done.
- Parking is not your job — the limit-guard hook injects LIMIT GUARD messages; when one appears, follow ~/.claude/skills/overnight-park/SKILL.md. Never park preemptively without an injection.
- On completion:
- Sweep for orphaned subagents FIRST:
~/.claude/scripts/orphan-agents.sh 15, andTaskStopeach one it names. A named subagent that delivered its result by SendMessage does not exit — it parks awaiting a reply, and the task panel keeps counting wall-clock at it. On 2026-08-06 six sat that way for over four hours. Do this BEFORE writing the summary, because orphans and lost verdicts have the same cause: any row still reading "in flight" against a gate that actually finished is unverified, not verified. Seegates.md. - iMessage:
~/.claude/scripts/imessage-self.sh "✅ Overnight task done: <one-line summary>" - Disarm (session-scoped):
SID="${CLAUDE_CODE_SESSION_ID:-main}"; rm -f ~/.claude/overnight-armed-"$SID" ~/.claude/.stall-alerted-"$SID" ~/.claude/.revive-attempted-"$SID" - Write the morning summary in chat, built from the ledger's final state:
what was done, judgment calls made, gate findings (fixed and any
explicitly skipped-with-reason), every escalation taken, every
task-conformance
Not checkeditem still outstanding, and anything needing review. Then write the session log per house rules.
- Sweep for orphaned subagents FIRST:
- If genuinely blocked (missing info only the user has, unrecoverable
error): iMessage
⚠️ Overnight run blocked: <why>, disarm as in step 5, write a summary of progress + the blocker, stop. Do not spin retrying the same failure all night.
Non-negotiables
Each of these cost real time in the Rhapsode V2 M2 run (2026-07-30): roughly 1h45m of wall clock lost to orchestration, none of it to the code. They are listed as rules rather than advice because "be more careful" demonstrably did not work — the issue-closing failure below was diagnosed, written up in memory, and then reproduced by the same session hours later.
- Background work and its wake mechanism ship in the SAME message.
nohup … &followed by "I'll poll" is not a plan; nothing re-invokes you. Three ~25-minute stalls came from exactly this, each surfacing to the user as a stall-watcher text rather than a result. Arm aMonitor(or arun_in_backgroundwaiter that EXITS on completion) in the same response that starts the work. Filter on failure signatures too, not just success — a success-only filter is silent through a crash, and silence looks identical to "still running." - Gate a static tree.
xcodegen generateis step 1, so anything edited after it was never built. Confirm no agent is mid-edit andgit statusis stable before starting, and do not edit while a gate runs. A run that reported ALL GREEN having never built a new test file had to be discarded. Declared write sets (step 3) are the preventive half of this rule; this check is the detective half — keep both, they fail differently. - Never run two gates at once, and never gate-chain with a
pgrepguard — a wrapper whose own argv contains the script name matches itself, waits forever, then releases into a run already in flight.verify.shnow takes a real lock and exits 3 rather than racing; do not defeat it. - A GREEN verdict is not evidence that a test ran. Confirm new tests
executed BY NAME (
gate-metrics.csv, orxcrun xcresulttool get test-results tests). A full gate withABS_FIXTURE_URLunset skips both UI smokes;verify.shnow says PARTIAL GREEN, but check the tier you actually ran. - Close issues at each milestone commit, not in an end-of-run sweep.
git log -1 --pretty=%B <sha> | grep -oE "Refs #.*", thengh issue comment N --body-file <f>andgh issue close N(--commentgets blocked; the house rule forbids--body). Leave open anything with residual scope or a pending product decision, and say why in the comment — "closed" should mean "nothing left here," not "I committed something." - Corroborate a LIMIT GUARD before acting on it. The hook faithfully
reports
~/.claude/usage-cache.json, but the cache itself can be wrong — one injection claimed 88% weekly against an actual 1%, and acting on it produced a spurious park and a false iMessage to the user. Read the cache, sanity-check 5h against 7d for coherence, and never send a user-visible message on a single unverified reading. - Verify a claim before asserting it. Two false accusations against the tooling in one run traced to a case-sensitive grep and a CSV query that filtered to attempt 1 only. When agents contradict a brief, they have been right every time so far — the code is the reliable source, the brief is not.
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
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.

