Analyzes stocks based on conservative value investing principles for defensive portfolios.

Install

mkdir -p .claude/skills/ben-graham && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13326" && unzip -o skill.zip -d .claude/skills/ben-graham && rm skill.zip

Installs to .claude/skills/ben-graham

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Analyze stocks using Benjamin Graham's deep value investing principles. Use when calculating Graham Number, net-net value, or applying strict margin of safety criteria.
168 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Calculate the Graham Number for a stock
  • Determine Net Current Asset Value (NCAV)
  • Evaluate a stock's margin of safety
  • Assess financial health based on current ratio and debt/equity
  • Interpret signals as bullish, neutral, or bearish

How it works

The skill gathers financial data and market capitalization for a given stock and date, then runs an analysis script to compute Graham metrics. It interprets these metrics to provide an investment signal.

Inputs & outputs

You give it
stock ticker and end date, e.g., "{TICKER} {END_DATE}"
You get back
bullish, neutral, or bearish signal with supporting metrics

When to use ben-graham

  • Calculate Graham Number for a stock
  • Evaluate net-net value of a company
  • Assess margin of safety for investment

About this skill

Benjamin Graham Investment Analysis

Investment Philosophy

I analyze stocks using Benjamin Graham's classic value principles:

  1. Margin of Safety: Never pay full price
  2. Net-Net Investing: Buy below net current asset value
  3. Graham Number: Conservative valuation formula
  4. Mr. Market: Exploit market irrationality
  5. Defensive Investing: Focus on safety over speculation

Analysis Process

Step 1: Gather Financial Data

python .claude/skills/financial-data/scripts/get_metrics.py {TICKER} {END_DATE} annual 10
python .claude/skills/financial-data/scripts/search_line_items.py {TICKER} {END_DATE} annual 10
python .claude/skills/financial-data/scripts/get_market_cap.py {TICKER} {END_DATE}

Step 2: Run Graham Analysis

python .claude/skills/ben-graham/scripts/analyze.py {TICKER} {END_DATE}

Key Metrics

  • Graham Number = √(22.5 × EPS × Book Value per Share)
  • Net Current Asset Value (NCAV) = Current Assets - Total Liabilities
  • Current Ratio >= 2.0 (required for defensive investor)
  • Debt/Equity < 1.0
  • Positive earnings for 10+ years
  • Dividend record preferred

Signal Interpretation

  • Bullish: NCAV > Market Cap, or price well below Graham Number with >=50% margin
  • Neutral: Some margin of safety but not compelling
  • Bearish: Price above Graham Number, weak financials

Example

Analyze AAPL as of 2024-12-01 using Graham's principles.

When not to use it

  • When seeking speculative investment advice
  • When not focused on safety over speculation
  • When not applying strict margin of safety criteria

Limitations

  • Analysis is based solely on Benjamin Graham's classic value principles
  • Requires positive earnings for 10+ years for defensive investing
  • A dividend record is preferred but not strictly required

How it compares

This workflow automates the calculation and interpretation of Benjamin Graham's specific value investing metrics, unlike a manual review of financial statements.

Compared to similar skills

ben-graham side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ben-graham (this skill)08moReviewBeginner
quant-analyst1032moNo flagsAdvanced
stock-analyzer712moReviewBeginner
pair-trade-screener111moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

quant-analyst

zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

103355

stock-analyzer

FrancyJGLisboa

Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.

71214

pair-trade-screener

tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair trading opportunities, statistical arbitrage screening, mean-reversion strategies, or market-neutral portfolio construction. Supports correlation analysis, cointegration testing, and spread backtesting.

1198

risk-metrics-calculation

wshobson

Calculate portfolio risk metrics including VaR, CVaR, Sharpe, Sortino, and drawdown analysis. Use when measuring portfolio risk, implementing risk limits, or building risk monitoring systems.

881

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

model-usage

openclaw

Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.

548

Search skills

Search the agent skills registry