OpenParable
Skip to content
← Back to skills

Kandev Escalation

Productivity
kandev-escalation

Kandev Escalation is an Agent Skill for productivity published in the kdlbs/kandev repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Escalate to a human when required information, access, credentials, or a product decision blocks completion and no reasonable default is available.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/kdlbs/kandev/blob/HEAD/apps/backend/internal/office/configloader/skills/kandev-escalation/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/kandev-escalation, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Escalating to a Human

Use this pattern when you cannot proceed without human input: a design decision, missing credentials, ambiguous requirements, or access you do not have.

When to escalate

Escalate when ALL of the following are true:

  1. You cannot make the decision yourself based on available context.
  2. The decision is required to complete your task.
  3. You have already checked comments and memory for prior guidance.

Do NOT escalate for routine technical choices you can make independently.

Escalation procedure

Step 1: Create the human task

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).

HUMAN_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 '.id')

Step 2: Block your task on the human task

# Link: your task is blocked by the human task
$KANDEV_CLI kandev task update --id "$KANDEV_TASK_ID" \
  --add-blocker "$HUMAN_TASK_ID"

Step 3: Post a comment and set blocked status

$KANDEV_CLI kandev tasks message --prompt "Escalated to human: created task $HUMAN_TASK_ID. Waiting for decision on: <question>"

$KANDEV_CLI kandev task update --status blocked

Step 4: Exit

Your session ends. The orchestrator will wake you with reason task_blockers_resolved when the human closes the decision task.

On wakeup after resolution

When you wake with KANDEV_WAKE_REASON=task_blockers_resolved, parse $KANDEV_WAKE_PAYLOAD_JSON for the resolved blocker titles. If it is absent, read the JSON file at $KANDEV_WAKE_PAYLOAD_PATH instead. Then continue your work incorporating the human's decision (visible in the resolved task's comments or description).

Rules

  • Keep the question in the title specific and actionable. "Decision needed: use PostgreSQL or SQLite for the cache layer?" is good. "I need help" is not.
  • Include enough context in the description that the human can decide without reading your full task history.
  • One escalation per decision. Do not create multiple human tasks for the same question.
  • If you need to escalate multiple independent decisions at once, create one human task per decision.
  • If you can make a reasonable default choice, prefer that over escalating.