ワンクリックで
tq-create-action
Create a tq action (auto-infer instruction or let user specify)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create a tq action (auto-infer instruction or let user specify)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
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.
Mark a tq action as failed, then judge task-level completion and propose follow-up actions when retry or alternative approach is needed
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-create-action |
| description | Create a tq action (auto-infer instruction or let user specify) |
| argument-hint | [instruction] |
| allowed-tools | Bash(tq *) |
CRITICAL:
tq action dispatch) unless explicitly asked. Pending is the correct final state; tq ui picks it up.IMPORTANT: Run !tq action create --help first to understand meta format and best practices.
tq project list and match by work_dir or repo context.tq search "<keyword>" --project <project_id>.tq task create --project <project_id>.tq action create rejects parent tasks with status done or archived; if you really mean to attach a follow-up to a closed task, reopen it first with tq task update <task_id> --status open.Consult !tq action create --help for CLI flag and meta format guidance.
The instruction string is the entire prompt the worker session sees. It launches cold: no memory of this conversation, no parent-session variables, no follow-up turn to clarify. The worker runs the configured Claude model — give it a goal and it runs its own gather → act → verify loop competently; give it a guessed step list and it follows the wrong steps faithfully and fails.
You have not read the target code in this session, and you must not — that is the worker's job. So write only what you actually know: the desired end state and why it matters. The worker derives everything else by reading the code and planning.
Write exactly two things:
Do NOT write: scope boundaries, step lists, target file paths, function or type signatures, "the approach". You have not read the code; anything here is a guess that becomes a literal wrong order and bloats the prompt. The worker decides all of this in its plan. The only constraints worth stating are ones the code cannot reveal — compatibility limits, "this is a plugin distributable, no user-specific paths", a sequencing requirement like "migration before code". Fold those into the Goal; don't spin up separate Scope / Constraints / Verification sections that restate each other.
Self-contained — no "as we discussed", "the conversation above", or parent-session variables. The worker has none of it.
Long or markdown-heavy instructions — when the body contains # headers, backticks, or multiple paragraphs, write it to a file and pass --instruction-file <path> (or pipe and pass --instruction-file -). The positional-string form is denied by Bash safety (Newline followed by # inside a quoted argument) and by shell quoting traps on backticks. For short single-line instructions the positional form is fine.
If you cannot state the goal as one sentence, or it has multiple plausible readings, run AskUserQuestion to confirm it before creating the action. Skip the question when the request is already clear — don't add friction.
Pass via --meta '{"claude_args":["--effort","<level>"]}'. Choose by task complexity:
| Task type | Recommended --effort |
|---|---|
| Coding, multi-file edits, investigation, agentic work | xhigh (default for action work) |
| Doc tweak, single-file obvious edit | high |
| Trivial cleanup, just invokes another slash command | omit (defaults are fine) |
| Long-horizon deep work, hard refactor | max (try it, watch for overthinking) |
Bad — work-content goal plus guessed steps the author never verified against the code:
Fix the create-action skill. Open `internal/foo/bar.go`, rename `Validate`
to `ValidateV2` at line 42, update the call site in `cmd/main.go`, then run
`go test ./internal/foo/`.
Good — end state + value, code-reading and steps left entirely to the worker:
**Goal**
`Validate` no longer exists anywhere in the repo: every caller and test uses
the renamed symbol and the suite is green. This removes the last name flagged
in the API review, so downstream teams stop guessing which `Validate` they
call. No behavior change — pure rename.
**Background**
Triggered by API review #1234; the old name collided with a stdlib helper.
References: Prompting best practices · Building agents with the Claude Agent SDK · Effective context engineering for AI agents
tq action create '<instruction>' --title '<title>' --task <task_id>
Omit --worktree for read-only or serialized actions. Use it when the action modifies files and may run in parallel.
When set, always pair with a scope-derived name (target file, feature, bug ID, or skill) so sessions are identifiable in the TUI and git worktree list:
tq action create '<instruction>' --title '<title>' --task <task_id> \
--meta '{"claude_args":["--worktree","fix-login-csrf"]}'