/llm-tutor:tutor-startfrom LLM Tutor
Starts a Socratic tutoring session on a user-supplied topic. Generates a learning path, calibrates knowledge with 3 prompts, and hands off to a tutor persona.
Ships in LLM Tutor. 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.
This skill begins a Socratic tutoring journey on a user-supplied topic. It is the load-bearing entry point for the llm-tutor plugin — every other skill (/tutor-done, /tutor-path, /tutor-status, /tutor-resume) operates on state this skill creates.
Explicit invocation only. Do not auto-fire on colloquial phrases like "teach me X" or "explain Y" — those usually mean the user wants a quick answer, not a 30-90 minute dialogue. Trigger phrases are listed in the frontmatter description above.
Run these via the Bash tool, in order. Treat STATE as a shorthand for the helper script path. The plugin guarantees $CLAUDE_PLUGIN_ROOT is set when this skill is invoked.
STATE="$CLAUDE_PLUGIN_ROOT/scripts/state.sh"
bash "$STATE" init
This creates state.json if it doesn't exist; no-op if it does.
bash "$STATE" refill-cycles
CYCLES=$(bash "$STATE" get .user.cycles)
If $CYCLES < 1, stop here. Print the user-facing message verbatim:
"Out of cycles — they refill once per day. Run
/tutor-statusto see when next refill is due, or come back tomorrow. (Earning more cycles today is possible via feedback on completed topics, see/tutor-done.)"
Exit the skill cleanly. Do NOT proceed to path generation.
If the user provided an argument (e.g., /tutor-start "python decorators"), use that as the subject.
If no argument was provided, ask via free text (NOT AskUserQuestion — subjects are open-ended):
"What do you want to be tutored on? Be specific. Good: 'Python decorators' / 'how Suspense works in React' / 'how auth works in this repo'. Too broad: 'Python' / 'web dev' / 'AI'."
If the user names a topic that's clearly too broad (single-word language name, multi-paragraph stack), push back once: "Too broad. Pick a sub-topic or one concrete question." Do NOT proceed with a too-broad subject.
Convert the subject to a kebab-case slug for use as a state key. Lowercase, alphanumerics and hyphens only, no leading/trailing hyphens.
Examples:
python-decoratorsauth-in-this-reporeact-suspenseSave the slug as SLUG for use in later steps.
If the topic already exists in state, this is a re-invocation — resume instead of recharging.
EXISTING_STATUS=$(bash "$STATE" get ".topics[\"$SLUG\"].status // \"new\"")
If $EXISTING_STATUS is in_progress, print:
"Resuming
$SLUG(you've already paid the cycles for this topic). Picking up where we left off."
Then read current_concept_index and the concepts array, identify the current concept, and skip to Step 5 (handoff). Do NOT proceed to path generation, cycles charging, or calibration.
If $EXISTING_STATUS is completed, print:
"You marked this topic complete already. Feel free to chat about it freely (no cycles cost). If you want to revisit as a fresh topic, name it differently — e.g., 'python-decorators-revisit'."
Exit cleanly.
If $EXISTING_STATUS is new, proceed to Step 1.
Using your world knowledge, generate a directed acyclic graph (DAG) of 5–8 prerequisite concepts for the subject. The graph should:
For each concept, identify which earlier concepts it depends on (by 1-based index in your list).
Internal control: keep this DAG internal. Don't print the list to the user yet. They'll see it only if they invoke /tutor-path (or ask "show me the path"). This is deliberate — surfacing it now would frame the session as a checklist instead of a discovery.
For each concept, append an entry to the topic's concepts array. Use state.sh maybe-init-topic to create the topic entry (idempotent), then state.sh set to populate the concepts array.
Each concept entry has the shape:
{
"name": "closures",
"depends_on": [],
"status": "pending",
"first_attempt": null,
"applications_distinct": 0
}
The depends_on field is an array of 1-based indices into the same concepts array — which earlier concepts must be understood before this one makes sense. Examples:
depends_on: [] — it's a foundational concept with no prerequisites in this topic.depends_on: [1, 2] — needs both prior concepts.depends_on: [4, 5] — needs the two preceding, which transitively bring in everything else.Be honest with the dependency lists. Don't lazy-write [1, 2, …, N-1] for everything — that defeats the point. Write only the direct dependencies. If concept 6 needs 4 and 5 (which in turn need 3, which needs 1+2), the chain captures everything transitively; you don't need to repeat 1, 2, 3 in concept 6's list.
bash "$STATE" maybe-init-topic "$SLUG"
# Capture the user's original subject string as the topic's display_name.
# This is what /tutor-status, /tutor-resume, and the statusline segment
# render — the slug is the internal key, the display_name is what the
# user sees. If the topic already exists with a display_name, we don't
# overwrite (resume case).
EXISTING_DISPLAY=$(bash "$STATE" get ".topics[\"$SLUG\"].display_name // \"\"")
if [ -z "$EXISTING_DISPLAY" ] || [ "$EXISTING_DISPLAY" = "null" ]; then
bash "$STATE" set ".topics[\"$SLUG\"].display_name" "\"$SUBJECT\""
fi
Then populate the concepts array atomically (single jq write for the whole array):
CONCEPTS_JSON=$(jq -nc '[
{ "name": "closures", "depends_on": [], "status": "pending", "first_attempt": null, "applications_distinct": 0 },
{ "name": "first-class functions", "depends_on": [], "status": "pending", "first_attempt": null, "applications_distinct": 0 },
{ "name": "wrapper functions", "depends_on": [1, 2], "status": "pending", "first_attempt": null, "applications_distinct": 0 },
{ "name": "@ syntax", "depends_on": [3], "status": "pending", "first_attempt": null, "applications_distinct": 0 },
{ "name": "decorators with arguments", "depends_on": [3, 4], "status": "pending", "first_attempt": null, "applications_distinct": 0 },
{ "name": "real-world patterns", "depends_on": [4, 5], "status": "pending", "first_attempt": null, "applications_distinct": 0 }
]')
bash "$STATE" set ".topics[\"$SLUG\"].concepts" "$CONCEPTS_JSON"
Deduct 1 cycle, mark cycles_paid true:
bash "$STATE" add .user.cycles -1
bash "$STATE" set ".topics[\"$SLUG\"].cycles_paid" true
NEW_BAL=$(bash "$STATE" get .user.cycles)
Print the charge to the user briefly:
"Tutoring you on $SUBJECT. ⚡ Charged 1 cycle. Balance: $NEW_BAL remaining today."
Keep this terse — one line. The user wants to start, not read a receipt.
You're going to run 3 turns of graduated prompts to figure out where to start them on the path. The goal is not to test — it's to find the boundary between what they can already do and what they can't. Observe what they can do, don't ask what they know.
Open the calibration phase with a posture statement:
"Three quick check-in questions before we start the real tutoring — these calibrate where I should pitch, not a test. Say 'too easy' / 'too hard' / 'start over' anytime to recalibrate, or 'just teach me' to skip the rest of the calibration."
The opener probes their starting point WITHOUT asking the unreliable "what do you know" question. Phrase it as "where are you coming in from."
For coding topics: "What's your starting point on $SUBJECT? Have you worked with [the parent concept / a sibling tech] before, or is this brand new?"
For codebase topics (/tutor-codebase-style scoped invocations the user might make through this skill): "Are you familiar with how this codebase is laid out generally? Have you read [an obvious entry-point file]?"
For conceptual topics: "What's your background on $SUBJECT? Where are you coming from — adjacent concepts you've worked with?"
Wait for the user's response. One question. Do not lecture.
Based on Round 1, give them a concrete small task involving the simplest form of the topic. Don't ask them to explain — ask them to do.
Examples:
def add(a, b): return a + b. Without using @ syntax, write a 'logged_add' that prints something before calling add."Wait for the user's response. One question. Do not lecture.
Adapt to Round 2's outcome:
If they nailed Round 2: Give a harder version. "Right. Now extend it — what if you wanted that logging behavior on ANY function, not just add? What's the smallest change?"
If they struggled at Round 2: Drop down a rung with more scaffolding. "OK — let's slow down. Forget the function part for a moment. In Python, can you assign a function to a variable? Show me what that looks like."
Wait for the user's response. One question. Do not lecture.
After Round 3, classify them as novice or intermediate:
Save the classification:
bash "$STATE" set ".topics[\"$SLUG\"].calibration" '"intermediate"' # or "novice"
If at any round the user says:
acquired and start later. Tell them: "Calibrating up. Skipping past [concepts X, Y]."These interrupts make calibration a hypothesis, not a verdict.
Based on the calibration outcome, mark which concepts the user has already demonstrated and set the current concept index.
For each concept the user explicitly demonstrated during calibration (Rounds 2 and 3), mark it as acquired with first_attempt: "success":
bash "$STATE" set ".topics[\"$SLUG\"].concepts[N].status" '"acquired"'
bash "$STATE" set ".topics[\"$SLUG\"].concepts[N].first_attempt" '"success"'
bash "$STATE" set ".topics[\"$SLUG\"].concepts[N].applications_distinct" 1
(Note: applications_distinct = 1 after calibration, not 2 — the two-application rule means they need to apply it again in a different context during the actual lesson to fully acquire. Calibration is one application.)
Set current_concept_index to the first concept the user did NOT demonstrate:
bash "$STATE" set ".topics[\"$SLUG\"].current_concept_index" 3 # or whatever
bash "$STATE" set ".topics[\"$SLUG\"].concepts[3].status" '"in_progress"'
Print the handoff message. This is the cue for the active persona (Echo, Cipher, or Vex — whichever output style the user has on) to take over the conversation.
"OK. You've got [concepts 1, 2, … N] already. We're starting at concept (N+1): [current concept name].
Productive-failure approach — I'm going to give you a problem first, and we'll talk about the canonical approach after you've attempted it. Here we go:
[Pose the FIRST CONCRETE PROBLEM that uses the current concept. Match the persona's voice — Echo phrases it as discovery, Cipher as a puzzle, Vex as a challenge.]"
"OK. Let's lay down the foundations. We're starting at concept 1: [concept 1 name].
Worked-example approach — I'll show you what this looks like first, then we'll do a couple together, then you'll do one alone.
[Worked example, matching the persona's voice. Then ask: "Does that make sense? Tell me in your own words what just happened."]"
Your job as the skill is done. The user is now in a tutoring conversation with the active persona. From this point on, the persona's instructions (in their output style file) govern the dialogue — hint layers, one-question-per-turn, no answer-leak, etc.
The user can:
/tutor-path to see the learning path/tutor-status to see XP / cycles / progress/tutor-done when they want to close the topic/tutor-start again on the same topic to resume (no recharge)/tutor-path.cycles_paid field is your guard — never deduct twice.def add(a, b) are fine; full snippets aren't until the user is writing code in response.| Failure | Prevention |
|---|---|
| User pays cycles, gets bad path, gives up | Step 1 quality is critical. Generate concept names that are concrete and ordered correctly. If a concept name feels like jargon, reword it. |
| Calibration runs forever | Hard cap at Round 3. Even if the signal is ambiguous, classify and move on. The user can interrupt with "too easy"/"too hard" later. |
| Resume vs new-topic ambiguity | Step 0f handles this explicitly. Always check existing status before charging cycles. |
| Cycles=0 but user has rich XP and wants to spend it | NOT IMPLEMENTED in MVP. The cost is cycles; XP doesn't fall back. Future work — see decision doc D4's open items. |
| User says "too easy" but the skill keeps calibrating | Honor the interrupt immediately. Skip to Step 4 with the classification adjusted. |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub flagrare/llm-tutor --plugin llm-tutor12 skills in this plugin
/tutor-codebaseStart a Socratic tutoring journey grounded in an actual codebase. Reads files via Read/Grep/Glob to build the learning path; concepts carry file:symbol anchors so the tutor can reference real code. Invoke with a path: /tutor-codebase ./my-repo (defaults to 'overview' aspect) or /tutor-codebase ./my-repo 'auth flow' (scoped aspect). Triggers: '/tutor-codebase', 'tutor me through this codebase', 'teach me how this repo works', 'help me understand this code'. Distinct from /tutor-start: this one reads real files to ground the curriculum./tutor-doneClose an active tutoring topic. Calculates XP earned from per-concept first-attempt quality, marks the topic complete in state, runs the hybrid feedback flow (thumbs + targeted rotating question with cycles rewards), and logs feedback for later analysis. Invoke when you're done with a topic. Use with no arg to close the currently-active topic, or pass a slug (/tutor-done python-decorators) to close a specific one. Triggers: '/tutor-done', 'I'm done with this topic', 'close out this tutoring session', 'mark this complete'./tutor-pathShow the learning path for an active or completed tutoring topic — the ordered list of prerequisite concepts with progress markers and dependency annotations. Internal-by-default; the path is generated by /tutor-start but kept hidden unless the user explicitly asks to see it. Invoke with no arg to show the current in-progress topic, or pass a slug (/tutor-path python-decorators) for a specific one. Triggers: '/tutor-path', 'show me the path', 'what are we covering', 'show me the curriculum', 'how many concepts left'.Other plugins' skills for the same job