retrospective
What it does
This skill rewinds a stock to a past moment and shows how it looked at that time, along with the news that moved it. It is for people who want to test a past decision or a what-if idea honestly.
When to use it
- ✓When you want to know what a stock looked like before a past event such as earnings.
- ✓When you ask whether buying at an earlier date would have worked.
- ✓When you want news lined up against a stock's price path over a set period.
Skill link
https://github.com/TraderAlice/OpenAlice/blob/master/default/skills/retrospective/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Rewind Nvidia to the week before its last earnings and tell me how it looked then.”
5 new skills a week. 1 minute to read.
How it works
The agent checks how fresh each price is first, then rebuilds the situation using only information that existed at that time. It then compares the news with the price moves.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Retrospective / Time-Machine analysis
Rewind a name to a moment, see it as it was THEN, attribute the move to catalysts, and test whether a tradeable edge actually existed. The whole value is honesty: no lookahead (never use a price the moment didn't yet know) and no stale data (never report yesterday's close as "now").
alice analysis snapshot provides dated market summaries; the alice-analysis
skill describes quantitative queries. Choose historical news sources with
coverage of the period being studied.
The freshness gate — DO THIS FIRST, every time
Every snapshot/quant result carries a freshness contract:
asOf, isLatestActual, staleTradingDays, and a freshnessWarning when the
data does not reach the anchor. Before you state any "current" number, check
it.
isLatestActual: false→ the close you're holding is STALE. Do not call it the current price. Say "as of <date>, N trading days behind" and, for anything live, pull a realtime broker source.- A free vendor (yfinance) lags a day or two and a free broker tier (alpaca SIP) may not have today yet. An overnight catalyst can land in exactly that blind spot — the classic trap is reporting a flat green close while the real reaction already happened after the bar you can see.
snapshot --query <SYM>auto-picks the freshest source (realtime broker > delayed vendor). Prefer it over hand-fetching from a delayed vendor.
Procedure
Snapshot the anchor (no lookahead). Reconstruct the moment with
asOf— bars never run past it.alice analysis snapshot --query XLE --asOf 2026-04-03 # summary alice analysis snapshot --query XLE --asOf 2026-04-03 --bars 30 # + dated pathRead the
latestprint (close, vs-prevClose, day high/low, amplitude — a sleepy vs-prevClose number hides an intraday plunge-and-recover) andlevels(sma20/50, rsi14, distance from the period high — the "how far off the top" feel). The snapshot is summary-only by default (the dated path can be large); add--bars Nwhen you actually need the per-day series.windowBarstells you how many are available.Align the catalysts to the price. Build a dated event timeline from relevant sources and compare it with the bars. Distinguish evidence of a catalyst from a coincident headline, and note material gaps in coverage.
Test the hypothesis in Workspace research code. If the question needs a hypothetical trade, save the dated inputs and write an inspectable script with the native Coding Agent. Pin the source and evaluation window. State signal timing, executable entry/exit prices, position sizing, fees and slippage explicitly. Do not use a closing-price signal to assume an executable fill at that same close. Exclude pre-entry price extremes from holding-period MFE/MAE. Save the script, inputs and results together so the assumptions can be changed and the calculation reproduced.
Map the index to dates when you need the path in a quant script. Most reads are covered by snapshot; when you must compute over the series and want the date axis, add
--datestoalice analysis quant(it returnsdates[barId]for one interval, ordates["barId@interval"]when the same barId appears at multiple intervals, so you can map each value to its day).
Write it down honestly
A retro is only worth as much as its weakest assumption. State, every time:
- the asOf and that the analysis used no later data,
- the source + freshness of every "current" number,
- what you couldn't see (feeds didn't cover it / cookie-gated / SIP didn't have the latest day) — name the gap rather than paper over it.
The failure mode this skill exists to prevent: a confident call built on a stale or future-leaking price. When in doubt, distrust the data before the market.
FAQ
Will it use prices from after that date?
No. The skill says it must never use a price that was not yet known at that moment.
Why does it check freshness first?
Free data can lag by a day or two, so a close that looks current may be old.
Can it test a hypothetical entry?
Yes. It can check whether entering at an earlier point would have worked.
Details
Original description by the author
Subjective retrospective / time-machine analysis: rewind a name to a past point, reconstruct what it looked like THEN (no future knowledge), align the news catalysts to the price path, and pressure-test "if I'd entered there, would it have worked?". Use when the question is about a past moment or a hypothetical entry: "rewind XLE to early April", "what did NVDA look like before earnings", "if we'd bought energy after the Iran headline, easy money?", "replay the SMH spike — policy or earnings?", "was there an entry signal at the time", "would an 8% trailing stop have saved me", "event study on
repo: TraderAlice/OpenAlice
Popularity
- GitHub stars
- 7.4k
- Ranking position
- #13267
- License
- AGPL-3.0
- Updated
- 10/23/2026
Comments
- …
More skills from this repository
alice-analysis
7.4kHelps your agent calculate stock indicators, such as moving averages, by running short, safe formulas on price history.
alice-uta
7.4kHelps your agent check your broker accounts, holdings, prices and order history, and manage trades with extra care.
alice
7.4kHelps your agent search for stocks, pull research data and work with your team's Inbox and Issues through the alice tool.
build-thesis
7.4kHelps your agent build a balanced investment case on one stock, testing both the numbers and the market trend, with clear ways it could be wrong.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.