How rrpofficial/market-sage works
Market Sage is a Claude Code stock-analysis skill backed by Python CLI tools. Users submit a question through /market-sage; the skill selects market-specific analysis and invokes tools for live data and calculations, then presents results. Separate documented branches cover Indian stock/fund/policy analysis, US investing, momentum screening, and a multi-agent microcap diligence process. The source index and excerpts support the sampled tool relationships; unsampled skill and tool internals are represented only where the README documents their capabilities.
Main entry points: market-sage-command.md Market Sage command · _http.py HTTP cache layer · momentum_screen.py Momentum pipeline · screener.py India market tools
Components 25
User entry
- Market Sage command
market-sage-command.md
India analysis
- Stock analysis
stock-analyzer.md - Fund advice
mutual-fund-advisor.md - Portfolio building
portfolio-builder.md - Policy analysis
policy-impact-analyzer.md - Forensic diligence
agents/governance-forensic.md - India market tools
tools/src/market_sage/screener.py - Live quotes
tools/src/market_sage/quotes.py - Forensic screen
tools/src/market_sage/forensic.py - Holdings analysis
tools/src/market_sage/portfolio.py
Momentum and microcap
- Momentum analysis
momentum-sage.md - Momentum pipeline
tools/src/market_sage/momentum_screen.py - Technical indicators
tools/src/market_sage/technicals.py - Volume analysis
tools/src/market_sage/volume_profile.py - Microcap diligence
microcap-sage.md - Microcap screen
tools/src/market_sage/microcap_screen.py - Diligence specialists
agents/microcap-operator-check.md
US analysis
- US stock analysis
us-stock-analyzer.md - US fund advice
us-fund-advisor.md - US market tools
tools/src/market_sage/us_quotes.py
Tool runtime
- HTTP cache layer
tools/src/market_sage/_http.py - Shared utilities
tools/src/market_sage/_utils.py - HTTP response cache
Other components
- Investor
- Market data providers
Connections 29
- Investor → Market Sage command: submits query
README.md - Market Sage command → Stock analysis: routes analysis
README.md - Market Sage command → Fund advice: routes analysis
README.md - Market Sage command → Portfolio building: routes analysis
README.md - Market Sage command → Policy analysis: routes analysis
README.md - Market Sage command → Forensic diligence: routes diligence
README.md - Stock analysis → India market tools: invokes tools
README.md - Fund advice → India market tools: invokes tools
README.md - Portfolio building → Holdings analysis: analyzes holdings
README.md - Forensic diligence → Forensic screen: runs screen
README.md - India market tools → Live quotes: fetches prices
- Live quotes → HTTP cache layer: fetches NSE data
tools/src/market_sage/quotes.py - Momentum analysis → Momentum pipeline: runs pipeline
README.md - Momentum pipeline → Technical indicators: uses indicators
tools/src/market_sage/momentum_screen.py - Momentum pipeline → Volume analysis: uses volume metrics
tools/src/market_sage/momentum_screen.py - Momentum pipeline → Shared utilities: uses shared helpers
tools/src/market_sage/momentum_screen.py - Microcap diligence → Microcap screen: runs hard screen
README.md - Microcap diligence → Diligence specialists: coordinates diligence
README.md - Microcap screen → Live quotes: filters by quote
tools/src/market_sage/microcap_screen.py - Microcap screen → India market tools: checks fundamentals
tools/src/market_sage/microcap_screen.py - Microcap screen → Forensic screen: reuses calculations
tools/src/market_sage/microcap_screen.py - US stock analysis → US market tools: invokes tools
README.md - US fund advice → US market tools: compares funds
README.md - India market tools → HTTP cache layer: fetches fundamentals
tools/src/market_sage/screener.py - Forensic screen → HTTP cache layer: fetches statements
tools/src/market_sage/forensic.py - HTTP cache layer → HTTP response cache: reads and writes
tools/src/market_sage/_http.py - HTTP cache layer → Market data providers: requests live data
tools/src/market_sage/_http.py - Shared utilities → HTTP cache layer: uses HTTP layer
tools/src/market_sage/_utils.py - Momentum pipeline → Live quotes: fetches quotes
tools/src/market_sage/momentum_screen.py