neo4j-snowflake-graph-analytics-skill
БесплатноБез исполняемых скриптовНе проверенRun Neo4j Graph Analytics algorithms (PageRank, Louvain, WCC, Dijkstra, KNN, Node2Vec, FastRP, GraphSAGE) directly inside Snowflake without moving data. Use…
от neo4j★ 126 звёзд на GitHubОб этом скилле
Snowflake Native App — graph algorithm power inside Snowflake. Data stays in Snowflake; project into a graph, run algorithms via SQL CALL, results written back to Snowflake tables.
Docs: https://neo4j.com/docs/snowflake-graph-analytics/current/
When to Use
- Running graph algorithms / GDS in Snowflake
- Data already lives in Snowflake tables
- On-demand / pipeline workloads — ephemeral sessions, pay per session-minute
- Full isolation from the live database during analytics
When NOT to Use
- Aura Pro with embedded GDS plugin →
neo4j-gds-skill - Aura Graph Analytics →
neo4j-aura-graph-analytics-skill - Self-managed Neo4j with embedded GDS plugin →
neo4j-gds-skill - Writing Cypher queries →
neo4j-cypher-skill
The End-to-End Flow
This is the flow that works. Don't jump straight to a CALL — most failures come from skipping the data-preparation step.
- Explore the source data — inspect table DDLs to learn columns and types.
- Prepare projection views — create node/relationship views that expose the required key columns and cast every property to a supported type (see the strict rules below). This is the step that matters most.
- Project → Compute → Write — run the algorithm with a single
CALL, assembling theproject,compute, andwriteconfig. - Inspect & look up names — join numeric results back to the source table to get human-readable labels.
Step 1 — Explore the Source Data
Look at the table definitions before designing the graph:
SELECT GET_DDL('TABLE', 'MY_DATABASE.MY_SCHEMA.MY_TABLE');
-- or inspect columns/types:
SELECT COLUMN_NAME, DATA_TYPE
FROM MY_DATABASE.INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'MY_SCHEMA' AND TABLE_NAME = 'MY_TABLE';
Decide which tables are nodes and which represent relationships (edges) between them.
Step 2 — Prepare Projection Views (the important part)
The graph engine is strict about column names and types. Snowflake views inherit the source column type by default, so you MUST add explicit CASTs — never SELECT col without one for a property column.
Create views that reshape your tables into the node/relationship format:
CREATE OR REPLACE VIEW MY_DATABASE.MY_SCHEMA.MY_NODES_VW AS
SELECT ... FROM MY_DATABASE.MY_SCHEMA.MY_TABLE;
Node views
- Key column: expose the primary key as
NODEID. It must beBIGINTorSTRING. Always alias and cast explicitly:SOURCE_COL::BIGINT AS NODEIDorSOURCE_COL::STRING AS NODEID. - Allowed node property types (exactly):
BIGINT,DOUBLE,ARRAY,VECTOR(FLOAT, n). Anything else must be cast to one of these or dropped. - Composite keys: concatenate parts with
'++'. - Naming:
<table>_NODES_VW.
Source-type → view-type casting rules
Apply these when projecting columns from your tables (keep the original column name unless renaming):
| Source type | Action |
|---|---|
Whole-number numerics (INT, INTEGER, BIGINT, SMALLINT, TINYINT, BYTEINT, NUMBER(p,0)) |
CAST(col AS BIGINT) AS col |
Fractional numerics (FLOAT, DOUBLE, REAL, DECIMAL(p,s>0), NUMBER(p,s>0)) |
CAST(col AS DOUBLE) AS col |
ARRAY of numbers |
keep as ARRAY (except GraphSAGE — see below). Not allowed on relationship views. |
VECTOR(FLOAT, n) |
keep as-is. Not allowed on relationship views. |
BOOLEAN |
drop by default. Opt-in only: IFF(col, 1, 0)::BIGINT AS col |
DATE, TIME, TIMESTAMP* |
drop by default. Opt-in only: DATE_PART('EPOCH_SECOND', col)::BIGINT AS col (tell the user the unit) |
VARCHAR, CHAR, TEXT, STRING |
drop — can't be a graph property. To read results by name, join output back to the source table on the key (see Step 4) |
VARIANT, OBJECT, GEOGRAPHY, GEOMETRY, BINARY |
drop — not supported as graph properties |
Lowest-common-denominator policy: by default include only safe columns (numeric → BIGINT/DOUBLE, ARRAY, VECTOR). Booleans and time-like columns require explicit opt-in. When you drop columns, briefly tell the user which and why, so they can ask for them back.
Relationship views
- Key columns: expose
SOURCENODEIDandTARGETNODEID, cast with the same rules asNODEID(SOURCE_COL::BIGINT AS SOURCENODEID, etc.). Every value must match an existingNODEIDin a node view. - Allowed relationship property types (narrower):
BIGINT,DOUBLE,INTonly. NoARRAY, noVECTOR. (The docs describe relationship properties asFLOAT; the engine accepts these whole/fractional numeric casts and treats them as weights — keep them numeric.) - Naming:
<table>_RELATIONSHIPS_VW.
Example node + relationship views:
CREATE OR REPLACE VIEW MY_DATABASE.MY_SCHEMA.USER_NODES_VW AS
SELECT user_id::BIGINT AS NODEID,
CAST(age AS BIGINT) AS age,
CAST(balance AS DOUBLE) AS balance
FROM MY_DATABASE.MY_SCHEMA.USERS;
CREATE OR REPLACE VI
Установить neo4j-snowflake-graph-analytics-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashWebFetchВложенные файлы
FAQ
Что делает скилл neo4j-snowflake-graph-analytics-skill?
Run Neo4j Graph Analytics algorithms (PageRank, Louvain, WCC, Dijkstra, KNN, Node2Vec, FastRP, GraphSAGE) directly inside Snowflake without moving data. Use when running graph algorithms against Snowflake tables via the Neo4j Snowflake Native App ("GDS Snowflake", "graph algorithms in Snowflake", "Neo4j Graph Analytics"). Covers the explore → prepare projection views → project-compute-write flow, the strict view/column type rules the graph engine requires, exact SQL CALL syntax, and privilege setup in both modes — app-identity grants and execute-as-user / per-user PAT auth (programmatic access token, set_enable_custom_credentials, register_user_role, caller grants). Does NOT cover Cypher or Neo4j DBMS queries — use neo4j-cypher-skill. Does NOT cover Aura Graph Analytics — use neo4j-aura-graph-analytics-skill. Does NOT cover self-managed GDS — use neo4j-gds-skill.
Как установить скилл neo4j-snowflake-graph-analytics-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл neo4j-snowflake-graph-analytics-skill запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic