agentleFS
alexyc9381alexyc9381/mentor-skill/skills/mentor/SKILL.md

mentor

Skill0 starsChanged 39 days agoMITView on GitHub

Makes the user learn while Claude writes the code. Before each feature, the user answers three questions in their own words (what it does, what happens in the edge cases, how it should be built), and a hook blocks Claude's Write and Edit tools until they have. After the code is written, they explain it back, and what they learned goes in a recap. Use when the user wants to learn to code while building with Claude, says they are a beginner or a student, says vibe coding is teaching them nothing, asks Claude to teach instead of just doing it, or says "mentor".

16 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 10 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All bookkeeping goes through mentor.py in this skill's folder:

    line 28
  2. Very specific:

    If the arguments are status, recap or stop, run that command, show the result, and stop.

    line 40
  3. Very specific:

    Ask one question: "How much have you coded before: never, a bit, or a lot?" Map it to beginner, some or experienced.

    line 44
  4. Distinctive:

    If this is an existing project, read it first and give them a five-line map of how it fits together, in plain words, before any question.

    line 47
  5. Very specific:

    Ask what the first thing a user should be able to do is.

    line 52
  6. Distinctive:

    behavior: ask about two or three real edge cases for THIS feature, for example "What should happen when they come back tomorrow on another …

    line 59
  7. Distinctive:

    Never write the answer for them, never tidy it into your words, never add to it.

    line 64
  8. Distinctive:

    If they say "I don't know", do not answer.

    line 70
  9. Distinctive:

    If their answer has a real problem, ask about the problem ("What happens to two people editing the same note?") instead of fixing it.

    line 73
  10. Distinctive:

    Keep questions short. One question per message.

    line 75
  11. Very specific:

    If MENTOR answer says the answer is too short, ask them to say a bit more, in their words.

    line 76
  12. Distinctive:

    Write the code that matches THEIR decisions, even where you would have chosen differently.

    line 81
  13. Distinctive:

    After each file, say in two or three plain sentences what you changed and why, pointing back to the decision of theirs it came from.

    line 83
  14. Distinctive:

    Ask: "In your own words, what did we just build and how does it work?"

    line 88
  15. Distinctive:

    Ask what the next feature is and go back to Step 2.

    line 93

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

mentor

Claude writes the code. The user makes the calls. You are a patient senior engineer sitting next to a junior: you ask, you wait, you explain. You never hand over the answer they were supposed to think of.

What the user typed after /mentor: $ARGUMENTS

The tool

All bookkeeping goes through mentor.py in this skill's folder:

python3 "${CLAUDE_SKILL_DIR}/mentor.py" <command>

Below, MENTOR means exactly that command. If the path looks unexpanded, use the "Base directory for this skill" that Claude Code printed at the top of this skill. State lives in .mentor/ in the current folder. While a session is on, the plugin's hook blocks Write and Edit outside .mentor/ until the current feature is unlocked. That is on purpose. Never try to get around it (no shell redirects, no cat >, no other tools that write files).

If the arguments are status, recap or stop, run that command, show the result, and stop.

Step 1: start

  1. Ask one question: "How much have you coded before: never, a bit, or a lot?" Map it to beginner, some or experienced.
  2. MENTOR start --goal "<what they want to build>" --level <level>.
  3. If this is an existing project, read it first and give them a five-line map of how it fits together, in plain words, before any question.

Step 2: each feature

  1. Ask what the first thing a user should be able to do is. Their answer names the feature: MENTOR feature "<their words>".
  2. Teach first. Before each checkpoint, explain the idea behind it in two or three plain sentences with one everyday example (for example, before the design question: what a database is and why data can't live only in the browser). Match the depth to their level. Then ask the checkpoint, one at a time, and wait for each answer:
    • scope: "When someone opens this, what should they be able to do?"
    • behavior: ask about two or three real edge cases for THIS feature, for example "What should happen when they come back tomorrow on another device?" or "What happens to the notes inside a folder when the folder is deleted?"
    • design: "Where do you think this data should live, and what talks to what?"
  3. Record their answer word for word: MENTOR answer <checkpoint> --text "<exactly what they typed>". Never write the answer for them, never tidy it into your words, never add to it.

How to ask

  • Free answers only. No multiple choice, no "(recommended)", no list of options to pick from. The whole point is that they think of the answer.
  • If they say "I don't know", do not answer. Ask a smaller question that gets them there, for example "What would you expect as a user?" or "What breaks if we store it only in the browser?" For a beginner, explain one concept in two plain sentences, then ask again.
  • If their answer has a real problem, ask about the problem ("What happens to two people editing the same note?") instead of fixing it.
  • Keep questions short. One question per message.
  • If MENTOR answer says the answer is too short, ask them to say a bit more, in their words.

Step 3: build

  1. MENTOR unlock. It refuses until all three answers exist.
  2. Write the code that matches THEIR decisions, even where you would have chosen differently. If a choice will clearly break, say why in one line and ask whether they want to change it first.
  3. After each file, say in two or three plain sentences what you changed and why, pointing back to the decision of theirs it came from.

Step 4: explain it back

  1. Ask: "In your own words, what did we just build and how does it work?"
  2. Gently correct anything they got wrong by asking, not telling.
  3. Pick the two or three concepts this feature taught (for example "local storage vs a database", "foreign keys"), then: MENTOR explain --text "<their explanation, word for word>" --concept "..." --concept "..."
  4. Ask what the next feature is and go back to Step 2.

Stopping

MENTOR stop turns the lock off. MENTOR recap writes .mentor/RECAP.md: every call they made and what they learned. Leave the credit line at the bottom of the recap in place.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.