yao-kelly-skill
Yao Kelly Skill
Use This Skill For
- turn "should I invest, bet, or allocate, and how much?" into a practical resource allocation plan
- decide whether the user's problem is actually suitable for Kelly-style sizing
- translate a percentage into a minimum action package with owner, metric, review window, add condition, and stop condition
- start with incomplete input, give a provisional view early, then ask only the minimum high-impact follow-up questions
- size a single bet or opportunity, or conservatively split a pool across several opportunities
- keep a round-by-round log for the current case and an append-only change log for future edits to this skill
Do Not Route Here
- pure formula tutoring, homework solving, or generic finance education
- requests for guaranteed returns, sure-win systems, or martingale-style escalation
- final licensed investment, legal, or tax advice
- leverage sizing with no bounded downside model
Default Workflow
- Use
references/intake-contract.mdto identify the user's real resource pool, decision question, minimum action unit, review window, and opportunity candidates. - If the input is incomplete, read
references/multi-turn-kelly-loop.md:- ask only
1-3questions that can materially change the result - recalculate
decision_readinessafter every round - stop asking when the threshold is met or the action class is already stable
- ask only
- Decide whether Kelly is suitable:
- use it when downside is bounded, the opportunity can be tested or repeated, and probabilities can be approximated
- switch to a test-first or risk-review answer when the decision is irreversible, one-off, or has unbounded downside
- Use
references/kelly-sizing-playbook.mdto choose the formula path:- binary opportunity: standard Kelly closed form
- scenario-based opportunity: maximize
E[log(1 + f * r)] - multiple opportunities: compute standalone Kelly first, then apply fractional Kelly, dependence haircuts, and total exposure scaling
- Run
scripts/kelly_allocation_report.pyfor canonical JSON sizing output. - Run
scripts/generate_html_report.pywhen the user wants a polished standalone HTML report or PDF-ready artifact. - Use
references/output-contract.mdto produce a practical allocation report:- resource snapshot
- fit assessment
- minimum action packages
- Kelly sizing cap
- add, stop, and review conditions
- Use
references/logging-contract.mdto maintain:- the case round log for the current user request
- the append-only iteration log in
history/CHANGELOG.mdwhenever this skill package changes
- Apply
references/safety-and-scope.mdbefore finalizing.
Core Rules
- default to
fractional Kelly, notfull Kelly - never make the formula the main product; the main product is a resource allocation action plan
- mark each key number as
observed,estimated, orassumed - if correlation across opportunities is unknown, shrink exposure instead of assuming independence
- if the edge is negative, fragile, or mostly assumption-driven, recommend
no allocation,observe, orrun a cheap test first - always translate the final fraction into the smallest next action the user can actually do
- include add, stop, and review conditions so the allocation can improve after real feedback
- stop asking once more questions are unlikely to change the action class
- every future edit to this skill must append a dated note to
history/CHANGELOG.md
Output Contract
- deliver a Kelly application report, not just a formula
- prefer
HTML + JSONwhen the user wants a report artifact; use JSON as the audit source and HTML as the readable hand-back - the report must include:
- recommendation summary and action class
- Kelly fit assessment
- current capital or resource base, protected reserve, risk budget, and translated amount
- minimum action package per opportunity
- full Kelly fraction and conservative Kelly execution cap
- add, stop, and review conditions
- formula path and key assumptions
- why the questioning stopped
- round log
More from yaojingang/yao-open-skills
yao-tutorial-skill
Create standalone beginner tutorial packages from a topic or supplied references, with adaptive research, course-style outline design, chapter visuals, and Markdown/DOCX/PDF/HTML exports. Use for textbook-like tutorials, course guides, teaching documents, or long beginner guides; not for quick answers, link summaries, pure diagrams, or file conversion.
38yao-bayesian-skill
Convert uncertain real-world choices into an auditable Bayesian evidence-to-action report with priors, evidence grading, posterior update, action thresholds, sensitivity checks, multi-turn decision logs, and Markdown plus bilingual HTML output. Do not use for Bayes theorem tutoring, homework, generic brainstorming with no report, or final licensed medical, legal, or financial advice.
16learning-builder
Create personalized learning tutorials from a learner profile and authority-first research. Use when the user wants a guided intake to clarify goals, background, constraints, and desired outcomes, then wants a structured tutorial or study guide assembled from official docs, standards, maintainer docs, regulator guidance, or other primary sources. Also use when the user wants the tutorial exported to Word or PDF, or wants to extend the finished tutorial into a personalized learning webpage. Do not use for one-off factual answers, generic blog writing, broad web research without a tutorial deliverable, or standalone webpage design with no learning packet.
5skill-doctor
Scan local skill folders to inventory purpose, usage signals, cleanup priority, and safety risks, then generate a visual HTML audit report. Use when Codex needs to audit a skill library, organize or deduplicate skills, recommend backup, archive, or delete actions, or review downloaded third-party skills for prompt injection, token leakage, hardcoded secrets, risky shell execution, and suspicious network-fetch patterns before the user installs or runs them.
4yao-business-skill
Design, diagnose, and study business models from ideas, product websites, or company names. Use when asked to create options for a new idea, audit an existing product's monetization and competitors, or analyze a mature company's model and AI-era upgrade paths. Adjust for market, buyer, and operating environment, then output JSON plus HTML.
4yao-open-skills-sync
Manage the yao-open-skills public collection. Use this skill whenever the user wants to evaluate whether a local skill should be open sourced, import a local skill into the yao-open-skills repository, register which skills are already public, track GitHub sync status, or update the collection README and catalog after adding or refreshing a skill.
4