Free P123 Claude Skill v3.0

Three months ago I released a free Claude Skill that knew the Portfolio123 platform.

It became the most successful post I've ever published. Over 25,000 impressions, hundreds of downloads, and dozens of follow-up conversations with quants who put it to work in their own research.

Today I'm releasing version 3.0. And it isn't an update. It's a full rebuild.

What the new version knows:

4,463 factors covering the complete P123 dataset.

465 functions across the formula language.

The full REST API, with structured guidance on authentication, rate limits, and endpoint usage. Ready-to-run Python scripts so you stop writing boilerplate and start running real research from the first prompt.

It's MIT licensed. Free forever. No email gating, no waitlist, no DMs required this time.

How to get it: go to quantsolvings.com, open the Insights section, and select the latest article. The Skill, the install instructions, and the example scripts are all there.

The first release proved there is real demand for tools that let Claude operate as a domain expert inside the P123 ecosystem. This version is built to be the reference tool for that workflow. If you've been using v1 or v2, the upgrade is straightforward and the new ergonomics will surprise you.

If you build something with it that's worth sharing, drop me a message. I read everything.

14 Likes

Thanks!!!

1 Like

You’re welcome!

1 Like

I love it!

Two suggestions for improvement:

The skill doesn't seem to recognize that [factor]^0.5 is easier to write than Pow([factor],0.5).

Also it favors Eval(SetVar(@r,[formula]),@r*Abs(@r),NA) over the much easier SetVar(@r,[formula])*@r*Abs(@r).

2 Likes

Hi Carlos. The Github for your version is GitHub - cmoralesm/P123-Claude-Skill: Agent Skill for Portfolio123 (P123): 464 functions, 4456 factors, verified line-by-line against official docs. Factor investing, screening, ranking systems, backtesting, and p123api Python wrapper. Works with Claude Code, Cursor, and Codex. · GitHub right? I am using it and I found some issues, in particular for non-US preset universes. Check my PR (TheAlphaEngineer).

2 Likes

I just updated the Github! You should be able to see the new version now.

1 Like

Will take a look at it!!

1 Like

Carlos - Much needed and very cool! Thank you!

2 Likes

I’m glad you found it useful!! :slight_smile:

1 Like

One thing that the Claude Skill doesn't seem to realize is that if a composite node's sub-nodes have zero weight, the weight is distributed evenly between the nodes. It flags this as an error. Maybe you can teach it that. Thanks!

1 Like

Will try to!! Thank you Yuval!!

Hi Carlos and All,

I’m building some Agg Series systems in Claude Code and it is telling me that it made an important correction. Here’s the output:

”I also corrected a real inaccuracy in the skill's api.md: it had documented data_series_upload's options in camelCase (headerRow, existingData, etc.), but the installed wrapper (v2.4.2) actually takes snake_case kwargs (contains_header_row, existing_data, ...) — the exact bug I hit and fixed earlier in the script. Also flagged that data_series_info (GET lookup by name/id) 405'd on this account, so don't rely on it blind.”

I don’t know where in my work it found this error, but I thought I should post it FYI. I’m new to Claude Code w/P123 and I love it, but I’ll let you decide whether to update the skills file with this repair.

Chawasri