yao-bayesian-skill

Convert uncertain decisions into auditable Bayesian evidence-to-action reports with bilingual HTML output.

1.3k|146|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/yaojingang/yao-open-skills --skill yao-bayesian-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yao-bayesian-skill
Source: https://github.com/yaojingang/yao-open-skills/tree/main/skills/yao-bayesian-skill
Command: npx skills add https://github.com/yaojingang/yao-open-skills --skill yao-bayesian-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

It turns vague, high-uncertainty choices into a structured, auditable decision report with explicit priors, graded evidence, posterior updates, action thresholds, and sensitivity checks, instead of relying on gut feel or unstructured brainstorming.

Core Features & Use Cases

  • Bayesian Decision Pipeline: Structure a decision into hypothesis, time horizon, success metric, and actions; set a prior, grade evidence, update the posterior via odds or Beta-binomial methods, and compare action thresholds by expected value.
  • Multi-Turn Decision Loop: Start from incomplete input with a weak prior, ask the minimum next questions, and log each round's probability change, readiness, and remaining gaps.
  • Automated Report Export: Generate a Chinese-first Markdown report plus a bilingual (Chinese/English) HTML report with sticky navigation, collapsible sections, and print/save-as-PDF support.
  • Use Case: A product team unsure whether to launch a new feature this quarter feeds in interview signals, pilot data, and cost parameters, then receives a report recommending a paid pilot first, with sensitivity analysis showing when the recommendation would flip.

Quick Start

Ask the assistant to use the yao-bayesian-skill to evaluate whether you should proceed with a specific decision, providing your hypothesis, available evidence, and possible actions.

Frequently Asked Questions about yao-bayesian-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make a decision under uncertainty with Bayesian analysis?

Structure your choice into a hypothesis, time horizon, success metric, and candidate actions, then set a prior probability, grade each piece of evidence with a likelihood ratio, and update to a posterior. The skill maps the posterior to action thresholds and expected values so you get a concrete recommendation, not just a probability.

What inputs does a Bayesian decision report need?

A structured JSON request containing the decision question, hypothesis, prior (probability or Beta alpha/beta), evidence items with likelihood ratios and quality grades, candidate actions with costs and payoffs, and optional sensitivity ranges and conversation rounds. A template is provided in the input directory.

Can I use this if my information is incomplete?

Yes. The multi-turn dialogue loop starts with a weak prior, identifies missing information, and asks the minimum next questions. Each round logs the prior, posterior, decision readiness, and remaining gaps until the readiness threshold is reached.

Does the report support languages other than Chinese?

Reports default to Simplified Chinese, and the HTML version includes a Chinese/English toggle. The HTML also supports sticky navigation, collapsible advanced sections, and printing or saving as PDF from the browser.

When should I not use Bayesian decision reports?

Do not use this for Bayes theorem tutoring or homework, open-ended brainstorming with no decision report, or final licensed medical, legal, or financial advice. It is designed for structured decision support, not professional certification of high-stakes judgments.