Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính8.3k · #12473

yao-decision

Skill này làm gì

Skill này gửi một tình huống đến mô hình quyết định, mô hình này trả lời bằng các nhóm cố định, điểm đánh giá hoặc xác suất. Dành cho các nhóm muốn câu trả lời nhất quán, dễ sắp xếp thay vì văn bản tự do.

Khi nào nên dùng

  • ✓Khi bạn cần chuyển các yêu cầu hỗ trợ đến đúng bộ phận.
  • ✓Khi bạn muốn nội dung được chấm theo thang cố định, chẳng hạn từ kém đến xuất sắc.
  • ✓Khi bạn muốn ước lượng khả năng một điều gì đó xảy ra, kèm mức độ tin cậy.

Liên kết skill

https://github.com/YaoApp/yao/blob/main/tools/skills/yao-decision/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/YaoApp/yao/blob/main/tools/skills/yao-decision/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Phân loại tin nhắn này của khách hàng vào thanh toán, kỹ thuật hoặc bán hàng, và cho tôi biết có khẩn cấp không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent mô tả tình huống và liệt kê các câu hỏi cần trả lời. Mô hình quyết định trả về một lựa chọn, một điểm số hoặc một xác suất cho mỗi câu hỏi, cùng mức độ tin cậy.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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: 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
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

  • 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 v
Câu hỏi thường gặp

Skill đưa ra những loại câu trả lời nào?

Một lựa chọn trong các phương án đã đặt tên, một điểm trên thang đo, hoặc xác suất từ 0 đến 1.

Vì sao không yêu cầu trả lời bằng văn bản thường?

Câu trả lời có cấu trúc dễ sắp xếp, so sánh và kiểm tra hơn.

Tôi có thể chọn mô hình không?

Có. Có thể chỉ định rõ một nhà cung cấp cụ thể.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
8.3k
Vị trí xếp hạng
#12473
Giấy phép
—
Cập nhật
19/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự