Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Escalate to a human when required information, access, credentials, or a product decision blocks completion and no reasonable default is available.
.claude/skills/kdlbs-kandev-escalation/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -4% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -19% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 26% | 0% |
Use this pattern when you cannot proceed without human input: a design decision, missing credentials, ambiguous requirements, or access you do not have.
Escalate when ALL of the following are true:
Do NOT escalate for routine technical choices you can make independently.
Create a new task with a clear question as the title. Leave it unassigned (or assign to $KANDEV_HUMAN_USER_ID if that variable is set in your environment).
bashHUMAN_TASK=$( $KANDEV_CLI kandev task create \ --title "Decision needed: <your specific question here>" \ --description "Context: <1-2 sentences of background> Question: <the specific decision the human needs to make> Options considered: - Option A: <brief description> - Option B: <brief description> Blocked task: $KANDEV_TASK_ID" \ 2>/dev/null ) HUMAN_TASK_ID=$(echo "$HUMAN_TASK" | jq -r '.task_id')
bash$KANDEV_CLI kandev tasks message --id "$KANDEV_TASK_ID" \ --prompt "Escalated to human task $HUMAN_TASK_ID. Waiting for decision on: <question>"
The Office CLI does not currently expose a secure operation for adding a blocker relationship. The human task description links back to the blocked task, and the comment above links the blocked task to the human task. Do not comment on the new human task: a run may only message tasks granted by its signed runtime scope. These references do not create a task dependency.
bash$KANDEV_CLI kandev task update --status blocked
Your session ends. Because this flow does not create a blocker relationship, the task_blockers_resolved wake reason will NOT occur for this manual cross-reference flow. The human or coordinator must post the decision on the blocked task or update it through the normal task workflow.
Resume from the normal task comment or task update event. Parse $KANDEV_WAKE_PAYLOAD_JSON first; if it is absent, read the JSON file at $KANDEV_WAKE_PAYLOAD_PATH. Confirm the decision is present on the blocked task, move it back to the appropriate active status, and continue the work.
Other measured skills in the registry, with their headline benchmark lift.