goal_add
Create a traceable record in your work plan for each requested task, to-do, handoff, or update; supply a title now and complete other attributes as information emerges.
Instructions
Add a node to the goal graph. Progressive elaboration: only title is required -- omit parent_id to create a root node (a vague node is created status='draft'); fill the rest as reality reveals it. kind: objective|milestone|goal|work_item|relay. owner_role/status/origin are free strings. Trigger: when a user (including a non-technical one) asks you to remember or hand off a piece of work for later ("thêm việc", "thêm task", "todo", "add a task", "add to the board"), create a node here with a valid status (draft is fine if details are vague) — this is how a casual request becomes a durable tracked task. Only call when the request is genuinely about work to track; ignore unrelated casual questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| do | No | One-sentence work order (stored as payload.do) | |
| kind | No | objective|milestone|goal|work_item|relay (default work_item) | |
| size | No | S|M|L|XL | |
| brief | No | Cold-executor brief: all six keys or omit (a partial brief is rejected). A work_item added without one gets a `hint` with the template. | |
| title | Yes | Node title (the only hard requirement) | |
| origin | No | greenfield|leverage|migrate|unknown | |
| status | No | draft|not_started|ready|in_progress|blocked|done|superseded | |
| content | No | Long description (creates a searchable contexts row) | |
| parent_id | No | Parent node id (containment tree; null/omit for a root) | |
| owner_role | No | Role that owns this node (e.g. frontend, backend, design) | |
| project_id | No | Project id (optional) | |
| session_id | No | Your agent session id, recorded on the node's history row | |
| verify_cmd | No | How a leaf is proven done | |
| effort_weeks | No | Estimated effort in weeks | |
| external_ref | No | External tracker ref, e.g. {jira: 'FIP-123'} | |
| target_weeks | No | Milestone target (weeks) |