NativeAIHub
๐Ÿ“Š

Stock Analyst Agent

A deep equity research agent that pulls live market data, analyzes financials, compares valuations to peers, and produces comprehensive investment reports with bull, base, and bear case scenarios.

Custom AgentยทModel: Opusยท8 toolsยท4 sectionsยท1 min read
financeresearch
Install Prompt

Paste this into Claude Code to set it up:

I want to add the Stock Analyst agent to my Claude Code setup.

Create the file ~/.claude/agents/stock-analyst.md with the agent definition. The frontmatter must start on line 1 (no blank line before ---).

The agent should:
- Act as a deep equity research analyst that pulls live market data, analyzes financials, compares valuations to peers, and produces comprehensive investment reports
- Construct bull, base, and bear case scenarios with probability weighted fair value estimates
- Model: opus
- Tools: Read, Grep, Glob, Write, Edit, Bash, WebSearch, WebFetch
- Color: blue

This agent works best with the Yahoo Finance MCP for live market data and Perplexity MCP for qualitative research context.

After creating the file, restart Claude Code for the agent to be available.

01What It Does

Your personal equity research analyst

When you ask this agent to analyze a stock, it conducts the same structured research process a professional analyst follows. It pulls live data from Yahoo Finance, researches the competitive landscape, calculates key valuation metrics, identifies risks, and constructs a three scenario investment thesis with probability weighted fair value estimates.
1

Data Collection

Pulls current price, historical prices, income statements, cash flow, dividends, analyst recommendations, earnings dates, and news from Yahoo Finance MCP.

2

Company Research

Uses Perplexity or Firecrawl to research competitive landscape, recent developments, industry trends, management quality, and analyst sentiment.

3

Financial Analysis

Calculates P/E, P/S, EV/EBITDA, P/FCF, PEG ratio, revenue growth, margin trends, and debt ratios. Compares each to historical averages and peers.

4

Risk Assessment

Categorizes risks: company specific (key person, customer concentration), industry (disruption, regulation), macro (interest rates, currency), and valuation risk.

5

Investment Thesis

Constructs bull (25%), base (50%), and bear (25%) cases with revenue assumptions, target multiples, and implied price targets. Calculates probability weighted fair value.

02Metrics Analyzed

CategoryKey Metrics
ValuationHow expensive the stock is relative to earnings and growthP/E (trailing and forward), P/S, EV/EBITDA, P/FCF, PEG ratio
GrowthHow fast the company is growing revenue and profitsRevenue growth (YoY, QoQ), earnings growth, free cash flow growth, margin trends
Financial HealthHow solid the company's balance sheet isDebt to equity, interest coverage, current ratio, free cash flow yield
Every metric is compared three ways: against the company's own 5 year historical average, against direct competitors, and against the sector median. A P/E ratio only means something in context.

03The Report

๐Ÿ“‹
Executive SummaryWhat the company does and the key investment thesis in two paragraphs.
๐Ÿ“ˆ
Financial SnapshotKey metrics table with comparisons to peers and historical averages.
โš–๏ธ
Scenario AnalysisBull, base, and bear cases with assumptions, target multiples, and implied prices.
Every report includes a prominent disclaimer: this is AI generated analysis, not professional financial advice. Data may be slightly delayed. Always verify critical claims before making investment decisions.

04Works Well With

๐Ÿ’น
Yahoo Finance MCPThe primary data source. Provides real time prices, financial statements, dividends, earnings, and analyst recommendations.
๐Ÿ”Ž
Perplexity MCPProvides the qualitative context that numbers alone cannot capture: strategy, industry trends, management quality, and competitive dynamics.
โœ…
Todoist MCPCreates investment action items from research: "Review NVDA position after Q4 earnings" or "Rebalance portfolio by month end."

Tool Access

ReadGrepGlobWriteEditBashWebSearchWebFetch