Yao Bayesian Skill

Turns a hard real-life choice into a clear decision report: starting odds, graded evidence, an updated probability and a recommended next step.

Productivity & Lifedecision makingbayesianprobabilityreportsby yaojingang1.3kGitHub

What it is

Yao Bayesian Skill is for people facing an uncertain, real decision, such as whether to take a trip, launch a product feature or start a business, who want more than a gut call. It uses Bayesian reasoning, a way of starting from a base estimate and adjusting it as evidence comes in, but keeps the maths in the background. Reports default to Simplified Chinese, with an HTML version that switches between Chinese and English. It is not a statistics tutor and does not give final medical, legal or financial advice.

The agent first turns your question into a structured brief: the hypothesis, time frame, what success means, and at least two actions such as acting now, running a cheaper test first or pausing. If you give little detail, it starts with a weak, clearly labelled estimate and asks one to three follow-up questions, logging how the judgment shifts each round. Evidence is graded from A (official statistics, systematic reviews) to E (marketing or social posts, never used as core evidence), and overlapping signals are discounted rather than counted twice. Numbers are marked as observed, estimated or assumed.

The report leads with a one-sentence conclusion and a plain action recommendation, then explains the result as natural frequencies ('about 47 out of 100 similar cases'), compares actions against thresholds and expected value, and tests whether the answer holds if the starting estimate or evidence changes. It names the single most useful piece of information to collect next. Bundled Python scripts produce a Markdown file and an HTML page with collapsible sections and a Save as PDF button.

What it can do

  • Converts a vague question into a hypothesis, time frame, success measure and two or three concrete actions.
  • Starts from a weak estimate when information is thin and asks only the next one to three questions.
  • Grades each piece of evidence from A to E and discounts signals that come from the same source.
  • Updates the probability with odds or count-based methods and explains it as 'out of 100 similar cases'.
  • Compares acting now, testing first or pausing using thresholds, expected value and a sensitivity check.
  • Applies a checklist of judgment habits, such as looking at base rates first and avoiding irreversible losses.
  • Exports a Chinese Markdown report and a bilingual Chinese and English HTML report that prints to PDF.

When to use it

  • You are deciding whether to take leave and fly to Sanya next month, and keep going back and forth.
  • Your team has pilot feedback on an AI add-on and must decide whether to commit eight weeks of engineering.
  • You are thinking of quitting to start a service business and want your assumptions and evidence laid out honestly.
  • A manager wants a written, checkable rationale for a go or no-go call rather than an opinion from a meeting.

How it works

  1. 1Turns your request into a decision brief and names the closest comparable cases to set a starting estimate.
  2. 2If details are missing, gives a provisional judgment, asks a few high-value questions and logs each round.
  3. 3Grades the evidence, picks the simplest valid update method and checks the result against the judgment checklist.
  4. 4Runs bundled Python scripts that calculate the update, the sensitivity ranges and the comparison of actions.
  5. 5Generates a Simplified Chinese Markdown report and a bilingual HTML report, adding a professional-review warning for medical, legal or financial cases.

Try asking

“Help me decide whether to launch this feature this quarter, using a Bayesian decision report.”
“I can't decide whether to move cities for this job. Walk me through the evidence and give me a report.”
“Our pilot had 14 of 40 users convert. Should we roll it out to everyone?”
“Make a Bayesian evidence-to-action report on whether I should start this side business.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/yaojingang/yao-open-skills/tree/main/skills/yao-bayesian-skill
pnpm
pnpm dlx skills add https://github.com/yaojingang/yao-open-skills/tree/main/skills/yao-bayesian-skill

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the yao-bayesian-skill folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/yaojingang/yao-open-skills.git
mkdir -p ~/.claude/skills
cp -r yao-open-skills/skills/yao-bayesian-skill ~/.claude/skills/yao-bayesian-skill

Then just ask in plain language, for example: “Help me decide whether to launch this feature this quarter, using a Bayesian decision report.”