archive
File a finished shift into its own archive folder, laid out like the live site, so the live…
Leave the plan room and name the next step toward building what was planned.
$ npx -y skills add orwa-mahmoud/nightshift --skill plan-exit --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/plan-exitContext preview
The summary Claude sees to decide when to auto-load this skill.
Leave the plan room and name the next step toward building what was planned.
name: plan-exit description: Leave the plan room and name the next step toward building what was planned. disable-model-invocation: true license: MIT
The owner typed this command to leave the plan room. Typing it is what closes the room: the host's prompt hook removes the room's marker before this skill runs. This skill removes nothing. It reports whether the room is closed and what comes next.
Resolve the installed plugin root to an absolute `$NIGHTSHIFT_PLUGIN_ROOT` — `${CLAUDE_PLUGIN_ROOT}` on Claude Code, `$PLUGIN_ROOT` on Codex when set, otherwise the absolute path this skill was attached from (`skills/plan-exit/SKILL.md`). Run every command below through `"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns"` — native Windows: `& "$NIGHTSHIFT_PLUGIN_ROOT\runtime\windows\ns.ps1"` in the PowerShell tool, same verbs — which resolves the host and the workspace; `ns help` lists the verbs, and `ns bind` prints the six resolved facts (`TASK_ROOT`, `NIGHTSHIFT_WORKSPACE`, `NS`, `NIGHTSHIFT_PLUGIN_ROOT`, `HOST`, `SOURCE`); `$NS` below is that `NS`. Never a bare relative path: the working directory persists between calls. Each `$NS/...` path below is where the current layout keeps that file; `ns path <key>` prints where this workspace keeps it, and `ns path --list` names every key.
"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" status
closed and this conversation can build again.
still open. On Codex the hook runs only after it has been reviewed and trusted. Tell the owner the room is still open and give them the terminal exit to run themselves: `"$NIGHTSHIFT_PLUGIN_ROOT/runtime/ns" plan-exit` (native Windows: `& "$NIGHTSHIFT_PLUGIN_ROOT\runtime\windows\ns.ps1" plan-exit`), with the plugin root written out in full. Never run it yourself: the hooks refuse it, and the exit is the owner's.
Read it off the same status output: the `Items:` line (`open=N`) and the `staged` fact (`drafts=N`). Do not count boxes yourself.
and Cursor, `$nightshift:start` on Codex. Start offers the staged items to promote and begins the shift.
move the planned items into the punch list themselves before starting.
Begin no work in this skill. Building starts when the owner asks for it or starts a shift.
Give the agent a shift. Come back to work you can review. Nightshift gives Claude Code, OpenAI Codex, and Cursor a durable work contract for long coding runs. Bring a task list, choose a ready-made shift, or give your agent an objective and hours to work.
Repo: orwa-mahmoud/claude-nightshift
File a finished shift into its own archive folder, laid out like the live site, so the live…
Read-only diagnosis of the workspace, rules, markers, lease, watchman and deadline, with…
Compose a shift from the ready catalog under one time budget, guided or automatic, reviewed…
Stage explicitly selected GitHub issues onto the drafting table as quoted source; never…
Work a punch list to completion autonomously — overnight, through a todo list, or until a…
Open the plan room: explore the code and design the work with the owner, building nothing…