lookahead-safety
CommunityBlock data leaks in historical quant work
Data & Analytics#data integrity#backtesting#lookahead bias#XBRL#SEC filings#point-in-time#time-series semantics
Authorjefrnc
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents look-ahead bias in quant research by ensuring you only use data that was actually published and therefore knowable at the time you claim to know it.
Core Features & Use Cases
- Enforces known-date semantics: treats
filing_date/acceptedDate(or equivalent publication timestamps) as the availability boundary, notperiod_endor other period-of-report fields. - Hardens SEC/XBRL workflows: avoids common SEC-specific traps like XBRL
period_endleakage, filing amendments (10-K/A superseding), and unknown publication windows. - Improves backtest integrity: requires
query_date-bounded historical reads so future records cannot contaminate past calculations, including explicit “future-data leak” testing guidance.
Quick Start
Use the lookahead-safety skill when you ask an AI to “compute metric X as of date D from SEC/XBRL/backtest data” so it filters out any records with filing_date after D and clearly states the admissibility rule.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: lookahead-safety Download link: https://github.com/jefrnc/quant-llm-skills/archive/main.zip#lookahead-safety Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.