dm-graph-traversal

dm-graph-traversal is a skill for Claude Code from cognitedata/builder-skills. It costs 53 tokens per session (2,921 once invoked), scanned A, original, Apache-2.0.

A skill for reading related data in Cognite Data Fusion, a platform for organizing industrial data. It explains when to follow relationships between data objects and how to handle paging and duplicates.

In plain words
What is it for?
Use it to design and troubleshoot graph-based data queries, relationship traversals, pagination, deduplication, and tests in JavaScript or TypeScript.
Why use it?
It prevents incorrect results caused by confusing a single-item lookup with a relationship-based search or by merging pages incorrectly.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to design and troubleshoot graph-based data queries, relationship traversals, pagination, deduplication, and tests in JavaScript or TypeScript.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cognitedata/builder-skills/dm-graph-traversal
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 cognitedata/builder-skills --skill dm-graph-traversal
Clone the repo
git clone --depth 1 https://github.com/cognitedata/builder-skills

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 dm-graph-traversal

README.md
[![agentmods](https://agentmods.dev/badge/skills/cognitedata/builder-skills/dm-graph-traversal/github.svg)](https://agentmods.dev/skills/cognitedata/builder-skills/dm-graph-traversal)
Your own site
<a href="https://agentmods.dev/skills/cognitedata/builder-skills/dm-graph-traversal"><img src="https://agentmods.dev/badge/skills/cognitedata/builder-skills/dm-graph-traversal/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 dm-graph-traversal

Your own site · 80×15
<a href="https://agentmods.dev/skills/cognitedata/builder-skills/dm-graph-traversal"><img src="https://agentmods.dev/badge/skills/cognitedata/builder-skills/dm-graph-traversal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,921 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00053 $0.02921
Opus 5 $0.00026 $0.01460
Sonnet 5 $0.00011 $0.00584
Haiku 4.5 $0.00005 $0.00292

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

Security

Grade A, and why

dm-graph-traversal 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.

The scan reads SKILL.md. This mod also ships 1 executable file (code/validate-query-parity.cjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/dm-graph-traversal/SKILL.md · 360 lines

How it starts

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

DM Graph Traversal

Outcome

Ship correct, maintainable, graph-native CDF Data Model reads.

This skill turns query/list ambiguity into a deterministic workflow:

  1. Decide whether the read is graph-native.
  2. Build safe instances/query payloads.
  3. Validate traversal semantics and cursor behavior.
  4. Encode merge/dedupe policy explicitly.
  5. Lock behavior with payload-shape tests.

Decision Tree: instances/query vs instances/list

Use instances/query when any is true:

  • You start from one node type and need related nodes/edges.
  • You need reverse relation traversal (direction, through, from).
  • You would otherwise do multiple list calls and stitch results client-side.
  • You need step-specific pagination and relationship-aware filtering.

Use instances/list when all are true:

  • Single node/edge type lookup.
  • No traversal intent.
  • Flat filtering is sufficient.

Heuristic:

  • "If this read needs graph context, it is a query."

Search-First Entry Pattern

When user intent is discovery/ranking (for example free-text name matching), prefer:

  1. instances.search to find/rank candidate anchors.
  2. instances.query to hydrate graph-related details for those anchors.

Why:

  • Search APIs are better for ranking and fuzzy discovery.
  • Query APIs are better for explicit graph traversal and constrained joins.
  • This avoids broad traversal scans when the first step is actually discovery.

Operating Mode (Hard Rule)

  • Default to Node.js/TypeScript workflows for parity checks, examples, and validator tooling.
  • Use code/validate-query-parity.cjs for payload validation in all normal cases.
  • Do not introduce Python parity scripts by default in TypeScript repositories.
  • Use Python-based validation only if the user explicitly requests Python or no viable Node.js path exists.

This skill is the source of truth for graph query correctness (traversal shape, refs, relation direction, and payload guardrails).

Read the full file on GitHub · 360 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 · 360 lines · 53 tokens per session scan A da70850da2db

Subscribe to this mod's changes

dm-graph-traversal is a skill published in the GitHub repository cognitedata/builder-skills (6 stars, last pushed 3d ago), licensed Apache-2.0. It adds 53 tokens to every session and 2,921 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

event-store-design

Design and implement event stores for event-sourced systems. Use when building event sourcing infrastructure, choosing event store technologies, or implementing event persistence patterns.

wshobson/agents · 33 tokens

convex-explain-app

Explain an existing Convex app — data model + relationships, public vs internal functions, auth/ownership model, components, a request→data flow — read from the schema and function surface. Read-only.

openclaw/clawhub · 47 tokens

platform-custom-field-generate

Use this skill when users need to create, generate, or validate Salesforce Custom Field metadata. Trigger when users mention custom fields, field types, Roll-up Summary fields, Master-Detail relationships, Lookup relationships, formula fields, picklists, dependent (controlling) picklists, referencing a value set from…

forcedotcom/sf-skills · 194 tokens

field-service-sobject-create-configure

Headless 360 REST API deployment step for creating sObject records. Handles describe-based field discovery, required-field derivation, entity-relationship ordering, and composite graph transactions. Use this skill when a designer skill (or a user directly) needs to create sObject records after design confirmation…

forcedotcom/sf-skills · 74 tokens

durable-objects

Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.

fcakyon/claude-codex-settings · 22 tokens

nornicdb-grpc

Drive NornicDB over gRPC — the Qdrant-compatible surface (Collections, Points, Snapshots) plus the additive NornicSearch service. Use when ingesting via Qdrant SDKs, migrating from Qdrant, or running hybrid text+vector search from a non-Bolt client. Covers connection, RPC catalog, collection→database mapping…

orneryd/NornicDB · 98 tokens