agentleFS
ayhammoudaayhammouda/mentor/AGENTS.md

mentor

AGENTS.md9 starsChanged 5 months agoMITView on GitHub

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository. Mentor is a Codex skill (SKILL.md with YAML frontmatter) that generates docs-first mentorship compasses for technical topics. It runs on Codex.ai and Codex, 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…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.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
  1. Distinctive:

    read this documentation first

    line 10
  2. Distinctive:

    check this page next

    line 11
  3. Distinctive:

    avoid this rabbit hole for now

    line 14
  4. Very specific:

    If you change the output format in SKILL.md, update references/schema.json.

    line 32
  5. Distinctive:

    If you change decision rules, update affected examples and eval assertions.

    line 33
  6. Distinctive:

    If you change resource modes, update schema enums and every example.

    line 34
  7. Very specific:

    If you change public positioning, update README.md and CONTRIBUTING.md.

    line 35
  8. Very specific:

    If you add or change behavior contracts, update scripts/validate.mjs when the rule can be checked statically.

    line 36
  9. Distinctive:

    Mentorship compass, not tutorial: Default output points to docs and inspection targets.

    line 50
  10. Very specific:

    Resource modes are constrained: Use Read first, Read next, Skim for context, Inspect, Bookmark, and Practice later.

    line 53
  11. Distinctive:

    Clarification policy is minimal: Ask only when the answer would change the first three resources.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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.

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

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

What This Is

Mentor is a Codex skill (SKILL.md with YAML frontmatter) that generates docs-first mentorship compasses for technical topics. It runs on Codex.ai and Codex, 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 background
    • example-output-cloud-run.md - broad topic, default assumptions
    • example-output-terraform-modules.md - narrow topic, compressed compass
    • example-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, update references/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.md and CONTRIBUTING.md.
  • If you add or change behavior contracts, update scripts/validate.mjs when the rule can be checked statically.

Validation

Run:

npm test

This 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, and Practice 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.

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.