Skills Plugins MCP Prompt Model 博客 我的中心

graph-viewer

Integrate the reusable CDF graph viewer (useGraphViewer) into a Flows app by copying the local code bundle. Use when embedding a graph visualization, adding a knowledge graph, or showing CDF data model relationships and instances.

DeepseekModel キュレーション済みスキル 品質 良好 · 64 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=cognitedata-builder-skills-skills-graph-viewer-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name graph-viewer description Integrate the reusable CDF graph viewer (useGraphViewer) into a Flows app by copying the local code bundle. Use when embedding a graph visualization, adding a knowledge graph, or showing CDF data model relationships and instances. 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. Inspect the target app. Read package.json and look at the existing folder structure (e.g. src/features/* , src/components/* , path aliases like @/* ). 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. 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. Import from the local folder , never from @skills/... . With a typical @/* alias: import { useGraphViewer } from "@/features/graph-viewer" ; Render GraphCanvas inside a container with explicit dimensions (height is required — see the minimal example below). 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" /> ; } Dependencies Suggested versions reflect the latest published majors at the time of writing. They are starting points — if the target app already pins different versions, defer to the app. Package Suggested version Purpose react ^18.2.0 UI framework (peer; reuse the app's version) @cognite/sdk ^10.10.0 CDF API client (instances, data models) @cognite/dune ^2.1.0 Provides the authenticated SDK via useDune() reagraph ^4.30.8 WebGL graph rendering engine lucide-react ^1.14.0 Icon set used by the node-type legend Example install (npm; adapt to the app's package manager): npm install @cognite/sdk@^10.10.0 @cognite/dune@^2.1.0 reagraph@^4.30.8 lucide-react@^1.14.0 CDF Cost & Performance Graph expansion can issue many CDF requests, especially with reverse relations. For large or unfamiliar data models, be conservative: Set whitelistedRelationProps to the few properties the app actually needs to traverse. Lower initialConnectionLimit (it is a hard maximum of connections fetched per expansion). Lower maxNodes to bound the in-memory LRU buffer. Only declare coreReverseQueries for relations the app must surface; each entry adds an extra query per expansion. Tuples in coreReverseQueries are version-aware : [space, viewExternalId, viewVersion, propertyName, isList] . Advanced Reference For full configuration tables, return-value docs, layouts, theming, and richer examples, read code/README.md . For implementation details, inspect the source files under code/ . Verification Checklist The app is wrapped in <DuneProvider> . All files from skills/graph-viewer/code/ were copied into an app-local folder. Imports point to the app-local folder (e.g. @/features/graph-viewer ), not @skills/... . @cognite/dune , @cognite/sdk , reagraph , and lucide-react are present in package.json . The container that renders <GraphCanvas> has an explicit height. tsc --noEmit and the app's build both pass. No references to dune-industrial-components were introduced.
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。