Agent skill

Yao Decision Tools

by YaoApp in YaoApp/yao

Returns typed answers from a decision model, such as a category choice, a score on a labeled scale or a probability, each with confidence, for routing and grading tasks.

Custom licenceAuto-check passedAI & LLM Engineering

Install Yao Decision Tools

skills CLI
$ npx skills add YaoApp/yao --skill yao-decision -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install YaoApp/yao yao-decision --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/YaoApp/yao.git skills-src && mkdir -p .claude/skills && cp -r skills-src/tools/skills/yao-decision .claude/skills/yao-decision && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
yao-decision
GitHub stars
8.1k
Token cost
~1.3k tokens
SKILL.md length
334 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
Custom licence

At a glance

Returns typed answers from a decision model, such as a category choice, a score on a labeled scale or a probability, each with confidence, for routing and grading tasks.

  • Routing customer messages to the right department with a confidence value
  • SKILL.md covers decision_decide, decision_providers and Constraints
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Grading content or an agent reply on a labeled quality scale

What it does

The skill documents the decision_decide tool, run through the tai command line. You pass a state (the context to judge) and one or more named questions, and the decision model answers in machine-readable form instead of free text. Three question types exist: choice picks one of several described options, score rates against a list of level labels, and noul estimates a probability between 0 and 1.

Choice and score answers include probabilities and a confidence value. You can send one state or a batch of states against the same questions, read states and questions from files, and select a provider or a model override. The timeout is configurable and defaults to 60 seconds. Typical uses are ticket routing, content grading and intent detection.

When your agent uses it

  • Routing customer messages to the right department with a confidence value
  • Grading content or an agent reply on a labeled quality scale
  • Detecting intent or sentiment across a batch of messages
  • Estimating the probability that a statement is positive or true

Example prompts

  • “Classify this support message as billing, shipping or technical and give me the confidence.”
  • “Score these three agent replies for clarity on a five-level scale.”
  • “Run the questions in routing_questions.json against customer_message.txt.”

Requirements

  • The tai command line tool
  • A configured decision model provider

What it can do on your machine

Read from SKILL.md and the folder at commit eea1e7e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Yao Decision Tools loads about 1.3k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 334 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 334 words (~1,260 tokens).

“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.”

— opening of SKILL.md by YaoApp, Custom licence
name
yao-decision

Read the full SKILL.md on GitHub

Files

Just SKILL.md in tools/skills/yao-decision of YaoApp/yao.

Open the folder on GitHubat commit eea1e7e

Compare with similar skills

Yao Decision Tools next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Yao Decision Tools compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Yao Decision Tools this skillYaoApp/yao8.1k—~1.3kAutomated safety check: PassCustom licence
AI SDKvercel-labs/ai-facts16820 repos~1.2kAutomated safety check: PassNone
Building Pydantic AI Agentsdocling-project/docling69k—~2.8kAutomated safety check: PassMIT
Claude Cookbooks Reference2025Emma/vibe-coding-cn23k1 repos~2.2kAutomated safety check: PassMIT
Gemini API Devgoogle-gemini/gemini-skills4.3k—~5.1kAutomated safety check: PassApache-2.0
Building Pydantic AI Agentspydantic/pydantic-ai20k—~8kAutomated safety check: PassMIT

Similar skills

  • AI SDK

    vercel-labs/ai-facts

    Official

    Answer questions about the AI SDK and help build AI-powered features.

    168 GitHub starsUsed in 20 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Building Pydantic AI Agents

    docling-project/docling

    Patterns and tested examples for building agents with Pydantic AI: tools, capabilities, structured output, dependency injection, hooks, YAML specs, streaming and testing.

    69k GitHub stars~2.8k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Claude Cookbooks Reference

    2025Emma/vibe-coding-cn

    Reference of Claude API examples and guides covering tool use, vision, RAG, classification, summarization, text-to-SQL, prompt caching and agent patterns.

    23k GitHub starsUsed in 1 repo~2.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Gemini API Dev

    google-gemini/gemini-skills

    Official

    A skill your agent uses when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, speech generation (TTS), voice…

    4.3k GitHub stars~5.1k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Building Pydantic AI Agents

    pydantic/pydantic-ai

    Official

    Build AI agents with Pydantic AI — tools, capabilities (including on-demand loading), workspaces, structured output, streaming, testing, and multi-agent patterns.

    20k GitHub stars~8k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Perfup

    raullenchai/Rapid-MLX

    Autonomous performance optimization: research, PoC, benchmark, implement, review, PR

    3.9k GitHub stars~1.6k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes

More from YaoApp/yao

All 14 skills in this repo
  • Lists, downloads, references and deploys agents on a Yao host through five bash-invoked tools, keeping edits to the smith namespace while allowing read-only study of any agent.

    8.1k GitHub stars~873 tokensUpdated yesterday
    Auto-check passed
  • Transcribes audio files such as mp3, m4a, wav and webm to text with the tai audio_transcribe tool, and lists the available speech-to-text providers.

    8.1k GitHub stars~416 tokensUpdated yesterday
    Auto-check passed
  • Starts, lists, checks, restarts and stops long-running background services through Yao daemon tools, reporting the verified port and URL of each.

    8.1k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Yao Image Tools

    YaoApp/yao

    Lets an agent read and describe images through a vision model and generate or edit images from text prompts, using the tai command-line tool.

    8.1k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Starts, lists, monitors, waits on and stops long-running background commands through a dedicated set of job-management tools.

    8.1k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Lists workspaces and reads or writes their files on a remote node through five tai tool commands, for cross-node file work the local filesystem cannot do.

    8.1k GitHub stars~939 tokensUpdated yesterday
    Auto-check passed

Questions about Yao Decision Tools

What does Yao Decision Tools do?

Returns typed answers from a decision model, such as a category choice, a score on a labeled scale or a probability, each with confidence, for routing and grading tasks. The skill documents the decision_decide tool, run through the tai command line. You pass a state (the context to judge) and one or more named questions, and the decision model answers in machine-readable form instead of free text.

When should I use Yao Decision Tools?

Yao Decision Tools fits situations like: routing customer messages to the right department with a confidence value; grading content or an agent reply on a labeled quality scale; detecting intent or sentiment across a batch of messages; estimating the probability that a statement is positive or true.

How do I install Yao Decision Tools in Claude Code?

Run `npx skills add YaoApp/yao --skill yao-decision -a claude-code`. Or copy the skill folder (tools/skills/yao-decision in YaoApp/yao) into .claude/skills/yao-decision in your project. Claude Code loads it when a task matches its description.

How do I install Yao Decision Tools in Codex?

Run `npx skills add YaoApp/yao --skill yao-decision -a codex`. Or copy the skill folder (tools/skills/yao-decision in YaoApp/yao) into .agents/skills/yao-decision in your project. Codex loads it when a task matches its description.

Can I use Yao Decision Tools in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add YaoApp/yao --skill yao-decision -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/yao-decision, .gemini/skills/yao-decision, .github/skills/yao-decision and .opencode/skills/yao-decision in your project.

What does Yao Decision Tools need to run?

SKILL.md names no scripts, command-line tools or credentials: Yao Decision Tools is instructions for the agent only. Our summary lists: The tai command line tool; A configured decision model provider.

Does Yao Decision Tools access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Yao Decision Tools safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Yao Decision Tools use?

Yao Decision Tools has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Yao Decision Tools use?

About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Yao Decision Tools?

Skills that share tags, products or a category with Yao Decision Tools: AI SDK (vercel-labs/ai-facts, 168 stars), Building Pydantic AI Agents (docling-project/docling, 69k stars), Claude Cookbooks Reference (2025Emma/vibe-coding-cn, 23k stars) and Gemini API Dev (google-gemini/gemini-skills, 4.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Yao Decision Tools?

YaoApp (a GitHub organization) maintains it in YaoApp/yao, which has 8,103 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 8, 2026.

Source: YaoApp/yao on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.