8-k-scanner
Scan SEC 8-K disclosures across a single ticker or a watchlist using Massive's pre-parsed disclosure taxonomy. Groups the underlying rows by filing (one 8-K…
Aggregate SEC Form 4 insider activity for a ticker over a caller-supplied lookback window, classify each transaction by SEC transaction code and Rule 10b5-1 status, separate signal (conviction buys, discretionary sales) from noise (grants, exercises, tax withholding, 10b5-1
$ npx -y skills add rgourley/quant-garage --skill insider-flow --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/insider-flowContext preview
The summary Claude sees to decide when to auto-load this skill.
Aggregate SEC Form 4 insider activity for a ticker over a caller-supplied lookback window, classify each transaction by SEC transaction code and Rule 10b5-1 status, separate signal (conviction buys, discretionary sales) from noise (grants, exercises, tax withholding, 10b5-1
name: insider-flow description: Aggregate SEC Form 4 insider activity for a ticker over a caller-supplied lookback window, classify each transaction by SEC transaction code and Rule 10b5-1 status, separate signal (conviction buys, discretionary sales) from noise (grants, exercises, tax withholding, 10b5-1 sales), detect cluster buys (>= 2 insiders in a 14-day window worth >= $100k), and emit a sentiment label backed by the underlying dollar flow. Use when a PM or fundamental analyst asks "are insiders buying or selling this name?" Uses Massive's pre-parsed Form 4 endpoint. Requires Stocks Basic. Runs on the free tier.
You hand over a ticker. The skill pulls every Form 4 filed against the issuer over the lookback window, classifies each transaction, separates the signal (open-market buys, non-scheduled sales) from the noise (grants, option exercises, 10b5-1 scheduled sales), detects cluster buys, and emits a sentiment label backed by the underlying dollar flow.
The point is to answer the question a PM actually asks: **are insiders buying or selling this name, and does it matter?** The default read ignores 10b5-1 sales (pre-committed months in advance) and comp-related grants because they carry no signal about what management thinks of the current price.
transactions over a cycle
weakness
selling", "insider signal"
Not for: real-time (Form 4 is filed within 2 business days, so this is days-fresh, not tick-fresh). Not for 13-F holdings (institutional ownership is a separate skill).
endpoint is included on every Stocks plan.
Optional:
NOT `is_officer` AND NOT `is_ten_percent_owner`). Useful for names with VC or PE board reps unwinding a fund position, which structurally look bearish but carry no operator signal. Executives who also sit on the board are kept (they carry operator signal).
Two output layers from one run.
**Layer 1: canonical JSON** matching [`output-schema.json`](./output-schema.json). Top-level `summary` (sentiment label + reasoning, conviction buy / discretionary sale / scheduled sale / routine comp counts and dollars, net conviction flow), `clusters[]` (detected 14-day cluster buy windows sorted by dollar volume), `notable_buys[]` (top 5 open-market buys by dollar), `notable_sales[]` (top 5 discretionary sales), `by_role` (aggregate flow keyed on officer / director / 10% owner).
**Layer 2: rendered note**. Sentiment label at the top, transaction- flow block, cluster buys (when detected), notable individual transactions, by-role aggregation, one-line Take. See [`references/rendering.md`](./references/rendering.md).
1. **Pull Form 4 rows** via `GET /stocks/filings/vX/form-4?tickers={T}&filing_date.gte={from_date}&limit=1000&sort=filing_date.desc`. Massive returns one row per transaction leg (a single Form 4 filing can have multiple non-derivative + derivative legs). 2. **Classify each row** by SEC transaction code + Rule 10b5-1 status. See [`references/transaction-codes.md`](./references/transaction-codes.md) for the full mapping:
(tax withholding)
3. **Detect cluster buys.** Rolling 14-day windows where >= 2 distinct insiders made open-market purchases (code P) summing to >= $100k. One entry per detected cluster. 4. **Aggregate by role.** Officer / director / 10% owner net flow. Officers dominate signal typically; 10% owners can be activists or founders with idiosyncratic reasons. 5. **Emit sentiment** on the net conviction flow (buys minus discretionary sales, 10b5-1 sales excluded). Buckets:
retry, and pagination on the filings endpoint.
Narrative note. Insider activity for a single name is a small number of rows (typically 50-300 in six months for an active name); a wide table would waste space. The rendered format optimizes for a PM reading the note once and either dismissing (no signal), noting a cluster buy, or noting a specific insider's discretionary sale.
Every Form 4 row for the ticker since `D`. Paginated; one call per page.
cluster buys this week") would compose this skill and aggregate. Queued.
discretionary sales" percentile. A $2M sale is different for JPM than for MU. Queued.
buys near 52-week lows are stronger signal; sales at highs are weaker signal. Queued as a chain with `technical-briefing`.
`aff_10b5_one` as a boolean but not when the plan was adopted. Plans adopted r
Trade like a pro. Without the terminal. View the full landing page → Quant and equity research tools that run inside Claude, or behind your own UI.
Scan SEC 8-K disclosures across a single ticker or a watchlist using Massive's pre-parsed disclosure taxonomy. Groups the underlying rows by filing (one 8-K…
Track sell-side analyst positioning on a name via Benzinga Analyst Ratings. Pulls every rating event over the lookback window, classifies each as upgrade /…
Build a clean, point-in-time, ready-to-backtest OHLCV dataset for a US equity universe across an arbitrary date window. Emits parquet plus a manifest plus an…
Bayesian Online Change-Point Detection (BOCPD) on a ticker's daily log returns. Detects points in time where the return-generating distribution changed (regime…
Single-commodity macro read. Answers "is this commodity in a winning or losing macro setup right now" and names the macro driver that dominates it. Pulls one…
Reconcile a position file against splits, dividends, and spinoffs to catch breaks before they hit P&L or T+1 settlement. Use when an operator hands over a CSV…