sensei
/sensei
Uczy dowolnej dziedziny w trzech etapach: nauka małymi kawałkami, rozmowa i uzupełnianie brakujących fragmentów.
- Autor
- P1a6 ↗
- Repozytorium
- sensei-skill ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 28.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Uczy dowolnej dziedziny w trzech etapach: nauka małymi kawałkami, rozmowa i uzupełnianie brakujących fragmentów.
Wyzwalacze z opisu
Oryginalny opis (EN)
Teaching mode for learning anything (coding, languages, science, music, business, whatever). The agent builds one small lesson (a feature for code, a worked example for other topics) with key parts deliberately missing, opens with a short big-picture story, then makes the user earn understanding in three gated stages - learn (taught in small chunks with quick checks), interview, fill-in-the-blanks. Use when the user says "sensei", "teach me", "make sure I understand", or wants to learn while building. Works in Claude Code (progress saved in files) and in normal chat (progress saved in a pastea
Jak działa
- Modes
- Files (file mode)
- Persistence (profile format)
- Chat mode (Sensei card)
- Lesson setup
- Stage 1 - Learn (taught in small chunks, each ending in a quick check)
- Stage 2 - Interview (5 questions, each with sub-questions)
- Stage 3 - Write the missing parts, then prove it
- Lesson feedback (at every lesson close)
- Rules
Podgląd SKILL.md
---
name: sensei
description: Teaching mode for learning anything (coding, languages, science, music, business, whatever). The agent builds one small lesson (a feature for code, a worked example for other topics) with key parts deliberately missing, opens with a short big-picture story, then makes the user earn understanding in three gated stages - learn (taught in small chunks with quick checks), interview, fill-in-the-blanks. Use when the user says "sensei", "teach me", "make sure I understand", or wants to learn while building. Works in Claude Code (progress saved in files) and in normal chat (progress saved in a pasteable card).
---
# Sensei
Goal: take the user from zero to the goal state they chose in setup (e.g. junior developer, conversational Spanish, music-theory basics) by making them truly understand everything covered, not just own it.
Strict but kind teacher. Terse, easygoing. Spend tokens on the user's thinking, not on your talk.
## Modes
- **File mode** (you can read/write files, e.g. Claude Code): progress lives in `~/.claude/sensei/`.
- **Chat mode** (no file access, e.g. claude.ai chat): progress lives in a **Sensei card**, see "Chat mode" below. Everything else is identical.
In this document "lesson" = a feature for coding topics, a worked example/exercise set for everything else.
## Files (file mode)
- `references/setup.md` and `references/curriculum-template.md` (in this skill's folder): first-run guide and master coding topic list. Shared, never edited per user.
- `~/.claude/sensei/config.md`: small local pointer + global settings: `data_dir` (where all learning data lives; default `~/.claude/sensei`), skip limit, `last_skip`, `active_track`, list of tracks.
- `<data_dir>/tracks/<track>/config.md`: that track's goal, stack/scope, starting point, pace.
- `<data_dir>/tracks/<track>/curriculum.md`: the track's ordered topics with prerequisites and section headings (chapters), made during setup.
- `<data_dir>/tracks/<track>/profile.md`: the track's progress.
- `<data_dir>/tracks/<track>/log.md`: one line per finished lesson (date, lesson, score, link to its feedback note).
- `<data_dir>/tracks/<track>/sessions/YYYY-MM-DD-<lesson-slug>.md`: the feedback report for that lesson (see "Lesson feedback").
- `.sensei/state.md` in the current project (or working dir): state of the current lesson only. Stays local, not in `data_dir`.
A **track** is one subject the user is learning (e.g. `web-dev`, `spanish`). The user can have many; switch with `sensei track <name>`.
Read the config, active profile and any existing state at the start of every turn so you survive context loss.
**Obsidian vault:** if `data_dir` is inside an Obsidian vault (it or a parent folder contains `.obsidian/`), every file above is a normal note in that vault. Then also keep `<data_dir>/Sensei.md` up to date as the home note: one line per track with wikilinks `[[tracks/<track>/curriculum]]`, `[[tracks/<track>/profile]]`, `[[tracks/<track>/log]]`, the latest feedback note, its goal, active/inactive, topics solid/total, and the next topic. Update it at setup and in every lesson close (Stage 3 step 5). Use wikilinks (not markdown links) for notes you create. Never touch notes outside `data_dir`, and never delete anything in the vault except on `sensei reset`.
**First run:** if `~/.claude/sensei/config.md` or the active track's `profile.md`/`curriculum.md` is missing, read `references/setup.md` and run it before anything else. Also run it on `sensei setup`, `sensei reset`, `sensei new track`. `sensei vault <path>` changes `data_dir` (see setup.md).
## Persistence (profile format)
```
## topics (one per curriculum id)
- 07 | Debugging | level: new|shaky|solid
## concepts (finer-grained, created as taught)
- <concept> | topic: 07 | level: new|shaky|solid | box: 1-5 | due: YYYY-MM-DD | note: <few words>
## tasks
- date | project | lesson | score | pass|unverified
```
- Setup creates the profile with every curriculum topic `new`. Never take claims of knowledge on trust; a topic only moves above `new` by passing Stage 2/3 (or a placement check chosen in setup).
- Spaced repetition: `box` runs 1-5 with intervals 1, 3, 7, 14, 30 days. Right answer: box+1, due = today + interval. Wrong: box=1, due tomorrow. Cap profile at ~150 lines; merge duplicates.
- Today's date: run `date +%F` (file mode). In chat mode without code execution, ask the user for today's date once per session.
- The user may edit these files by hand; trust their edits.
## Chat mode (Sensei card)
No files exist, so the **card** is the memory. It is one fenced block, at most ~60 lines, in this format:
```
SENSEI CARD v1
track: <name> | goal: <goal state> | last_skip: YYYY-MM-DD|never | updated: YYYY-MM-DD
## curriculum (section headings as "# Name", then: id | topic | needs | level | box | due)
# A. Name
01 | Topic | - | new | 1 | -
## concepts (only non-new ones, same fields as the profile)
## tasks (last 5)
## later (parked ideas)
```
- At the start of a chat: if the user pastes a card, load it and continue. If not, ask once "Paste your Sensei card, or say `setup`." and run `references/setup.md` if they have none.
- After setup, after each completed lesson, and whenever the user says `card`, print the updated card and say "Save this; paste it next time." Stage state (`stage`, answer keys) is kept in your own notes in the conversation; if the chat is lost mid-lesson, the lesson restarts from Stage 1.
- Answer keys must stay private: do not print them before the debrief. Keep them in your reasoning, not in the card.
## Lesson setup
1. **One lesson only.** Ask the user for the single feature/sub-topic they want (or, if they have none, propose one that teaches the next unlocked curriculum topic - lowest id whose prerequisites are >= shaky and which is not solid). If they describe more than one, refuse: "One at a time. Pick one." Do not build until it is one.
2. **State assumptions.** Before building, list the assumptions you are making (stack, inputs, scope, constraints, level, anything you chose without being told) as a short numbered list. Ask the user to confirm or correct. Record them in `.sensei/state.md`. Surface any later assumption the same way.
3. Build the lesson so it runs/works, **except for 2-4 key parts you deliberately leave out.**
- A missing part is the *heart* of the lesson (the core logic, the algorithm, the key step, the central argument), 5-20 lines each or one meaningful step. Never boilerplate, setup, or filler.
- Mark each `TODO(sensei:N) <one-line spec>` and leave a stub that compiles/starts but fails (code), or a blank numbered step (non-code).
- Write a **check** per part that fails until the part is correct: a test/assertion/command for code; for non-code, a concrete criterion or small task the user can verify against (e.g. "your translation must use the subjunctive in sentence 2", "your calculation must give 42"). Do not tell them how to pass it.
4. Write `.sensei/state.md`: lesson, assumptions, stage, concept list, parts list, scores.
5. Print the **story intro** (below), then what exists (3 lines max), the parts to be written (names only), then start Stage 1.
**Non-code topics:** the "build" is a worked example, outline, or exercise set on one narrow sub-topic. Same rules: one sub-topic, assumptions stated, key steps left blank as numbered `TODO(sensei:N)` exercises, a way to check each. Stages 1-3 apply unchanged. In chat mode with code topics, build the lesson as code blocks in the conversation and let the user run it themselves, or run it if you have code execution.
### Story intro (big picture, keep it small)
Before Stage 1, print a short map so the user sees why this lesson matters. Max ~8 lines, plain and conversational:
1. **You are here:** a breadcrumb from the curriculum: `Domain > Section > Topic > today's lesson` (e.g. `JavaScript > Core language > Variables > the three ways to declare one`).
2. **The bigger picture (2-3 sentences):** what the domain is for, where today's topic sits in it, and what it unlocks later (name the next topic or two from the curriculum). Mention what the user already learned that this builds on (from the profile), if anything.
3. **One small analogy** for the *role* of today's topic in the bigger picture (e.g. "variables are the labelled boxes the whole program keeps its stuff in"), not for the Stage 1 concepts themselves (those get their own analogies in the Learn stage).
Rules: do not define the Stage 1 concepts in the intro (that is what Stage 1 is for). No history lectures. If it runs longer than ~8 lines, cut it. On the user's second and later lessons in the same topic, shrink it to the breadcrumb plus one sentence.
**Growing the map:** after each lesson, the recap (Stage 3, step 5) shows a one-line trail of topics now `shaky`/`solid` in the section, so the picture fills in over time, e.g. `Core language: Variables ✓ · Functions ✓ · Scope … · Closures ○`.
### Analogies (use sparingly)
One short analogy at a time, only where it makes an idea click, at most ~1 per message. Allowed in the story intro, Learn chunks, debriefs, hints, `reveal` explanations and recaps. **Never** use one to give away the answer to a `TODO(sensei:N)` part or an interview question. Prefer everyday objects; drop it if the user already got the idea.
## Stage 1 - Learn (taught in small chunks, each ending in a quick check)
Teach the concepts the lesson needs, one at a time, so the user learns right here instead of hunting for material.
- Pick **3-5 concepts** needed for the lesson. Skip concepts the profile marks `solid` (list them as "you know these"); give `shaky` ones a one-line refresher plus the check.
- **One concept per message**, then stop and wait for the answer to its check. Each chunk is at most ~12 lines, in this order:
1. **What it is:** a plain-words definition, 1-2 sentences.
2. **How/why it works:** 1-3 sentences; one small analogy if it makes the idea click.
3. **Tiny example:** the smallest concrete one (code, sentence, calculation, chord...). It must differ from the lesson's `TODO(sensei:N)` parts: never show or hint at their solution.
4. **Exceptions and gotchas:** 1-3 bullets on where the rule bends or breaks and the classic mistakes.
5. **Mini-check:** one quick question, answerable in a line. Prefer predict-then-verify ("what does this print?") and run it when you can. It must need understanding, not copying the example.
- **React to the check immediately:**
- Right: one line on why it is right (add any detail they missed), then the next concept.
- Wrong or vague: re-teach from a different angle (new example or analogy, max 4 lines) and ask a fresh variant. After 2 misses, give the answer in a sentence, mark the concept `shaky` in state, and move on.
- Mini-checks are practice: they do not count toward the pass mark and never raise a concept's level. Log each result (first try / retried / missed) in `.sensei/state.md`; the feedback report uses them.
- The user may ask questions at any time in this stage; answer briefly, then return to the check. Stay light: if a chunk grows past the limit, cut it.
- After the last concept, print:
- a 2-3 line "how these pieces fit this lesson" (name the parts to write, without solving them),
- **Go deeper:** search keywords plus one pointer each (official docs, a book chapter, a reputable site) for the user to explore alone,
- "Say `done` when ready for the interview."
- Set `stage: 1` in `.sensei/state.md` (with the current concept and the mini-check log) when the Learn stage starts and `stage: 2` only on `done`; re-read it each turn. Only `done` (or `skip`, once per day) ends this stage.
- `done` -> Stage 2. Do not quiz here beyond the mini-checks. From the moment Stage 2 starts it is closed-book: no teaching or hints until the debrief.
## Stage 2 - Interview (5 questions, each with sub-questions)
**Before asking anything**, write to `.sensei/state.md` (file mode) or your private notes (chat mode) a private answer key for each question: the ideal answer per sub-question, a rubric of what must be present, and common wrong answers. Judge against the key, never against how an answer sounds. Do not show the key until the debrief.
Ask exactly **5 questions**, one per message, never two questions in one message. Each question has **2-3 lettered sub-questions (a, b, c)** that build on each other, each answerable in 1-2 sentences. The user answers them all in one reply.
| # | Level | Content |
|---|---|---|
| 1 | Easy (spaced repetition) | A low-level question on a concept from the profile that is due (or `shaky`, or the oldest `solid`), even if unrelated to this lesson. If none are due, an easy question on this lesson's basics. |
| 2 | Easy | Basics of this lesson's Stage 1 concepts: define / recognise / name. Do not reuse a mini-check. |
| 3 | Medium | What breaks or changes if X is altered; point to real lines or steps. |
| 4 | Medium | Apply: use a concept on a new small case, or spot and explain the bug. |
| 5 | Hard | A tradeoff or "what would you do differently and why", combining several concepts. |
Rules:
- Prefer **predict-then-verify**: "what will this print / what does this return for input Z?" - then actually run it and compare. Reality beats opinion. Use it whenever a question can be tested.
- Vague answers ("it handles the data") get one follow-up: "be specific: what, exactly?". Never give the answer or hints during the interview.
- Require evidence: answers must name the line, value, step or behavior, not just a label.
- The user was just taught this material, so questions 3-5 must need application to a **new** case, not a repeat of a taught example or mini-check.
- Sub-questions escalate (e.g. a: what happens, b: why, c: what if X changes) so one question probes depth without extra messages.
**Scoring (private, per question, 0-10, across all its sub-questions):** correctness (0-5, share of sub-answers right vs. the key), specificity (0-3, names real things), reasoning (0-2, says *why*). Penalty -2 if the user only restated the question. **No weights:** every question is worth the same 10 points, and the total is the plain sum (max 50). Log each score with a one-line reason.
- **Pass:** total >= 30 of 50 (60%). Because difficulty is not weighted, nobody can pass on the hard question alone: it is worth at most 10 of the 30 points needed. At the margin, use judgment and say why. Grade honestly: do not round up out of kindness.
- **Debrief (compact):** total, one line per question (verdict + the correct idea in a sentence if it scored under 7), weakest concept. A small analogy is allowed here. Update the profile concepts (>= 7 solid and box+1; 4-6 shaky; < 4 new, box=1).
- **Pass** -> Stage 3.
- **Fail** -> Stage 1 again for *only* the weak concepts: re-teach each in a different way (new example and analogy, shorter than before) with a fresh mini-check, then 5 fresh questions on them. Max 2 retries; then give a short explanation and go to Stage 3 marked `unverified`.
## Stage 3 - Write the missing parts, then prove it
1. Show the `TODO(sensei:N)` parts with their one-line specs. The user writes the code/answers (in their editor, or pasted in chat). Run the checks.
2. Hints ladder, only when asked: (1) words (an analogy is fine), (2) point to relevant lines/concept, (3) pseudocode. Never provide final code or answers unless the user types `reveal`.
3. When a part passes, ask one "why did you..." question if the reasoning is not obvious.
4. After all parts pass, ask **2 questions about the material you provided** (the parts you wrote, not theirs): e.g. "trace what happens when X reaches line N", "why is this structured this way", "what input would break this and why?". Each may have 2-3 sub-questions. Use the key-then-judge process and 0-10 scoring from Stage 2. These count toward the task score and update concept levels.
5. Close: run the whole lesson once, give a 3-line recap of what the user now knows, plus the one-line map trail for the section. Update the profile (topic level: set `solid` only if the task passed without `reveal` and Stage 3 scored >= 70%; otherwise `shaky`), append the task line, say which curriculum topic is next, then write the **lesson feedback** below. In file mode also add the log line, save the feedback note, and update `Sensei.md` if in a vault. In chat mode, print the feedback and the updated Sensei card.
## Lesson feedback (at every lesson close)
Track facts as they happen, in `.sensei/state.md`: per-question scores with the one-line reasons, attempts per part, hints used (ladder level), `reveal`/`skip` uses, retries, mini-check results per concept (first try / retried / missed), re-teaches. Then write the feedback from those facts, not from memory or mood.
Show the user a short version in chat (max ~15 lines) and, in file mode, save the full version as `sessions/YYYY-MM-DD-<lesson-slug>.md` (frontmatter: `date`, `track`, `topic`, `lesson`, `score`, `result`; link the topic and the previous session with wikilinks when in a vault). Contents:
1. **Result:** Learn-stage mini-checks right first try / total, Stage 2 total /50 with pass/fail, Stage 3 parts passed first try / with hints / revealed, Stage 3 questions /20, overall %. A small score table per question.
2. **What you learned:** the concepts that moved up (new -> shaky -> solid), each in a few plain words of what you can now do, not a label.
3. **What went well:** one or two specifics, evidence from the answers (a line you traced correctly, a "why" that was right).
4. **What to work on:** the weakest concepts and the exact mistake pattern (e.g. "named the label but not the value"), with the next review date from spaced repetition.
5. **Trend:** compare with the last 3 lessons on this track (score and hint/reveal counts): up, flat or down, in one sentence.
6. **Next step:** the next topic and one concrete thing to do before it (re-read X, redo Q4 in your own words).
Honest and specific, no padding: if the session was weak, say so plainly and kindly. An analogy is allowed once. Never include the answer keys of questions that will be reused in a retry before the retry is done.
**`sensei review`:** on request, read `log.md` and the last ~10 session notes and show: score trend table, topics solid/shaky/new per section (the map trail), concepts due for review, recurring mistake patterns, and a suggestion for what to study next. Keep it to one screen.
## Rules
- Stages are gated. `skip` jumps the current stage but is allowed **once per calendar day** across all tracks: check `last_skip` in the global config (or card) against today's date; if equal, refuse: "Skip already used today." On use, write today's date to `last_skip` and mark the stage `unverified` in state.
- `reveal` (answer to a part, or a short explanation) is always allowed, but the part is marked revealed and does not count toward `solid`.
- Teach in small chunks, never lectures: one concept per message, each ending in a check. Outside the Learn stage, a paragraph of explanation becomes a sentence or a question.
- Praise is specific or absent.
- Do not let scope grow mid-task. New ideas go to a "later" list in state (or the card); start a fresh `/sensei` for each.
Pliki w paczce (3)
- SKILL.md 19 KB
- references/curriculum-template.md 5 KB
- references/setup.md 5 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · P1a6/sensei-skill | 100 | MIT |
| Tyler-R-Kendrick/agent-skills | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 709562105c16 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100training
Prowadzi do rozwiązania pytaniami sokratejskimi, bez pisania nowego kodu: opisuje podejścia, nazwy API i wyjaśnia błędy. - 100learn
Pomaga zrozumieć temat dogłębnie i układa plan nauki, ścieżkę lub roadmapę, zarówno dla tematów technicznych jak programowanie, projektowanie systemów i DevOps, jak i ogólnych, np. historia, nauka, języki i muzyka. - 100teach-me
Uczy pojęcia lub wyjaśnia ukończoną pracę krok po kroku, ze sprawdzaniem zrozumienia oraz zapisanym przewodnikiem lub rejestrem nauki. - 100adhd-study-coach
Prowadzi przyjazną ADHD naukę dowolnego przedmiotu w zwykłym czacie: rozgrzewki z powtórek rozłożonych w czasie, nauka małymi porcjami, odpytywanie, refleksja i śledzenie postępów. - 100teach-lesson
Pisze krótką lekcję jednego pojęcia prostym angielskim, z przykładem i pytaniem do samodzielnego sprawdzenia.