/learn:learn-retainfrom learn
Spaced repetition review skill for the Feynman learning loop. Reads the FSRS due queue from the learner-model crate, surfaces review prompts via ui-surface, grades retention via learn-grade at a 0.6 threshold, and updates FSRSCard state. Prevents knowledge decay after feynman-loop and learn-practice.
Ships in learn. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Spaced repetition review skill for the Feynman learning loop. Works with
learner-model, ui-surface, and learn-grade to run FSRS-scheduled review
sessions that keep acquired knowledge above the retention threshold.
Run on any session start when due cards exist, OR when feynman-loop records
retention_scheduled: true in an artifact.
/learn-retain <goal-id> [--concept-id <id>] [--max-cards N]
--concept-id: reviews ALL due concepts for the goal.--max-cards: defaults to 5 cards per session.Call learner-model load for the learner. Filter concepts where
fsrs_card.due <= now. Sort by fsrs_card.due ascending (most overdue first).
Take up to --max-cards (default 5) concepts from the sorted due list.
a. Load artifact
Load the most recent Feynman artifact for the concept from the goal's
artifact store (<learn-home>/goals/<goal-id>/, where <learn-home> is
${PROMETHEUS_LEARN_HOME:-~/.prometheus/learn} — the path feynman-loop's
write-artifact.sh writes and learn-certify reads):
artifacts/<concept-id>/*.json
"Most recent" is the file with the latest closed_at; when several share it,
the lexically last artifact_id (its suffix is a unix timestamp). An empty
directory means the concept has no closed loop yet: skip it and report it in
the session summary rather than reviewing against nothing.
b. Surface review prompt via ui-surface
Do NOT show the original explanation. Show only the concept label:
Re-explain [concept] in your own words. You have 3 minutes.
c. Collect the user's explanation
Wait for the user's free-recall response.
d. Grade via learn-grade
/learn-grade --corpus-path <goal-artifact-corpus-path> \
--response "<user explanation>"
e. Apply FSRS rating
Map the numeric grade to an FSRS Rating enum value:
| Grade range | Rating |
|---|---|
| ≥ 0.8 | Rating::Easy |
| 0.6–0.79 | Rating::Good |
| 0.4–0.59 | Rating::Hard |
| < 0.4 | Rating::Again |
Rating::Again schedules an immediate re-review (next due: 1 day).
f. Update FSRSCard
Send the scored review to the learner-model binary. The review method records
the observation and advances the persisted FSRS card atomically:
jq -nc \
--arg learner_id "$GOAL_ID" \
--arg concept_id "$CONCEPT_ID" \
--arg rating "$RATING" \
--arg timestamp "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
--argjson score "$RETENTION_SCORE" \
'{method:"review",params:{
learner_id:$learner_id,
concept_id:$concept_id,
score:$score,
rating:$rating,
timestamp:$timestamp,
source_skill:"learn-retain"
}}' | learner-model
The learner-model fsrs.rs stub's next_review() function consumes the
Rating and returns an updated FSRSCard with new due, stability,
reps, and lapses values. These are persisted to the learner model store.
Surface a session summary via ui-surface (see Session summary format below).
The learner-model crate's fsrs.rs contains a simplified FSRS-6 stub. The
next_review() function takes a Rating enum and returns an updated
FSRSCard. learn-retain calls this by sending JSON-RPC commands to the
learner-model binary — there is no direct Rust dependency in this skill.
Rating::Again — concept forgotten; reschedule immediately (1 day)
Rating::Hard — recalled with significant effort
Rating::Good — recalled with moderate effort
Rating::Easy — recalled effortlessly
The retention check that closes the mastery criterion from feynman-loop
requires two conditions:
feynman-loop artifact was written.When a concept passes retention at ≥ 0.6 for the first time after the
feynman-loop artifact was created, update the artifact:
{
"retention_passed": true,
"retention_grade": <score>,
"retention_date": "<ISO-8601 now>"
}
This signals to feynman-loop that the mastery cycle is complete for this
concept.
Both tiers must NOT show the original explanation — free recall only.
Tier 0 (minimal UI):
Re-explain [concept] in your own words:
Tier 1 (structured prompt with time nudge):
Concept: [concept label]
Re-explain this concept in your own words. You have 3 minutes.
Do not look up the original explanation.
Show the concept label in both tiers. Never show the original explanation during the recall prompt.
Retention session complete:
Concepts reviewed: N
Passed (>=0.6): M
Needs re-review: K (Rating::Again — scheduled in 1 day)
Next session due: <date of earliest next due card>
Surface this summary via ui-surface at the end of every session.
| Dependency | Role |
|---|---|
substrate/learner-model/ | FSRS card store; load, add_observation commands |
skills/learn/learn-grade/ | Grades the free-recall explanation (0.0–1.0) |
skills/learn/ui-surface/ | Surfaces prompts and the session summary |
skills/learn/feynman-loop/ | Produces the artifacts this skill checks for retention |
learner-model load returns no due cards, emit:
"No cards due for <goal-id>. Next review: <earliest due date>." and stop.ui-surface
and halt — do not silently skip card updates.learn-grade returns an error, treat the grade as 0.0 and apply
Rating::Again. Log the grader error in the session summary.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin learn2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026
12 skills in this plugin
/feynman-loopThe core Feynman learning cycle for prometheus-skill-pack. Maps Feynman's explain-grade-gap-relearn cycle to the PMPO lifecycle. Supports vertical recursion (child loops on gap concepts), horizontal escalation (novice→peer→skeptic audiences), recursion floor guards, and all three mastery closure criteria./learn-about-systemZero-friction adoption entry point for the Prometheus Skill Pack. Routes operators into the Feynman learning loop for the KBD lifecycle, skill pack capabilities, or AI harness orientation. The skill pack teaches itself using its own learning infrastructure./learn-certifyCertification endpoint for the Feynman learning loop. Runs prerequisite gates (feynman-artifacts, practice results, capstone), emits an Open Badges 3.0 / W3C Verifiable Credential self-issued JSON-LD signed with did-plc, and detects anomalous mastery trajectories via an integrity guardrail.