factor-investing

factor-investing is a skill for Claude Code from JoelLewis/finance_skills. It costs 195 tokens per session (4,105 once invoked), scanned A, original, MIT.

A guide to evaluating investments with factor models, which explain returns using characteristics such as market exposure, company size, value, profitability, investment, and momentum. It covers models from CAPM, a single-market-risk model, through the Fama-French models.

In plain words
What is it for?
Use it to build factor-aware portfolios, assess funds, run or interpret factor regressions, and examine value, size, profitability, investment, or momentum exposure.
Why use it?
It helps separate a manager's actual skill from returns that may simply come from predictable investment exposures. This makes portfolio and fund comparisons more meaningful.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the wealth-management plugin — 38 skills shipped together

Good fit Use it to build factor-aware portfolios, assess funds, run or interpret factor regressions, and examine value, size, profitability, investment, or momentum exposure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joellewis/finance_skills/factor-investing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JoelLewis/finance_skills --skill factor-investing
Clone the repo
git clone --depth 1 https://github.com/JoelLewis/finance_skills

Made for: Claude Code.

Or install wealth-management, the plugin that ships this one along with the rest of its 38 skills.

Wrote 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.

agentmods badge for factor-investing

README.md
[![agentmods](https://agentmods.dev/badge/skills/joellewis/finance_skills/factor-investing/github.svg)](https://agentmods.dev/skills/joellewis/finance_skills/factor-investing)
Your own site
<a href="https://agentmods.dev/skills/joellewis/finance_skills/factor-investing"><img src="https://agentmods.dev/badge/skills/joellewis/finance_skills/factor-investing/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.

agentmods 80×15 button for factor-investing

Your own site · 80×15
<a href="https://agentmods.dev/skills/joellewis/finance_skills/factor-investing"><img src="https://agentmods.dev/badge/skills/joellewis/finance_skills/factor-investing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,105 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00195 $0.04105
Opus 5.5 $0.00078 $0.01642
Sonnet 5.5 $0.00039 $0.00821
Haiku 4.5 $0.00019 $0.00411

Measured 3d ago against content hash 37806706a209, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factor-investing 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/factor_investing.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/wealth-management/skills/factor-investing/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Factor Investing

Core Concepts

From CAPM to Multifactor Models

CAPM prices a single source of risk: E(R_i) - R_f = beta * (E(R_m) - R_f). Persistent anomalies — small caps, cheap (high book-to-market) stocks, and recent winners earning more than beta predicts — motivated adding factors. Fama-French (1993) added size and value to the market factor (3-factor model); Carhart (1997) added momentum; Fama-French (2015) added profitability and investment (5-factor model):

R_i - R_f = alpha + b_MKT*MKT + b_SMB*SMB + b_HML*HML [+ b_RMW*RMW + b_CMA*CMA] [+ b_UMD*UMD] + epsilon

The key reinterpretation: a manager's CAPM alpha may be nothing more than static factor exposure. Alpha only means skill after controlling for the factors an investor could buy cheaply. Single-factor OLS mechanics, t-statistics, and the CAPM regression itself live in the statistics-fundamentals skill; this skill generalizes to K regressors and interprets the output.

The Canonical Factors

Factor Construction (long-short) Rationale: risk-based Rationale: behavioral Approx. premium*
MKT Market minus risk-free Non-diversifiable macro risk — 6-7%/yr
SMB (size) Small caps minus big caps Illiquidity, distress sensitivity Neglect of small firms 1.5-2%/yr
HML (value) High book/market minus low Distress risk, cyclical cash flows Overextrapolation of growth 2.5-3%/yr
RMW (profitability) Robust minus weak operating profitability Compensation for cash-flow risk Underreaction to quality ~3%/yr
CMA (investment) Conservative minus aggressive asset growth Q-theory: high investment implies low expected return Empire-building overinvestment ~3%/yr
UMD (momentum, Carhart) Past 12-1 month winners minus losers Crash risk (violent reversals) Underreaction, herding 6-7%/yr

*Approximate annualized US long-short premia over the 1963-2024 sample, Ken French data library, as of 2026. Long-run averages, not forecasts; realized decade-long stretches deviate wildly (see cyclicality below).

Read the full file on GitHub · 170 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 3d ago First seen · 170 lines · 195 tokens per session scan A 37806706a209

Subscribe to this mod's changes

factor-investing is a skill published in the GitHub repository JoelLewis/finance_skills (272 stars, last pushed 3d ago), licensed MIT. It adds 195 tokens to every session and 4,105 once invoked, about $0.0008 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-11-27.

Related

factor-investing compared with skills from other repositories

factor-investing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factor-investingJoelLewis/finance_skillsSkill2723d agoMITA195Claude Code
Freelance EmpireLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA71Claude Code, Codex
agent-otc-tradeLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA80Claude Code
agentic-streetLeoYeAI/openclaw-master-skillsSkill2.2k8d agoMITA91Claude Code, Codex
alpha-vantageforyourhealth111-pixel/Vibe-SkillsSkill3.9k21d agoApache-2.0A126Claude Code, Codex
prompt-proximity-architectureelvisun/newsjackSkill1.7k4d agoMITA67Claude Code
syndicromainsimon/paperasseSkill2.6k18d agoMITA204Claude Code