/mph-kit:stock-recapfrom mph-kit
Produces a daily market recap and convergence-ranked stock shortlist by combining screeners, options flow, new CBOE listings, and hedge-fund 13F activity with technicals.
Ships in mph-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill produces a market recap and a short list of stocks the data agrees on, each with technicals. It pulls four independent legs and ranks names by how many of them point at the same ticker (equal-blend convergence):
INSTITUTIONAL_ALPHA tier and repeat-strike conviction.It surfaces a dedicated under-$100 section so the list isn't all $700+ mega-caps. The visual read lives on Ghost Flow (TradingView), not here — the recap is the data layer; Ghost Flow is the picture (see "Reading the charts" below).
It opens with a regime gate + week-ahead block — the Sunday-night context
a daily recap can't give you (all from the NEW dev API, api.traderdaddy.pro/api/v1,
X-API-Key in repo-root .env_td_api; every leg is best-effort and degrades alone):
score_history.mjs (below),
so the list carries its own honesty check.Mike's edge: his best picks come from Momentum Pullback names that have ALREADY started recovering — not the ones still buried in the hole. The script has a dedicated Recovery Watch section that flags pullback names where the turn is confirmed on the tape: RSI reclaimed bullish (≥50 / bullish zone), price back above the 21EMA, week no longer bleeding, A/B entry grade. It deliberately EXCLUDES deep-oversold names crossing up inside a downtrend — Ghost Flow grades those SHORT (they're bounce candidates, not longs; MIDD/CRS on 2026-07-19 were the lesson). It marks which recoveries already have bullish flow and fund buying behind them. Always call this out — and if the list is empty in a weak tape, say so plainly (nothing to chase beats a list of knives).
Four tiers of the turn (earliest → confirmed → graduated → tracking):
- 🌅 Turning Up — the EARLIEST catch. Computes StochK(14/3) off chart-data (screeners only give today's value) and fires when K just crossed back up through 40 after dipping below — the moment the turn starts, before RSI/EMA confirm. FIG's 2026-06-30 reclaim at $18 (then +32%) is the archetype. Fresh cross within
RECAP_TURN_LOOKBACK(default 2) sessions, K ≤RECAP_TURN_KMAX(default 68, past which it's already extended). Scanned across every screener (not just pullback) so a FIG-class name is caught at the cross — it sat in csp-wheel before its 06-30 reclaim. A Source column shows which screener(s) surfaced each name. Earlier = better price but noisier; always tell Mike to confirm on Ghost Flow before sizing.- 🔄 Recovery Watch — the CONFIRMED tier above (RSI≥50 + above 21EMA + week not bleeding + A/B).
- 🎓 Graduated from Watch — a name that was on the PERSISTENT 👁️ Watch list (dropped below 40 on a prior run) and just reclaimed 40. Shows was→now price, % since it went on watch, and days tracked. 🔥 = fresh cross (≤2 sessions). This is the payoff of tracking across runs: watch the drop, own the reclaim — the exact FIG catch.
- 👁️ Watch — persistent, cross-run — names that FELL through 40. They land here and stay across runs (even after they drop off every screener; those show
off ✂️) until they reclaim 40 (→ 🎓) or age out (RECAP_WATCH_MAX_DAYS, default 21). NOT actionable while here. The loop: drop → watch → cross back up → 🎓 Graduated. State lives inruns/_watchlist.json.Scan universe: the 40-line scan runs over the full union of every screener's names (any name that landed on ≥1 screener this run, ~170 names), so a FIG- class name is caught at its cross even if it's not a pullback name yet. New watch slots are earned by pullback names only (keeps the store tight), but once on the list a name is tracked purely off StochK — so it's never lost between the drop and the reclaim, even after it leaves every screener. Set
RECAP_DEBUG_WATCH=1to log the store-only fetch each run.
Run the gather script from the repo root:
node .claude/skills/stock-recap/scripts/gather.mjs
It writes a timestamped folder under .claude/skills/stock-recap/runs/<date_time>/
containing report.md (the full recap) and raw/*.json (every raw API pull,
for backtesting or a deeper look). It also prints the report to stdout and a
final JSON line with {reportPath, rawDir, shortlist, health}.
AGENT_API_KEY from the repo-root
.env_agent_api, hits production (Railway + TickerTrace), and presents a
browser User-Agent (the edge WAF 403s the bare Node UA).Weekly mode (Sunday night): prefix RECAP_WINDOW=week:
RECAP_WINDOW=week node .claude/skills/stock-recap/scripts/gather.mjs
This widens the flow window to the whole week and tightens the premium/score
thresholds (weekly flow is noisier), and re-titles the report "Sunday Setup —
Week Ahead." The regime gate + week-ahead calendar render in either mode, but
they're what make the weekly run a real Sunday list. Default (no env) is the
daily today recap.
Cron / commit-to-history — for the scheduled daily run use the wrapper:
node .claude/skills/stock-recap/scripts/run_and_commit.mjs
It runs gather.mjs, snapshots the output into the git-tracked history/
dir — history/<YYYY-MM-DD>.md (full report), history/<YYYY-MM-DD>.json
(compact shortlist + health + watch-list), and history/_watchlist.json (the
persistent store snapshot) — then git commits ONLY those paths (pathspec-
restricted, so the rest of the working tree is never swept in) and pushes to
origin (push failure is non-fatal — the commit stays saved locally). Same-day
reruns overwrite the day's files; git keeps the diff history. The
run dirs under runs/ stay gitignored; history/*.json is un-ignored via a
.gitignore negation. Disclaw cron stock-recap daily (commit history)
(job 8f0675b4, 0 17 * * 1-5 — weekday 5pm ET, post-close) invokes this.
Read the generated report.md (the path is in the script's final output).
ALWAYS eyeball the charts before presenting. Render the shortlist + tier names and actually read the PNGs — never present off the tables alone. On 2026-08-02 this reversed 5 of 8 calls in one run.
cd .claude/skills/stock-recap
node scripts/render_chart.mjs ZION GOOGL BMNR --out /tmp/recap_charts_<date>
node scripts/render_chart.mjs ORCL NKE --days 300 --out /tmp/recap_charts_<date>/long
Charts render as SVG in headless chromium, in the Gamma Map palette, with live
TD Pro dealer levels drawn on: red walls, green support, amber PIN, purple
dashed gamma flip, OI on every label. Default window is ~4 months (--days 88).
Pass --no-gex to skip the options-chain fetch.
Use --days 300 on anything you're about to call a downtrend or a
breakout. 90 days is not enough to see a multi-month trendline, and that
trendline IS Mike's #1 setup. The two views can disagree completely: at 90d
NKE looked like dead chop under a falling 55EMA; at 300d it's a four-month
base with a firm floor and flattening EMAs, coiling right under the descending
line off the peak. Mike caught that and I hadn't. Conversely ORCL looked like
a bounce at 90d and a worse accelerating breakdown at 300d.
The distinction that matters — decelerating base vs active waterfall:
Table artifacts the charts catch, every time:
DEAD_RANGE_PCT, but sanity-check
the y-axis range anyway.Then send the PNGs to Discord grouped as keep-vs-cut so Mike sees what you saw.
Ghost Flow is still the confirm. The report ships no PNGs by design; Mike confirms the visual on Ghost Flow (his TradingView indicator), which encodes the whole decision — GRADE, W GATE, FLOW (CMF), SQUEEZE, %R EXHAUST, VOL PREMIUM, ADX/RSI, BOUNCE, ATR-based RISK sizing, and gamma walls on the price axis — far past what a bare candle+EMA render can show. When presenting the recap, tell Mike which shortlist names to pull up on Ghost Flow and what to look for (is the W-GATE open or WAIT, is FLOW positive, is it bouncing or rolling). The data tables here are the screen; Ghost Flow is the confirm — your own chart read in step 3 is the filter that decides what's even worth him opening.
Present a tight, plain-English recap to Mike — don't just dump the file. Lead with what matters:
Point Mike at the saved report.md for the full tables/charts, and mention the
raw/ JSON is there if he wants to dig in or backtest.
score_history.mjs)The recap grades itself. After runs have aged a forward window (default 5 trading days), run:
node .claude/skills/stock-recap/scripts/score_history.mjs
For every old-enough run it looks up each shortlist name's price N trading days
later (same source the run used — /api/agent/ticker/:symbol/chart-data), computes
the forward return, and writes runs/<stamp>/scored.json plus a rolling
runs/_scorecard.json. The next gather.mjs run reads _scorecard.json back in
and prints the 📋 Track record line. It's idempotent (a scored run is
cached; pass --rescore to redo) and best-effort. Buckets the results by
Reversal-Watch vs base and by leg count. Tune with --horizon N.
⚠️ The convergence thesis did not survive contact with the data. At 401 picks / 30 runs the leg-count buckets are inverted: 2-leg 48% · 3-leg 26% · 4+-leg 17%, against a 47% base. More agreement predicts WORSE forward returns. Working theory: legs past two come from flow + funds, which stack correlated mega-cap noise rather than confirming a setup. As of 2026-08-02
LEG_RANK_CAP = 2caps the rank contribution and a confirmed reversal (51%, the only bucket beating base) outranks raw agreement. Legs still gate the shortlist; they no longer buy position on it. Re-check as the sample grows — if it flips back, raise the cap. Worth running weekly (e.g. before the Sunday pull) so the track record stays fresh.
RECAP_WINDOW=week — weekly Sunday-night mode (default today). Widens the flow
window and tightens flow thresholds; re-titles to "Sunday Setup — Week Ahead."RECAP_SHORTLIST=20 — shortlist size (default 15).RECAP_MAX_PRICE=50 — cutoff for the under-$N affordable section (default 100).RECAP_FLOW_MIN_SCORE / RECAP_FLOW_MIN_PREMIUM — flow filter floors (weekly
defaults to a higher premium floor since weekly flow is noisier).RECAP_TIMEOUT_MS=90000 — per-request timeout (default 60s).TD_API_URL / TICKERTRACE_API_URL / TD_DEV_API_URL — override base URLs (the
last is the NEW dev plane backing regime + week-ahead; key in .env_td_api)./api/agent/ticker/:symbol (RSI, ADX, EMA stack,
call/put walls, expected move). Stochastic isn't available there, so the Stoch
column shows — for those./api/institutional/* (the agent key
is scoped to /api/agent/* and can't reach it). If TickerTrace is down, the
hedge-fund leg degrades gracefully and the rest still runs..claude/).scripts/render_chart.mjs — hand-built SVG rendered in headless
chromium (playwright), styled to match the Gamma Map product in docs/gex-chart/
and carrying live TD Pro dealer levels. Node only; no venv, no matplotlib. The
earlier "no chart PNGs by design" call was wrong: the render was ugly, not
useless. Reading the charts reversed 5 of 8 calls in a single run on 2026-08-02.dealer-hud is a browser extension that draws over TradingView, so
there is no renderer in it to lift. Copy the look from docs/gex-chart/ instead.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mphinance/alpha-skills --plugin mph-kit28 skills in this plugin
/blog-postA long-form article / blog post — masthead, hero image placeholder,
article body with figures and pull quotes, author byline, related posts.
Use when the brief asks for "blog", "article", "post", "essay", or
"case study".
/cavemanUltra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman.
/critiqueRun a 5-dimension expert design review on any HTML artifact in the
project — Philosophy / Visual hierarchy / Detail / Functionality /
Innovation, each scored 0–10. Outputs a single self-contained HTML
report with a radar chart, evidence-backed scores, and three lists:
Keep / Fix / Quick-wins. Use when the brief asks for a "design
review", "design critique", "5 维度评审", "design audit", or "what's
wrong with my design".
/dashboardAdmin / analytics dashboard in a single HTML file. Fixed left sidebar,
top bar with user/search, main grid of KPI cards and one or two charts.
Use when the brief asks for a "dashboard", "admin", "analytics", or
"control panel" screen.
/design-an-interfaceGenerate multiple radically different interface designs for a module using parallel sub-agents. Use when user wants to design an API, explore interface options, compare module shapes, or mentions "design it twice"./design-briefParse a structured design brief written in I-Lang protocol format into a
concrete design spec. Eliminates ambiguity from vague requests like
"make it professional" by requiring explicit dimensions: palette, typography,
layout, mood, density, and constraints.
Trigger keywords: "design brief", "create a design brief", "ilang brief", "structured brief".
Other plugins' skills for the same job