graph-viewer

graph-viewer is a skill for Claude Code, Codex from cognitedata/builder-skills. It costs 51 tokens per session (1,249 once invoked), scanned A, original, Apache-2.0.

A reusable viewer for exploring relationships in a Cognite Data Fusion knowledge graph, showing data-model nodes, links, and related instances. A knowledge graph stores connected objects and the relationships between them.

In plain words
What is it for?
Use it to embed an interactive view of CDF data-model relationships, direct links, reverse links, and instances in a React Flows app.
Why use it?
It avoids building a graph display and its data connections from scratch. It is intended for CDF data models rather than general diagrams.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to embed an interactive view of CDF data-model relationships, direct links, reverse links, and instances in a React Flows app.

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

Made for: Claude Code, Codex.

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 graph-viewer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cognitedata/builder-skills/graph-viewer"><img src="https://agentmods.dev/badge/skills/cognitedata/builder-skills/graph-viewer.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,249 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
  • Socket pass 8 May 2026
  • Snyk pass 8 May 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.00051 $0.01249
Opus 5 $0.00026 $0.00624
Sonnet 5 $0.00010 $0.00250
Haiku 4.5 $0.00005 $0.00125

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

Security

Grade A, and why

graph-viewer 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 8d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (code/graph-config.ts, code/graph-service.ts, code/index.ts, …), 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/graph-viewer/SKILL.md · 104 lines

How it starts

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

Graph Viewer

Use This When

The user wants to embed an interactive graph of a CDF data model — nodes, direct relations, edges, and reverse relations — inside a Flows app.

Do not use this skill for static diagrams, pure dataflow visualizations, or non-CDF graphs.

Prerequisites

  • The app is wrapped in @cognite/dune's <DuneProvider> so useDune() returns an authenticated SDK.
  • The target data model exists in CDF and you know its space, externalId, and version.
  • The app uses React 18+ and TypeScript.

Integration Workflow

Follow these steps in order. Adapt to the target repo's conventions instead of inventing new ones.

  1. Inspect the target app. Read package.json and look at the existing folder structure (e.g. src/features/*, src/components/*, path aliases like @/*).

  2. Install missing dependencies with the app's package manager (npm, pnpm, yarn, …). See the Dependencies table below for purposes and suggested versions. Reuse the React version already pinned by the app rather than upgrading it, and prefer any versions the repo already pins over the suggestions here.

  3. Copy the bundle into the app. Copy every file from skills/graph-viewer/code/ into an app-local feature folder, for example:

    src/features/graph-viewer/
    

    If the repo already has a different feature/components layout or alias, mirror it.

  4. Import from the local folder, never from @skills/.... With a typical @/* alias:

    import { useGraphViewer } from "@/features/graph-viewer";
    
  5. Render GraphCanvas inside a container with explicit dimensions (height is required — see the minimal example below).

  6. Run typecheck and build (tsc --noEmit, npm run build, etc.) and fix any path or type issues introduced by the copy.

Minimal Example

import { useGraphViewer } from "@/features/graph-viewer";

export function GraphPanel() {
  const { GraphCanvas, isLoading, error } = useGraphViewer({
    dataModel: { space: "my-space", externalId: "my-data-model", version: "1" },
    instance: { space: "my-instance-space", externalId: "pump-001" },
  });

  if (isLoading) return <div>Loading graph…</div>;
  if (error) return <div>Error: {error}</div>;

  return <GraphCanvas className="h-[600px] w-full" />;
}

Read the full file on GitHub · 104 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. 8d ago First seen · 104 lines · 51 tokens per session scan A 1d7cb14d07ba

Subscribe to this mod's changes

graph-viewer is a skill published in the GitHub repository cognitedata/builder-skills (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 51 tokens to every session and 1,249 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

claude-api-in-prototypes

Call Claude from your HTML artifacts via window.claude.complete.

asgeirtj/system_prompts_leaks · 19 tokens

langchain

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering systems, autonomous agents, or RAG…

davila7/claude-code-templates · 79 tokens

core

Core package for defining schemas, catalogs, and AI prompt generation for json-render. Use when working with @json-render/core, defining schemas, creating catalogs, or building JSON specs for UI/video generation.

vercel-labs/json-render · 42 tokens

playwright

Playwright E2E testing patterns. Trigger: When writing Playwright E2E tests (Page Object Model, selectors, MCP exploration workflow). For Prowler-specific UI conventions under ui/tests, also use prowler-test-ui.

prowler-cloud/prowler · 50 tokens

thinking-orbs

Add accessible animated AI loading and agent-status indicators with the React thinking-orbs library. Use when a chat, copilot, voice, search, generation, or tool-running interface needs a semantic working, searching, solving, listening, composing, or shaping state; when replacing a generic spinner with an AI activity…

MengTo/Skills · 88 tokens

globe-gl

Use when implementing globe.gl (Globe.GL) for 3D globe data visualization with WebGL/ThreeJS, including setup, data layers (points, arcs, polygons, labels), and integration patterns in plain HTML or React.

MengTo/Skills · 51 tokens