← Browse

@ancs21/ben-graham

A

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.

skillclaude

Install

agr install @ancs21/ben-graham --target claude

Writes 1 file into .claude/skills/, pinned to git-9dfafb86.

  • .claude/skills/ben-graham/SKILL.md

Document


name: ben-graham description: 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.

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.

Trustgrade A

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • passLicense

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-9dfafb86513d2026-07-31