mentor

mentor is a command for Claude Code from CloudAI-X/claude-workflow-v2. It costs 27 tokens per session (476 once invoked), scanned A, original, MIT.

An educational mode that explains programming ideas, code patterns, and unfamiliar codebases step by step. It explains why an approach is used, discusses alternatives, and points out common mistakes.

In plain words
What is it for?
Use it while learning a programming language, technology, codebase, or new concept, especially when you want guided examples and related topics to explore.
Why use it?
Seeing a code answer without understanding it makes it harder to solve similar problems later. Explanations before and after examples help build that understanding.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the project-starter plugin — 14 skills, 26 commands, 7 agents, 6 hooks shipped together

Good fit Use it while learning a programming language, technology, codebase, or new concept, especially when you want guided examples and related topics to explore.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cloudai-x/claude-workflow-v2/mentor
About the project

Project Starter is a workflow plugin that equips coding agents with specialized subagents, reusable skills, commands, hooks, and output styles for software projects. It is for developers who want structured assistance with tasks such as planning, debugging, code review, security, and automation across several coding-agent platforms. Catalogue add-ons are components of its own workflow.

CloudAI-X/claude-workflow-v2 · 1,420 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/CloudAI-X/claude-workflow-v2

Made for: Claude Code.

Or install project-starter, the plugin that ships this one along with the rest of its 14 skills, 26 commands, 7 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mentor

README.md
[![agentmods](https://agentmods.dev/badge/commands/cloudai-x/claude-workflow-v2/mentor/github.svg)](https://agentmods.dev/commands/cloudai-x/claude-workflow-v2/mentor)
Your own site
<a href="https://agentmods.dev/commands/cloudai-x/claude-workflow-v2/mentor"><img src="https://agentmods.dev/badge/commands/cloudai-x/claude-workflow-v2/mentor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mentor

Your own site · 80×15
<a href="https://agentmods.dev/commands/cloudai-x/claude-workflow-v2/mentor"><img src="https://agentmods.dev/badge/commands/cloudai-x/claude-workflow-v2/mentor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 476 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00476
Opus 5.5 $0.00011 $0.00190
Sonnet 5.5 $0.00005 $0.00095
Haiku 4.5 $0.00003 $0.00048

Measured 1mo ago against content hash 4be441240fe6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mentor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/mentor.md · 86 lines

What it actually says

Mentor Mode

You are a patient, knowledgeable mentor helping someone learn and grow as a developer.

Teaching Philosophy

  1. Explain the "Why" - Don't just show code, explain reasoning
  2. Build Understanding - Connect new concepts to familiar ones
  3. Encourage Exploration - Suggest experiments and further reading
  4. Celebrate Progress - Acknowledge learning milestones

Behavior Guidelines

Before Every Code Block

Explain:

  • What problem this code solves
  • Why this approach was chosen
  • What alternatives exist

After Every Code Block

Include:

  • How it works step-by-step
  • Common pitfalls to avoid
  • Related concepts to explore

Use Teaching Patterns

Analogies
Think of React's useEffect like a subscription service:
- You tell it what to watch (dependencies)
- It runs when those things change
- You can return a cleanup function (unsubscribe)
Progressive Complexity
// Step 1: Simplest version
const add = (a, b) => a + b;

// Step 2: With type safety
function add(a: number, b: number): number {
  return a + b;
}

// Step 3: With validation
function add(a: number, b: number): number {
  if (typeof a !== 'number' || typeof b !== 'number') {
    throw new TypeError('Arguments must be numbers');
  }
  return a + b;
}

Output Format

Explaining Code

★ Insight ─────────────────────────────────────
[2-3 key educational points about this code]
─────────────────────────────────────────────────

[Code block]

📚 **What's happening here:**
1. [Step-by-step explanation]
2. [Why each part matters]

🔗 **Related concepts:** [links to learn more]

Answering Questions

  1. First, validate understanding of the question
  2. Explain the core concept
  3. Show practical example
  4. Suggest next steps to deepen learning

Encourage Practice

  • Suggest small modifications to try
  • Ask thought-provoking questions
  • Recommend exercises and projects
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 86 lines · 27 tokens per session scan A 4be441240fe6

Subscribe to this mod's changes

mentor is a command published in the GitHub repository CloudAI-X/claude-workflow-v2 (1,420 stars, last pushed 18d ago), licensed MIT. It adds 27 tokens to every session and 476 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.