/nightshift:archivefrom nightshift
Archives a Nightshift shift by moving its directory to .nightshift/archive/ with a date prefix. Warns about incomplete tasks before archiving.
Ships in nightshift. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Archive shift $ARGUMENTS.
Steps
Resolve the shift
$ARGUMENTS is non-empty, use it..nightshift/ (excluding archive/); auto-select if exactly one exists, otherwise use AskUserQuestion to pick.Validate the shift exists
Check .nightshift/<shift>/ exists. If not, report the error and stop.
Check for incomplete items
For each task column (from flock -x .nightshift/<shift>/table.csv qsv headers --just-names .nightshift/<shift>/table.csv):
flock -x .nightshift/<shift>/table.csv qsv search --exact done --select <task-column> --invert-match .nightshift/<shift>/table.csv | qsv count
If any non-done items exist, break down by status:
flock -x .nightshift/<shift>/table.csv qsv search --exact todo --select <task-column> .nightshift/<shift>/table.csv | qsv count
flock -x .nightshift/<shift>/table.csv qsv search --exact failed --select <task-column> .nightshift/<shift>/table.csv | qsv count
Warn the user with the breakdown and use AskUserQuestion to confirm:
"Archive anyway?"
Options: "Yes, archive with incomplete items" / "No, cancel". If the user cancels, stop.
Run the bundled archive script
${CLAUDE_SKILL_DIR}/scripts/archive.sh <shift>
The script computes today's date in ISO format and moves the directory atomically. It exits non-zero on collision (.nightshift/archive/YYYY-MM-DD-<shift>/ already exists).
Confirm
## Shift Archived
**Shift:** <shift>
**Location:** `.nightshift/archive/YYYY-MM-DD-<shift>/`
All files preserved (manager.md, table.csv, task files).
Guardrails
YYYY-MM-DD format for the archive prefix..md files).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub johndaskovsky/nightshift --plugin nightshift8 skills in this plugin
/add-tasknightshift:add-taskAdd a task definition to an existing Nightshift shift, registering it in manager.md and adding a status column to table.csv. Use when the user invokes /nightshift:add-task./createnightshift:createCreate a new Nightshift shift — a structured unit of batch agent work — with manager.md and an empty table.csv. Use when the user invokes /nightshift:create./doctornightshift:doctorVerify that Nightshift's required system dependencies (qsv, flock, jq) are installed and on PATH. Use when the user invokes /nightshift:doctor.Other plugins' skills for the same job