← ClaudeAtlas

shadow-size-positionlisted

Size a trading position with FinPos discipline. Takes a direction from an upstream Judge (long / short / no_op), a bankroll, a volatility regime, and Kelly parameters — returns a fund/skip verdict with Kelly-cap- respecting, drawdown-adjusted position size. Never emits a direction (that's the Judge's job upstream). Cross-vertical wire format identical to the Orallexa Python engine so banking + trading audit trails share one schema.
alex-jb/shadow-mentor · ★ 1 · AI & Automation · score 78
Install: claude install-skill alex-jb/shadow-mentor
# Shadow Size Position (trader-pack) Position sizing with direction/sizing separation. Direction is an input. ## When to use The user's request combines all of: 1. A stated direction �� long, short, or no_op. 2. Bankroll in USD. 3. Volatility regime — low, medium, high. 4. Kelly parameters — historical win rate (0–1), average win %, average loss %. Optional but recommended: - `current_drawdown_pct` — will shrink position size linearly if provided. - `max_kelly_cap` — defaults to 0.25 (25% of bankroll) if not specified. If any of the four required inputs is missing, ask for it. Do not fabricate a Kelly p_win. ## What it does Calls `shadow_size_position` MCP tool. Under the hood: 1. **Kelly notional** — fractional Kelly (default 0.5 = half-Kelly) computed from p_win + R:R ratio. 2. **Max cap** — hard-limits at `max_kelly_cap × bankroll`. If Kelly says 40% but cap is 25%, cap wins. 3. **Volatility scalar** — low = 1.0, medium = 0.7, high = 0.4. Multiplied into the cap-limited notional. 4. **Drawdown adjustment** — shrinks linearly toward zero as drawdown approaches max tolerable. 5. **Round to cents** — final position_usd is a real dollar amount. Returns: ```json { "voice": "Risk Sizer", "verdict": "fund" | "skip", "position_usd": 350.00, "kelly_notional": 500.00, "volatility_scalar": 0.7, "rationale": "Kelly=500 (p_win=0.55, R=2:1); capped at 25%=2500; volatility=medium scalar=0.70; drawdown-adjusted final=350. Direction was fixed by Judge upstream.", "