sm2-calculator
Installation
SKILL.md
SM-2 Calculator
Overview
Fluent uses SM-2 (SuperMemo 2) to decide when the learner next sees an item. This skill is the single source of truth for the algorithm. Every practice skill updates <data_dir>/spaced-repetition.json (where <data_dir> is resolved by fluent_paths.data_dir()) through these rules after each answered question.
When to Use
Load this skill whenever the tutor:
- Grades a review-queue item and must compute its next due date.
- Maps a 0-10 score to an SM-2 quality.
- Updates
easiness_factor,interval_days,repetitions, ormastery_levelon a spaced-repetition item. - Decides which queue (
today/tomorrow/this_week/later) to place an item in.
Skip this skill when the db-updater skill is already being used — the update-db.py script runs SM-2 internally.