| name | done |
| description | Complete the current task: write a summary comment on the Linear issue, mark it Done, and suggest next steps |
| argument-hint | [issue-id] |
Finish Current Task
Complete a task by documenting what was done and updating Linear.
Input
$ARGUMENTS — optional issue ID (e.g., TAO-5). If omitted, look for the In Progress issue in the current project.
Workflow
-
Identify the task:
- If issue ID provided, fetch it
- Otherwise, find the In Progress issue assigned to "me" in the current project
- If multiple In Progress issues exist, list them and ask which one
-
Generate summary:
-
Confirm with user:
- Show the draft comment
- Ask: "确认标记为 Done 吗?"
-
Update Linear:
- Post the summary as a comment on the issue
- Mark the issue as Done
-
Suggest next steps:
- Check remaining Todo issues in the project
- If there are more: "还有 N 个 Todo issue,要继续吗?(
/swf:next)"
- If none: "当前 milestone 的任务都完成了,要规划下一批吗?(
/swf:plan-next)"
- If ADR-worthy decisions were made: "这个任务涉及架构决策,要记录 ADR 吗?(
/swf:adr)"