From quant-llm-skills
Use when reviewing or writing Python/Go/SQL code for quant research, backtests, market-data pipelines, or trading systems. Provides a structured checklist of failure modes specific to time-series financial code (lookahead, splits, snapshots, currency, NaN propagation, joint-filer dedup) that generic code review skips.
How this skill is triggered — by the user, by Claude, or both
Slash command
/quant-llm-skills:code-review-for-quantThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generic code review catches off-by-one errors and missing `with` blocks.
Generic code review catches off-by-one errors and missing with blocks.
Quant code has its own failure modes — and they're the ones that
silently corrupt research output without raising. This skill enforces
a domain-specific checklist before approving any quant-touching code.
Quant bugs hide as plausible numbers. A backtest that runs cleanly and produces a nice equity curve can still be using future data. The test "did it crash?" is meaningless. The test is "did each datapoint trace to a publication date that precedes the query?".
Run this against any function that touches historical financial data.
query_date argument
(or equivalent) and filters on filing_date <= query_date
(or accepted <= query_date).period_end, report_date, or as_of_date as the
known-date for filing data.ticker.info, latest API value)
for historical queries.KeyError crashes when XBRL
has alternate tags or FPI structure differs).None / NaN propagation explicit — no silent coverage gaps.condition_codes
indicating odd lot / late / out-of-sequence).run_date and data_as_of_date..apply() loop.When listing bugs found in a code review, ALWAYS rank by silent-corruption potential, not by severity-of-symptom:
Anti-pattern: leading the review with "you should use a context
manager for open()" while the function silently uses period_end
as a publication date. The first one is cosmetic; the second corrupts
every backtest result.
period_end: 2023-12-31 is unknowable
on 2024-02-01 if the 10-K was filed 2024-02-15").lookahead-safety and other relevant
skills — don't reinvent the rule.pd.DataFrame, yfinance, requests,
polygon, sec, companyfacts, period_end, filing_date,
apply(lambdaThis is not a generic linter. It does not catch missing semicolons,
unused imports, or PEP8 violations — those are the pre-existing
linter's job. It catches the ~20 quant-specific failure modes that
generic code review consistently misses. Combine with lookahead-safety,
xbrl-fallbacks, insider-dedup and other domain skills for
specific-rule fixes.
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.
npx claudepluginhub jefrnc/quant-llm-skills --plugin quant-llm-skills