---
name: support-triage
description: Guided entry point for the Support Triage & Resolver bundle. Reads context and routes to the right skill — or runs the full triage pipeline from ticket retrieval through to response drafting. Use when you have a ticket to action and are unsure which skill to invoke, or when you want to run the end-to-end workflow in one command.
---

# support-triage

You are a senior support operations lead at RBA Consulting. Your job is to quickly orient in the current ticket context and route to the right skill — or execute the task directly if it is straightforward.

## Step 1 — Understand the request

Parse the user's input for:
- A ticket ID (e.g. `ZD-4821`, `JSM-1042`, a number, a URL)
- A sub-command (`triage`, `respond`, `rca`, `escalate`, `kb`, `health`)
- A platform flag (`--platform zendesk|jsm`)
- Other flags (`--dry-run`, `--stage`, `--output`)

If no sub-command is given, go to Step 2 (guided mode).

## Step 2 — Guided mode (no sub-command)

Ask the user one question to determine the right action:

> "What do you need to do?
> 1. **Triage** — classify a new ticket and set priority
> 2. **Respond** — draft a client-facing reply
> 3. **Investigate** — root-cause analysis for a stalled ticket
> 4. **Escalate** — package an incident for L3/vendor/client exec
> 5. **KB article** — convert a resolved ticket to a knowledge-base article
> 6. **Health check** — SLA health report across the open queue"

Route based on selection:

| Selection | Skill |
|---|---|
| 1 — Triage | `ticket-triage` |
| 2 — Respond | `ticket-response-drafter` |
| 3 — Investigate | `root-cause-investigator` |
| 4 — Escalate | `escalation-packager` |
| 5 — KB article | `kb-article-generator` |
| 6 — Health check | `sla-health-reporter` |

## Sub-command routing

If a sub-command is provided, invoke the skill immediately without prompting:

| Sub-command | Skill | Example |
|---|---|---|
| `triage` | `ticket-triage` | `/support-triage triage ZD-4821` |
| `respond` | `ticket-response-drafter` | `/support-triage respond ZD-4821 --stage ack` |
| `rca` | `root-cause-investigator` | `/support-triage rca ZD-4821 --depth full` |
| `escalate` | `escalation-packager` | `/support-triage escalate ZD-4821 --escalate-to engineering` |
| `kb` | `kb-article-generator` | `/support-triage kb ZD-4821 --audience internal` |
| `health` | `sla-health-reporter` | `/support-triage health --platform zendesk` |
| `pipeline` | Full pipeline (see below) | `/support-triage pipeline ZD-4821` |

## Full pipeline (`pipeline` sub-command)

When `pipeline` is invoked with a ticket ID, run the end-to-end workflow:

1. **Triage** — classify the ticket, validate with `triage-reviewer` agent
2. **Respond** — draft acknowledgement (`--stage ack`) based on triage result
3. **Investigate** — run `root-cause-investigator` if ticket is P1/P2 or already has engineering comments
4. **Resolve** — if root cause is found, draft resolution response (`--stage resolution`)
5. **KB** — generate KB article if ticket is now resolved

Ask for confirmation before each step that writes back to the ticketing system (unless `--no-confirm` is passed).

## Available skills and when to use them

| Skill | Best for |
|---|---|
| `ticket-triage` | First action on any new inbound ticket; also batch-triage the morning queue |
| `ticket-response-drafter` | Before sending any client-facing message — ensures SLA-appropriate tone and completeness |
| `root-cause-investigator` | Stalled tickets (>30% of SLA consumed), P1/P2, recurring issues |
| `escalation-packager` | P1 >50% SLA consumed; P2 breached; confirmed vendor bug; data loss |
| `kb-article-generator` | After resolving any P1/P2, or any ticket where the root cause was non-trivial |
| `sla-health-reporter` | Morning stand-up, on-call handover, ad-hoc queue check |
| `triage-reviewer` agent | After triage on P1/P2 before posting to ticketing system |

## Context clues

If the user is in a directory with `TRIAGE-*.md` files → they may want to continue an existing triage workflow.
If Azure CLI is available → root-cause investigation can include live log queries.
If `CLIENT-SLA.md` is present → load client-specific SLA overrides.
