All authors

Claude Skills by howard-lynn-ye
github.com/howard-lynn-ye131 skills0 installs137 views
- Pre Trade ChecksCheck a proposed order before a human sends it - this skill checks orders and never sends one. Fat finger, participation, session and auction windows, duplicate and replay, exposure limits, and a kill switch that fails everything closed. TRIGGER - pre-trade risk checks, fat finger, sanity-check an order before sending, "did I type an extra zero", notional cap, max order size, size against ADV, participation cap, price through the market, limit far from the last trade, duplicate client order i...Votes: 0GitHub stars: 2
- Public Information CollectionCollect public news, AAII/Michigan sentiment, CFTC positioning and disclosures with fin_skills.collect. TRIGGER - RSS or Atom ingestion, static-page crawler, persistent watchlist, polling, real information collection, investor survey, COT positioning, congressional trade tracker, SEC Form 4 XML, 13F holdings changes, public influencer posts, 爬虫, 实时采集, 名人交易跟踪. SKIP for interpreting disclosure lag (congressional-trading-disclosures, insider-form-4, institutional-13f), social backtest bias (soci...Votes: 0GitHub stars: 2
- Quant Stack RouterEntry router for Python quantitative finance: names the right library and flags where the model's training prior is stale. TRIGGER - read this FIRST when a quant task names no specific sub-domain, when asked "which library should I use" for anything financial, or when a plan spans several of data, backtest, risk and execution. Also read it before importing any finance package whose status you are assuming from memory - several widely used ones are dead, relicensed, or have flipped a default s...Votes: 0GitHub stars: 2
- Ratings Transitions And MigrationEstimate and use a credit rating transition matrix without producing negative probabilities or a five-year default rate that is five times the wrong number. TRIGGER - rating transition matrix, migration matrix, credit migration, cohort estimator, duration estimator, Aalen-Johansen, Nelson-Aalen generator, matrix power P^5, matrix root, square root of a transition matrix, six-month transition matrix, scipy.linalg.logm, expm, embedding problem, generator of a Markov chain, "negative probability...Votes: 0GitHub stars: 2
- Real Time Macro BacktestingRun a macro strategy twice - once on today's revised series and once on the vintage that existed at each decision date - and report both Sharpes. TRIGGER - real-time data, vintage data, data vintages, point-in-time macro, ALFRED, realtime_start, realtime_end, vintage_dates, get_series_as_of_date, first release vs latest, initial estimate, "my macro backtest uses revised data", "does this have look-ahead", payroll revisions, GDP revisions, annual benchmark revision, QCEW benchmark, restated ma...Votes: 0GitHub stars: 2
- Regime DetectionDetect and label market regimes without letting the labels see the future, and state regime coverage in the form the result gate demands. TRIGGER - detect market regimes, regime detection, bull bear regime labels, volatility regime, high-vol low-vol state, risk-on risk-off; hidden markov model on returns, HMM, hmmlearn, markov switching, MarkovRegression, smoothed vs filtered probabilities; change point detection, ruptures, structural break; turbulence index, Mahalanobis distance; "my strateg...Votes: 0GitHub stars: 2
- Research Integrity GuardsSecond-pass audit that decides whether a finance result is real, applied after the work exists. TRIGGER - about to REPORT, publish or act on a backtest, factor test or model score; a result that looks good ("Sharpe 3.5", "beats SPY", "85% accuracy") and needs challenging; asked to validate, verify, sanity-check or critique a research design; asked "what should I check". Covers five gates: universe survivorship, availability timestamps, label leakage, cost realism, trial count. SKIP when the t...Votes: 0GitHub stars: 2
- Risk Measures Var CvarCompute Value-at-Risk and Expected Shortfall by the four estimators that disagree in the tail, and backtest them properly. TRIGGER - VaR, value at risk, CVaR, expected shortfall, ES, tail risk, 99% VaR, 95% VaR, historical simulation VaR, parametric normal VaR, Cornish-Fisher expansion, EVT, peaks over threshold, generalized Pareto, scipy genpareto, tail index xi, Kupiec proportion of failures, Christoffersen independence, conditional coverage, VaR exceptions or breaches, traffic light test, ...Votes: 0GitHub stars: 2
- Rl And Ml TradingReinforcement learning and deep learning for trading: what installs, and what the evidence says. TRIGGER - reinforcement learning, RL agent, trading gym, custom trading environment, reward function, PPO or DQN for trading; FinRL, FinRL-Meta, ElegantRL, stable-baselines3, gymnasium, gym, gym-anytrading, TensorTrade; LSTM, GRU, TCN or Transformer for return prediction; "does deep learning beat a linear model"; FinRL or gym failing to import with ModuleNotFoundError. FinRL's published wheel decl...Votes: 0GitHub stars: 2
- Sample Weights And UniquenessOverlapping labels are not independent observations - compute concurrency, average uniqueness and return-attributed weights, and divide your t-statistics by the overlap factor before believing any of them. TRIGGER - sample weights, average uniqueness, concurrency, overlapping labels, numCoEvents, num_concurrent_events, getAvgUniqueness, tW, sample_weight in fit(), getWeightsByReturn, get_weights_by_return, time decay weights, getTimeDecay, sequential bootstrap, seq_bootstrap, indicator matrix...Votes: 0GitHub stars: 2
- Seasonal Adjustment And X13Seasonal adjustment is a second, silent vintage - the published seasonally adjusted history keeps changing with no new data. TRIGGER - seasonally adjusted, SA vs NSA, "why did last year's number change", concurrent seasonal adjustment, seasonal factors, X-13ARIMA-SEATS, X-13, X-12-ARIMA, x13_arima_analysis, X13NotFoundError, "x12a and x13as not found on path", X13PATH, statsmodels seasonal_decompose, STL, ratio to moving average, annual re-adjustment, benchmark revision, "the seasonal factors...Votes: 0GitHub stars: 2
- Section 1256 And Derivatives TaxFutures and broad-based index options are marked to market on the last business day of the year and split 60/40 long/short regardless of holding period, so two options with the same payoff can have different after-tax P&L. TRIGGER - section 1256, 1256 contract, 60/40, sixty forty, mark to market at year end, marked to market December 31, regulated futures contract, nonequity option, broad-based index option, narrow-based security index, SPX vs SPY tax, XSP, VIX options, futures tax treatment,...Votes: 0GitHub stars: 2
- Security Master And SymbologyMap ticker, CIK, ISIN, FIGI, SEDOL and CUSIP on (identifier, DATE) rather than on identifier, and detect when the entity behind one changed. TRIGGER - ticker to CIK, ISIN to CUSIP, FIGI, SEDOL, ISIN or CUSIP check digit, identifier validation; a reused ticker, a renamed company, a merger or ticker change breaking a join; security master, symbology, cross-reference table, PERMNO, entity resolution; "the fundamentals attached to the wrong company"; building a universe from company_tickers.json....Votes: 0GitHub stars: 2
- Signal ConstructionCompute technical indicators and engineered features without leaking the future. TRIGGER - RSI, MACD, moving average, Bollinger, ATR, ADX, Ichimoku, PSAR, stochastic or any named technical indicator; TA-Lib, pandas-ta, pandas-ta-classic, ta, talipp, finta; choosing an indicator library or reconciling two that disagree; "does this indicator repaint"; warm-up, unstable period, or an indicator differing between backtest and live; zigzag, fractals, swing highs. SKIP for judging whether a finished...Votes: 0GitHub stars: 2
- Signal Reconciler[fin-china] Inspect a heuristic conflict resolver for supplied policy, flow, valuation, news, and sentiment scores. Check market scope, evidence dates, and rule assumptions before using its proposed portfolio tilt.Votes: 0GitHub stars: 2
- Social And Influencer FeedsWhat social data you can legally and practically get in 2026, and what the part you can get does to a backtest. TRIGGER - Twitter or X API, tweet sentiment, cashtag, StockTwits, Reddit API, PRAW, r/wallstreetbets, Pushshift, scraping social media for a trading signal, "which accounts should I follow", influencer or finfluencer track records, "backtest a sentiment signal", social sentiment score, deleted tweets, "is scraping legal", hiQ v LinkedIn, robots.txt and terms of service for a data pi...Votes: 0GitHub stars: 2
- Sofr And Rfr CompoundingCompute a compounded-in-arrears overnight rate correctly - SOFR, SONIA, ESTR, TONA, SARON - including the lookback, lockout and observation-shift conventions. TRIGGER - SOFR compounded in arrears, SOFR Index, SOFR Averages, 30-day 90-day 180-day SOFR average, compounded RFR, daily compounding of an overnight rate, lookback, rate shift, observation shift, lockout, payment delay, "my SOFR coupon is a few basis points off", "compounded vs simple average SOFR", ACT/360 vs ACT/365 on SONIA, SONIA ...Votes: 0GitHub stars: 2
- Stat Arb CointegrationScreen, test and trade a cointegrated pair without counting the trials wrong, applying the single-series ADF table to a fitted residual, or estimating the hedge ratio on the window you score it in. TRIGGER - cointegration, Engle-Granger, statsmodels coint, coint_johansen, Johansen, trace statistic, max eigenvalue, VECM, cointegrating vector; pairs trading, statistical arbitrage, stat arb, spread, hedge ratio, spread z-score, entry and exit thresholds, half-life, Ornstein-Uhlenbeck, OU mean re...Votes: 0GitHub stars: 2
- State Space And KalmanEstimate a time-varying hedge ratio or beta with a Kalman filter, and know which of its three state series you are allowed to trade - the smoothed one has read the whole sample. TRIGGER - Kalman filter, Kalman smoother, RTS smoother, state space model, local level, local linear trend, time-varying beta, dynamic hedge ratio, dynamic linear model, DLM, process noise Q, observation noise R, signal-to-noise ratio; statsmodels.tsa.statespace, KalmanSmoother, MLEModel, UnobservedComponents, Recursi...Votes: 0GitHub stars: 2
- Stock Jev Meta GateBuild financial JEV questions and validate returned answers against the original questions. TRIGGER - stock_jev_gate, financial JEV question templates, regime choice, noul disqualification, ordinal rating, malformed decision probabilities or timestamp cutoff. SKIP for fitting a predictive model (time-series-forecasting-models), portfolio optimization (portfolio-and-risk), or multi-agent orchestration (finance-agent-architectures).Votes: 0GitHub stars: 2
- Structural BreaksSample events with the symmetric CUSUM filter instead of on a clock, and test for explosive behaviour with SADF instead of one full-sample ADF that has no power against a bubble in part of the sample. TRIGGER - CUSUM filter, cusum_filter, symmetric CUSUM, event-based sampling, t_events, event sampling for labels, SADF, supremum ADF, sup ADF, get_sadf, BSADF, backward SADF, Phillips-Shi-Yu, explosiveness test, bubble detection, structural break test, Chow test, "how do I pick the bars to label...Votes: 0GitHub stars: 2
- Tax Lot Matching And Cost BasisThe same trades produce four different reported P&Ls depending on which lot you sold, and only one of the four methods is a statutory default. TRIGGER - tax lot, tax lots, lot matching, cost basis, cost basis method, which shares did I sell, FIFO, LIFO, HIFO, LOFO, tax lot optimizer, specific identification, specific share identification, adequate identification, average cost basis, average basis, short-term vs long-term capital gain split, holding period more than one year, Publication 550, ...Votes: 0GitHub stars: 2
- Term Structure ModelsBuild and fit a yield curve, and price a zero-coupon bond in a short-rate model, without the convention and identification traps. TRIGGER - bootstrap a zero curve, par rates to zero rates, discount factors to zero rates, par bond reprice, curve stripping; day count ACT/365 ACT/360 30/360, annual vs semiannual vs continuous compounding, "my zero rate is off by a few basis points", "which day count did this curve use"; Nelson-Siegel, Svensson, Diebold-Li, lambda 0.0609, beta0 beta1 beta2 level ...Votes: 0GitHub stars: 2
- Time Series Forecasting ModelsScore a forecast against the baseline it has to beat - naive, seasonal-naive, drift, mean - with MASE, rolling-origin evaluation and a Diebold-Mariano test, instead of an R^2 on a price level. TRIGGER - forecasting, ARIMA, SARIMA, SARIMAX, auto_arima, ETS, Holt-Winters, exponential smoothing, statsmodels ARIMA trend, walk-forward, rolling origin, expanding window; naive forecast, seasonal naive, drift method, MASE, sMAPE, MAPE, OWA, Diebold-Mariano, DM test; LSTM stock price prediction, N-BEA...Votes: 0GitHub stars: 2
- Trading Calendars And SessionsTRIGGER - trading calendar, market sessions, early close, lunch break, holidays.US, exchange_calendars, pandas_market_calendars, DateOutOfBounds, resample has empty bars, aligning Tokyo to New York, 交易日历, 休市. Pin session bounds, compare venue calendars, and aggregate against explicit sessions. SKIP for vendor choice and price adjustments (market-data-sourcing), stale closes and bad OHLC (data-quality-validation), corporate events (corporate-actions-processing), storage and as-of joins (market...Votes: 0GitHub stars: 2
- Trend Following ModelsBuild a trend-following or time-series-momentum strategy the way the paper defines it, and measure the two look-aheads that flatter its backtest. TRIGGER - time series momentum, TSMOM, Moskowitz Ooi Pedersen, 12-month momentum, trend following, managed futures, CTA replication; Donchian channel, turtle rules, breakout system, 20-day high, moving average crossover, golden cross, 50/200 MA; volatility targeting, vol scaling, ex-ante volatility, 40% vol target, risk parity across futures, invers...Votes: 0GitHub stars: 2
- Triple Barrier LabelingLabel a trade by which of profit-taking, stop loss and the holding-period limit is hit FIRST, with barriers scaled to the volatility at the event - instead of by the sign of the return N bars later, which describes a path you would have been stopped out of. TRIGGER - triple barrier, triple-barrier method, getEvents, get_events, getBins, get_bins, barrier_touched, add_vertical_barrier, pt_sl, vertical barrier, t1 touch time, getDailyVol, get_daily_vol, meta-label 0/1, fixed-time horizon labeli...Votes: 0GitHub stars: 2
- Us Market RulesUS trading rules that decide whether a strategy is executable at all - short-sale restrictions, margin, settlement, day-trading limits, and what a data licence lets you keep. TRIGGER - can I short this, locate, hard to borrow, borrow fee, short interest, Reg SHO, uptick rule, SSR, short sale restricted; PDT, pattern day trader, day trade limit; Reg T, initial or maintenance margin, margin call, buying power, leverage limit; T+1, settlement, cash account; "can I redistribute this data"; may_ca...Votes: 0GitHub stars: 2
- Volatility ModelsFit and forecast volatility - GARCH, range-based realized variance, HAR-RV - without the two errors that silently move the answer: the units `arch` expects, and a range estimator used on bars that gap. TRIGGER - GARCH, GARCH(1,1), EGARCH, GJR-GARCH, arch_model, conditional_volatility, DataScaleWarning, "y is poorly scaled", rescale=True, res.scale, alpha + beta near 1, IGARCH, persistence; realized volatility, realized variance, Parkinson, Garman-Klass, Rogers-Satchell, Yang-Zhang, close-to-c...Votes: 0GitHub stars: 2
- Wash Sale RulesA wash sale defers a loss into the replacement's basis rather than destroying it, and a monthly-rebalanced strategy triggers one on almost every trade. TRIGGER - wash sale, wash sales, IRC 1091, section 1091, 30 day rule, 61 day window, substantially identical, disallowed loss, loss disallowed, basis adjustment, replacement shares, tax loss harvesting, harvesting rules, buy back within 30 days, "can I sell and rebuy", Form 8949 code W, 1099-B box 1g, wash sale in an IRA, Rev. Rul. 2008-5, hol...Votes: 0GitHub stars: 2
- Yield Measures And Bill QuotesTurn a bond or bill price into the right yield, and stop treating a discount rate as one. TRIGGER - yield to maturity, YTM, current yield, yield to call, yield to worst, YTW, running yield, redemption yield; Treasury bill discount rate vs bond-equivalent yield, BEY, coupon-equivalent yield, investment rate, "why is the 4-week bill rate different from the yield", DTB3 vs DGS3MO, 360 vs 365 on a bill, money-market yield, add-on rate, CD equivalent; "my yield does not match Bloomberg", BondFunct...Votes: 0GitHub stars: 2