mentor
CLAUDE.md9 starsChanged 5 months agoMITView on GitHub
Mentor is a Claude skill (SKILL.md with YAML frontmatter) that generates docs-first mentorship compasses for technical topics. It runs on Claude.ai and Claude Code, and relies on current source lookup to verify resource URLs and freshness. The intended behavior is direction-setting, not tutorial generation: - read this documentation first - check this page next - inspect this repo or artifact for a pattern - notice this concept before moving on - avoid this rabbit hole for now SKILL.md is the…
The file
We split this CLAUDE.md into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
read this documentation first
- Distinctive: line 11
check this page next
- Distinctive: line 14
avoid this rabbit hole for now
- Very specific: line 32
If you change the output format in SKILL.md, update references/schema.json.
- Distinctive: line 33
If you change decision rules, update affected examples and eval assertions.
- Distinctive: line 34
If you change resource modes, update schema enums and every example.
- Very specific: line 35
If you change public positioning, update README.md and CONTRIBUTING.md.
- Very specific: line 36
If you add or change behavior contracts, update scripts/validate.mjs when the rule can be checked statically.
- Distinctive: line 50
Mentorship compass, not tutorial: Default output points to docs and inspection targets.
- Very specific: line 53
Resource modes are constrained: Use Read first, Read next, Skim for context, Inspect, Bookmark, and Practice later.
- Distinctive: line 56
Clarification policy is minimal: Ask only when the answer would change the first three resources.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
Mentor is a Claude skill (SKILL.md with YAML frontmatter) that generates docs-first mentorship compasses for technical topics. It runs on Claude.ai and Claude Code, and relies on current source lookup to verify resource URLs and freshness.
The intended behavior is direction-setting, not tutorial generation:
- read this documentation first
- check this page next
- inspect this repo or artifact for a pattern
- notice this concept before moving on
- avoid this rabbit hole for now
Repository Structure
SKILL.md- The skill definition. This is the primary artifact. All behavior rules, output format, source ranking, and anti-patterns live here.references/schema.json- JSON Schema contract for machine-readable compass output.examples/- Gold-standard example outputs that demonstrate correct behavior:example-output-rust.md- broad topic with user backgroundexample-output-cloud-run.md- broad topic, default assumptionsexample-output-terraform-modules.md- narrow topic, compressed compassexample-output-react-server-components.md- clarification trigger + fast-moving topic
evals/evals.json- 10 test cases with machine-gradable assertions covering structure, source quality, mode variety, dedup, content, clarification, personalization, freshness, time constraints, weak-docs handling, schema compliance, and tutorial-drift guards.scripts/validate.mjs- Dependency-free validation harness for schema, eval, example, and drift checks.TESTING.md- Test strategy and validation notes.
How the Artifacts Relate
SKILL.md is the source of truth. The schema, examples, docs, and evals must stay consistent with it:
- If you change the output format in
SKILL.md, updatereferences/schema.json. - If you change decision rules, update affected examples and eval assertions.
- If you change resource modes, update schema enums and every example.
- If you change public positioning, update
README.mdandCONTRIBUTING.md. - If you add or change behavior contracts, update
scripts/validate.mjswhen the rule can be checked statically.
Validation
Run:
npm testThis validates JSON syntax, schema contract behavior, enum alignment, example structure, resource deduplication, eval shape, and stale terminology. For behavior changes, also forward-test at least one broad topic and one narrow topic in a fresh agent/thread.
Key Design Constraints
- Mentorship compass, not tutorial: Default output points to docs and inspection targets; it does not generate setup steps or exercises.
- Source hierarchy is strict: Official docs > maintainer/vendor sources > official sample repos as inspection targets > justified community sources.
- Broad vs. narrow topics produce different compass sizes: Broad topics usually use 4-5 iterations; narrow topics usually use 2-4; time-boxed topics under 3 hours usually use 2-3.
- Resource modes are constrained: Use
Read first,Read next,Skim for context,Inspect,Bookmark, andPractice later. - Practice is opt-in: Quickstarts, tutorials, labs, and commands belong outside the main compass unless the user explicitly asks for hands-on practice.
- Dedup rule: A resource in the Learning Compass must not appear again in Explore Later.
- Clarification policy is minimal: Ask only when the answer would change the first three resources.
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
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.

