/taskwarrior-plugin:task-triage optional --dry-run to stop after validation and the apply previewfrom taskwarrior-plugin
Triages a large, outdated Taskwarrior queue by judging each pending task against current repo/PR/CI state via read-only agents, then applying done/obsolete/update verdicts by UUID.
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; scripts run unread.
Triage a whole queue: decide, for every pending task, whether it is done, obsolete, needs an update, or should be kept — each verdict backed by evidence read from the system today, not from the task text. Read-only agents do the judging per cluster of projects; the main session validates the verdicts and applies them in one UUID-addressed pass.
| Use this skill when... | Use a sibling skill instead when... |
|---|---|
| The queue is large (dozens–hundreds of tasks) and much of it is probably outdated | Only tasks mirroring a GitHub issue/PR need retiring — task-reconcile |
| Tasks are follow-ups, watches and verifications whose state lives in repos, CI, upstream releases | Auditing the queue without changing it — task-status |
| You want closes backed by evidence, not by age or a cited PR's state | Applying an already-decided batch change — task-bulk-ops |
Why not task-reconcile for this: a merged PR or closed issue cited in a
task is usually the context the follow-up came from ("found during PR #44"),
not proof the follow-up is done. Reconcile closes on the ref's state; triage
closes on evidence that the described action happened. Also see
laurigates/claude-plugins#3387 — under --all, reconcile resolves bare #N
against the cwd repo.
| Flag | Default | Effect |
|---|---|---|
--dry-run | off | Run Steps 1–4 and the apply --dry-run preview, then stop: no task is closed, deleted or annotated |
To triage a subset (one project, one org), map only those slugs and pass --partial to split; unmapped projects are skipped and listed as SKIPPED_PROJECTS=.
task status:pending export | jq -r '.[] | (.project // "(none)")' | sort | uniq -c | sort -rn
Ask once, with AskUserQuestion, before dispatching anything:
done closes directly with an
evidence annotation; obsolete waits for one approval of the full list
(judgment calls like "time-boxed, window passed" belong in front of the user).State the agent count when proposing the fan-out (one agent per cluster).
Write a map of cluster → project slugs, balancing ~50–80 tasks per cluster and
keeping related repos together (one org's infra in one cluster, one product's
sub-projects in another). Every slug must appear exactly once — split refuses
unmapped or doubly-mapped projects.
python3 "${CLAUDE_SKILL_DIR}/scripts/triage.py" split --dir <scratch> --map <scratch>/map.json
This writes <scratch>/pending.json (snapshot) and <scratch>/clusters/<C>.json.
Copy references/agent-brief.md to
<scratch>/clusters/BRIEF.md, fill in the location hints for this machine
(where repos live, slug→repo mappings that are not obvious), and dispatch one
agent per cluster in a single message, in the background, on a strong model
(the verdicts gate closes). Each prompt names: the brief path, its cluster file,
its output path <scratch>/verdicts/<C>.jsonl, and any leads you already have
(tasks whose cited ref looked stale, tasks with completed dependencies).
The agents never write to taskwarrior. Concurrent task writers renumber IDs
under each other; centralising writes in the main session removes that class.
python3 "${CLAUDE_SKILL_DIR}/scripts/triage.py" validate --dir <scratch>
It fails on a missing verdict file, a task with no verdict, a uuid outside its
cluster, a duplicate, or an unknown verdict. Then re-run a sample of done
claims yourself (gh pr view, file reads) — an agent's wrong verdict arrives
as well-formed as its right ones. Note any agent that strayed outside the
brief's read-only scope for the report.
python3 "${CLAUDE_SKILL_DIR}/scripts/triage.py" apply --dir <scratch> --verdicts done,update --dry-run
python3 "${CLAUDE_SKILL_DIR}/scripts/triage.py" apply --dir <scratch> --verdicts done,update
Present the obsolete list (description + reason, duplicates naming their
survivor) in one AskUserQuestion, then:
python3 "${CLAUDE_SKILL_DIR}/scripts/triage.py" apply --dir <scratch> --verdicts obsolete
done → annotate + task done; obsolete → annotate + task delete;
update → annotate, plus a description rewrite when the agent supplied one.
Tasks closed by someone else since the snapshot are skipped. Tag changes the
verdicts call for (e.g. dropping +blocked once deps closed) are applied by
hand afterwards.
Counts per verdict, the pending count before/after, and the findings agents surfaced that no task tracks (red default branches, security items, unbacked local-only repos, pending user decisions). Offer to file those as tasks — don't bury them in the agents' JSONL.
| Context | Command |
|---|---|
| Project histogram | task status:pending export | jq -r '.[]|(.project//"(none)")' | sort | uniq -c | sort -rn |
| Split | python3 scripts/triage.py split --dir D --map D/map.json |
| Validate | python3 scripts/triage.py validate --dir D |
| Apply preview | python3 scripts/triage.py apply --dir D --verdicts done,update --dry-run |
| Restrict apply to approved uuids | python3 scripts/triage.py apply --dir D --verdicts obsolete --only approved.txt |
| Undo one close | task <uuid> modify status:pending |
task-reconcile — ref-state-driven close; fine for pure GitHub mirrorstask-bulk-ops — the UUID / stdin / annotate-before-done discipline apply followstask-status — read-only queue report to confirm the resultagent-patterns-plugin:parallel-agent-dispatch — dispatch contract for the fan-outWhat 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./task-claimClaim a taskwarrior task as in-flight (+ACTIVE) and write a coworker marker. Use when picking up a task from task-coordinate output before starting implementation./task-coordinateSurface next N unblocked taskwarrior tasks by urgency, skipping lock-contending tasks. Use when planning a parallel-agent wave or choosing tasks for a dispatch slot./task-doneClose a taskwarrior task with landing commit annotation and optional GitHub issue/PR close. Use when finishing a coordination task or marking a work order complete.Other plugins' skills for the same job