traverse-multi-hop

traverse-multi-hop is a skill for Claude Code from ayeshakhalid192007-dev/graph-engineering-crash-course. It costs 51 tokens per session (1,111 once invoked), scanned A, original, MIT.

A graph search for tracing where something came from through several connected steps. A hop means one relationship from one graph node to the next.

In plain words
What is it for?
Use it to trace the origins of an item, such as a reagent lot, through allowed links like used in, produces, and derived from, while recording each path.
Why use it?
It avoids building a separate database join for each additional step and limits the search to chosen relationship types and a set depth.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions Claude Code.

Good fit Use it to trace the origins of an item, such as a reagent lot, through allowed links like used in, produces, and derived from, while recording each path.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ayeshakhalid192007-dev/graph-engineering-crash-course/traverse-multi-hop
Install

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.

Any agent
npx skills add ayeshakhalid192007-dev/graph-engineering-crash-course --skill traverse-multi-hop
Clone the repo
git clone --depth 1 https://github.com/ayeshakhalid192007-dev/graph-engineering-crash-course

Made for: Claude Code.

Wrote 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.

agentmods badge for traverse-multi-hop

README.md
[![agentmods](https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/traverse-multi-hop/github.svg)](https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/traverse-multi-hop)
Your own site
<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/traverse-multi-hop"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/traverse-multi-hop/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.

agentmods 80×15 button for traverse-multi-hop

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/traverse-multi-hop"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/traverse-multi-hop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,111 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01111
Opus 5 $0.00026 $0.00556
Sonnet 5 $0.00010 $0.00222
Haiku 4.5 $0.00005 $0.00111

Measured 10d ago against content hash 0270502345e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

traverse-multi-hop 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 10d 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.

starters/neo4j-at-scale/.claude/skills/traverse-multi-hop/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

traverse-multi-hop

Given a starting node and a lineage question, follows only a named set of relationship types outward to a bounded depth, tags every node reached with its hop count and the exact path that reached it, and reports the deepest hop the traversal actually needed — without walking into an unrelated part of the graph or looping on a cycle.

Instructions

You are a Claude Code skill implementing the neo4j-at-scale pattern. Follow these steps in order:

  1. Take the starting node and the traversal question as given. Default to reagent lot RL-2291 and this kit's derivation question in README.md unless told otherwise. Do not express this as a fixed-depth join or a recursive relational query — treat it as a single variable-length path match against native graph storage, since the entire reason this pattern exists is that relational joins get more expensive with every added hop while native traversal does not.
  2. Name the exact relationship types the traversal is allowed to follow, and the direction each one traverses in. Default to USED_IN, PRODUCES, and DERIVED_FROM as given in README.md. Do not follow a relationship type that isn't on this list, even if it happens to connect two nodes that are also connected through an allowed path — an unrelated edge crossing the same two nodes is not part of the lineage being traced.
  3. Set an explicit upper bound on hop depth for the traversal (e.g. *1..10). Native traversal doesn't degrade with depth the way relational joins do, but an unbounded match can still wander into an unrelated, distant part of the graph if the allowed relationship types turn out to be looser than intended — the bound is a safety limit, not a performance workaround.
  4. Guard against cycles. A derivation graph like this one should be acyclic, but a bookkeeping error could introduce one. If the traversal would revisit a node already on its current path, detect and report that as a cycle rather than looping or silently truncating the results.
  5. Do not include a node reached only by a property coincidence — sharing a date, a facility, or any other attribute with a node on the path is not itself a relationship. Only nodes reached by walking an allowed relationship type, in the allowed direction, count as part of the traversal's results.
  6. Tag every node reached with its hop count and the specific sequence of relationship types that reached it — "used directly" (hop 1) must stay distinguishable from "three derivation steps removed" (hop 3) in the output, not collapsed into one flat list.
  7. Report the deepest hop the traversal actually needed for this run, separately from the configured upper bound, so a reader can see how far the real chain reached without having to count entries.

Read the full file on GitHub · 100 lines

Changes

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.

  1. 10d ago First seen · 100 lines · 51 tokens per session scan A 0270502345e0

Subscribe to this mod's changes

traverse-multi-hop is a skill published in the GitHub repository ayeshakhalid192007-dev/graph-engineering-crash-course (5 stars, last pushed 14d ago), licensed MIT. It adds 51 tokens to every session and 1,111 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

building-agents

Use when building or restructuring an LLM agent — provider adapter, tool calling, structured output, RAG, agent loop, eval gate, cost routing, tracing, MCP server — model-agnostic across OpenAI/Anthropic/Gemini/OSS so a model swap is a config change. NOT vector-store SQL alone (that is postgresdb) or service…

ericrisco/rsc-harness · 85 tokens

mongodb

Use when modeling MongoDB documents (embed versus reference, the 16MB cap, bucket and subset patterns), choosing or fixing indexes (compound order by the ESR rule, partial, TTL, multikey, reading explain), writing aggregation pipelines that stay index-eligible, running multi-document transactions with retry, or…

ericrisco/rsc-harness · 118 tokens

postgresdb

Use when PostgreSQL engine behaviour decides the answer — schema and type design, index choice, reading EXPLAIN on a slow query, zero-downtime DDL and backfills, or ops (roles, RLS, pooling, vacuum, partitioning, PITR). PG16, ORM-agnostic. NOT portable query logic (that is sql), NOT a managed provider's platform…

ericrisco/rsc-harness · 91 tokens

db-migrations

Use when a schema change must ship without downtime — NOT NULL, rename, type change, or backfilling millions of live rows — for the expand-contract sequence and the lock/batching discipline that keeps each step from freezing prod. NOT lock internals or EXPLAIN (that is postgresdb), NOT drizzle-kit mechanics (that is…

ericrisco/rsc-harness · 90 tokens

firebase

Use when building on Firebase — Firestore data modeling, Security Rules, Auth and custom claims, Cloud Functions, Storage, modular Web/Admin SDK imports — including symptoms like a database open to the internet, a query rejected by rules, or a doc stuck at 1 write/sec. NOT managed-Postgres BaaS with SQL and RLS (that…

ericrisco/rsc-harness · 77 tokens

neon

Use when you have picked Neon (serverless Postgres) and need to connect correctly from a serverless or edge runtime, wire database branching into dev, preview and CI, or stop being burned by scale-to-zero cold starts and pooler limits — including choosing HTTP versus WebSocket connections and pooled versus direct…

ericrisco/rsc-harness · 93 tokens