/fluent:fluent-setupfrom fluent
One-time interactive onboarding that creates a personalized language-learning profile (name, target language, CEFR level, timeline, goals). Also handles profile updates and resets. Must only be triggered by /fluent-setup slash command to avoid accidental progress reset.
Ships in fluent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One-time onboarding that seeds all 6 databases in the Fluent data directory. After setup, every other skill reads from those files — this is the bootstrap. Also handles profile updates and progress resets for returning users.
The data directory is resolved at runtime (not hardcoded to ./data/):
$FLUENT_DATA_DIR if set$CLAUDE_PROJECT_DIR/data/ if that path contains learner-profile.json (clone mode)./data/ if ./data/learner-profile.json exists (clone mode, cwd inside repo)~/.claude/fluent-data/ otherwise (plugin-install default)Always resolve it via the helper rather than writing literal data/ paths:
FLUENT_DATA="$(python3 "${CLAUDE_PLUGIN_ROOT:-${CLAUDE_PROJECT_DIR:-.}}/.claude/hooks/ensure_data_dir.py")"
or from Python:
import sys
sys.path.insert(0, f"{PLUGIN_ROOT}/.claude/hooks")
from fluent_paths import ensure_data_dir
DATA = ensure_data_dir()
Trigger this skill only when the learner types /fluent-setup. The skill is gated with disable-model-invocation: true — re-running can reset a learner's progress, so it must never auto-fire from an ambiguous prompt.
Skip this skill if a profile already exists and the learner did not ask to change anything; route them to /fluent-learn or /fluent-progress instead.
Resolve the data directory first, then probe for learner-profile.json:
DATA_DIR="$(python3 -c "
import sys; sys.path.insert(0, '${CLAUDE_PLUGIN_ROOT:-${CLAUDE_PROJECT_DIR:-.}}/.claude/hooks')
from fluent_paths import data_dir
print(data_dir())
")"
test -f "$DATA_DIR/learner-profile.json" && echo "exists" || echo "new"
If it exists, jump to Profile updates below. Otherwise continue.
# 🌍 Welcome to Your Personal Language Learning System!
This AI-powered system will help you learn any language through:
- 📊 Systematic progress tracking
- 🧠 Spaced repetition (scientifically proven)
- 🎮 Gamification (streaks, achievements)
- 📈 Adaptive difficulty
- 🎯 Personalized to YOUR goals
**Let's get you set up!** (~5 minutes)
Use the AskUserQuestion tool to gather questions in batches when possible (in an agent without it, use that agent's own question tool, or ask in plain messages and wait for each reply). Required fields:
If the learner picks "not sure" for current level, run a quick 5-question assessment:
Map score to level: 0-1 correct = A1, 2 = A2, 3 = B1, 4 = B2, 5 = C1.
Compute expected months to target level:
A1 → A2: ~100 hours
A2 → B1: ~150 hours
B1 → B2: ~200 hours
B2 → C1: ~300 hours
C1 → C2: ~400 hours
months = hours_needed / (daily_minutes / 60) / 30
Adjust:
-10% time if learner's native language is typologically close to the target (e.g. Dutch ↔ English, Spanish ↔ Italian).-10% per additional language already known (cap at 30% total).Present:
## 🎉 Setup Complete!
**Your Learning Profile:**
- 👤 Name: {name}
- 🌍 Learning: {target_language}
- 📚 Native: {native_language}
- 📊 Level: {current} → {target}
- 📅 Timeline: {timeline}
- ⏱️ Daily time: {minutes} min
- 💡 Goal: {goal}
## 📋 Personalized Plan
**Estimated time:** {months} months
**Total study hours:** ~{hours} hours
### Weekly Schedule
**Daily:**
- 🔄 `/fluent-review` — spaced repetition ({X} min)
- 📚 `/fluent-vocab` — new vocabulary ({Y} min)
**Alternating:**
- 📝 `/fluent-writing` (Mon/Wed/Fri)
- 🗣️ `/fluent-speaking` (Tue/Thu/Sat)
- 📖 `/fluent-reading` (Sun)
**Weekly:**
- 📊 `/fluent-progress` — check stats (5 min)
### Milestones
- Month 1: {reasonable short-term}
- Month 3: {quarter-way}
- Month 6: {half-way}
- Target date: {target_level}!
### Next Steps
1. Start now — type `/fluent-learn`
2. Daily habit — `/fluent-review` every day
3. Weekly — `/fluent-progress` to see stats
4. Stay consistent — even 10 min daily beats 2 hours weekly
**Your journey to {target_language} fluency starts now!** 🚀
Start from the templates in data-examples/. Resolve the target directory via fluent_paths.ensure_data_dir() (it creates the directory if missing), then create these 6 files inside it:
learner-profile.json — fill all fields from the interview.progress-db.json — empty stats.mistakes-db.json — empty error_patterns.mastery-db.json — skills_mastery entries with mastery_level: 0 for each skill.spaced-repetition.json — empty queues, daily_limits.review_items_per_day: 20.session-log.json — empty sessions array, total_sessions: 0.Use the Write tool for each. Do not call update-db.py — that script is for session updates, not bootstrapping.
## 🎓 Want to start your first lesson now?
A quick 5-10 min intro session to learn your first 10 words and get familiar with the system.
Type `/fluent-learn` to start, or come back whenever you're ready.
End the setup here. Do not try to start the lesson yourself: fluent-learn is gated with disable-model-invocation: true, so calling it through the Skill tool fails with an error. Only the learner typing /fluent-learn can start it.
# 👋 Welcome back, {name}!
You already have a learning profile.
What would you like to do?
1. **Update profile** — change goals, timeline, or preferences
2. **View current plan** — see your learning schedule
3. **Reset progress** — start fresh (⚠️ erases all progress!)
4. **Cancel** — keep everything as is
**Type 1, 2, 3, or 4:**
1 — ask which field, update only that field, preserve the rest.
2 — render the plan section from current data. Read-only.
3 — confirm twice. This deletes every file in the resolved data directory. Back up first:
DATA_DIR="$(python3 -c "
import sys; sys.path.insert(0, '${CLAUDE_PLUGIN_ROOT:-${CLAUDE_PROJECT_DIR:-.}}/.claude/hooks')
from fluent_paths import data_dir
print(data_dir())
")"
TS="$(date +%Y%m%d-%H%M%S)"
mkdir -p "$DATA_DIR/.backups/pre-reset-$TS"
cp "$DATA_DIR"/*.json "$DATA_DIR/.backups/pre-reset-$TS/"
Then restart setup from Step 2.
4 — exit cleanly.
Learner runs /fluent-setup. After collecting all 11 answers, compute months, generate plan, write 6 JSON files, offer first lesson.
Learner: "reset my progress, I want to start over"
You're about to delete:
- 42 sessions
- 6-day streak
- 287 vocabulary items
- 12 mastered patterns
This is irreversible. Type
RESET(all caps) to confirm, or anything else to cancel.
/fluent-setup..backups/pre-reset-<timestamp>/.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
language-learning, onboarding, profile-setup, cefr, spaced-repetition
12 skills in this plugin
/fluent-db-updaterAtomically update all 6 Fluent learner databases (learner-profile, progress, mistakes, mastery, spaced-repetition, session-log) at session end by calling .claude/hooks/update-db.py with a single JSON payload. Use at the end of every practice session — fluent-writing, fluent-vocab, fluent-speaking, fluent-reading, fluent-review, fluent-learn — to persist the session's errors, review results, new vocabulary, and session metadata./fluent-feedback-formatterCanonical feedback template for every learner answer in the Fluent system — celebrate correct parts, correct mistakes with category and brief explanation, show the full correct version, score out of 10, and classify severity (🔴 critical / 🟡 moderate / 🟢 minor). Use in every practice session (fluent-writing, fluent-vocab, fluent-speaking, fluent-reading, fluent-review) immediately after the learner submits an answer./fluent-learnMain adaptive language-learning session that mixes skills (writing, speaking, vocabulary, reading) and exercise types based on the learner's current level, weak patterns, and due reviews. Triggered only when the learner types /fluent-learn. Greets the learner, shows today's plan, asks what to practice, runs interleaved exercises one at a time, and updates all databases at the end./fluent-progressShow the learner's language learning progress, statistics, mastery levels, streak, and achievements. Use when the learner asks "how am I doing", "show my progress", "stats", "dashboard", "what's my streak", "how many words have I learned", or invokes /fluent-progress. Read-only — safe to auto-invoke./fluent-readingRun an interactive reading comprehension session with a short target-language text followed by main-idea, detail, vocabulary-in-context, inference, and true/false questions. Triggered only when the learner types /fluent-reading. Presents the text, waits for the learner to read, then asks questions one at a time with immediate feedback, and optionally adds new vocabulary to the spaced-repetition queue./fluent-reviewRun today's spaced-repetition review queue — items scheduled by SM-2 that need reinforcement before the learner forgets them. Triggered only when the learner types /fluent-review. Pulls due items from spaced-repetition.review_queue.today, generates a targeted exercise for each, evaluates the response, updates SM-2 parameters, and reshelves items into the correct future queue.npx claudepluginhub m98/fluent --plugin fluentOther plugins' skills for the same job