Institutional flow tracker

From nicepkg/ai-workflow · View interactive version

Institutional flow tracker is an AI agent skill from the GitHub repository nicepkg/ai-workflow. Use this skill to track institutional investor ownership changes and portfolio flows using 13F filings data. Analyzes hedge funds, mutual funds, and other institutional holders to identify stocks with significant smart money accumulation or distribution. Helps discover stocks before major moves by f

How to use this skill

Skill file

Institutional Flow Tracker

Overview

This skill tracks institutional investor activity through 13F SEC filings to identify "smart money" flows into and out of stocks. By analyzing quarterly changes in institutional ownership, you can discover stocks that sophisticated investors are accumulating before major price moves, or identify potential risks when institutions are reducing positions.

Key Insight: Institutional investors (hedge funds, pension funds, mutual funds) manage trillions of dollars and conduct extensive research. Their collective buying/selling patterns often precede significant price movements by 1-3 quarters.

When to Use This Skill

Use this skill when:

Do NOT use when:

Data Sources & Requirements

Required: FMP API Key

This skill uses Financial Modeling Prep (FMP) API to access 13F filing data:

Setup:

# Set environment variable (preferred)
export FMP_API_KEY=your_key_here

# Or provide when running scripts
python3 scripts/track_institutional_flow.py --api-key YOUR_KEY

API Tier Requirements:

13F Filing Schedule:

Analysis Workflow

Step 1: Identify Stocks with Significant Institutional Changes

Execute the main screening script to find stocks with notable institutional activity:

Quick scan (top 50 stocks by institutional change):

python3 institutional-flow-tracker/scripts/track_institutional_flow.py \
  --top 50 \
  --min-change-percent 10

Sector-focused scan:

python3 institutional-flow-tracker/scripts/track_institutional_flow.py \
  --sector Technology \
  --min-institutions 20

Custom screening:

python3 institutional-flow-tracker/scripts/track_institutional_flow.py \
  --min-market-cap 2000000000 \
  --min-change-percent 15 \
  --top 100 \
  --output institutional_flow_results.json

Output includes:

Step 2: Deep Dive on Specific Stocks

For detailed analysis of a specific stock's institutional ownership:

python3 institutional-flow-tracker/scripts/analyze_single_stock.py AAPL

This generates:

Key metrics to evaluate:

Step 3: Track Specific Institutional Investors

Follow the portfolio moves of specific hedge funds or investment firms:

# Track Warren Buffett's Berkshire Hathaway
python3 institutional-flow-tracker/scripts/track_institution_portfolio.py \
  --cik 0001067983 \
  --name "Berkshire Hathaway"

# Track Cathie Wood's ARK Investment Management
python3 institutional-flow-tracker/scripts/track_institution_portfolio.py \
  --cik 0001579982 \
  --name "ARK Investment Management"

CIK (Central Index Key) lookup:

Analysis output:

Step 4: Interpretation and Action

Read the references for interpretation guidance:

Signal Strength Framework:

Strong Bullish (Consider buying):

Moderate Bullish:

Neutral:

Moderate Bearish:

Strong Bearish (Consider selling/avoiding):

Step 5: Portfolio Application

For new positions:

  1. Run institutional analysis on your stock idea
  2. Look for confirmation (institutions also accumulating)
  3. If strong bearish signals, reconsider or reduce position size
  4. If strong bullish signals, gain confidence in thesis

For existing holdings:

  1. Quarterly review after 13F filing deadlines
  2. Monitor for distribution (early warning system)
  3. If institutions are exiting, re-evaluate your thesis
  4. Consider trimming if widespread institutional selling

Screening workflow integration:

  1. Use Value Dividend Screener or other screeners to find candidates
  2. Run Institutional Flow Tracker on top candidates
  3. Prioritize stocks with institutional accumulation
  4. Avoid stocks with institutional distribution

Output Format

All analysis generates structured markdown reports saved to repository root:

Filename convention: institutional_flow_analysis_<TICKER/THEME>_<DATE>.md

Report sections:

  1. Executive Summary (key findings)
  2. Institutional Ownership Trend (current vs historical)
  3. Top Holders and Changes
  4. New Buyers vs Sellers
  5. Concentration Analysis
  6. Interpretation and Recommendations
  7. Data Sources and Timestamp

Limitations and Caveats

Data Lag:

Coverage:

Reporting Rules:

Interpretation:

Advanced Use Cases

Insider + Institutional Combo:

Sector Rotation Detection:

Contrarian Plays:

Smart Money Validation:

References

The references/ folder contains detailed guides:

Script Parameters

track_institutional_flow.py

Main screening script for finding stocks with significant institutional changes.

Required:

Optional:

analyze_single_stock.py

Deep dive analysis on a specific stock's institutional ownership.

Required:

Optional:

track_institution_portfolio.py

Track a specific institutional investor's portfolio changes.

Required:

Optional:

Integration with Other Skills

Value Dividend Screener + Institutional Flow:

1. Run Value Dividend Screener to find candidates
2. For each candidate, check institutional flow
3. Prioritize stocks with rising institutional ownership

US Stock Analysis + Institutional Flow:

1. Run comprehensive fundamental analysis
2. Validate with institutional ownership trends
3. If institutions are selling, investigate why

Portfolio Manager + Institutional Flow:

1. Fetch current portfolio via Alpaca
2. Run institutional analysis on each holding
3. Flag positions with deteriorating institutional support
4. Consider rebalancing away from distribution

Technical Analyst + Institutional Flow:

1. Identify technical setup (e.g., breakout)
2. Check if institutional buying confirms
3. Higher conviction if both align

Best Practices

  1. Quarterly Reviews: Set calendar reminders for 13F filing deadlines
  2. Multi-Quarter Trends: Look for sustained trends (3+ quarters), not one-time changes
  3. Quality Over Quantity: Berkshire adding > 100 small funds adding
  4. Context Matters: Rising ownership in a falling stock may be value investors catching a falling knife
  5. Combine Signals: Never use institutional flow in isolation
  6. Update Your Data: Re-run analysis each quarter as new 13Fs are filed

Support & Resources


Note: This skill is designed for long-term investors (3-12 month horizon). For short-term trading, combine with technical analysis and other momentum indicators.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.