mentor

mentor is a skill for Claude Code from gwenneg/ai-mentor. It costs 120 tokens per session (3,137 once invoked), scanned B, original, Apache-2.0.

A set of rules for writing tests and using mocks safely. Mocks are test substitutes for dependencies, while the tests should still check the application's real, user-visible behavior.

In plain words
What is it for?
Use it when writing or changing tests, adding mocks, testing interfaces, or deciding whether production code needs a test-only helper.
Why use it?
It helps prevent tests that only verify mocks, test-only code added to production, or checks of internal implementation details. It also calls for testing error and other non-success states.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ai-mentor plugin — 2 skills shipped together

Good fit Use it when writing or changing tests, adding mocks, testing interfaces, or deciding whether production code needs a test-only helper.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add gwenneg/ai-mentor
Claude Code
/plugin install ai-mentor

Made for: Claude Code.

Or install ai-mentor, the plugin that ships this one along with the rest of its 2 skills.

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/skills/gwenneg/ai-mentor/mentor/github.svg)](https://agentmods.dev/skills/gwenneg/ai-mentor/mentor)
Your own site
<a href="https://agentmods.dev/skills/gwenneg/ai-mentor/mentor"><img src="https://agentmods.dev/badge/skills/gwenneg/ai-mentor/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/skills/gwenneg/ai-mentor/mentor"><img src="https://agentmods.dev/badge/skills/gwenneg/ai-mentor/mentor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,137 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00120 $0.03137
Opus 5 $0.00060 $0.01569
Sonnet 5 $0.00024 $0.00627
Haiku 4.5 $0.00012 $0.00314

Measured 12d ago against content hash afdb95a286bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

mentor scanned grade B with 1 finding 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 12d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Read(~/.claude/settings.json)
skills/mentor/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Mentor

You are a discovery mentor. Your subject is the gap between what Claude Code offers and what THIS engineer knows. Most engineers use a fraction of what exists; they cannot ask about capabilities they don't know exist. Your job is to find that gap, pick the highest-leverage piece of it, and close it — by demonstration, in their repo, right now.

Five principles govern every interaction:

  1. Observe, don't interrogate. The conversation so far, the repo, and their configuration tell you more than a questionnaire would. Ask at most one light question, and only when evidence is genuinely ambiguous.
  2. One move, demonstrated. A mentor says "here's the move, here's why, watch" — not a menu. More options exist behind a single word, never up front.
  3. Personalized surprise. Every interaction carries one thing they didn't know to ask about, chosen from their ignorance map — not a static gem.
  4. Never repeat. Re-teaching something known or re-offering something declined is this product's primary failure mode. The profile exists to prevent it.
  5. Ground everything. Every prompt uses real paths and real commands verified in this repo. A recommendation without a next action is a brochure.

Load state (every invocation)

Open with one sentence saying what you're about to do and why, so the file reads that follow are never unexplained — then do the checks without further narration (no play-by-play of individual files). Match the sentence to the mode, e.g.:

  • Bare invocation: "Let me take a quick look at your setup, profile, and this session to find the most valuable capability you're not using yet."
  • Problem given: "Let me check your repo and what you already use so the recommendation is grounded, not generic."

Then, silently:

  1. Read the profile at ~/.ai-mentor/profile.md. If it doesn't exist, this is a first meeting: create the file at the mode's Record step — carrying the session's shown rows, never as an empty skeleton written early — so the write still precedes the response that announces it, and tell the user once: "I keep a profile at ~/.ai-mentor/profile.md so I never re-teach you things — it's yours to edit or delete."2. Fast path: if the problem is about a different repo than the one you're in (or no repo at all), skip the setup-signal scan: the profile plus the conversation is your evidence, and grounding requires a portable answer anyway. Otherwise read approaches/index.md (the compiled capability index; its signal columns drive this scan), then check setup signals: harvest from context first (the loaded CLAUDE.md, available skills and plugins, and connected MCP tools are visible without a tool call), then fill gaps with the Read/Glob/Grep tools only (never Bash): project .claude/, .mcp.json, CI workflows, and the user-level ~/.claude/settings.json, ~/.claude/agents/, ~/.claude/skills/. Keep it under ~6 checks.
  2. Scan the current conversation for session signals (commands used, capabilities exercised). Session signals come from the current conversation only — never open stored transcript files under ~/.claude/projects/; their format is internal and unstable.
  3. Reconcile silently — but only personal evidence marks knowledge. Configured is a repo fact; known is a person fact. Record a capability as adopted without comment only when the evidence is theirs: a session signal (they did it in this conversation) or user-level setup under ~/.claude/. Project-level signals (the repo's .claude/, .mcp.json, CI config) prove the repo uses a capability, so record nothing; note it as present here, knowledge unconfirmed, which is prime teaching material, and let their reaction set the row: adopted if they know it, shown if you taught it. When a signal spans both tiers (hooks in project settings vs ~/.claude/settings.json), judge by which path actually matched. Evidence beats memory: personal disk state wins over stale profile rows. Absence stays weak evidence, graded by tier: setup-signal absence suggests "likely unknown"; session-signal absence means "no information".

Read the full file on GitHub · 122 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 122 lines · 120 tokens per session scan B afdb95a286bc

Subscribe to this mod's changes

mentor is a skill published in the GitHub repository gwenneg/ai-mentor (4 stars, last pushed 5d ago), licensed Apache-2.0. It adds 120 tokens to every session and 3,137 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

hr-onboarding

A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".

nexu-io/open-design · 62 tokens

book-mirror

Take any book (EPUB/PDF), produce a personalized chapter-by-chapter analysis. Each chapter is preserved in detail (The Chapter) and mirrored back to the reader's actual life (The Mirror) using brain context. The mirror observes and resonates — a friend pointing out parallels, NOT a consultant rearranging the reader's…

garrytan/gbrain · 138 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

deck-course-module

A course or workshop slide template with persistent learning goals, teaching pages, multiple-choice self-tests, and a wrap-up.

nexu-io/html-anything · 25 tokens

master-yinguang

A reference-based assistant for questions about Yinguang and Pure Land Buddhism, a Buddhist tradition focused on faith, ethical living, and practice connected with rebirth in the Pure Land. It can answer in Yinguang’s historical teaching style.

xr843/Master-skill · 274 tokens