yao-decision
What it does
This skill sends a situation to a decision model that answers with fixed categories, ratings, or probabilities. It is for teams that want consistent, sortable answers instead of free-form text.
When to use it
- ✓When you need to route incoming tickets to the right department.
- ✓When you want content rated on a set scale, such as poor to excellent.
- ✓When you want an estimate of how likely something is, with a confidence level.
Skill link
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-decision/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Route this customer message to billing, technical, or sales, and tell me if it is urgent.”
5 new skills a week. 1 minute to read.
How it works
The agent describes the situation and lists the questions to answer. The decision model returns a choice, a score, or a probability for each question, along with a confidence level.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Decision Tools
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.
decision_decide
Send a state (context) and one or more typed questions to a decision model.
Question Types
| 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 |
Basic usage (choice + 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?"}}'
With score question:
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"]}}'
With explicit provider:
tai tool decision_decide --state "some context" --questions '{"q1":{"type":"noul","instructions":"Is this positive?"}}' --provider t862699292876.typesafe
With model override:
tai tool decision_decide --state "some context" --questions '{"q1":{"type":"noul","instructions":"Is this positive?"}}' --model jev-latest
Batch decisions (multiple states, same questions):
tai 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"}}}'
Reading from files:
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) |
Response Format
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:
modelin 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"}
]
}
decision_providers
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.
Constraints
stateandstatesare mutually exclusive; provide one or the other.- Each question must have
type(choice/score/noul) andinstructions. criteriais required forchoice(map) andscore(array);noulmust not have criteria.- Batch states must not contain empty strings or null v
FAQ
What kinds of answers does it give?
A choice from named options, a score on a scale, or a probability between zero and one.
Why not ask for plain text instead?
Structured answers are easier to sort, compare, and check.
Can I pick the model?
Yes. A specific provider can be set explicitly.
Details
Original description by the author
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.
repo: YaoApp/yao
Popularity
- GitHub stars
- 8.3k
- Ranking position
- #12473
- License
- —
- Updated
- 10/19/2026
Comments
- …
More skills from this repository
yao-agent
8.3kHelps your agent list the agents on a Yao host, look up or download agent code, deploy changes, and check the list of model connectors.
yao-audio
8.3kHelps your agent turn speech in audio files, such as meeting recordings, into written text, detecting the language when you do not name it.
yao-board
8.3kHelps your agent check kanban boards and task status on the Yao platform, so it reports real project progress instead of guessing.
yao-daemon
8.3kHelps your agent start, check, restart, and stop long-running background services, such as development servers, and read what they print.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.