From nightshift
Archives a Nightshift shift to .nightshift/archive/ with date prefix. Invoked via /nightshift:archive for shift cleanup.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nightshift:archiveThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Archive shift `$ARGUMENTS`.
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).npx claudepluginhub johndaskovsky/nightshift --plugin nightshiftStarts or resumes a Nightshift shift, running autonomous orchestration of tasks from a CSV table with pre-flight checks and manager subagent.
Archives completed Rulebook tasks to a dated archive directory after validation. Cleans up active task lists post-implementation.
Archives completed tasks from TASKS.md to dated archive files when many [x] items clutter the view. Includes dry-run preview and verification checks.