start

Solid

Begin the shift — preflight, clear stale markers, set a deadline only when it means something, then work the punch list.

AI & Automation 58 stars 2 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
59
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

Start a nightshift. Work in `$CLAUDE_PROJECT_DIR`. ## 1. Preflight - **One shift, one agent — check before touching anything.** Read `.nightshift/.shift-session`. If it records a session that is still alive — line 3's pid exists and `ps -o lstart= -p <pid>` matches line 4, or the id on line 1 appears in `claude agents --json` — an agent is ALREADY working this punch list. Do not start a second one beside it. Tell the owner and hand them the running thread: `claude --resume <id>` for a terminal, `vscode://anthropic.claude-code/open?session=<id>` for the IDE — and stop here; `touch .nightshift/STOP` is the lever if they want that shift ended first. A record whose process is dead is last night's leftover: fall through and clear it below. - **Clear every stale run-control marker first**, before anything writes a new one — last night's leftovers would otherwise end tonight's shift at its first stop attempt. Remove them all if present: `.nightshift/STOP`, `.nightshift/.stall`, `.nightshift/.notified`, `.nightshift/.ended`, `.nightshift/deadline`, `.nightshift/.session-end`, `.nightshift/.shift-session`, `.nightshift/.watchman-tick`, and the `.nightshift/.lock.d/` directory. If `.nightshift/.watchman` holds a live pid, kill it — last night's watchman must not double-arm tonight's. A shift that reached the whistle leaves the deadline behind; keeping it means the gate clocks the next one out immediately, zero items done. - If `.nightshift/work-orders.md` ...

Details

Author
orwa-mahmoud
Repository
orwa-mahmoud/claude-nightshift
Created
1 months ago
Last Updated
yesterday
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category