rai-predictive-modeling

rai-predictive-modeling is a skill for Claude Code from RelationalAI/rai-agent-skills. It costs 94 tokens per session (5,936 once invoked), scanned A, original, Apache-2.0.

A guide for building graph neural network models with RelationalAI and Snowflake. A graph neural network learns from entities and their relationships, such as customers linked to orders or people linked to organizations.

In plain words
What is it for?
Use it to define concepts, load Snowflake data, build graph edges, configure training and validation relationships, and set up PropertyTransformer features for node classification, regression, or link prediction.
Why use it?
Relationship-based data needs more than ordinary rows and columns. This guide explains how to load data, create graph connections, define prediction tasks, and configure input features before training.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rai plugin — 12 skills shipped together

Good fit Use it to define concepts, load Snowflake data, build graph edges, configure training and validation relationships, and set up PropertyTransformer features for node classification, regression, or link prediction.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/relationalai/rai-agent-skills/rai-predictive-modeling
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 RelationalAI/rai-agent-skills --skill rai-predictive-modeling
Clone the repo
git clone --depth 1 https://github.com/RelationalAI/rai-agent-skills

Made for: Claude Code.

Or install rai, the plugin that ships this one along with the rest of its 12 skills.

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 rai-predictive-modeling

README.md
[![agentmods](https://agentmods.dev/badge/skills/relationalai/rai-agent-skills/rai-predictive-modeling/github.svg)](https://agentmods.dev/skills/relationalai/rai-agent-skills/rai-predictive-modeling)
Your own site
<a href="https://agentmods.dev/skills/relationalai/rai-agent-skills/rai-predictive-modeling"><img src="https://agentmods.dev/badge/skills/relationalai/rai-agent-skills/rai-predictive-modeling/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 rai-predictive-modeling

Your own site · 80×15
<a href="https://agentmods.dev/skills/relationalai/rai-agent-skills/rai-predictive-modeling"><img src="https://agentmods.dev/badge/skills/relationalai/rai-agent-skills/rai-predictive-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,936 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.
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.00094 $0.05936
Opus 5.5 $0.00038 $0.02374
Sonnet 5.5 $0.00019 $0.01187
Haiku 4.5 $0.00009 $0.00594

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

Security

Grade A, and why

rai-predictive-modeling 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 17d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (examples/link_prediction_snowflake.py, examples/node_classification_snowflake.py, examples/regression_snowflake.py), 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.

plugins/rai/skills/rai-predictive-modeling/SKILL.md · 382 lines

How it starts

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

Predictive Modeling

Early access. The RAI predictive reasoner (GNN) is in early access — APIs, engine requirements, and behavior may change. Confirm the latest surface with the RelationalAI team before production use.

Summary

What: Data modeling workflow for GNN pipelines -- from imports through graph construction and feature configuration.

When to use:

  • Defining concepts and loading data from Snowflake
  • Building graph structure (edges, self-references)
  • Configuring task relationships (train/val/test splits)
  • Setting up PropertyTransformer features
  • Building the predictive layer on an existing rai-ontology model

When NOT to use:

  • Training, predictions, evaluation, model management -- see rai-predictive-training
  • Graph algorithms (centrality, community detection) -- see rai-graph-analysis
  • Zero-shot / no-training-step prediction with RelFM -- the Graph/PropertyTransformer setup below also feeds RelFM directly (see rai-predictive-training § RelFM); single-table RelFMTabular needs no graph at all, see rai-predictive-training's references/relfm-flat-mode.md

Overview: 6 steps: imports -> concepts -> populate -> task relationships -> graph -> features. When an ontology already exists, steps 1-3 reuse its model and concepts (§ Starting from an Existing Ontology).


Prerequisites

Experiment schema setup (one-time, ACCOUNTADMIN)

GNN training writes experiment artifacts to a Snowflake schema. Create a database and schema you own, then grant the RELATIONALAI native app the four required privileges:

CREATE DATABASE IF NOT EXISTS <YOUR_DB>;
CREATE SCHEMA   IF NOT EXISTS <YOUR_DB>.<YOUR_SCHEMA>;

GRANT USAGE             ON DATABASE <YOUR_DB>                         TO APPLICATION RELATIONALAI;
GRANT USAGE             ON SCHEMA   <YOUR_DB>.<YOUR_SCHEMA>           TO APPLICATION RELATIONALAI;
GRANT CREATE EXPERIMENT ON SCHEMA   <YOUR_DB>.<YOUR_SCHEMA>           TO APPLICATION RELATIONALAI;
GRANT CREATE MODEL      ON SCHEMA   <YOUR_DB>.<YOUR_SCHEMA>           TO APPLICATION RELATIONALAI;

Read the full file on GitHub · 382 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 17d ago Changed · +12 lines 36f55ebef806
  2. 1mo ago Changed · +5 lines aac5dce22199
  3. 3mo ago Changed · +31 tokens per session b1ed907937cf
  4. 3mo ago First seen · 365 lines · 63 tokens per session scan A cfcfbbf62824

Subscribe to this mod's changes

rai-predictive-modeling is a skill published in the GitHub repository RelationalAI/rai-agent-skills (5 stars, last pushed 18d ago), licensed Apache-2.0. It adds 94 tokens to every session and 5,936 once invoked, about $0.0004 per session on Opus 5.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

rai-predictive-modeling compared with skills from other repositories

rai-predictive-modeling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rai-predictive-modelingRelationalAI/rai-agent-skillsSkill518d agoApache-2.0A94Claude Code
arboretoK-Dense-AI/scientific-agent-skillsSkill60k5d agoMITA55Claude Code, Codex
deepspot-mK-Dense-AI/scientific-agent-skillsSkill60k5d agoMITA70Claude Code
torchdrugK-Dense-AI/scientific-agent-skillsSkill60k5d agoMITA64Claude Code
pyhealthK-Dense-AI/scientific-agent-skillsSkill60k5d agoMITA84Claude Code, Codex
nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skillsSkill4.3ktodayApache-2.0A56Claude Code
tao-validate-recipe-transferNVIDIA/skillsSkill4.3ktodayApache-2.0A179Claude Code