一键导入
tq-failed
Mark a tq action as failed, then judge task-level completion and propose follow-up actions when retry or alternative approach is needed
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Mark a tq action as failed, then judge task-level completion and propose follow-up actions when retry or alternative approach is needed
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Create a tq action (auto-infer instruction or let user specify)
Inventory and organize open tasks - review status, propose cleanup, execute
Manage 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.
Detect production-side Turso rows-read regressions in the tq database. Runs the bundled watcher that inspects `turso db inspect tq --queries`, compares the top queries against a stored baseline, and self-files a tq action when a query's rows-read grows past both gates. Use this whenever asked to check Turso query cost, watch rows-read, run the weekly rows-read regression check, or investigate whether DB query cost regressed in production — including the scheduled "/turso-query-watch" run.
Mark a tq action as done, then judge task-level completion and propose follow-up actions when work remains
Rescue tq actions stuck pending forever because a completion dependency ended failed or cancelled. A blocked action is only released when every blocker reaches a successful terminal state, so a failed/cancelled blocker strands the dependent indefinitely. Use this whenever asked to triage blocked/stuck/stalled pending actions, find actions waiting on a dead dependency, audit blocked_by chains, or unblock the dispatch queue — including the scheduled "/tq:dep-triage" run.
| name | tq-failed |
| description | Mark a tq action as failed, then judge task-level completion and propose follow-up actions when retry or alternative approach is needed |
| argument-hint | [action_id] |
| allowed-tools | Bash(tq *) |
Use this command when an action could not be completed despite genuine effort (missing permissions, broken environment, external API down, CI flake, etc.).
Distinction from /tq:done and /tq:cancel:
/tq:done — work completed successfully/tq:failed — work attempted but blocked; retry may be possible/tq:cancel — work intentionally aborted (no longer needed, superseded)IMPORTANT: Run !tq action fail --help first to understand the expected reason format.
$ARGUMENTS if numeric## tq action context heading appended to the prompt (e.g. "You are executing action #123 (task #45).")tq action list --status running or tq action list --status dispatchedReview the task's action history to understand context and confirm failure is the right outcome:
tq action list --task <task_id>
Read each action's result to trace the chain of decisions that led to this action. Confirm:
/tq:done with a partial-completion summary be more honest?remaining before failingHere remaining records what is needed to unblock. Same discipline as
/tq:done, adapted to that meaning: a retry plan or alternative approach is a
promise nobody can keep if it lives only in a closed action's reason text.
Triage each line into one of two shapes:
Pure external wait — nothing for us to do. "Blocked until the vendor API recovers", "waiting on a permission grant". No session work is owed, so it is context, not a tracked item. State it plainly in the reason.
Future session work owed. Prepare a retry, try a different approach, fix the broken setup. File it as a tracked action and link it:
tq action create '<self-contained instruction>' --title '<title>' --task <task_id>
Append the returned id: - <what to retry / try next> → #<id>. For
time-based blockers (API down, CI flake) pass the retry timing via
--after "YYYY-MM-DD HH:MM" (local timezone) so the follow-up stays
pending until then.
Get <task_id> from the ## tq action context heading or
tq action get <action_id> --jq .task_id. Write the instruction the way
/tq:create-action would — goal-first, self-contained, with verification.
You only have Bash(tq *) here, so call tq action create directly.
If tq action create fails, still mark this action failed (unlike
/tq:done, which holds — here the work was already blocked, so failing is
the honest state regardless), but state in the reason that the follow-up
could not be filed and must be re-filed — never leave the retry plan as
untracked prose.
tq action fail <action_id> '<structured reason>'
Reason uses structured sections: outcome, decisions, artifacts, remaining. Describe the blocker and what was tried, not the process — session logs capture that.
Always run this flow — do not wait for the user to ask "what's next?".
tq action list --task <task_id> + re-read the remaining you just wrote.remaining → #<id> line (a fundamentally different
strategy worth its own task, say). Propose 1–2 candidates (title +
one-line purpose) and ask the user to create via /tq:create-action.
Do not auto-create these — they are judgment calls, unlike the
remaining-entry tracking actions above, which you file yourself because
they record retry work you already know is owed.remaining line and must already have its → #<id>.tq task update <task_id> --status done --note "<why>" (--note required with --status).Constraints: