yao-decision
Что он делает
Этот скилл передает ситуацию модели решений, которая отвечает фиксированными категориями, оценками или вероятностями. Он нужен командам, которым нужны стабильные ответы, которые можно сортировать, вместо свободного текста.
Когда использовать
- ✓Когда нужно направлять входящие обращения в нужный отдел.
- ✓Когда вы хотите оценить контент по заданной шкале, например от плохо до отлично.
- ✓Когда вы хотите оценку того, насколько вероятно что-то произойдет, с уровнем уверенности.
Ссылка на скилл
https://github.com/YaoApp/yao/blob/main/tools/skills/yao-decision/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Направь это сообщение клиента в биллинг, техподдержку или продажи и скажи, срочное ли оно.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент описывает ситуацию и перечисляет вопросы, на которые нужно ответить. Модель решений возвращает выбор, оценку или вероятность по каждому вопросу вместе с уровнем уверенности.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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
Частые вопросы
Какие ответы он дает?
Выбор из названных вариантов, оценку по шкале или вероятность от нуля до единицы.
Почему не запросить обычный текст?
Структурированные ответы легче сортировать, сравнивать и проверять.
Могу ли я выбрать модель?
Да. Можно явно указать конкретного провайдера.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 8.3k
- Место в рейтинге
- #12473
- Лицензия
- —
- Обновлён
- 19.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
yao-agent
8.3kПомогает агенту показать список агентов на хосте Yao, найти или скачать код агента, развернуть изменения и проверить список коннекторов к моделям.
yao-audio
8.3kПомогает агенту превращать речь из аудиофайлов, например записей встреч, в письменный текст и определять язык, если вы его не указали.
yao-board
8.3kПомогает агенту проверять канбан-доски и статус задач на платформе Yao, чтобы он сообщал реальный прогресс проекта, а не гадал.
yao-daemon
8.3kПомогает агенту запускать, проверять, перезапускать и останавливать долгоработающие фоновые службы, например серверы разработки, и читать их вывод.
Похожие скиллы
gitcrawl
394kПозволяет агенту искать в сохраненном архиве задач и запросов на слияние GitHub, объединять дубликаты и проверять их текущий статус на GitHub.
slacrawl
394kПозволяет агенту искать и считать сообщения в локальном архиве Slack, проверять его свежесть и при необходимости обновлять архив.
goplaces
394kПомогает агенту искать места, получать их подробности и отзывы и определять названия мест через Google Places, с выводом в JSON для скриптов.