Claim. Your coding agent is bad at graphs. Proof. Ask it for a Cypher query.
erdostack is a set of small, plain-markdown skills that teach coding agents to work with graphs: whether you need one, how to model it, which dialect your engine speaks, and how to query it without melting the database.
$ npx skills add usergraphtheory/erdostack
What goes wrong
Five failures, each with the skill that addresses it. If you have used a coding agent on a graph database you have met at least three.
Lemma 1 (Stale syntax). Asked for Cypher, the agent writes whatever was current when it was trained. It hands Neo4j-only syntax to engines that are not Neo4j, and installs a database that was archived last year.
Fix. query-dialects makes it name the engine and version, check what that version supports, and only then write the query. Ships in the next release.
kuzu was archived in october 2025. your agent is still pip installing it like nothing happened.
Lemma 2 (Schema hallucination). It invents labels and properties that do not exist, and points relationships the wrong way.
Fix. schema-first reads the real schema before any query is written, then checks every label, type, direction and property against it.
(a)-[:WROTE]->(b) and (a)<-[:WROTE]-(b) are different sentences. one of them says the book wrote the author.
Lemma 3 (Small-graph optimism). A query that returns instantly on a hundred nodes will run a cartesian product or an unbounded path expansion on a hundred million without blinking.
Fix. query-review looks at the plan before anything runs, and bounds or refuses patterns that cannot finish.
“works on my machine” said the man with forty nodes.
Lemma 4 (Graph-shaped hammer). The agent reaches for a graph database because the word “relationship” appeared in the ticket.
Fix. graph-or-not writes a one-page decision: a graph database, an in-process library, a recursive SQL query, or nothing.
you do not need a graph database to store a tree. you need a parent_id and a nap.
Lemma 5 (Tables in a trench coat). Given a relational schema, it ports every join table to a node and calls the result a graph.
Fix. roast-my-graph audits the model and says so, with a severity and a fix for every finding.
this is the one people screenshot.
The roast
Point it at a schema, a model or a query file. Graph or relational, any engine.
> /roast-my-graph schema.cypher 4 findings. 2 of them will page you. [high] (:User)-[:HAS]->(:UserOrder)-[:HAS]->(:Order) UserOrder is a join table that put on a trench coat and walked into your graph. No properties, two HAS edges. fix: (:User)-[:PLACED {at}]->(:Order) [high] MATCH (a)-[*]-(b) No labels, no bound, no direction. On any real graph this is a denial of service you wrote yourself. fix: (a:User {id: $id})-[:FOLLOWS*1..3]->(b:User) [med] MERGE (u:User {id: $id}) with no constraint on User.id Every MERGE scans the label, then creates duplicates the moment two writers show up. fix: CREATE CONSTRAINT user_id FOR (u:User) REQUIRE u.id IS UNIQUE [low] Every User LIVES_IN one of about 200 Country nodes Those are supernodes. Any path through one visits everybody. fix: keep the node only if you traverse through it. Otherwise u.country and an index.
Example 1. Written by hand to show the format. It is not a recorded run. --serious returns the same findings without the commentary.
What you get
Small skills you can use one at a time. Some you call yourself. The rest the agent picks up when the task needs them.
| Skill | Who calls it | What it does |
|---|---|---|
| The first five | ||
roast-my-graph | You | Audits a schema, model or query file and tells you what is wrong with it. |
graph-or-not | You | Decides whether this problem needs a graph database at all. |
setup-graph | You, once per repo | Records your engine, version, driver and where the schema lives. |
schema-first | The agent | Reads the real schema before writing any query. |
query-review | The agent | Checks the query plan and stops patterns that cannot finish. |
| Next | ||
query-dialects | The agent | Cypher 25, openCypher, GQL, SQL/PGQ, Gremlin, SPARQL: what your engine and version really support. |
graph-modeling | The agent | Node, edge or property. Supernodes, time, and moving from relational. |
algorithm-picker | The agent | From problem to algorithm to the library call that already exists. |
graph-crdts | The agent | Graphs and trees that several people edit at once, without dangling edges. |
graphs-in-process | The agent | NetworkX, igraph, rustworkx, and when to leave each. |
graphs-in-sql | The agent | Recursive queries, closure tables, and SQL/PGQ where it actually shipped. |
Engine-specific detail lives in packs. Neo4j and LadybugDB come first, because both run on a laptop and nothing here is published without being tested. Packs for other engines are open for contribution.
work for a graph database company? your engine pack is one pull request away. i merge fast.
Install
$ npx skills add usergraphtheory/erdostack
Works with Claude Code, Cursor, Codex and any other agent that reads SKILL.md files. The installer copies plain files into your project. They are yours to read, edit and delete.
Prefer no installer? Clone the repository and copy the skills folder to wherever your agent looks:
$ git clone https://github.com/usergraphtheory/erdostack.git
Then run /roast-my-graph on the schema you are least proud of.
What it will not do
Remark 1. It will not make a weak model strong. These are instructions, not intelligence.
Remark 2. It is not a process. There are no sprints, roles or ceremonies. Use the skills you want and delete the rest.
Remark 3. It does not replace vendor skills. For depth on one engine, use the vendor’s own, such as Neo4j’s or Memgraph’s. erdostack covers what sits above any single engine and points you to theirs.
Remark 4. It has no benchmark numbers yet. See the next section.
Results
Theorem 1. [This space intentionally left blank.]
A theorem needs a proof, and there is not one yet. The eval harness lives in the repository. Results will be published with each release, including the cases where the skills changed nothing. Until the first run is out, anyone quoting you a number for erdostack is making it up.
yes this is on the landing page. no i will not be taking questions.
Who wrote this
An anonymous account, @graphtheory. That is a good reason not to trust me, so trust the files instead.
- Every skill is a markdown file. Read it before you install it. It takes two minutes.
- The skills make no network calls, collect nothing and never update themselves.
- The
skillsinstaller is someone else’s tool and reports anonymous usage by default. SetDISABLE_TELEMETRY=1to turn that off, or usegit clone. - MIT licensed and independent. Not affiliated with any database vendor.
- This page is one HTML file. It loads nothing from other servers, sets no cookies and runs no analytics. View source.
The name comes from the Erdős number: how many co-author hops separate a mathematician from Paul Erdős. It is the best-known shortest-path problem that is also a brag.
One open problem
Conjecture 1. Developers will star a repository that is honest about what it does not know.
Status: open. You can contribute to the proof.