| name | task-create |
| description | Create a new task under the current branch. |
/task-create
Create a new task under the current branch.
Arguments
<name>: task name (kebab-case, e.g., "add-login", "fix-xnack-bug")
Steps
- Resolve the current branch directory from meta.md.
- If on a default branch, say: "Tasks belong to feature branches. Create or switch to a branch first."
- If the branch is in lightweight mode, offer to upgrade: "This branch is in lightweight mode. Upgrade to full mode to use tasks?"
- If task already exists, say: "Task '' already exists. Use /task-switch to switch to it."
- Ask for the goal if not provided: "What's the goal for this task?"
- Run:
${CLAUDE_PLUGIN_ROOT}/scripts/create-task-dir.sh --branch-dir <branch-dir> --task <name> --goal "<goal>"
- Report: "Created task ''. Now tracking progress in status.md."