TRIGGER - spin-off, spinoff, rights issue, TERP, merger, exchange ratio, reverse split, cash in lieu, ticker change, symbol recycling, special dividend, parent price dropped on ex-date, 分拆, 配股, 并购. Reconcile event cash and share entitlements with position returns. SKIP for ordinary split/dividend price-adjustment detection (market-data-sourcing), stale prices and OHLC validation (data-quality-validation), calendars (trading-calendars-and-sessions), and survivorship-free universes (research-integrity-guards).
Ships in fin-market-data. 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.
Carry dated events and position entitlements alongside prices. A return-adjusted price series can represent event value, but does not tell an execution or accounting system which shares, rights and cash the investor owns afterward.
🚨 Do not claim that every adjusted series books a spin-off as a loss. Treatment depends on the data provider and return convention. ✅ Primary-source verification, 2026-09-14: MSCI Corporate Events Methodology, February 2026, section 2.8.1 applies a price adjustment factor to the parent on the spin-off ex-date. That disproves a universal inability to adjust spin-offs; it does not establish another vendor's coverage.
✅ Measured 2026-09-14 by corporate_actions.py, fixed synthetic examples that deliberately omit events from the quoted-price feed:
| Event omitted from feed | Price-only return | Holder return | Holder minus price, percentage points |
|---|---|---|---|
| Spin-off | -30.0000% | 0.0000% | 30.0000 |
| Discounted rights issue | -13.3333% | 0.0000% | 13.3333 |
| Reverse split | 900.0000% | 0.0000% | -900.0000 |
spin_off_gap() also computes an explicit adjustment: its ex-date return is 0.0000%.
Subsequent returns still depend on whether distributed shares are kept, sold or reinvested.
The demo includes SpinCo at its first close and has no market movement at the distribution
instant. Real first-close movement is not a pure corporate-action adjustment.
rights_issue_gap() assumes freely saleable rights at theoretical value, a fully subscribed
discounted issue and no fees. Subscribing requires an external cash contribution; the helper
subtracts it from proceeds. Letting rights expire, nontransferable rights and above-market
subscriptions need different models. reverse_split_gap() assumes fractional entitlements
are cashed at the theoretical ex-price. Actual event terms can use different prices or dates.
✅ Reference accounting identities, executed 2026-09-14:
✅ Measured 2026-09-14: merger_treatments() illustrates a cash-merger panel under an explicitly
specified daily equal-weight model: keeping consideration, dropping the name and treating it
as worthless yield different results. It is not a buy-and-hold account simulator.
ticker_change_cost() shows that splitting one instrument at a rename loses 252 available
momentum-signal sessions with the configured lookback. ticker_recycling() produces a false
-60.68% seam return when different companies share a symbol.
unexplained_jumps(close, actions, tol) reports large moves and whether an event date is in
the supplied feed. A date match is not proof that the event explains the entire move. No match
is not proof of data corruption; news can cause a genuine large return.
✅ Measured 2026-09-14: the default screen finds 2 of the 3 inserted events and misses the
rights issue. An empty feed proves no coverage, not the absence of events. Lower thresholds
increase flags on the event-free heavy-tailed comparison too. Never manufacture an adjustment
factor from a jump alone. Run python scripts/corporate_actions.py to reproduce the examples;
all inputs are synthetic, offline and deterministic.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/choosing-a-data-vendorDecide whether a data source may legally and factually serve a research question, before any fetch code is written. TRIGGER - need delisted, survivorship-free or point-in-time data and are choosing where to get it; may I store, cache, redistribute or publish what I fetched; is the free tier enough and what does a key cost; comparing vendor terms, licences, rate limits or paid tiers; "there are no delisted names on the free tier"; picking between yfinance, Tiingo, Alpha Vantage, stooq, EODHD, Norgate, CRSP or Polygon. Automated by `python -m fin_skills.data advise`. SKIP once the source is chosen and the question is how to CALL it - adjustment, timezone, calendar and off-by-one traps (market-data-sourcing); storing, partitioning or as-of joining data you already hold (market-data-engineering); EDGAR, XBRL and macro vintages (fundamental-and-macro-data); A-share sources and 退市 lists (china-ashare-data); exchange OHLCV and venue limits (crypto-data-and-execution)./data-quality-validationTRIGGER - stale closes, zero volume, missing trading sessions, duplicate timestamps, negative prices, invalid OHLC, outlier returns, validate downloaded bars, 数据质量, 缺失行情. Validate a daily OHLCV panel and report defects without filling, clipping or deleting data. SKIP for selecting a vendor or detecting price-adjustment convention (market-data-sourcing), session schedules (trading-calendars-and-sessions), corporate event accounting (corporate-actions-processing), and storage/as-of joins (market-data-engineering)./finding-and-searching-dataFind the identifier before you fetch it, and know which free sources can actually search. TRIGGER - "what is the FRED series id for X", "which ticker is this company", "find the CIK for", searching for a series, ticker, symbol, contract, crypto pair or filing by name or phrase; fred/series/search, company_tickers.json, EDGAR full-text search, efts.sec.gov; a guessed identifier returning an empty frame; retrieving filings by form and date range; when a document became PUBLIC versus when it was filed; earnings-call transcript timestamps. Load BEFORE guessing an identifier - three of the four free searches are current snapshots and cannot answer as of a past date. SKIP for resolving or dating an identifier you already hold (security-master-and-symbology), for choosing a price vendor (market-data-sourcing), for the point-in-time join once the data is yours (fundamental-and-macro-data), for auditing a finished result (research-integrity-guards), and for crypto venue mechanics (crypto-data-and-execution)./fundamental-and-macro-dataCompany fundamentals and macro series with correct point-in-time semantics. TRIGGER - 10-K, 10-Q, 8-K, 13F, Forms 3/4/5, filings, EDGAR, XBRL, accession number, CIK, "which CIK is this ticker", ticker-to-CIK mapping, edgartools; parsing an income statement or balance sheet out of a filing; revenue, EPS or balance-sheet history as it was known on a past date; restatements; earnings dates; or CPI, GDP, payrolls, unemployment, interest rates, FRED, ALFRED, data vintages and revisions. Load before joining ANY fundamental or macro series to prices: the obvious join is a look-ahead bug, and the SEC frames API cannot be made point-in-time. SKIP for price and OHLCV vendors (market-data-sourcing) and Chinese filings (china-ashare-data)./market-data-engineeringStore, join and parallelize market data you already hold, without corrupting it. TRIGGER - as-of join, merge_asof, join_asof, ASOF JOIN, "join quotes to trades", aligning signals to prices; reading or writing Parquet, Feather, HDF5 or CSV of market data; choosing between pandas, polars, DuckDB, pyarrow, dask or ray; a time-series store such as ArcticDB, QuestDB, ClickHouse, TimescaleDB or kdb; storing years of minute bars for thousands of tickers; a dataset too big for memory; partitioning; timestamps or timezones coming back wrong; float precision on prices or volume; "different numbers when I parallelise". SKIP for choosing a data VENDOR (market-data-sourcing) - this skill starts once the bytes are yours./market-data-sourcingChoose a market price or reference data vendor and use it without silently corrupting the numbers. TRIGGER - download, fetch, pull or load OHLCV, prices, quotes, bars or a ticker universe; compare vendors on cost, coverage or free-tier limits; need delisted US or global tickers, or a survivorship-free universe; two sources disagree; hitting 429 or rate limits; "KeyError: Adj Close"; split and dividend adjustment; trading calendars and holidays. Covers yfinance, yahooquery, defeatbeta, EODHD, Tiingo, Twelve Data, Finnhub, Alpha Vantage, Polygon/Massive, Databento, openbb, findatapy, financetoolkit, exchange_calendars, and alternative data. Also covers 美股 and global 行情数据 requests. SKIP for historical option chains (options-backtesting), Asian calendars and lot sizes (asia-pacific-markets), storing, partitioning or as-of joining data you already hold (market-data-engineering); for EDGAR filings, XBRL, CIK and macro vintages (fundamental-and-macro-data); and for A-share, 沪深 or 退市 queries (china-ashare-data)./fin-market-data:corporate-actions-processingfrom fin-market-data
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin fin-market-data