Conviction Funnel
ASecurityEnd-to-end "scan → sister-scan context → buyable picks" funnel. Chains regime-scan (market gate) → momentum-scan (names) → a direct read of base-breakout / mean-reversion state as context (bases, oversold leaders, and mean-reversion's paper-track names; no sister-scan pocket survived its multi-year replay), then deep-dives the top N (default 3) into actionable entry / stop / size / invalidation briefs with regime threaded into sizing. Use whenever the user wants the whole pipeline from "what'...
- 19 stars
- 0 votes
- 0 copies
- 2 views
- Added October 6, 2026
Security analysis
100/100Pro scans all 5 files and shows the line behind each finding
npx -y skills add mthli/skills --skill conviction-funnel --agent claude-codeAre you the author of Conviction Funnel?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mthli-conviction-funnel)---
name: conviction-funnel
description: End-to-end "scan → sister-scan context → buyable picks" funnel. Chains regime-scan (market gate) → momentum-scan (names) → a direct read of base-breakout / mean-reversion state as context (bases, oversold leaders, and mean-reversion's paper-track names; no sister-scan pocket survived its multi-year replay), then deep-dives the top N (default 3) into actionable entry / stop / size / invalidation briefs with regime threaded into sizing. Use whenever the user wants the whole pipeline from "what's the market doing" to "3 names I could actually buy, with where to get in and bail", e.g. "what should I buy today", "give me 3 high-conviction picks", "run the funnel", "scan to picks", "best risk/reward setups with entries and stops". The orchestration layer ABOVE the individual scans; NOT for a single scan re-run (use that scan directly), a single-ticker lookup (use yfinance), or a pure market-health read (use regime-scan).
---
# conviction-funnel
Turn a market full of noise into a *small* set of researched, actionable names. The premise: any single scan can fire on a fluke, and a momentum name tends to be extended by the time it ranks, so picking off one screener tends to buy tops. The funnel runs the market gate, pulls the name lists, cross-references them, then spends real research effort on only a handful, ending in a side-by-side table of where to enter, where the stop goes, how big to size, and what kills the thesis.
⚠️ **How the 2026-05→07 backtests changed the middle step.** The sister scans carry outcome backtests, and the old "2–3 scans agree = conviction" premise did not survive them: overlap count ranked conviction **backwards** (3-scan names −4.5% excess at T+10 vs −1.5% for single-scan), with unusual-options co-flags marking *froth*, not smart money. The two skills built on that premise, cross-scan and unusual-options-scan, are **retired as of 2026-07** on those numbers. The funnel keeps the same shape but the middle step is now a pure file read: momentum's list plus each surviving scan's *validated pockets* formed the candidate pool, and the per-scan filters did the ranking that overlap counting used to do.
⚠️ **How the 2026-10 multi-year replays changed it again.** Rebuilt on point-in-time universes, momentum's board earned about SPY's return at twice the volatility (2023→2026), and mean-reversion's signals earned what SPY did over the same days (2021→2026): its Score ≥ 40 fresh-listing pocket, +1.83%/signal in-sample, ran −0.14% against SPY. So MR no longer supplies candidates. Its one surviving stratum, 📝 Score ≥ 70, beat SPY by ~1%/signal but lost 2.7%/signal in 2022, and is paper-tracked: shown, never sized. Base-breakout's replay (2021→2026) then put its BaseWks ≥ 20 pocket at −0.55%/trade against SPY as well, and its one robust finding was an avoid rule: breakouts listed when SPY wasn't above a rising 200DMA lost 1.26%/trade against it. So no sister scan supplies a validated pocket anymore. The funnel researches momentum names, reads the sisters as context and entry levels, and applies the regime avoid rule to every pivot-stop entry; be plain with the user that none of this has beaten holding the index.
It orchestrates skills the user already has rather than re-implementing anything:
```
regime-scan ── market gate: 🟢/🟡/🔴 + divergence flags (are we even adding risk?)
momentum-scan ── primary name list + per-name buyability (Sig), stops, persistence
sister CSVs ── base-breakout + mean-reversion context (file read, no re-scan)
│
▼ select top-N by a risk/reward lens
yfinance + edgartools + web + (conditional) wallstreetbets
│
▼ per-name entry / stop / size / invalidation, regime threaded into sizing
│
▼ state/runs/<date>.json ledger → scripts/grade_outcomes.py (quarterly)
```
Default N is **3**. The user can ask for more ("give me 5") or fewer.
`<SKILLS_DIR>` below is the parent directory holding the sister-scan folders. Default to `~/.claude/skills` (the individual scan folders there are symlinks into the user's skills repo, so reading/writing state is consistent). If the scans aren't there, fall back to the repo those symlinks point at: follow `~/.claude/skills/momentum-scan` to its target (on this install, `/Users/matthew/GitHub/skills`).
## Why this order (don't reshuffle without reason)
Each step changes how you read the next:
1. **regime-scan first** because it's a *gate*, and it's cheap (~516 tickers, one batched download). If the market is 🔴 RISK-OFF with stacking divergences, the whole exercise changes character (you're looking for what's *holding up*, sized tiny, not what to chase), and you might defer the expensive deep-dives. Knowing the regime first means you read the name list with a frame already in place, instead of picking names and then discovering the tape is rolling over. regime-scan is also a richer read than momentum-scan's built-in `--regime-gate` banner: the banner is a 2-state trend+breadth gate, while regime-scan adds the 🟡 middle state, the divergence/turn flags, VIX term structure, credit, and cross-day slope. Use the banner as a free sanity check; use regime-scan for the actual gate.
2. **momentum-scan second** because it's the primary name source *and* the only place you get the per-name buyability signals (the `Sig` column, MA20%, RSI, ATR stop) that the selection step leans on. The sister CSVs carry ranks/scores, not `Sig`/stop fields, so you must run momentum-scan itself to see them.
3. **sister lists third** because they change how you read the momentum list: a momentum name also basing on base-breakout's list has a pivot to enter on, one on mean-reversion's list is a leader that's oversold today, and a name on *all three* lists gets a crowding warning, not a conviction bonus. This is a pure file read of the `history.csv` snapshots the daily job already writes; no network, no re-scan.
## Step 1: regime gate
Check whether today's snapshot already exists; if so you can read it instead of re-fetching. **Today's scan already exists if the latest `run_date` in `<SKILLS_DIR>/regime-scan/state/history.csv` matches today's ET date**; in that case use `--show-history` to read the state + slope without a re-fetch. Otherwise run it:
```bash
uv run --with 'yfinance>=1.3,<2' --with 'pandas>=2' \
python <SKILLS_DIR>/regime-scan/scripts/scan.py
# read-only (today already scanned, just want the state + slope):
# ... python <SKILLS_DIR>/regime-scan/scripts/scan.py --show-history
```
**Read the banner and decide the tone for everything downstream: sizing reads the `Confirmed (2-day)` line, not the raw daily state.** The raw label chatters at the score threshold (6 of the first 10 logged transitions were single-day whipsaws; regime-scan's **Signal quality & outcomes** section has the numbers), so the banner carries both. When they disagree, today is a first-day flip: size off the confirmed state and note the flip in the output ("regime flipped to CAUTION today, unconfirmed; sizing still per RISK-ON, tighten if it confirms tomorrow").
- 🟢 **RISK-ON** (confirmed) → proceed, normal sizing.
- 🟡 **CAUTION** (confirmed; ≥2 divergences) → still proceed, but bias hard toward 🟢/🔵 pullback entries, smaller size, tighter stops. This is the state a risk/reward lens cares most about: not "don't act", but "be choosier".
- 🔴 **RISK-OFF** (confirmed; gate off, or ≥4 internals broken under intact price) → consider stopping here. If you continue, frame finalists as "what's holding up", size minimal, and say so outright. **Exception: a raw first-day flip to RISK-OFF with the gate off (SPY lost its 200DMA) is not a whipsaw candidate to wait out; the trend gate is mechanical, respect it same-day.**
Also note the **breadth** number even when no divergence fires: breadth in the mid-50s% with RSP/SPY narrowing is a *healthy-but-narrow, mega-cap-led* tape. Not a flag, but a reason to diversify the final picks away from whatever's crowded (usually tech). Carry this conclusion forward; it feeds both selection (step 4) and sizing (step 5).
## Step 2: momentum name list
```bash
# --verbose: the funnel's selection lens reads the diagnostic columns
# (MA20%, RSI, AnnVol%) that the slim default table hides
uv run --with 'yfinance>=1.3,<2' --with 'pandas>=2' --with 'numpy>=1.24,<3' \
python <SKILLS_DIR>/momentum-scan/scripts/scan.py --verbose
```
Note for later: the `Sig` column is the per-name buyability read (🟢 buy zone / 🔵 deep pullback / 🟡 in-trend / 🟠 stretched / 🔴 overextended), and momentum lists tend to come back mostly 🔴, which is *itself* the warning that buying the raw leaderboard means chasing. Note the sector concentration too (e.g. "Tech 23 of 30"); it tells you which way to diversify in step 4.
Ignore the breadth figure in momentum-scan's own `Regime` banner: it uses a different, tech-tilted pool and a different MA, so it can print something alarming like "~25% > 200DMA" right next to regime-scan's "58%". They're not contradictory; defer to regime-scan's breadth (step 1) and don't let the momentum banner's lower number trigger a false 🔴 scare.
## Step 3: sister-scan context (file read)
No script to run here. Read the two sister CSVs the daily job already writes, filtered to their latest `run_date`:
```
<SKILLS_DIR>/base-breakout-scan/state/history.csv # base_weeks, to_pivot_pct, base_score
<SKILLS_DIR>/mean-reversion-scan/state/history.csv # score (freshness derived from prior run_ids)
```
Extract three things:
- **Base context**: which momentum names are also on base-breakout's latest list, with `base_weeks`, `pivot_price` and `to_pivot_pct` (the entry level a pivot-stop would use). Not a candidate source: the six-year replay put the list at −0.49%/trade against SPY and bases ≥ 20 weeks at −0.55%.
- **MR context and 📝 paper-track**: which momentum names are also on MR's latest list (a leader that's oversold today), and the names with `score ≥ 70` (the paper-track stratum, any listing day). Neither is a candidate source: MR's six-year replay found no edge over SPY outside Score ≥ 70, and that stratum lost 2.7%/signal in 2022.
- **Crowding check**: names on momentum's list, base-breakout's list and MR's list at once. The mom+base+mr triple was the *worst* labeled cell in the overlap backtest (n=15, −8.0% xT+10, Beat10 10%); treat as a crowding warning, never a conviction bonus.
Freshness rule: if a CSV's latest `run_date` is >3 sessions old (weekend save-skips are normal), either re-run that scan or drop its context and say so.
## Step 4: select the top N (risk/reward lens)
This is judgment, not a formula, but the priority order below comes from the sister scans' 2026-05→07 outcome backtests (each scan's **Backtested outcomes** section carries the full numbers). It's tuned for "best *current* risk/reward": entry quality and tight invalidation, not the highest-octane name.
1. **Build the candidate pool from momentum's list, never from overlap counting.** A momentum name that also sits on a sister list is a fine candidate (those cells ran ~neutral in the overlap backtest, Beat10 54–55%), **best when the co-listing is fresh**: 1st–2nd-session overlaps ran −1.6% xT+10 vs −4.4% by the 4th+ consecutive session (check the prior `run_id`s in the sister CSV). A base+MR co-listing with no momentum presence is the *weakest* pair (−2.65% xT+10, Beat10 37%, n=55); leave it out.
2. **A name on all three lists is the crowding representative, not the standout.** Don't auto-lead with it; the step-3 crowding numbers say why. It makes the finalists only if it passes rules 5–6 on its own, and its brief must say the crowd is already there.
3. **A base listing gives an entry level, not an edge, and only in a healthy tape.** Base-breakout's 2021→2026 replay found no attribute that ranks its list (BaseWks ≥ 20, the old 75%-win pocket, ran −0.55%/trade against SPY; Score didn't discriminate in either test). For a momentum finalist that is also basing, the pivot can be its `pivot-stop` entry, **only when base-breakout's regime test passes** (SPY above a rising 200DMA; its JSON's `avoid_breakouts` is false): breakouts listed outside it lost 1.26%/trade against SPY, long bases 2.13%. Otherwise use a pullback-limit or no entry. A base whose volume never dried up (Vol↓ ≥ 0.90) was the weakest band over six years; say so in its brief.
4. **Mean-reversion listings are context, not candidates.** MR's 2021→2026 replay found its signals earned what SPY did over the same days, and the Score ≥ 40 / 1st–2nd-day gate this rule used to apply (+1.83%/signal in-sample) ran −0.14% against SPY. A momentum leader that's also on MR's list is a pullback in a leader: judge it on its momentum merits (rule 5) and say in its brief that it is oversold; the listing adds no edge, and a 3rd+ consecutive listing still means checking the news before anything else. 📝 paper-track names (Score ≥ 70) go in the output table marked 📝 and never become finalists on that evidence: ~+1%/signal over SPY across six years, −2.7% in 2022.
5. **Prefer momentum `Sig` 🟢/🔵; downgrade 🔴 overextended.** A name that only clears via a vertical, RSI-80 move is a worse entry than one basing quietly. For fresh momentum entrants, check the entry-quality tag. The stronger half is **`dist_days_25d` ≤ 1**, and it is only a tiebreaker: clean entries stayed listed longer in momentum's backtests, but the four-year replay shrank the gap to 7.8 vs 6.2 sessions with no return edge; the volume half (`vol_ratio_20d`) is only a weak priority hint, since the once-quoted +9.0% vs +3.1% gap was convention-inflated, re-measured at ~0.5pt (see momentum-scan's **Backtested outcomes** #2–3). Both fields sit on the name's *first* run-day row in `<SKILLS_DIR>/momentum-scan/state/history.csv`.
6. **Prefer a tight ATR stop (≤ ~8%) and low AnnVol.** Tight invalidation is the whole point.
7. **Diversify sectors, and step out of the crowded cohort.** If momentum is tech-heavy and regime flagged a narrow tape, favor non-tech candidates: concentration risk is real, and a narrowing tape pulls sponsorship from the crowded names first.
Then **thread the regime conclusion in**: 🟢 → these are buy candidates at normal size; 🟡 → only the pullback-entry ones, smaller; 🔴 → observe, or minimal size with an explicit caveat. Whatever regime-scan says, no `pivot-stop` entry on a day base-breakout's regime test fails (rule 3).
Name the finalists with one line each on *why they made the cut*, and name the runner-ups so the user can swap one out before the expensive deep-dive runs.
## Step 5: standard-depth deep-dive on the finalists
Deep-dive the N finalists **in parallel**: spawn one subagent per finalist (they're independent, and a single agent doing all N serially is much slower). Hand each agent the scan context you already have (ranks, scores, current `Sig`, approximate spot from the ATR-stop math) so it doesn't re-derive, plus the regime conclusion so it frames sizing. **If you can't spawn subagents** (some harnesses don't allow it), run the same per-finalist brief yourself, one name at a time; the template is identical, only slower. Don't skip a finalist for lack of parallelism.
The full per-agent prompt template, including the exact 7-section brief structure and the **conditional WSB rule**, is in `references/deep-dive-template.md`. Read it and fill in the per-ticker blanks before spawning. The headline points:
- Every brief leads with **trend/stop snapshot**, then the **next earnings/event date** (the single biggest hidden risk for a swing entry; an entry days before a print is a different trade), then fundamentals, SEC filings + insider activity, the catalyst-and-bear-case, crowding, and a **risk/reward verdict** (entry zone, stop, rough R-multiple, sizing note, one-line invalidation).
- **The WSB crowding check is conditional, not automatic.** Crowding is a fragility signal; it only matters when a name is plausibly a retail darling. Run it only when a finalist is in a hot retail theme (semis/AI/software, nuclear, space/defense, crypto-adjacent, EV, biotech-momentum), OR has high AnnVol (>~70%), OR is a big recent run with hot RSI (>70). For a sleepy institutional name (low vol, value sector, modest RSI) skip it and default to "low crowding"; the check would be a near-tautological no-op and isn't worth the call. When it *does* run, the lightweight "is this name on WSB's radar at all" read is enough; only browse actual threads (the full wallstreetbets skill) if the user wants the sentiment detail.
## Output: the comparison table
Synthesize the briefs into one side-by-side table so the user can compare at a glance (lead with the visual; this user reads compact tables faster than prose). Use these rows, adapting as needed:
```
| | <T1> | <T2> | <T3> |
|---|---|---|---|
| Sector | | | |
| Signals | (which scans list it, base weeks + pivot if basing, 📝 if paper-tracked; ⚠️ if on all three) | | |
| Spot | | | |
| Trend | (vs 20/50/200DMA, dist from high) | | |
| ⚠️ Earnings | (date + weeks out; flag if <4wk) | | |
| Valuation | | | |
| Analyst vs spot | | | |
| Stop | (price, %) | | |
| Risk/reward | (R-multiple + glyph 🟢/🟡/🔴) | | |
| Crowding | | | |
| Key risk | | | |
| Verdict | ✅ / ⚠️ + one line | | |
```
For the **Risk/reward** row, anchor the R-multiple to a *defensible upside* (the analyst high target or a chart level) and state which. Don't anchor it to the analyst *mean* target when price already sits there: that is the "reward capped at consensus" case (it makes R look like ~0), and the right move is to say the mean is reached and measure R to a higher bull-case level instead.
Follow the table with a 2–3 sentence-per-name plain-language verdict, then a short **"what the funnel did"** recap that makes the value explicit: e.g. how the deep-dive *changed* the picture vs the raw scan signals (a name that looked great on signal agreement but turned out to have capped reward or a deteriorating fundamental backdrop). That recap is often the most useful part: it shows why "appears in N scans" ≠ "buy", now backtest-quantified, since overlap count alone ranked outcomes backwards.
Write the verdicts (and the regime read) in the conversation's language, for a reader with **no finance background**. Translate every term into everyday language the moment you use it: "pivot $253.18" means "the trigger price where a 32-week sideways range resolves; no buy until price clears it"; "stop -3.7%" means "the pre-committed bail price, the most this trade is allowed to lose"; "~0.9R" means "risking $1 to make $0.90, so the trade leans on hit rate, not payoff"; "LTL trucking" gets one plain clause on what the business does. End each verdict by stating outright what to do: enter where, bail where, at what size, or what to wait for.
Close with concrete next-step offers: swap a finalist for a runner-up and re-dive; persist the theses (`/commit-invest` if available); or go deeper on one name (full `/deep-research`).
## Step 6: write the run ledger (non-optional)
The funnel is the only layer of the pipeline that says "buy here, bail there", and until 2026-07 no run left a record, so "does the funnel add value over the raw scans" had no answer. Every run now ends by transcribing the final table into `state/runs/<YYYY-MM-DD>.json`. **A run you didn't log never happened**: the sample for the quarterly grade accrues only when the file exists.
Log **all three roles**: the finalists with their full plans, the runner-ups, and the names the deep-dive *rejected* (with a one-line `reason`). Rejections are predictions too: if rejected names outperform finalists, the deep-dive is subtracting value, and only the ledger can catch that. Record what the table *said*, not what you hope happens: entry type/level, stop, and size as briefed.
```json
{
"run_date": "2026-07-31",
"regime": {"state": "RISK-ON", "score": 6, "flags": "..."},
"picks": [
{"ticker": "ELV", "role": "finalist", "tags": ["momentum", "mr-pocket"],
"spot": 412.5, "verdict": "✅",
"entry": {"type": "pullback-limit", "level": 405.0},
"stop": 389.0, "size": "normal",
"upside_ref": {"level": 460.0, "basis": "analyst high"},
"invalidation": "loses 200DMA on volume"},
{"ticker": "CIEN", "role": "runner-up", "tags": ["momentum"], "spot": 118.0},
{"ticker": "MU", "role": "rejected", "tags": ["momentum", "mr-pocket"],
"spot": 739.0, "reason": "earnings in 2 days, reward capped at consensus"}
]
}
```
Field rules (the validator is the source of truth; the full schema lives in `scripts/grade_outcomes.py`'s docstring): `role` ∈ finalist / runner-up / rejected; `tags` ⊆ momentum / base-pocket / mr-pocket (since 2026-10-07 `base-pocket` and `mr-pocket` mean "on that scan's latest list"; earlier ledgers used them for the retired BaseWks ≥ 20 and Score ≥ 40 pockets); `spot` = the reference close you worked from; finalists also require `verdict` (✅/⚠️), `entry` (`market` fills next open, omit `level`; `pullback-limit` / `pivot-stop` require it), `stop` (below the entry reference), and `size` (normal / half / minimal, regime-threaded). Two conventions the schema can't enforce. `entry.level` takes **one number, not a zone**: when the brief gives an entry zone, record its midpoint (or the specific trigger the brief named, if it named one) so hand-written ledgers stay comparable. And the filename is one-per-ET-date: a second funnel run the same day **overwrites that day's ledger by design**; the later run is the day's view of record. After writing, self-check:
```bash
uv run --with 'yfinance>=1.3,<2' --with 'pandas>=2' --with 'numpy>=1.24,<3' \
python <SKILLS_DIR>/conviction-funnel/scripts/grade_outcomes.py \
--validate <SKILLS_DIR>/conviction-funnel/state/runs/<date>.json
```
Quarterly (with the sister scans' `backtest_outcomes.py` reruns), grade the accumulated ledger on selection quality (finalists should beat runner-ups should beat rejected, all vs SPY) and execution quality (fill rate, stop-hit rate, realized R with gap-aware exits):
```bash
uv run --with 'yfinance>=1.3,<2' --with 'pandas>=2' --with 'numpy>=1.24,<3' \
python <SKILLS_DIR>/conviction-funnel/scripts/grade_outcomes.py
```
Until the ledger holds ~30+ finalists across regimes, read the grade's per-run recap rather than its aggregate tables; the script says so in its own legend.
## Honesty rules (carry these through the whole funnel)
- **Never frame output as "buy this".** These are *prioritized research candidates with risk parameters*, not advice. Say so.
- **Quote the backtest numbers when rejecting a crowded name.** "In 3 scans" *sounds* bullish; the measured record says the opposite (−4.5% xT+10). Quoting the number keeps the funnel honest against its own old framing, and tells the user why the obvious-looking pick got demoted.
- **Report the tape faithfully.** If regime is 🟡/🔴, lead with that, don't bury it under exciting names.
- **Surface what the deep-dive killed.** The funnel's job is as much to *reject* plausible names as to surface good ones: a leaderboard name with reward already capped at the analyst target, or a fresh oversold listing whose sector backdrop is still deteriorating, is a finding to state out loud.
- **The single-run caveat:** the scans get sharper with history (streaks, slopes). A first-ever run is thin on information; lean harder on the fundamental deep-dive when the scan history is short.
- **No ledger, no run.** Step 6 is part of the funnel, not an optional epilogue: skip it and you delete the sample the quarterly grade needs, and the runs that felt unremarkable are the ones that keep the grade honest.
## Quick reference: the whole funnel
```bash
# 1. regime gate (read --show-history if today already scanned)
uv run --with 'yfinance>=1.3,<2' --with 'pandas>=2' \
python <SKILLS_DIR>/regime-scan/scripts/scan.py
# 2. momentum name list (+ per-name Sig / stops; --verbose for the
# MA20/RSI/AnnVol diagnostics the selection lens uses)
uv run --with 'yfinance>=1.3,<2' --with 'pandas>=2' --with 'numpy>=1.24,<3' \
python <SKILLS_DIR>/momentum-scan/scripts/scan.py --verbose
# 3. sister context — pure file reads, no script (see Step 3)
# base-breakout-scan/state/history.csv → context + pivots (pivot-stops only if RISK-ON)
# mean-reversion-scan/state/history.csv → context + 📝 score ≥ 70 (watch-only)
# 4. select top-N by risk/reward lens (judgment — see Step 4)
# 5. parallel deep-dive subagents per finalist (see references/deep-dive-template.md)
# 6. write state/runs/<date>.json (finalists + runner-ups + rejected), then self-check:
uv run --with 'yfinance>=1.3,<2' --with 'pandas>=2' --with 'numpy>=1.24,<3' \
python <SKILLS_DIR>/conviction-funnel/scripts/grade_outcomes.py --validate \
<SKILLS_DIR>/conviction-funnel/state/runs/<date>.json
# quarterly: grade the accumulated ledger (no args)
```
Files in this skill
- SKILL.md
- references/deep-dive-template.md
- scripts/grade_outcomes.py
- scripts/test_grade_outcomes.py
- state/runs/2026-07-31.json
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.