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 | $0.00034 | $0.00341 |
| Sonnet 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 9d 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.
- 9d 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 (10 stars, last pushed 11d ago), licensed MIT. It adds 69 tokens to every session and 681 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
invoice-chase
Runs collections on late invoices: builds an aging ladder (current/30/60/90+), assigns each invoice a rung on an escalation sequence with ready-to-send emails — friendly nudge, firm reminder with late-fee mention, final notice — plus a phone script, tone rules that preserve the relationship, a chase log, and…
audit-support
Gets the books audit-ready: builds the PBC (prepared-by-client) list by area, drafts walkthrough narratives for key cycles (revenue, purchases, payroll), matches auditor samples to support, prepares tie-out schedules, tracks open items with owners and due dates, and drafts responses to findings. Use when the user says…
financial-statements
Builds a full statement set — P&L, balance sheet, and indirect cash flow — from a trial balance or transaction export, mapping accounts to a standard chart and proving every tie-out in code. Use when the user says 'build a P&L from this trial balance', 'turn this export into financials', 'I need a balance sheet for…
plan-payroll
Plans payroll cash: true loaded cost per hire (gross plus employer taxes, benefits, tools), a payroll calendar with cutoffs and cash-out dates, a scenario table for new hire vs raise vs contractor-vs-employee, and a payroll-to-revenue check against rough industry bands. Use when the user asks "can I afford to hire"…
review-contract
Clause-by-clause contract review — inventories key clauses (term, termination, liability cap, indemnity, IP, payment, confidentiality, governing law, auto-renewal), flags deviations from market-standard positions with RED/YELLOW/GREEN severity and verbatim quotes, drafts redline language, and sets negotiation…
tax-prep
Organizes tax season — an organizer, not tax advice: a document checklist by category (income, expenses, assets, payroll, prior filings), an expense-category sweep that flags plausibly missed deductions in generic jurisdiction-agnostic categories, a quarterly-estimate calendar template, a clean handoff pack for the…