Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/deciqAI/knowledge-skillsnpx agentmods add skills/deciqai/knowledge-skills/ria-position-sizing-kellyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/deciqai/knowledge-skills/ria-position-sizing-kelly)<a href="https://agentmods.dev/skills/deciqai/knowledge-skills/ria-position-sizing-kelly"><img src="https://agentmods.dev/badge/skills/deciqai/knowledge-skills/ria-position-sizing-kelly/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/deciqai/knowledge-skills/ria-position-sizing-kelly"><img src="https://agentmods.dev/badge/skills/deciqai/knowledge-skills/ria-position-sizing-kelly.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.00681 |
| Opus 5.5 | $0.00028 | $0.00272 |
| Sonnet 5.5 | $0.00014 | $0.00136 |
| Haiku 4.5 | $0.00007 | $0.00068 |
Grade A, and why
ria-position-sizing-kelly scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RIA — Position Sizing & Concentration Discipline
Industry front door for expected-value-and-kelly. Adds domain triggers, example, packs only. Parent Process unchanged. Not investment advice. Educational framework; apply within IPS and suitability.
Activate when: sizing a single-name or thematic position; a client with concentrated stock; setting max-position/rebalancing bands; "how much of the portfolio should this be?" Do NOT activate when: broad index allocation already governed by the IPS.
Why this variant
The parent expected-value-and-kelly sizes repeated positive-edge bets to maximize long-run growth without ruin. For an RIA, the discipline is inverted toward survival: fractional-Kelly thinking caps concentration so no single position can impair the client's plan.
Domain inputs → parent's Process
- Establish the edge is real and repeatable before sizing anything.
- Use fractional Kelly (e.g. ¼–½) — full Kelly is too volatile for client capital.
- Bound by IPS max-position and drawdown tolerance; the smaller of Kelly-implied and IPS cap wins.
- Treat concentrated legacy stock as an over-sized position to unwind on a tax-aware schedule.
Worked example
Client insists on a 25% single-stock position. → Even a generous edge under fractional Kelly rarely justifies 25% of a household's net worth; ruin risk dominates. Frame the trade-off, cap per IPS, and set a diversification glide-path (tax-aware). Documented as a suitability decision.
Packs
- Solo: max-position + rebalancing-band rules in the IPS.
- Advisory: concentrated-stock unwind playbook (tax-aware).
Red flags
- Sizing to full Kelly / conviction with client capital.
- Concentration exceeding IPS caps "because it's been working."
- No ruin/drawdown check.
Verification
- Edge validated before sizing
- Fractional Kelly, bounded by IPS cap (smaller wins)
- Drawdown/ruin tolerance respected
- Concentration decisions documented for suitability
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed 5df69bb5fd1f
- 3mo ago First seen · 50 lines · 69 tokens per session scan A b785eab7e21c
ria-position-sizing-kelly is a skill published in the GitHub repository deciqAI/knowledge-skills (18 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 681 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
ria-position-sizing-kelly compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ria-position-sizing-kellydeciqAI/knowledge-skills | Skill | 18 | 1mo ago | MIT | A | 69 | Claude Code, Codex |
| financial-statementsalebgl77/claude-inc | Skill | 23 | 4d ago | MIT | A | 23 | Claude Code |
| invoice-chasealebgl77/claude-inc | Skill | 23 | 4d ago | MIT | A | 17 | Claude Code |
| plan-payrollalebgl77/claude-inc | Skill | 23 | 4d ago | MIT | A | 19 | Claude Code |
| review-contractalebgl77/claude-inc | Skill | 23 | 4d ago | MIT | A | 20 | Claude Code |
| tax-prepalebgl77/claude-inc | Skill | 23 | 4d ago | MIT | A | 19 | Claude Code |
| audit-supportalebgl77/claude-inc | Skill | 23 | 4d ago | MIT | A | 20 | Claude Code |