跳到正文
cccskills
免费在 GitHub 公开

yao-decision

Classify messages, rate content, or estimate probabilities using defined question types. Receive machine-readable answers, with confidence scores for classification and ratings, and apply the same questions to multiple inputs in a batch.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

查看安装方法

适用场景

  • Routing customer inquiries to departments
  • Rating support quality against defined criteria
  • Classifying sentiment across multiple messages
  • Estimating the probability that an inquiry is urgent

包含的文件(1)

  • SKILL.md4.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

TypePurposeCriteriaAnswer Fields
choiceClassify into one of N options{option: description} mapchoice, probabilities, confidence
scoreRate on a scale[level_labels] arrayscore, legend, probabilities, confidence
noulEstimate 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
ParameterTypeRequiredDescription
statestring/object/arrayyes*The context for the decision (*mutually exclusive with states)
questionsJSON objectyesMap of question_id to question definition
modelstringnoModel name override (default: provider's configured model)
providerstringnoProvider connector ID (default: decision role or first available)
timeoutintegernoTimeout in seconds (default: 60)
statesarrayno*Array of state items for batch decisions (*mutually exclusive with state)
state_filestringnoRead state from file (tai CLI only)
questions_filestringnoRead 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: 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"}
  ]
}

decision_providers

List available decision providers and their models.

tai tool decision_providers
ParameterTypeRequiredDescription
capabilitystringnoFilter by capability (default: decision)

Returns a list of providers with available models, connector IDs, and availability status.

Constraints

  • state and states are mutually exclusive; provide one or the other.
  • Each question must have type (choice/score/noul) and instructions.
  • criteria is required for choice (map) and score (array); noul must not have criteria.
  • Batch states must not contain empty strings or null values.
  • timeout defaults to 60s; values ≤ 0 are treated as the default.
  • Batch mode runs up to 5 concurrent calls; timeout applies to the entire batch.
  • Response model is the resolved concrete model ID (e.g. jev-1.13.0), not the requested alias.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

yao-agent

免费

Manage agents on a host by listing their capabilities, reading source code, and downloading or deploying agents in the smith namespace. Check available language model connections and their roles without exposing API keys.

中文简介正在准备中。当前显示英语简介。

  • Find available agents and check their capabilities
  • Study existing agent source code
  • Download and deploy smith agents for editing
YaoApp/yao81472026年10月18日 更新

yao-audio

免费

Turn recorded speech into text from supported audio files such as mp3, m4a, and wav. Detect the language automatically or specify it, and list available speech recognition providers and models before choosing one.

中文简介正在准备中。当前显示英语简介。

  • Transcribe a meeting recording
  • Convert an audio recording into text
  • Transcribe audio in a specified language
YaoApp/yao81472026年10月18日 更新

yao-board

免费

Check kanban boards, which organize tasks into columns, and retrieve task lists filtered by status, assistant, or board. Use the returned data to see task counts and review work in progress.

中文简介正在准备中。当前显示英语简介。

  • Reviewing board columns and task counts
  • Finding tasks that are running or waiting
  • Checking tasks assigned to a specific assistant
YaoApp/yao81472026年10月18日 更新

Start and manage long-running background services such as development servers. Check their status and output logs, verify listening ports, retrieve local URLs, and restart services while keeping the same service ID.

中文简介正在准备中。当前显示英语简介。

  • Starting a development server in the background
  • Checking service status and output logs
  • Restarting a service while keeping its ID
YaoApp/yao81472026年10月18日 更新

yao-doc

免费

Look up callable processes in Yao, inspect their arguments and return types, and check whether a process name is valid. Use the documentation to prepare calls and find suggested alternatives for misspelled names.

中文简介正在准备中。当前显示英语简介。

  • Find Yao processes by keyword
  • Check arguments and return types before calling a process
  • Validate process names when a call fails
YaoApp/yao81472026年10月18日 更新

yao-image

免费

Describe photos, screenshots, and charts in text, generate images from written prompts, or edit existing images. Supports background replacement, transparent output, and edits limited to an area defined by a mask.

中文简介正在准备中。当前显示英语简介。

  • Get a text description of a photo or screenshot
  • Generate a landscape image from a written prompt
  • Replace a photo background or change its style
YaoApp/yao81472026年10月18日 更新

查看 YaoApp 的全部技能

报告此技能的问题