Block task

From stevehuang0115/crewly · View interactive version

Block task is an AI agent skill from the GitHub repository stevehuang0115/crewly. Mark a task as blocked with a reason and optional questions for the orchestrator; with `until`, park it until a known time; with `afterWorkItemId`, park it until another WorkItem succeeds.

How to use this skill

Skill file

Block Task

Mark a task as blocked with a reason explaining the blocker. Optionally include questions for the orchestrator and an urgency level.

If the brief says to start after another job (a deploy, a merge, another ticket), block it with afterWorkItemId instead of holding it running while you wait: the stall detector skips a blocked item, and Crewly puts it back in your queue when that job succeeds.

If the task can only proceed at a known time (a report that needs a data window to close, a check after a deploy settles), block it with until: you keep nothing running while you wait, and the item comes back to you on its own when the time has passed. Do not report such a task done before it is, and do not hold it running while waiting.

Parameters

| Parameter | Required | Description |

|-----------|----------|-------------|

| workItemId | Yes | The WorkItem you are blocked on (from your claim or [CREWLY-DISPATCH] message) |

| reason | Yes | Explanation of why the task is blocked |

| sessionName | No | Your session name (defaults to CREWLY_SESSION_NAME) |

| questions | No | Specific questions for the orchestrator to resolve the blocker |

| urgency | No | Urgency level: low, medium, high, critical |

| until | No | ISO 8601 time in UTC (2026-10-27T08:30:00Z), in the future. The block lifts on its own once it has passed: the item returns to queued for you (within about a minute of the time), and you take it before new work. |

| on | No | Who the block waits on: owner (a sign-in, an approval, a decision only the owner can give), agent (default: today's behaviour) or external (a vendor, a build, an email). Run metrics count owner as time waiting on the owner instead of on an agent, and leave external out of both. Use owner whenever the blocker is the owner. |

| afterWorkItemId | No | Id of another WorkItem this one must wait for (a brief that says "start after X"). The item waits as blocked with that item in dependsOn; it is not stall-checked or re-delivered, and returns to queued for you when that item succeeds. Not combinable with until. Refused (409) when that item is already done, cancelled, unknown, or itself waits for this one. If it fails, this item stays blocked until someone unblocks it. |

Only a WorkItem you have claimed (running) can be blocked.

What blocking does

You do not need to release-claim it yourself to free the slot.

re-queued or re-dispatched to you automatically.

returns to queued for you. Unblocking it earlier works the same as below.

That return is your wake: do not also create a one-shot trigger for the

same time. A trigger that fires first wakes you while the item is still

blocked (you can still finish it, but the scheduled return never happens) and

spends a wake for nothing.

the release-claim skill (POST /task-pool/release/:workItemId). It returns to

queued for you, and you take it before new work.

Example

bash config/skills/agent/core/block-task/execute.sh '{"workItemId":"abc-123","sessionName":"dev-1","reason":"Missing production database credentials","questions":"Where are the DB credentials stored?","urgency":"high"}'

Work that can only proceed at a known time:

bash config/skills/agent/core/block-task/execute.sh '{"workItemId":"abc-123","sessionName":"dev-1","reason":"GA4 readout needs the full 7-day window; the data is complete after 08:30Z","until":"2026-10-27T08:30:00Z"}'

# Blocked on the owner (counted as owner wait time, not agent wait)
bash config/skills/agent/core/block-task/execute.sh '{"workItemId":"abc-123","sessionName":"dev-1","reason":"needs the owner to sign in to the vendor dashboard","on":"owner"}'

# Wait for another WorkItem to succeed
bash config/skills/agent/core/block-task/execute.sh '{"workItemId":"abc-123","sessionName":"dev-1","reason":"brief says start after the deploy","afterWorkItemId":"def-456"}'

Output

JSON confirmation that the WorkItem has been marked as blocked.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.