Skip to main content

sizing

Calculates optimal position sizes using the Kelly criterion for effective bankroll management in trading.

Install this skill

or
15/100

Security score

The sizing skill was audited on Feb 22, 2026 and we found 17 security issues across 1 threat category. Review the findings below before installing.

Categories Tested

Security Issues

medium line 71

Template literal with variable interpolation in command context

SourceSKILL.md
71console.log(`Optimal bet: $${size.optimalSize}`);
medium line 72

Template literal with variable interpolation in command context

SourceSKILL.md
72console.log(`Edge: ${size.edge}%`);
medium line 73

Template literal with variable interpolation in command context

SourceSKILL.md
73console.log(`Kelly %: ${size.kellyPercent}%`);
medium line 74

Template literal with variable interpolation in command context

SourceSKILL.md
74console.log(`Expected value: $${size.expectedValue}`);
medium line 96

Template literal with variable interpolation in command context

SourceSKILL.md
96console.log(`Full Kelly: $${sizing.kelly({...}).optimalSize}`);
medium line 97

Template literal with variable interpolation in command context

SourceSKILL.md
97console.log(`Half Kelly: $${halfKelly.optimalSize}`);
medium line 98

Template literal with variable interpolation in command context

SourceSKILL.md
98console.log(`Quarter Kelly: $${quarterKelly.optimalSize}`);
medium line 117

Template literal with variable interpolation in command context

SourceSKILL.md
117console.log(`${alloc.name}: $${alloc.size} (${alloc.percent}%)`);
medium line 138

Template literal with variable interpolation in command context

SourceSKILL.md
138console.log(` ${pos.market}: $${pos.size}`);
medium line 140

Template literal with variable interpolation in command context

SourceSKILL.md
140console.log(`Total exposure: ${portfolio.totalExposure}%`);
medium line 155

Template literal with variable interpolation in command context

SourceSKILL.md
155console.log(`Confidence-adjusted size: $${size.optimalSize}`);
medium line 167

Template literal with variable interpolation in command context

SourceSKILL.md
167console.log(`Edge: ${edge.edgePercent}%`);
medium line 168

Template literal with variable interpolation in command context

SourceSKILL.md
168console.log(`EV per dollar: $${edge.evPerDollar}`);
medium line 169

Template literal with variable interpolation in command context

SourceSKILL.md
169console.log(`Implied odds: ${edge.impliedOdds}`);
medium line 170

Template literal with variable interpolation in command context

SourceSKILL.md
170console.log(`True odds: ${edge.trueOdds}`);
medium line 183

Template literal with variable interpolation in command context

SourceSKILL.md
183console.log(`Position size: $${size.positionSize}`);
medium line 184

Template literal with variable interpolation in command context

SourceSKILL.md
184console.log(`Max loss: $${size.maxLoss}`);
Scanned on Feb 22, 2026
View Security Dashboard

Install this skill with one command

/learn @alsk1992/sizing
GitHub Stars 53
Rate this skill
Categoryfinance accounting
UpdatedMarch 29, 2026
alsk1992/CloddsBot