/taskwarrior-plugin:task-done task id (required), commit sha (optional — defaults to HEAD)from taskwarrior-plugin
Closes a Taskwarrior task with a landing commit annotation, optionally closing linked GitHub issues/PRs and draining blueprint tracker entries.
Ships in taskwarrior-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Close a task with full coordination hygiene: annotate with the landing commit, drain the tracker entry, optionally close the GitHub issue.
| Use this skill when... | Use task-add / task-status / task-coordinate instead when... |
|---|---|
| Closing a task whose work has landed in a commit | Filing a brand-new task — use task-add |
Draining a linked blueprint tracker entry to done | Reading current queue state without mutating it — use task-status |
Closing a ghid-linked GitHub issue or commenting on a ghpr PR | Picking the next dispatch candidate from the queue — use task-coordinate |
| Closing many tasks in one pass (queue cleanup, triage sweep) | See Bulk-close patterns — the naive for id in 1 2 3; do task $id done; done loop silently closes the wrong tasks |
task --versionfind . -maxdepth 1 -name '.git' -print -quitgh auth statusGit probes (git remote, git rev-parse --short HEAD,
git branch --show-current) write to stderr in a no-git cwd, and stderr
from a Context backtick aborts the skill before its body runs. HEAD
commit, current branch, and remote-presence checks happen in the body
(Steps 2 and 5) via the Bash tool where 2>/dev/null and exit-code
handling are tolerated.
Parse $ARGUMENTS:
$0 — task ID (required)$1 — commit hash (optional; defaults to HEAD)--no-gh — skip GitHub close/comment even when remote is present--no-tracker — skip blueprint tracker drain--drain-identity — also clear agent / pid / host / branch / worktree UDAs after closing (default keeps them as audit trail)--no-coworker-marker — skip the /git:coworker-check --release stepExecute this workflow:
task "$TASKID" export | jq '.[0]'
Never use task $TASKID info or task $TASKID list — both can exit 1 and
cancel parallel siblings. export | jq returns valid JSON even when the
task is already closed (treat empty as "no such open task" and abort).
Capture: uuid, bpid, bpdoc, ghid, ghpr, tags, description, plus
identity UDAs agent, pid, host, branch, worktree, and start
(if the task was claimed via /taskwarrior:task-claim).
Capture uuid as $TASK_UUID — every mutating call from Step 2 onward
(including the post-close Step 6 query) addresses the task by $TASK_UUID,
never $TASKID (see .claude/rules/task-id-stability.md).
If $1 is unset, read git rev-parse --short HEAD. Confirm the HEAD commit
actually touches work this task covers before annotating — a stale HEAD is
a common footgun.
task "$TASK_UUID" annotate "landed: $COMMIT_SHORT $COMMIT_SUBJECT"
task "$TASK_UUID" done
Annotation first, then done — if close fails (e.g. dependencies), the annotation is still captured.
Taskwarrior auto-stops a +ACTIVE task on done, so an explicit
task stop is not needed. The task transition removes +ACTIVE and
records the duration. If you want to drain the identity UDAs (so the
closed task does not retain the stamp), do so separately after the
close — see Step 4b below.
After the task is closed, optionally clear the identity stamp left by the original claim:
task "$TASK_UUID" modify agent: pid: host: branch: worktree:
Default behaviour is to leave these set on closed tasks — the audit
trail of "who claimed and landed this" is useful in task-status
recently-completed reports. Drain them only when the user explicitly
asks (e.g. compliance / privacy hygiene), or when handing the queue
file off to another team.
If bpdoc is set and points to a valid path, read the file and advance
its status marker in place. Typical patterns by tracker format:
status: in_progress → status: done, append
evidence entry citing the commitUse Edit with a narrow old_string / new_string pair — do not rewrite
the file. When bpdoc references a shared tracker (manifest.json, global
feature-tracker), fall back to reporting "manual tracker update required"
rather than concurrent-write the shared file.
When GitHub mode is active and --no-gh was not passed:
ghid set → offer gh issue close "$GHID" --comment "Closed by $COMMIT_SHORT (branch $BRANCH)"ghpr set → offer gh pr comment "$GHPR" --body "Linked task closed: $COMMIT_SHORT"Always confirm before mutating GitHub state — the user may want to close the issue as part of the PR merge rather than ahead of time.
If the task was +ACTIVE (claimed via /taskwarrior:task-claim), the
matching git-side session marker should be released so destructive ops
in this clone are no longer guarded:
Use SlashCommand to invoke `/git:coworker-check --release`.
Skip when the user has more work in flight on this branch — releasing the marker lifts the cross-agent guard.
Print:
$COMMIT_SHORTdepends: pointed at this one now
free to start (query via task depends:"$TASK_UUID" export | jq). Once
completed, this task's numeric id becomes 0 and may be reassigned to
an unrelated task — a query keyed on the stale $TASKID here would check
dependencies against the wrong task. depends: accepts UUIDs, so
$TASK_UUID is the only safe form for this read.| Context | Command |
|---|---|
| Load task | task "$TASKID" export | jq '.[0]' (capture .uuid as $TASK_UUID) |
| Annotate + close | Two separate calls (hook-friendly), both by $TASK_UUID |
| Blocked children | task depends:"$TASK_UUID" export | jq '.[]' |
| Skip empty-result failures | Always export | jq |
| Step | Command |
|---|---|
| Load | task TASKID export | jq (capture uuid) |
| Annotate | task UUID annotate "msg" |
| Close | task UUID done |
| Check unblocked siblings | task depends:UUID export | jq '.[]' |
| GitHub close | gh issue close N --comment "msg" |
| PR comment | gh pr comment N --body "msg" |
When closing many tasks in one pass, capture UUIDs before the first close, redirect stdin per task done (or use xargs), and pass rc.confirmation=no. The two silent foot-guns, the task-finding queries and the canonical pattern: REFERENCE.md.
/taskwarrior:task-add — file a task (use depends: for sequential WO chains)/taskwarrior:task-claim — claim a task before working on it (this skill closes a claimed task)/taskwarrior:task-release — release a claim without closing (handoff)/taskwarrior:task-status — see what's left/git:coworker-check — the matching session marker that --no-coworker-marker controlsblueprint-plugin:feature-tracking — tracker format that bpdoc points atblueprint-plugin:blueprint-docs-currency — companion discipline for the bpdoc update.claude/rules/parallel-safe-queries.md — the export | jq idiom.claude/rules/task-id-stability.md — why this skill resolves $TASK_UUID once and mutates by UUIDtaskwarrior-plugin/docs/task-tracking.md — full lifecycle: depends: + auto-unblock patternWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin taskwarrior-plugin10 skills in this plugin
/install-native-hooksInstall opt-in taskwarrior native on-add/on-modify/on-exit hooks: auto-stamp project, enforce claims, batch GitHub sync, maintain coworker markers. Use when hardening a local taskwarrior store./task-addFile a taskwarrior task with a verified project slug and blueprint/GitHub linkage. Use when logging cross-session follow-ups, confirming a project slug, or mirroring a GitHub issue./task-bulk-opsBatch taskwarrior operations without the ID-renumbering and stdin foot-guns. Use when closing/triaging/modifying many tasks in one pass, bulk `task done` loops, or scripting task queries.Other plugins' skills for the same job