yao-agent
Agent management expert. ALWAYS invoke this skill when you need to list available agents,…
Typed decision expert. ALWAYS invoke this skill when you need structured classification, scoring, or probability estimation — routing tickets, grading content, detecting intent, or any task requiring typed answers with calibrated confidence.
$ npx -y skills add YaoApp/yao --skill yao-decision --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/yao-decisionContext preview
The summary Claude sees to decide when to auto-load this skill.
Typed decision expert. ALWAYS invoke this skill when you need structured classification, scoring, or probability estimation — routing tickets, grading content, detecting intent, or any task requiring typed answers with calibrated confidence.
name: yao-decision description: Typed decision expert. ALWAYS invoke this skill when you need structured classification, scoring, or probability estimation — routing tickets, grading content, detecting intent, or any task requiring typed answers with calibrated confidence.
Use these tools when you need structured, typed decisions rather than free-form LLM text. Decision models return machine-readable answers with probabilities and confidence scores.
Send a state (context) and one or more typed questions to a decision model.
| Type | Purpose | Criteria | Answer Fields | |------|---------|----------|---------------| | `choice` | Classify into one of N options | `{option: description}` map | `choice`, `probabilities`, `confidence` | | `score` | Rate on a scale | `[level_labels]` array | `score`, `legend`, `probabilities`, `confidence` | | `noul` | Estimate a probability (0-1) | _(none)_ | `noul` |
tai tool decision_decide --state "Customer says: my billing is wrong, I was charged twice" --questions '{"department":{"type":"choice","instructions":"Route to the right department","criteria":{"billing":"Payment issues","technical":"Product bugs","sales":"Purchase inquiries"}},"is_urgent":{"type":"noul","instructions":"Is this urgent?"}}'tai tool decision_decide --state "The agent resolved the issue in 2 minutes with a clear explanation" --questions '{"quality":{"type":"score","instructions":"Rate the support quality","criteria":["Poor","Below average","Average","Good","Excellent"]}}'tai tool decision_decide --state "some context" --questions '{"q1":{"type":"noul","instructions":"Is this positive?"}}' --provider t862699292876.typesafetai tool decision_decide --state "some context" --questions '{"q1":{"type":"noul","instructions":"Is this positive?"}}' --model jev-latesttai tool decision_decide --states '["Customer A says billing is wrong","Customer B loves the product","Customer C wants a refund"]' --questions '{"sentiment":{"type":"choice","instructions":"Classify sentiment","criteria":{"positive":"Happy","negative":"Unhappy","neutral":"Neither"}}}'tai tool decision_decide --state_file customer_message.txt --questions_file routing_questions.json
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | state | string/object/array | yes* | The context for the decision (*mutually exclusive with states) | | questions | JSON object | yes | Map of question_id to question definition | | model | string | no | Model name override (default: provider's configured model) | | provider | string | no | Provider connector ID (default: decision role or first available) | | timeout | integer | no | Timeout in seconds (default: 60) | | states | array | no* | Array of state items for batch decisions (*mutually exclusive with state) | | state_file | string | no | Read state from file (tai CLI only) | | questions_file | string | no | Read questions from JSON file (tai CLI only) |
Single state:
{
"answers": {
"department": {
"type": "choice",
"choice": "billing",
"probabilities": {"billing": 0.92, "technical": 0.05, "sales": 0.03},
"confidence": 0.89
},
"is_urgent": {
"type": "noul",
"noul": 0.73
}
},
"model": "jev-1.13.0",
"usage": {"input_tokens": 245, "output_tokens": 38}
}> Note: `model` in the response is the resolved concrete model ID (e.g. `jev-1.13.0`), not the alias you requested (e.g. `jev-latest`).
Batch states:
{
"results": [
{"state_index": 0, "answers": {...}, "model": "jev-1.13.0", "usage": {...}},
{"state_index": 1, "answers": {...}, "model": "jev-1.13.0", "usage": {...}},
{"state_index": 2, "error": "timed out after 60s"}
]
}List available decision providers and their models.
tai tool decision_providers
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | capability | string | no | Filter by capability (default: `decision`) |
Returns a list of providers with available models, connector IDs, and availability status.
✨ All your agents and workspaces in one place, on every device you own. Track tasks on a board, accessible from desktop, mobile, browser, or API. Self-hosted.
Agent management expert. ALWAYS invoke this skill when you need to list available agents,…
Audio expert. ALWAYS invoke this skill when the user asks to transcribe, recognize, or…
Kanban board and task query expert. ALWAYS invoke this skill when the user asks about boards,…
Yao process documentation expert. ALWAYS invoke this skill when the user needs to discover…
Image expert. ALWAYS invoke this skill when you need to read, analyze, describe, or generate…