What it is
HedgeFund-Skills is six skills covering risk, events, sizing, regimes, validation and earnings. Each skill has scripts that print a JSON object of checks and return exit code 0, 1 or 2, so an agent can read results and branch instead of paraphrasing numbers. The validation skill is the most distinctive. Its README example is a simulation: 50 strategy variations where the best Sharpe ratio is 1.49 and the PSR is 0.998, but the deflated Sharpe, which adjusts for trying many variations, is 0.66. That illustrates why picking the best backtest misleads. It is a simulated example, not a live result. The disclaimer states the material is for education and is not investment advice. The licence is MIT. We did not run the scripts.
Who it's for
- Students and analysts learning portfolio risk and strategy validation
- Developers who want scripts that return machine-readable checks instead of prose
Requirements
Requirements
- Python 3.9+ with numpy and pandas
- Claude Code skills folder (~/.claude/skills)
Setup
Step 1
bashmkdir -p ~/.claude/skills && cp -r skills/* ~/.claude/skills/
ست مهارات لـ Claude مع سكربتات بايثون للمخاطر والأحداث وحجم المراكز وأنظمة السوق والتحقق من الاستراتيجيات والأرباح. للتعليم فقط وليست نصيحة استثمارية.
Examples
Ask about portfolio risk
PromptWhere does the risk in this portfolio come from?Expected output: The README's example question for the risk skill.
Size a position
bashpython skills/sizing/scripts/size.py --mu 0.06 --sigma 0.25 --kelly-fraction 0.5 --target-vol 0.10What it does: Example call of the sizing script with half-Kelly and a 10% volatility target.
Copy the skills in
bashmkdir -p ~/.claude/skills && cp -r skills/* ~/.claude/skills/What it does: The README's install command.
Pros & cons
Pros
- Pro:Every script prints a JSON object with checks and uses exit codes 0, 1 and 2, which suits agents
- Pro:Validation skill addresses overfitting: the README's simulated example runs 50 variations, best Sharpe 1.49, PSR 0.998, deflated Sharpe 0.66
- Pro:A companion paper is linked by the README
Cons
- Con:The disclaimer says education only and not investment advice
- Con:The README's validation example is simulated, not real market results
- Con:Small project (17 stars when read)