Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ayeshakhalid192007-dev/graph-engineering-crash-course --skill query-graphgit clone --depth 1 https://github.com/ayeshakhalid192007-dev/graph-engineering-crash-courseWrote 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.
[](https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/query-graph)<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/query-graph"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/query-graph/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.
<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/query-graph"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/query-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01278 |
| Opus 5.5 | $0.00014 | $0.00511 |
| Sonnet 5.5 | $0.00007 | $0.00256 |
| Haiku 4.5 | $0.00003 | $0.00128 |
Grade A, and why
query-graph scanned grade A with 0 findings 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 3mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
query-graph
Turns schema.sql into a queryable graph.db file, then answers a
question against the two tables it defines — an availability check on a
tool, or a provenance lookup on a specific edge — by running SQL, not by
re-reasoning over the Elm Street chat from scratch each time.
Instructions
You are a Claude Code skill implementing the sqlite-backed-graph
pattern. Follow these steps in order:
- Load the database if it isn't already loaded. Check whether
graph.dbexists in this kit's root. If it doesn't, build it by runningschema.sqlagainst a fresh file:sqlite3 graph.db < schema.sql, or, if thesqlite3CLI isn't available, the Python equivalent:python3 -c "import sqlite3; sqlite3.connect('graph.db').executescript(open('schema.sql').read())". Ifgraph.dbalready exists, leave it as is rather than reloading it — this step must be safe to skip on a second run. - Turn on foreign key enforcement for this connection. SQLite does
not enforce
REFERENCESconstraints unless the connection asks for it, so every query in this skill must runPRAGMA foreign_keys = ON;first, even against an already-loadedgraph.db. - Resolve the question. Default to this kit's worked question if the
user doesn't name one: check whether the stud finder can be borrowed
right now, and confirm the ladder's status too — which means running
the availability query from step 4
against both
tool-ladderandtool-stud-finder. - Run the availability query per tool. For a given tool id, find its
most recent
borrowededge byid(edge ids climb in the same order the source messages arrived, so the highestidis the latestborrowededge):
If no row comes back, the tool has never left itsSELECT id, from_id FROM edges WHERE label = 'borrowed' AND to_id = :tool_id ORDER BY id DESC LIMIT 1;ownsedge and is available. If a row comes back, check for a matchingreturnededge with a higher id:
A match means available (the tool came back); no match means still out withSELECT id FROM edges WHERE label = 'returned' AND to_id = :tool_id AND from_id = :borrower AND id > :borrowed_edge_id;:borrower. Name the specific edge id(s) that produced the verdict — never report a verdict without the row backing it. - Run the provenance query on request, or on the edge that grounded
step 4's verdict. For a specific edge id:
This is the receipt-per-edge fields doing their job here: naming which source document, which extraction run, and which schema version produced the edge the verdict rests on.SELECT source_doc, extraction_run_id, schema_version FROM edges WHERE id = :edge_id; - Write the result to
output.json(or the path the user requested) in this kit's root, with this shape:queries(an array, one entry per tool or edge checked, each carrying the SQL text run and its raw result), andverdicts(one entry per tool, withtool,available,grounding_edge_id, and — if not available —held_by). - Report a summary alongside the file: each tool's verdict, the edge id(s) it rests on, and that verdict's provenance (source document, run id, schema version) via step 5's lookup.
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.
- 3mo ago First seen · 116 lines · 34 tokens per session scan A cfbc8c5f7283
query-graph is a skill published in the GitHub repository ayeshakhalid192007-dev/graph-engineering-crash-course (5 stars, last pushed 3mo ago), licensed MIT. It adds 34 tokens to every session and 1,278 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
query-graph compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| query-graphayeshakhalid192007-dev/graph-engineering-crash-course | Skill | 5 | 3mo ago | MIT | A | 34 | Claude Code |
| building-agentsericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 85 | Claude Code, Codex |
| mongodbericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 118 | Claude Code, Codex |
| postgresdbericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 91 | Claude Code, Codex |
| db-migrationsericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 90 | Claude Code, Codex |
| dynamodbericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 82 | Claude Code, Codex |
| firebaseericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 77 | Claude Code, Codex |