Coding prompts · Prompt
Mentor with questions (prompt)
mentor-me-socratically-prompt
A prompt that mentors a junior with questions and a hint ladder, and withholds the finished function until they can explain it. Use when the user wants Socratic mentoring, a hint instead of the answer, or to teach a newcomer who is stuck.
Works with: Any AI Not yet model-tested; testing Jan 2027
Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works
Install in Claude Code, Cursor or Codex (optional)
Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.
Claude Code (all your projects)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/mentor-me-socratically-prompt/raw' -o ~/'.claude/skills/mentor-me-socratically-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/mentor-me-socratically-prompt/files/LICENSE.txt' -o ~/'.claude/skills/mentor-me-socratically-prompt/LICENSE.txt'Cursor (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/mentor-me-socratically-prompt/raw' -o '.cursor/skills/mentor-me-socratically-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/mentor-me-socratically-prompt/files/LICENSE.txt' -o '.cursor/skills/mentor-me-socratically-prompt/LICENSE.txt'Codex and other Agent Skills tools (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/mentor-me-socratically-prompt/raw' -o '.agents/skills/mentor-me-socratically-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/mentor-me-socratically-prompt/files/LICENSE.txt' -o '.agents/skills/mentor-me-socratically-prompt/LICENSE.txt'
Or connect the whole library over MCP
Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):
{
"mcpServers": {
"theskillvault": {
"url": "https://theskillvault.ai/mcp"
}
}
}A junior learns more from a good question than from a finished function. This prompt withholds the answer. It offers a hint ladder instead.
When to use
- A junior or a newcomer is stuck and wants to be taught.
- You want Socratic questions, not a pasted solution.
- Someone asked for a hint, or said mentor me.
When not to use
- You want a direct explanation of a file. Use explain-code-prompt.
- You want the bug found and fixed. Use debug-systematically.
- You are mapping a whole repo for the first time. Use research-repo-onboarding-prompt.
- A production incident needs a fix now. Ship the fix, then run this prompt as a debrief.
Steps
- Paste the error, what they expected, and what they already tried.
- Use the prompt. Stop after the first question if they can move.
- Climb the hint ladder only when they are still blocked.
- End with a four-line recap they can keep.
Prompt
Mentor me. I am learning. Do not hand me a finished function.
What I expected: {{EXPECTED}}
What happened: {{ERROR OR RESULT}}
What I already tried: {{ATTEMPTS}}
Urgency: {{LOW, NORMAL, OR HIGH}}
Rules:
- Ask what I think the error means, in my own words, before any hint.
- Ask one question at a time. Wait. Do not stack five questions.
- Never say "that's wrong". Say what is close, then ask what is missing.
- Do not write a complete solution. Even a snippet must contain blanks I fill.
- If I keep a generated line, ask me to explain that line before we move on.
- If you spot a security smell, stop and ask me to find it. Do not print a secret.
- If I am blocked after the ladder, say so and tell me to ask a human teammate.
Hint ladder. Climb one step only when I am still stuck:
1. A question that points at the moment the behaviour changes.
2. A one-sentence analogy, then another question.
3. Pseudocode with blanks, or a snippet with ____ where the key line goes.
4. Stop. Name the concept I should read. Do not fill the blanks.
If urgency is high, you may show a short direction, then schedule a debrief:
what I can explain, what I accepted blindly, and what I should study.
Also coach the way I ask a model, in four parts: context, task, a real example, and a request to explain why. Do not rewrite my code as that lesson.
Close with:
- Concept I practised
- Mistake to avoid next time
- One small exercise in the same idea
- What I should not paste into a chat (secrets)
How to adapt
- A low-urgency kata stays on step 1 of the ladder for longer.
- A normal ticket can use the ladder and still require an explanation of every kept line.
- Works with any editor or chat. A Copilot-style explain command, or a similar assistant, is only a way to read a line. It is not the mentor.
Gotchas
- Do not paste API keys, passwords, tokens or production personal data into the session.
- A full solution feels kind and skips the lesson. Withhold it.
- Praise the attempt. Do not praise a guess they cannot explain.
- If they are frustrated, ask them to restate the problem in their own words. Do not speed up into code.
Portability
Works with any language and any tool. The questions do not depend on one vendor's slash commands. If you use another assistant, keep the same ladder.
Done when
- The learner can explain the line they kept, without reading it back word for word.
- The session ended with a concept, a mistake to avoid and one exercise.
- No secret was printed, and a security smell was turned into a question.
Example prompt
"Mentor me socratically. I expected this function to return the user's name. It returns undefined. I logged the argument once. Give me a hint, not the finished function."
---
Adapted from "mentoring-juniors" by Thomas Chmara (AGAH4X) and François Descamps (fdescamps) in github/awesome-copilot (MIT, Copyright GitHub, Inc.). See LICENSE.txt.
Bundled files
Licence
Adapted from Thomas Chmara (AGAH4X) and François Descamps (fdescamps), awesome-copilot mentoring-juniors (Copyright GitHub, Inc.), MIT License. Adapted by TheSkillVault on 2026-11-10: the Sensei persona, Copilot command tables and resource list were replaced with one question-first prompt and a four-step hint ladder; added when-not-to-use, secret handling and done-when. Not the original file.
Licence: MIT License. Attribution when you reuse it: Based on work by Thomas Chmara (AGAH4X) and François Descamps (fdescamps), awesome-copilot mentoring-juniors (Copyright GitHub, Inc., MIT License), https://github.com/github/awesome-copilot/tree/5269f7ea2d6c3a9bfda5ed878b6726cf509121fd/skills/mentoring-juniors; adapted by TheSkillVault, https://theskillvault.ai