category-allocation-best-response
БесплатноБез исполняемых скриптовНе проверенComputes the best-response allocation of roster resources across categories in a Head-to-Head Categories matchup. Given our per-category capacity, the…
от lyndonkl★ 208 звёзд на GitHubОб этом скилле
Category Allocation Best-Response
Table of Contents
Example
Scenario: Yahoo MLB 10-category H2H, Week 8. Threshold = 6 of 10. Upstream matchup-win-probability-sim returned per_cat_win_probability for the current week. Our resources: 5 open roster slots, $80 FAAB, 3 streamer starts.
Inputs:
| Cat | our_capacity | opp_projection | per_cat_win_prob | Inverse? |
|---|---|---|---|---|
| R | 42 | 38 | 0.64 | no |
| HR | 12 | 14 | 0.35 | no |
| RBI | 40 | 41 | 0.47 | no |
| SB | 6 | 4 | 0.72 | no |
| OBP | 0.335 | 0.328 | 0.64 | no |
| K | 55 | 50 | 0.64 | no |
| ERA | 3.85 | 4.10 | 0.65 | yes |
| WHIP | 1.22 | 1.28 | 0.68 | yes |
| QS | 4 | 3 | 0.69 | no |
| SV | 2 | 5 | 0.08 | no |
Classification by win probability:
- SV (0.08):
conceded— dominated strategy. Opponent has 5 projected SV to our 2; no marginal roster slot flips this. Leverage = 0. - HR (0.35):
contested— borderline-losing but within reach. Leverage = 1.5. - RBI (0.47):
contested— coin-flip. Leverage = 1.5. - R (0.64), OBP (0.64), K (0.64), ERA (0.65), WHIP (0.68), QS (0.69):
pushed(lock-in needs attention, 0.25–0.85). Leverage = 1.2. (0.70 is the boundary — one of these would sit on thecontestedside at 1.5 if very close to the line.) - SB (0.72):
pushed. Leverage = 1.2.
No cat exceeds 0.85 on this week; no cats are locked.
Outputs:
pushed_cats:[SB, QS, WHIP, ERA, K, R, OBP](7 cats at 0.64–0.72, ordered by win prob descending)conceded_cats:[SV]contested_cats:[HR, RBI]leverage_weights:{R: 1.2, HR: 1.5, RBI: 1.5, SB: 1.2, OBP: 1.2, K: 1.2, ERA: 1.2, WHIP: 1.2, QS: 1.2, SV: 0.0}k_of_n_win_probability: 0.605 (Poisson-binomial over the 10 per-cat probabilities with threshold 6)rationale: "SV is a dominated strategy (8% flip probability) — do not spend a reliever slot. The 7 pushed cats cover the 6-cat threshold on median, so lock them in and invest marginal resources into HR and RBI (contested, 1.5x leverage) where one extra power bat can flip the matchup."
Interpretation: if we simply defend the 7 pushed cats we hit threshold in expectation. The contested cats (HR, RBI) are where the highest-leverage moves live — every marginal HR or RBI unit maps almost 1-for-1 to matchup win probability.
Workflow
Copy this checklist and track progress:
Category Allocation Best-Response Progress:
- [ ] Step 1: Validate inputs and confirm upstream signals
- [ ] Step 2: Classify each cat by per_cat_win_probability
- [ ] Step 3: Assign leverage_weights
- [ ] Step 4: Check threshold satisfaction (pushed + contested >= K?)
- [ ] Step 5: Apply borderline-upgrade logic if threshold not met
- [ ] Step 6: Compute k_of_n_win_probability via Poisson-binomial
- [ ] Step 7: Write rationale and emit outputs
Step 1: Validate inputs and confirm upstream signals
per_cat_win_probability is the critical upstream dependency and must come from matchup-win-probability-sim (or an equivalent simulator). Do not invent per-cat probabilities from raw capacity vs projection — matchup-win-probability-sim accounts for variance, and variance is what determines flip probability for contested cats. See resources/methodology.md.
- Every cat appears in
our_per_cat_capacity,opp_per_cat_projection, andper_cat_win_probability - All
per_cat_win_probabilityvalues are in[0, 1] -
cat_win_thresholdis in[1, N]whereN = len(cats) -
inverse_catsis a subset of the cat list -
resources_availabledict is present (even if empty — downstream skills may still consume leverage weights without a resource plan) - Upstream
random_seedfrommatchup-win-probability-simis recorded for audit
Step 2: Classify each cat by per_cat_win_probability
Apply the four-tier classification in Quick Reference. The thresholds are deliberate — see resources/methodology.md for the Blotto-derived rationale.
-
< 0.25→conceded_cats(dominated strategy — any roster slot here is strictly worse than redeploying) -
0.25–0.70→contested_cats(highest marginal value of one more unit) -
0.70–0.85→pushed_cats(needs attention but should hold) -
> 0.85→locked(do not waste marginal resources — returns are near-zero) - Inverse cats (ERA, WHIP, TO, GAA, etc.) use
per_cat_win_probabilitydirectly — the inverse handling has already been applied upstream bymatchup-win-probability-sim. Do not re-invert.
Step 3: Assign leverage_weights
Leverage weights propagate to mlb-lineup-optimizer, mlb-streaming-strategist, mlb-waiver-analyst, and any downstream consumer that maxim
Установить category-allocation-best-response в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл category-allocation-best-response?
Computes the best-response allocation of roster resources across categories in a Head-to-Head Categories matchup. Given our per-category capacity, the opponent's projected output, per-category win probabilities (from matchup-win-probability-sim), and a K-of-N winning threshold, classifies categories into pushed / contested / conceded buckets, emits per-category leverage weights for downstream lineup and streaming decisions, computes the resulting K-of-N win probability, and writes a plain-English rationale. Domain-neutral — portable to any fantasy sport with H2H Cats scoring (MLB 10-cat, NBA 9-cat, NHL 10-cat). Use when you need push/punt decisions, dominated-strategy elimination, leverage weights per cat, or best-response allocation; or when the user mentions "category allocation", "push or punt", "K of N cats", "dominated strategy elimination", "best response allocation", "Blotto fantasy", "leverage weights per cat", or "which cats to push".
Как установить скилл category-allocation-best-response?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл category-allocation-best-response запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic