What problem does it solve?
Develop and debug the Stimulant Elimination Calculator app (stimulant-elimination-calculator.html) — a pharmacokinetic sleep prediction app with XR modeling, circadian rhythm, and workout planning. Use this skill when you are asked to modify, fix, or add features to stimulant-elimination-calculator.html.
Core Features & Use Cases
- Debug a wrong sleep prediction by inspecting calculateSleepTime() phases, threshold, circadian guard, and DR/ghost-load interactions.
- Add or modify a feature by reading the state structure, locating the relevant function, making surgical edits, and validating changes with the 5 Firebase guards and regression tests.
- Fix data synchronization issues across devices by following the documented sync pattern and ensuring safe merges and guard preservation.
Quick Start
Launch stimulant-elimination-calculator.html and start by tracing XR decay, circadian constraints, and all-nighter behavior to validate changes.