| name | doey-instant-task |
| description | Quick task creation without planning — create and dispatch immediately. Usage: /doey-instant-task <goal> |
- Current tasks: !
doey task list 2>/dev/null || echo "No tasks"
Worktrees + Branches Are Forbidden By Default
Never suggest /doey-worktree, branch creation, or worktree flow when creating or describing the task. All commits go to the session's starting branch (typically main). If — and only if — the user's literal goal text contains the word "worktree", you may surface /doey-worktree as the explicit opt-in path.
Create and dispatch a task immediately from a natural-language goal. No planning step. Goal from ARGUMENTS (if empty, use AskUserQuestion to ask, then stop).
For complex multi-step work, suggest /doey-planned-task instead.
1. Classify
Determine type and priority from the goal:
- Type: feature, bugfix, refactor, research, audit, docs, infrastructure
- Priority: P0 (critical), P1 (high), P2 (normal), P3 (low)
Infer from keywords: "fix"/"bug"/"broken" → bugfix, "add"/"new"/"create" → feature, "clean"/"simplify" → refactor, "investigate"/"explore" → research.
2. Create Task
TASK_ID=$(doey task create --title "TITLE" --type "TYPE" --description "DESCRIPTION")
echo "Created task #${TASK_ID}"
For tasks with obvious sub-parts, add subtasks:
doey task subtask add --task-id "$TASK_ID" --description "Subtask title"
3. Dispatch to Taskmaster
Send message to Taskmaster for routing:
RD=$(tmux show-environment DOEY_RUNTIME 2>/dev/null | cut -d= -f2-)
TASKMASTER_PANE=$(grep '^TASKMASTER_PANE=' "${RD}/session.env" 2>/dev/null | cut -d= -f2-)
TASKMASTER_PANE="${TASKMASTER_PANE:-1.0}"
doey msg send --to "${SESSION_NAME}:${TASKMASTER_PANE}" --from "${DOEY_PANE_ID}" \
--subject "new_task" \
--body "TASK_ID: ${TASK_ID}
TITLE: ${TASK_TITLE}
TYPE: ${TASK_TYPE:-feature}
PRIORITY: ${TASK_PRIORITY:-P2}
Instant task — ready for immediate dispatch."
doey msg trigger --pane "${SESSION_NAME}:${TASKMASTER_PANE}"
4. Output
Report: task ID, title, type, priority, dispatch status. Keep it brief — this is the fast path.
Rules
- Use AskUserQuestion if goal is empty — never inline questions
- Use
doey task create — never duplicate
- No planning, no approval gate — create and dispatch immediately
- If goal looks complex (multiple independent tracks, high risk, cross-team), suggest
/doey-planned-task instead
- Zero clarifying questions for obvious goals; one max for ambiguous ones