/nightshift:createfrom nightshift
Creates a new Nightshift shift — a structured batch agent work unit with manager.md and table.csv. Invoked via /nightshift:create.
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.
Create a new Nightshift shift named $ARGUMENTS.
Steps
Resolve the shift name
$ARGUMENTS is non-empty, treat it as the shift name.$ARGUMENTS is empty, use the AskUserQuestion tool (open-ended) to ask:
"What will this shift do? Describe the batch work and I'll derive a name."
create-promo-examples).Validate the name
Check for conflicts
.nightshift/<name>/ already exists, report: "Shift <name> already exists. Use /nightshift:start <name> to resume it."Run the bundled init script
${CLAUDE_SKILL_DIR}/scripts/init-shift.sh <name>
The script does two things, both idempotent:
.nightshift/archive/ exists and creates .nightshift/.gitignore with default ignore patterns if absent. This replaces the work nightshift init used to do at install time — a fresh project never needs a separate "init" step..nightshift/<name>/ containing manager.md with default Shift Configuration and an empty Task Order, plus table.csv empty (no header row — columns are added when tasks are defined).Ask about initial tasks
Use the AskUserQuestion tool to ask:
"Shift
<name>created! Do you want to add a task now?"
Options: "Yes, add a task" / "No, I'll add tasks later"
If yes, guide them through the /nightshift:add-task <name> flow.
Output
## Shift Created: <name>
**Location:** `.nightshift/<name>/`
**Files:** manager.md, table.csv
### Next Steps
- `/nightshift:add-task <name>` — add tasks to the shift
- `/nightshift:update-table <name>` — add items to the table
- `/nightshift:start <name>` — begin execution (after adding tasks and items)
### Environment Variables (Optional)
Create `.nightshift/<name>/.env` to define environment variables for this shift.
Use `{ENV:VAR_NAME}` in task steps to reference them. The `.env` file is gitignored.
Available template variables in task steps:
- `{column_name}` — table item column value
- `{ENV:VAR_NAME}` — environment variable from `.env`
- `{SHIFT:FOLDER}` — shift directory path
- `{SHIFT:NAME}` — shift name
- `{SHIFT:TABLE}` — full path to table.csv
Guardrails
created field — the script handles this.What SKILL.md sets; muted values are Claude Code's defaults
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./archivenightshift:archiveArchive a Nightshift shift by moving its directory to .nightshift/archive/YYYY-MM-DD-<name>/. Use when the user invokes /nightshift:archive./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