add-task
Add Task
Create a new task file using the taskmd add CLI command.
Instructions
The user's task description is in $ARGUMENTS.
-
Parse the user's input from
$ARGUMENTSto extract:- The task title (required)
- An optional template name (e.g. "bug", "feature", "chore", or a custom template)
- Any optional flags:
--priority,--effort,--tags,--group,--depends-on,--parent,--owner,--slug,--phase
-
Choose the group based on the task's domain (pass with
--group):cli— CLI commands, Go backend, terminal featuresweb— Web frontend, UI, React components- Omit
--groupfor cross-cutting, infrastructure, documentation, or unclear domain
-
Run
taskmd addwith the appropriate flags:# Basic task taskmd add "Fix the login bug" --group cli # With a template taskmd add "Login fails on Safari" --template bug --group cli # With extra flags taskmd add "Dark mode support" --template feature --priority high --tags ui,frontend --group web # With a custom slug (overrides auto-generated slug from title) taskmd add "Fix the login bug" --slug fix-login --group cli # With a phase (must match a phase id from .taskmd.yaml) taskmd add "Add phase filtering" --phase core-cli --group cliWhen the user mentions a phase, milestone, or sprint, check
.taskmd.yamlfor configuredphasesand use the matching phaseidwith--phase. If the phase doesn't exist yet, add it to.taskmd.yamlfirst:# in .taskmd.yaml phases: - id: v2-launch name: "V2 Launch" description: "Features for the v2.0 release" due: 2026-06-01 # optionalEach phase needs an
id(referenced by tasks),name(display label), and optionallydescriptionandduedate.Available templates can be listed with
taskmd templates list. Built-in templates includebug,feature, andchore. Projects may define custom templates in.taskmd/templates/. -
Fill in the task content: Read the created file and replace placeholder content (HTML comments like
<!-- ... -->,TODO,1. ...) with real content derived from the user's description in$ARGUMENTS. Fill in:- The Objective section with a clear description of the goal
- The Tasks section with specific, actionable subtasks
- The Acceptance Criteria with concrete, verifiable criteria
- Any template-specific sections (e.g. "Steps to Reproduce", "Expected Behavior" for bug templates)
Use your understanding of the user's request to write meaningful content — don't leave placeholders.
-
Validate by running
taskmd validateto ensure the task file is valid. If validation fails, fix the issues. -
Confirm the created file path and ID to the user.
More from driangle/taskmd
complete-task
Mark a task as completed. Use when the user wants to mark a task as done or complete.
25do-task
Look up a task by ID or name and start working on it. Use when the user wants to pick up and execute a task.
24import-todos
Discover TODO/FIXME comments in the codebase and convert selected ones into task files. Use when the user wants to turn code TODOs into tracked tasks.
22next-task
Get the next recommended task to work on. Use when the user asks what to work on next or needs a task assignment.
21get-task
Get details of a specific task by ID or name. Use when the user wants to view or look up a task.
20validate-tasks
Validate task files for format and convention errors. Use when the user wants to check their task files.
19