A research-first stock analysis toolkit designed for AI agents, built around three institutional-grade .agents workflows.
This repository combines workflow orchestration, analyst-style financial modeling (DCF and Comps), and structured markdown generation to support single-ticker initiation research, portfolio reviews, and secular trend analysis.
Agents can trigger these primary workflows via their corresponding slash commands. All heavy lifting is handled by centralized Python scripts located in .agents/skills/.
Responsible for deep, multi-skill initiation research on a single ticker.
- What it does:
- Gathers fundamental, momentum, and risk metrics using
compute_indicators.py. - Runs DCF and relative valuation (Comps) via Python automation.
- Checks for "Relative Oversold" institutional dip setups using
find_dip.py. - Produces an institutional-quality
out/[TICKER]_Initiation_Report.md.
- Gathers fundamental, momentum, and risk metrics using
- When to use:
- You need a full research note for one specific stock.
- You want definitive actionable guidance for new buyers vs. current holders.
Designed to batch-review a portfolio of tickers and create a tactical short-term action report (1-3 month horizon).
- What it does:
- Reads the portfolio list from
ticker-list-s.txt. - Extracts the exact CAD exchange pricing using
fetch_cad_price.pyto prevent currency hallucination. - Uses
invoke_subagentto run/ticker-analysisfor each position in parallel. - Synthesizes a portfolio-level strategy report in
out_master/[YYYY-MM-DD]/Short_Term_Portfolio_Review.mdbased on absolute position sizing and technical confluence.
- Reads the portfolio list from
- When to use:
- You need a tactical review of a live portfolio to determine precise Add on Dip, Hold, or Trim targets.
Built for long-term, macro-driven secular trend investing.
- What it does:
- Analyzes sector tailwinds and the company’s value chain position.
- Screens for moat strength, capital intensity, and structural risk.
- Builds a falsifiable thesis with kill criteria and DCF support.
- Produces
out_secular/[TICKER]_Secular_Datapack.mdandout_secular/[TICKER]_Secular_Playbook.md.
- When to use:
- You are evaluating a stock as a long-term core holding (1+ year timeframe).
.agents/workflows/— Workflow definitions (YAML/Markdown) for each agent pipeline..agents/skills/— Reusable skill modules (Python scripts) powering the workflows.- Tech Stack:
Python,uv,yfinance,pandas,pandas_ta
- Tech Stack:
out/— Single-ticker outputs and intermediate deliverables (Excel & Markdown).out_master/— Master portfolio review strategy documents.out_secular/— Long-term secular analysis deliverables.
ticker-list-s.txt: The core input file for the/short-term-portfolio-reviewworkflow. It must follow a structured CSV format so agents can parse it accurately:Ticker, Name, Avg(CAD), Shares(e.g.,IBM.TO, International Business Machines Corporation, 40.9, 26)