Copies a React hook and WebGL graph renderer into your Flows app so you can visualize CDF data model instances with their relations. You call useGraphViewer with a space, model ID, and instance, then drop the GraphCanvas component into a sized container. It fetches direct relations and optionally reverse relations through the Cognite SDK, rendering nodes and edges with reagraph. The main gotcha is cost: each expansion can fire multiple CDF queries, so the docs push you to whitelist only the relation properties you need and cap the connection limit. Good for embedding knowledge graphs in Dune apps, not for generic diagrams or non-CDF data.

skills.sh installs
1.9K
GitHub stars
6
last updated
Aug 21, 2026

Install

$ npx -y skills add cognitedata/builder-skills --skill graph-viewer --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Sponsors

Details

Repository
github.com/cognitedata/builder-skills
Categories
AI & Agent Building, Data Science & ML
First seen
Jun 3, 2026

More from cognitedata/builder-skills

All 26
1cognitedata avatarcreate-client-toolcognitedata/builder-skillsMUST be used whenever creating an AtlasTool (client-side tool) for an Atlas agent. Do NOT manually write AtlasTool definitions or wire them into useAtlasChat — 1.9Kskills.sh installs
2phuryn avatarintended-vs-implementedphuryn/pm-skillsThe method for finding the gap between what a system is supposed to do and what the code actually does — the class of bug generic scanners miss because they hav1.9Kskills.sh installs
3buildgreatproducts avatardesign-systembuildgreatproducts/builder-osTranslates an image (or a set of image references — screenshots, mockups, Figma URLs, live websites) into two mirrored design-system artifacts: `docs/design.md`1.9Kskills.sh installs
4mindrally avatardeep-learning-pytorchmindrally/skillsExpert guidance for deep learning, transformers, diffusion models, and LLM development with PyTorch, Transformers, Diffusers, and Gradio.1.9Kskills.sh installs
5brightdata avatarseo-auditbrightdata/skillsWhen the user wants to audit, review, or diagnose SEO issues on their site. Uses live web data via the Bright Data CLI for accurate detection of JS-injected sch1.9Kskills.sh installs
6nvidia avatarvss-deploy-detection-tracking-2dnvidia/skillsUse this skill when the user wants to deploy, run, debug, tear down, or call the REST API of the RTVI-CV 2D detection / tracking microservice. Trigger when the 1.8Kskills.sh installs