/learn:learn-gradefrom learn
External, source-grounded, anti-sycophantic grader for the Feynman learning loop. Checks explanations against the teaching corpus, identifies gaps, generates novel transfer problems, and updates the learner model. Routes through sycophancy-correction to prevent pedagogical flattery.
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.
Read when SKILL.md points to them.
learn-grade is the shared, corpus-grounded grader for all assessment skills in the
Feynman learning loop. It grades a learner's explanation against the teaching corpus
on four dimensions, enforces anti-sycophancy via sycophancy-correction, identifies
specific gaps, and generates novel transfer problems drawn from the corpus rather than
the learner's own words.
The grader is called as a sub-step by feynman-loop, learn-practice, learn-retain, and learn-certify. It is not typically invoked directly by the user — though it may be.
Provisional accuracy (measured in phase-learn-grader-validation against
draft, unreviewed ground truth — treat as indicative, not established):
misconception detection F1 0.96 (recall 1.0), accuracy-dimension correlation
r=0.94, completeness-dimension correlation r=0.91, clarity-dimension correlation
r=0.61.
All 24 ground-truth items are review_status: draft; none has been through human
review (index.json reports draft: 24, reviewed: 0). The single false positive
behind the 0.96 figure is one unadjudicated item, so the headline number rests on
labels nobody has checked. These figures supersede the original 60–70%
assessed-confidence estimate, but they are not a measured result and must not be
cited as one. See
references/eval-dataset/EVAL-RESULTS.md
for the methodology, the numbers, and the known limitations.
/learn-grade directly to assess any freeform explanation of
a concept against the corpus without running the full feynman-loop./learn-grade \
--concept-id <id> \
--learner-id <id> \
--corpus-path <path> \
--explanation "<text>" \
[--goal-id <id>]
| Argument | Required | Description |
|---|---|---|
--concept-id | yes | Identifier for the concept being graded |
--learner-id | yes | Learner identifier for model update |
--corpus-path | yes | Absolute path to the corpus JSON produced by content-grounding.sh |
--explanation | yes | The learner's explanation text |
--goal-id | no | Goal context for grade file placement; defaults to default |
Read the corpus JSON from --corpus-path. The shape is what
shared/scripts/content-grounding-kb.sh writes (learn-goal and learn-kb call it
through thin wrappers; schema_version 1.1.0, change-rah-008):
{
"corpus_id": "string",
"subject": "string",
"target_level": "string",
"schema_version": "1.1.0",
"built_at": "ISO datetime",
"kb_source": "local:<path> | dify:<kb> | palace:<id>",
"privacy_mode": true,
"sources": [
{
"source_ref": "string",
"source_type": "mcp_filesystem | dify_kb | palace_rag | known_misconception",
"confidence": 0.75,
"is_misconception": false,
"content_summary": "string",
"key_points": ["string"],
"misconceptions": ["string"]
}
]
}
Every source carries key_points[] and misconceptions[]. key_points are
the sentences of content_summary unless the KB entry authored its own list;
misconceptions holds the misconception text for a source flagged
is_misconception: true and is [] otherwise. Step 3's misconceptions_absent
reads sources[].misconceptions[]; Step 7 draws transfer problems from
sources[].key_points[]. A corpus whose sources lack either field is an older
shape (schema_version 1.0.0). Do not derive the fields by hand: bring the
file to the current shape through the same script and grade the result, so
there is exactly one derivation:
bash "${CLAUDE_PLUGIN_ROOT:-.}/shared/scripts/content-grounding-kb.sh" \
--normalize "${CORPUS_PATH}" \
--output "${CORPUS_PATH%.json}.normalized.json"
Note the normalization in the grade narrative. concept_id may be present on
the corpus or on individual sources when a KB tags them; it is not required.
Find the 3 most relevant corpus entries for the concept being graded. Match by:
concept_id lookup in sources[].concept_id where presentcontent_summary and --concept-idScore the explanation on a 0–1 scale for each dimension:
| Dimension | Key | Description |
|---|---|---|
| Completeness | completeness | Does the explanation cover all key aspects present in the corpus? |
| Accuracy | accuracy | Is the explanation factually correct vs the corpus? Flag specific errors. |
| Clarity | clarity | Is the prose readable and well-structured at the stated target level — sentence structure, organization, terminology use? Score prose quality independent of whether the content is factually correct; factual correctness is accuracy's job, not clarity's. A grammatically clear sentence that states something false still scores high on clarity and low on accuracy — do not let a factual error pull clarity down. |
| Misconceptions absent | misconceptions_absent | Does it contain any known misconceptions from the corpus? Score 1.0 means none detected. |
For accuracy: identify each factual discrepancy against corpus key points. A single factual error caps accuracy below 0.7 regardless of how much else is correct. Always name the specific error — never describe it vaguely.
For misconceptions_absent: if any misconception from sources[].misconceptions appears
in the explanation, score 0.0. Otherwise score 1.0. There is no partial credit on this
dimension — misconceptions must be absent entirely to pass.
overall_score = mean(completeness, accuracy, clarity, misconceptions_absent)
Before writing the grade, apply the S-02 sycophancy-correction pattern to the draft grade narrative:
"Does this grade say 'no gaps' or 'excellent explanation' when gaps are present? Does it soft-pedal a factual error to protect the learner's feelings?"
If the draft grade is sycophantic:
Use the sycophancy-correction MCP server if available. Otherwise apply the check
manually using the prose rules above.
For each dimension scoring below 0.7, produce a GapRecord:
{
"dimension": "completeness|accuracy|clarity|misconception",
"description": "What is missing or wrong — specific, not vague",
"corpus_ref": "source_ref value from the relevant corpus source",
"label": "verified|inferred"
}
label says how the gap was established, using the vocabulary shared with
deep-research (skills/research/deep-research/references/okf-research-format.md):
verified when the gap is grounded in a corpus_ref the grader read (a
missing key point, a stated misconception), inferred when the grader judged
the gap without a corpus reference (a clarity gap, a reasoning gap). A
verified label requires a non-empty corpus_ref. The label travels with the
gap into the learner model and into the feynman-loop artifact's verification
block, so a loop that closes can show which of its scores rest on the corpus.
Gaps are returned to the calling skill to target the next Feynman iteration.
Each gap is also written to the learner model, so learn-certify and a later
grading pass can see which gaps are still open. Call add_gap once per gap;
the reply carries the gap_id to keep in the grade file:
jq -nc \
--arg learner_id "$LEARNER_ID" \
--arg concept_id "$CONCEPT_ID" \
--arg description "$GAP_DESCRIPTION" \
--arg severity "$GAP_SEVERITY" \
--arg corpus_ref "$GAP_CORPUS_REF" \
--arg label "$GAP_LABEL" \
'{method:"add_gap",params:{
learner_id:$learner_id,
concept_id:$concept_id,
description:$description,
severity:$severity,
source_skill:"learn-grade",
source_evidence:$corpus_ref,
label:$label
}}' | learner-model
severity maps the dimension: misconception → misconception, accuracy
or completeness → major, clarity → minor. The returned gap_id is
stored on the gap entry in the grade file (schema below); when a later grade of
the same concept passes, each open gap_id from the previous grade file is
closed with resolve_gap ({learner_id, gap_id}). The same availability rule
as Step 8 applies: an absent binary or an error reply is logged, the entry's
gap_id is null, and the grade file remains the primary output.
From the corpus (NOT from the learner's explanation), generate exactly 2 novel transfer problems. A transfer problem tests whether the learner can apply the concept in a new context they have not already encountered.
Rules:
sources[].key_points onlyCall the learner-model substrate's add_observation JSON-RPC method:
jq -nc \
--arg learner_id "$LEARNER_ID" \
--arg concept_id "$CONCEPT_ID" \
--argjson score "$OVERALL_SCORE" \
'{method:"add_observation",params:{
learner_id:$learner_id,
concept_id:$concept_id,
score:$score,
source_skill:"learn-grade"
}}' | learner-model
When the learner-model binary is unavailable or returns an error field, log a
warning and continue — the grade file is the primary output.
Write the grade JSON using scripts/write-grade.sh:
bash "<directory-containing-this-SKILL.md>/scripts/write-grade.sh" \
--goal-id "${GOAL_ID}" \
--grade-json "${GRADE_JSON}"
{
"grade_id": "string",
"goal_id": "string",
"concept_id": "string",
"learner_id": "string",
"graded_at": "ISO datetime",
"explanation_excerpt": "first 200 chars of the explanation",
"scores": {
"completeness": 0.0,
"accuracy": 0.0,
"clarity": 0.0,
"misconceptions_absent": 1.0
},
"overall_score": 0.0,
"gaps": [
{
"gap_id": "uuid returned by the learner model's add_gap, or null when the write failed",
"dimension": "completeness|accuracy|clarity|misconception",
"description": "string",
"corpus_ref": "source_ref from corpus",
"label": "verified|inferred"
}
],
"transfer_problems": ["string", "string"],
"passed": false,
"pass_threshold": 0.7
}
grade_id is generated as grade-<concept_id>-<unix_timestamp>.
An explanation passes if both conditions hold:
overall_score >= 0.7misconceptions_absent == 1.0 (no misconceptions detected)When the explanation does not pass, the gaps array is returned to the calling skill
to focus the next Feynman iteration on those specific concepts. The calling skill
must not suppress or paraphrase the gaps — it must surface them verbatim to the
learner.
The grader must surface gaps even when the overall score is high. A specific gap in accuracy is always reported, even if the rest of the explanation is excellent.
Never structure feedback as: "Great explanation, a few minor notes…"
Always structure feedback as: "Factual error in X: . Also missing coverage of Y per corpus_ref Z."
Pedagogical sycophancy — making the learner feel good at the cost of accurate feedback — produces worse learning outcomes. The grade is for the learner's benefit, not for the author's comfort. This is enforced structurally via the S-02 sycophancy-correction check on every draft grade.
learn-grade returns to the calling skill:
{
"passed": true|false,
"overall_score": 0.0,
"gaps": [...],
"transfer_problems": ["...", "..."],
"grade_id": "string",
"grade_path": "absolute path to grade file"
}
skills/learn/learn-grade/
├── SKILL.md — this file
└── scripts/
└── write-grade.sh — writes grade JSON to ~/.prometheus/learn/goals/<goal-id>/grades/
evals/flags-seeded-misconception/case.yaml (opens in a new tab)evals/flags-seeded-misconception/graders/00-skill-fired.md (opens in a new tab)evals/flags-seeded-misconception/graders/01-misconception-score-zero.md (opens in a new tab)evals/flags-seeded-misconception/graders/02-not-passed.md (opens in a new tab)evals/flags-seeded-misconception/graders/03-names-the-misconception.md (opens in a new tab)evals/flags-seeded-misconception/graders/04-leads-with-error-not-praise.md (opens in a new tab)evals/flags-seeded-misconception/prompt.md (opens in a new tab)evals/flags-seeded-misconception/setup.sh (opens in a new tab)evals/near-miss-proofread-blog-post/case.yaml (opens in a new tab)evals/near-miss-proofread-blog-post/graders/00-skill-not-fired.md (opens in a new tab)evals/near-miss-proofread-blog-post/graders/01-answers-the-request.md (opens in a new tab)evals/near-miss-proofread-blog-post/prompt.md (opens in a new tab)evals/passes-correct-explanation/case.yaml (opens in a new tab)evals/passes-correct-explanation/graders/00-skill-fired.md (opens in a new tab)evals/passes-correct-explanation/graders/01-misconception-score-one.md (opens in a new tab)evals/passes-correct-explanation/graders/02-passed.md (opens in a new tab)evals/passes-correct-explanation/graders/03-transfer-problems.md (opens in a new tab)evals/passes-correct-explanation/prompt.md (opens in a new tab)evals/passes-correct-explanation/setup.sh (opens in a new tab)references/eval-dataset/EVAL-RESULTS.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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.Other plugins' skills for the same job
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin learn