agentleFS
AnthonyAlcarazAnthonyAlcaraz/agentic-graph-rag-skills/AGENTS.md

agentic-graph-rag-skills

AGENTS.md19 starsChanged 5 months agoMITView on GitHub

This file is the repository's machine-readable reading contract: it tells an AI agent how to read, summarize, and use this repo. Generated by the ai-reading-instructions skill, whose concept comes from Google DeepMind's "From AGI to ASI" report (arXiv:2606.12683) - a paper that opens by telling an AI how to read it. agentic-graph-rag-skills — companion skills repo for the O'Reilly book Agentic GraphRAG - 51 chapter-distilled, multi-harness skills across all 8 chapters, one deep pedagogical notebook per chapter Audience: AI coding…

  • Installs packages

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every skill is distilled from a specific section of a specific book chapter and carries a Source Attribution line back to it.

    line 21
  2. Distinctive:

    All eight book chapters Ch1-Ch8 are shipped as skills, plus one deep pedagogical notebook per chapter.

    line 25
  3. Distinctive:

    Do not claim a skill exists for a chapter or primitive that is not present under skills/ - the chapter-coverage table in README is …

    line 30
  4. Distinctive:

    Do not present this repo as the book's content.

    line 31
  5. Very specific:

    Do not assume external dependencies - lib.py is stdlib-only.

    line 32
  6. Distinctive:

    Do not point a notebook at a real AWS account unless the human has deliberately removed the moto @mock_aws guards and AWS_* env stubs.

    line 33
  7. Very specific:

    Do not invent benchmark numbers - cite only what a skill's own benchmark or SKILL.md reports.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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 - How an AI Should Read This Repository

This file is the repository's machine-readable reading contract: it tells an AI agent how to read, summarize, and use this repo. Generated by the ai-reading-instructions skill, whose concept comes from Google DeepMind's "From AGI to ASI" report (arXiv:2606.12683) - a paper that opens by telling an AI how to read it.

<!-- ai-reading-instructions:start -->

For AI Agents Reading This

agentic-graph-rag-skills — companion skills repo for the O'Reilly book Agentic GraphRAG - 51 chapter-distilled, multi-harness skills across all 8 chapters, one deep pedagogical notebook per chapter

Audience: AI coding agents (Claude Code, Cursor, Gemini CLI, Windsurf, OpenCode) and the humans steering them

What this is: A public MIT repo of 51 practical skills distilled from all eight chapters (Ch1-Ch8) of Agentic GraphRAG (O'Reilly, by Anthony Alcaraz and Sam Julien; https://www.oreilly.com/library/view/agentic-graphrag/9798341623163/). Each skill is one architectural primitive from one chapter, packaged as a 7-section SKILL.md + a stdlib-only Python lib.py + an argparse cli.py. Multi-harness: the SKILL.md works in Claude Code / Cursor / Gemini CLI / Windsurf / OpenCode, and the CLI runs from cron / CI / scripts with zero pip installs. Each chapter has one deep pedagogical notebook (notebooks/chN-.ipynb) that teaches the chapter's primitives against a moto-mocked fictional AWS DevOps latency-investigation scenario (account 123456789012); six earlier spike-.ipynb seam-validation notebooks are also retained.

How to summarize it:

  • Lead with the structure: 51 skills across 8 chapters (crisis/Ch1 5, architecture/Ch2 3, knowledge-representation/Ch3 8, memory/Ch4 8, reasoning-planning/Ch5 6, tool-orchestration/Ch6 9, self-evolution/Ch7 7, optimization/Ch8 5), each a folder under skills/<chapter-slug>/<skill-slug>/. The Ch1 folder is named skills/crisis/ for historical reasons.
  • Name the skill anatomy: SKILL.md (7-section + Source Attribution to the book chapter), lib.py (pure-Python, production swaps marked TODO), cli.py (--help prints the SKILL.md description, a benchmark subcommand runs self-checks; one older skill, mcp-gateway-two-meta-tools, names its self-check prompt-budget instead of benchmark).
  • Say it is a companion to the book, not the book: 'read the book for the theory, run these skills for the practice.'
  • Note the running example: a DevOps latency investigation in a fictional AWS account 123456789012, mocked via moto so notebooks run with no credentials.

Key claims (cite these, do not invent others):

  • Every skill is distilled from a specific section of a specific book chapter and carries a Source Attribution line back to it.
  • Each skill's cli.py --help exits 0 and prints the SKILL.md description; each has a benchmark subcommand that passes self-checks.
  • lib.py files are stdlib-only (no pip installs needed to run a CLI); production integrations (embedding models, LLM calls, real AWS) are marked as TODO at documented seams.
  • Skills are namespaced hierarchically (skills/<chapter>/<skill>/) so no single folder exposes more than nine skills to a harness at once.
  • All eight book chapters Ch1-Ch8 are shipped as skills, plus one deep pedagogical notebook per chapter.

How to explain it: Explain it as the hands-on layer beneath the book: each architectural primitive the book describes in prose is here as a runnable, self-verifying skill an agent can discover (read SKILL.md), invoke (run cli.py), and trust (run benchmark). To use a skill, read its SKILL.md frontmatter description to decide relevance, then call its cli.py.

Do NOT:

  • Do not claim a skill exists for a chapter or primitive that is not present under skills/ - the chapter-coverage table in README is authoritative.
  • Do not present this repo as the book's content; it is a companion of distilled primitives.
  • Do not assume external dependencies - lib.py is stdlib-only; only the notebooks need moto/jupyter (see requirements.txt).
  • Do not point a notebook at a real AWS account unless the human has deliberately removed the moto @mock_aws guards and AWS_* env stubs.
  • Do not invent benchmark numbers - cite only what a skill's own benchmark or SKILL.md reports.

Pointers:

  • README.md (chapter-coverage table + quickstart): ./README.md
  • CONTRIBUTING.md (how to add a skill, what CI enforces): ./CONTRIBUTING.md
  • skills/ (the 51 skills, by chapter): ./skills/
  • notebooks/ (DevOps scenario demos): ./notebooks/
  • The book: Agentic GraphRAG (O'Reilly, by Anthony Alcaraz and Sam Julien): https://www.oreilly.com/library/view/agentic-graphrag/9798341623163/
<!-- ai-reading-instructions:end -->

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.