| name | new-task |
| description | Start work on a GitHub issue the right way - read it, branch from updated main with the correct prefix, move the board card to In Progress. Use when the user types /new-task <issue-number> or asks to start or pick up an issue. |
Start work on an issue
Argument: the issue number (e.g. /new-task 3). If missing, list open issues in the current milestone (gh issue list --milestone "v0.1 - Engine core") and ask which one to pick.
Steps
-
Read the issue: gh issue view <N>. If it does not exist or is already closed, stop and report. Summarize scope and acceptance criteria back to the user — they become the work checklist.
-
Guard against duplicates: check git worktree list and git branch --list '<prefix>/<slug>'. If a worktree or branch for this issue already exists, switch into it and report — never create a second one for the same issue.
-
Create a worktree from updated main — one goal, one worktree (see CLAUDE.md). Never check the branch out in the main clone; parallel agents must never share a working tree:
git fetch origin
git worktree add -b <prefix>/<short-kebab-slug> ../quantick-worktrees/<prefix>-<short-kebab-slug> origin/main
Then work from inside ../quantick-worktrees/<prefix>-<short-kebab-slug>.
Prefix from the issue's labels: bug or type:fix → fix/, type:docs → docs/, everything else → feat/. Slug: short kebab-case from the issue title.
-
Move the board card to In Progress (project "quantick roadmap"):
ITEM=$(gh project item-list 1 --owner milocaetano --format json \
--jq '.items[] | select(.content.number==<N>) | .id')
gh project item-edit --id "$ITEM" --project-id PVT_kwHOA0fkv84BeK9c \
--field-id PVTSSF_lAHOA0fkv84BeK9czhYnKUg --single-select-option-id 47fc9ee4
-
Report: branch name, worktree path, card moved, and the acceptance criteria as a checklist. For area:engine issues, remind: test-first — fixture trades and expected bars are written before the implementation.
Board reference (project 1)
- Project ID:
PVT_kwHOA0fkv84BeK9c
- Status field ID:
PVTSSF_lAHOA0fkv84BeK9czhYnKUg
- Status options: Todo
f75ad846 · In Progress 47fc9ee4 · Done 98236657