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 following where sophisticated investors are deploying capital.
npx skills add https://github.com/BaggaT236/AI-Trading-Skills --skill institutional-flow-tracker
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.
FMP_API_KEY environment variable or pass --api-key to scriptspip install requests (scripts handle missing dependencies gracefully)Use this skill when:
Do NOT use when:
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:
Execute the main screening script to find stocks with notable institutional activity:
Quick scan (top 50 stocks by institutional change):
python3 scripts/track_institutional_flow.py \
--top 50 \
--min-change-percent 10
Sector-focused scan:
python3 scripts/track_institutional_flow.py \
--sector Technology \
--min-institutions 20
Custom screening:
python3 scripts/track_institutional_flow.py \
--min-market-cap 2000000000 \
--min-change-percent 15 \
--top 100 \
--output institutional_flow_results.json
Output includes:
For detailed analysis of a specific stock's institutional ownership:
python3 scripts/analyze_single_stock.py AAPL
This generates:
Key metrics to evaluate:
> Note: track_institution_portfolio.py is not yet implemented. FMP API organizes
> institutional holder data by stock (not by institution), making full portfolio reconstruction
> impractical via this API alone.
Alternative approach — use analyze_single_stock.py to check if a specific institution holds a stock:
# Analyze a stock and look for a specific institution in the output
python3 institutional-flow-tracker/scripts/analyze_single_stock.py AAPL
# Then search the report for "Berkshire" or "ARK" in the Top 20 holders table
For full institution-level portfolio tracking, use these external resources:
Read the references for interpretation guidance:
references/13f_filings_guide.md - Understanding 13F data and limitationsreferences/institutional_investor_types.md - Different investor types and their strategiesreferences/interpretation_framework.md - How to interpret institutional flow signalsSignal Strength Framework:
Strong Bullish (Consider buying):
Moderate Bullish:
Neutral:
Moderate Bearish:
Strong Bearish (Consider selling/avoiding):
For new positions:
For existing holdings:
Screening workflow integration:
All analysis generates structured markdown reports saved to repository root:
Filename convention: institutional_flow_analysis_<TICKER/THEME>_<DATE>.md
Report sections:
All analysis includes a coverage-based reliability grade:
The screening script (track_institutional_flow.py) automatically excludes Grade C stocks.
The single stock analysis (analyze_single_stock.py) displays the grade with appropriate warnings.
Why coverage, not per-holder reconciliation: Metrics are sourced from FMP's aggregate 13F
summary (institutional-ownership/symbol-positions-summary), which reconciles
quarter-over-quarter deltas across all filing managers at source. This replaces the retired
/api/v3/institutional-holder feed, which returned asymmetric per-holder lists across quarters
(e.g., 5,415 holders one quarter, 201 the next) and required client-side filtering to avoid
inflated percent changes. With the reconciled summary, the remaining quality signal that matters
in practice is breadth (how many managers hold the name) and whether a prior quarter exists
to measure change against — which is what the grade now reflects.
Data Lag:
Coverage:
Reporting Rules:
Interpretation:
Insider + Institutional Combo:
Sector Rotation Detection:
Contrarian Plays:
Smart Money Validation:
The references/ folder contains detailed guides:
Main screening script for finding stocks with significant institutional changes.
Required:
--api-key: FMP API key (or set FMP_API_KEY environment variable)Optional:
--top N: Return top N stocks by institutional change (default: 50)--min-change-percent X: Minimum % change in institutional ownership (default: 10)--min-market-cap X: Minimum market cap in dollars (default: 1B)--sector NAME: Filter by specific sector--min-institutions N: Minimum number of institutional holders (default: 10)--limit N: Number of stocks to fetch from screener (default: 100). Lower values save API calls.--output FILE: Output JSON file path--output-dir DIR: Output directory for reports (default: reports/)--sort-by FIELD: Sort by 'ownership_change' or 'institution_count_change'Deep dive analysis on a specific stock's institutional ownership.
Required:
--api-key: FMP API key (or set FMP_API_KEY environment variable)Optional:
--quarters N: Number of quarters to analyze (default: 8, i.e., 2 years)--output FILE: Output markdown report path--output-dir DIR: Output directory for reports (default: reports/)--compare-to TICKER: Compare institutional ownership to another stock (future feature)Status: NOT YET IMPLEMENTED
This script is a placeholder. It prints alternative resources (WhaleWisdom, SEC EDGAR, DataRoma) and exits with error code 1. FMP API organizes institutional holder data by stock (not by institution), making full portfolio reconstruction impractical.
For institution-specific portfolio tracking, use:
Shared utility module used by both track_institutional_flow.py and analyze_single_stock.py:
current_quarter(), iter_quarters(), quarter_end_date()): walk back to the most recent quarter with filed 13F dataextract-analytics/holder row to {name, shares, change, is_new, is_sold_out}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
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.
Automatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them consistently, and sorting them into logical folders. Turns hours of manual bookkeeping into minutes of automated organization.
This skill calculates key financial ratios and metrics from financial statement data for investment analysis
This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions
This skill retrieves upcoming earnings announcements for US stocks using the Financial Modeling Prep (FMP) API. Use this when the user requests earnings calendar data, wants to know which companies are reporting earnings in the upcoming week, or needs a weekly earnings review. The skill focuses on mid-cap and above companies (over $2B market cap) that have significant market impact, organizing the data by date and timing in a clean markdown table format. Supports multiple environments (CLI, Desktop, Web) with flexible API key management.
Crypto wallet operations via the awal CLI — sign in, check balances, send USDC/ETH/POL/SOL, trade tokens, fund the wallet, and use the x402 payment protocol to discover paid services, pay for API calls, monetize an API, or query onchain data. Use whenever the user mentions signing in, login, authentication, wallet status, balance, address, sending money, paying someone, transferring tokens, ENS names, swapping/trading/converting tokens, funding/topping up/onramp, USDC, ETH, POL, SOL, the x402 bazaar, paid APIs, monetizing an endpoint, or querying onchain data on Base.
Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income statement, balance sheet, cash flow), earnings, options data, market news/sentiment, insider transactions, GDP, CPI, treasury yields, gold/silver/oil prices, Bitcoin/crypto prices, forex exchange rates, or calculating technical indicators (SMA, EMA, MACD, RSI, Bollinger Bands). Requires a free API key from alphavantage.co.
Braintree Automation: manage payment processing via Stripe-compatible tools for customers, subscriptions, payment methods, and transactions
Coinbase Automation: list and manage cryptocurrency wallets, accounts, and portfolio data via Coinbase CDP SDK
Take baggat236/institutional-flow-tracker from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.