/tq:tq-dep-triagefrom tq
Rescues tq actions stuck pending forever because a completion dependency ended failed or cancelled. Audits blocked_by chains and suggests concrete recovery commands to unblock the dispatch queue.
Ships in tq. 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.
None: SKILL.md is the whole skill.
Completion dependencies gate dispatch: an action stays pending until every
blocker reaches a successful terminal state (action=done,
task=done/archived). By design there is no automatic escape — a blocker
that ends failed or cancelled leaves the dependent stranded forever. This
skill finds those dead ends and hands the user concrete, ready-to-run rescue
commands. It does not mutate anything itself; the human decides.
Pull the pending actions and read their blocked_by:
tq action list --status pending
Each blocked_by entry has type, id, satisfied, blocker_status. The
ones that matter are entries where the blocker has reached a non-success
terminal state (blocker_status = failed or cancelled) — those will never
flip to satisfied on their own, so the dependent is dead in the water. An
unsatisfied blocker that is still pending/running/dispatched, or a task
blocker still open, is just normal waiting — leave it alone.
For each stranded action, figure out the most useful recovery. Use judgment rather than a fixed recipe — the right move depends on whether the failed work still needs doing and whether it was already retried elsewhere:
dep_id will never go done. Look for a resumed
descendant by following metadata.parent_action_id from later actions back
to the failed blocker (tq action get <id> / scan tq action list). If a
live or done descendant exists, re-pointing the dependency at it is usually
the cleanest fix.done under the same id) keeps the
dependency intact with no edits to the dependent.Surface the failed blocker's own result/reason (tq action get <id>) so the
user understands why it died before choosing.
Report only the genuinely stranded actions (skip normal waiting). For each, give: the blocked action (id + title), the failed/cancelled blocker (id + status + why it died), any resumed descendant you found, and the rescue options as copy-paste commands the user can run. Recommend the one you think fits, but present the alternatives and let the user choose — do not run them.
Rescue commands (fill in real ids):
# re-point to a resumed/replacement action
tq action update <blocked> --clear-deps --blocked-by-action <newid>
# revive the original blocker so it completes under the same id
tq action reset <failed_blocker>
# drop a dependency that is no longer needed
tq action update <blocked> --clear-deps
# retire a dependent that is now moot
tq action cancel <blocked>
If nothing is stranded, say so plainly — a clean queue is the expected steady state, not a finding to manufacture.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/tq-cancelCancel a tq action with improvement suggestions, then judge task-level completion and propose follow-up actions when work remains/tq-create-actionCreate a tq action (auto-infer instruction or let user specify)/tq-doneMark a tq action as done, then judge task-level completion and propose follow-up actions when work remains/tq-failedMark a tq action as failed, then judge task-level completion and propose follow-up actions when retry or alternative approach is needed/tq-investigate-incidentsCross-event diagnosis of recent failed actions and permission-blocked actions in the tq queue. Use when the user wants to investigate incidents, summarize recent failures, or review permission-block trends across the queue. Clusters incidents and cross-checks prior remediations rather than per-event firefighting./tq-managerManage tq tasks and actions on behalf of the user via the tq CLI. Use when the user wants to create a task, add or dispatch an action, check queue status, run something now or interrupt, or schedule a recurring action. Lightweight interactive hub; hands off to tq:create-action / tq:done / tq:failed / tq:cancel / tq:triage for disciplined flows.npx claudepluginhub mh4gf/tq --plugin tqOther plugins' skills for the same job