/nightshift:add-taskfrom nightshift
Adds a task definition to an existing Nightshift shift, registering it in manager.md and adding a status column to table.csv. Handles shift resolution, task naming, and conflict checks.
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.
None: SKILL.md is the whole skill.
Add a new task file to shift $ARGUMENTS and update the table with a corresponding status column.
Steps
Resolve the shift
$ARGUMENTS is non-empty, treat it as the shift name..nightshift/ (excluding archive/):
/nightshift:create first." and stop.Get task details
Use the AskUserQuestion tool (open-ended) to ask:
"Describe this task. What should the agent do for each item? Include the tools needed, step-by-step instructions, and how to verify success."
From the response, derive:
create_page, update_spreadsheet). Hyphens break qsv column selectors — never use them.{column_name}, {ENV:VAR}, {SHIFT:FOLDER|NAME|TABLE} template variables as appropriate.Check for task-name conflicts
.nightshift/<shift>/<task-name>.md already exists, report the conflict and ask for a different name.flock -x .nightshift/<shift>/table.csv qsv headers --just-names .nightshift/<shift>/table.csv and confirm the task name is not already a column header.Create the task file
Ask the user (via AskUserQuestion) which optional execution-config fields they want to set. Skip any they don't need:
model — Claude Code model identifier for this task's dev subprocesses (haiku, sonnet, opus, or a full model ID). Omit to use the user's default.working_dir — directory each dev subprocess cds into before running. May reference a table.csv column via {column_name} (most common: {repo_path} paired with a repo_path column). Useful when the task operates on a different repository than the workspace.worktree — true|false. When true, each dev runs inside a fresh git worktree of working_dir on a unique branch. Requires working_dir to also be set. Requires a one-time claude invocation in each target directory to accept Claude Code's workspace-trust dialog.Write .nightshift/<shift>/<task-name>.md. Include only the Configuration fields the user opted into:
## Configuration
- tools: <tool1>, <tool2>
# - model: sonnet
# - working_dir: {repo_path}
# - worktree: true
## Steps
1. <step description>
2. <step description>
## Validation
- <criterion 1>
- <criterion 2>
If the user set worktree: true but did NOT set working_dir, surface a clear error and ask them to either set working_dir or drop worktree: true. The combination is invalid.
Add status column to table.csv
flock -x .nightshift/<shift>/table.csv qsv enum --constant todo --new-column <task-name> .nightshift/<shift>/table.csv > .nightshift/<shift>/table_tmp.csv && mv .nightshift/<shift>/table_tmp.csv .nightshift/<shift>/table.csv
This adds a column with the task name as header, initialized to todo for all existing rows. If the table is empty, only the header is added.
Update manager.md task order
## Task Order currently shows the placeholder (no tasks yet — use ...), replace it with 1. <task-name>.Show result
## Task Added: <task-name>
**Shift:** <shift>
**File:** `.nightshift/<shift>/<task-name>.md`
### Configuration
- tools: <tools>
### Steps
1. ...
### Validation
- ...
Table updated: <N> items now have `<task-name>: todo`
Manager updated: task order now includes `<task-name>`
Guardrails
todo for the new column.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
/archivenightshift:archiveArchive a Nightshift shift by moving its directory to .nightshift/archive/YYYY-MM-DD-<name>/. Use when the user invokes /nightshift:archive./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