skills/rai-onboarding/SKILL.md
Guides first-time RelationalAI (RAI) setup end-to-end — install, connect to Snowflake, validate, and run a starter program. Use when starting a new RAI project or environment.
npx skillsauth add RelationalAI/rai-agent-skills rai-onboardingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build AI that is aligned to your business, grounded in your semantic model, and powered by the advanced reasoners of the RelationalAI decision intelligence platform. Learn more at relational.ai
This skill refers to the relationalai Python package aka PyRel. Ensure the package is installed in your environment.
This allows you to write PyRel programs and use the rai CLI tool.
What: Guides first-time setup of the RelationalAI platform — installing the Python package, connecting to Snowflake, validating the environment, and running a starter program.
When to use:
relationalai Python package or configuring the Snowflake connectionWhen NOT to use:
rai-pyrel-codingrai-ontology-designrai-configurationrai-discovery| Step | Action | Key Command |
|------|--------|-------------|
| 1 | Install package | pip install relationalai>=1.0.14 or uv add relationalai>=1.0.14 |
| 2 | Establish connection | Use existing Snowflake/DBT config or rai init |
| 3 | Validate connection | rai connect (check MFA) |
| 4 | Create sample program | Use inline data or user's domain |
| 5 | Propose next steps | Adapt to real data, enhance sample, or use project templates |
The RelationalAI Native App for Snowflake must be installed in your account by an administrator.
The rai_developer role is the standard role for running PyRel programs. Custom Snowflake roles can also work if granted the rai_user application role — see User Access for details.
Users are expected to be Snowflake users with existing credentials. Walk the user through the following steps one-by-one and in order. For each step, explain what it will accomplish and prompt the user for the necessary input for you to perform that step on their behalf.
pip install relationalai>=1.0.14
# or
uv add relationalai>=1.0.14
Check if the user has an existing Snowflake connection (~/.snowflake/config.toml) or DBT connection (~/.dbt/profiles.yml).
rai or a PyRel program directly.rai init to create a raiconfig.yaml. Use the rai-configuration skill to help the user fill out the required fields (account, warehouse, user, authenticator).Run rai connect to validate the configuration.
username_password_mfa or externalbrowser.rai-configuration skill for connection troubleshooting.Offer to create a small sample program using inline data.
Check if the user has a domain or analytical use case they want to see the sample in. Otherwise set up a generic use case for customer segmentation using graph analysis (see rai-graph-analysis examples).
Reference the pyrel-coding skill for syntax and rai-graph-analysis for graph patterns.
Ensure the sample runs and the user can see the output.
Offer to explain the different components of the program.
Now that the basics are in place, it's time to show off RelationalAI's potential. Propose either
| Mistake | Cause | Fix |
|---------------------------------------------------|--------------------------------------------------------------------------|---------------------------------------------------------------------|
| Errors about RelationalAI Native App not existing | Either the NA hasn't been installed, or the user's current role lacks access | Verify the Native App is installed and the current role has rai_developer or a custom role granted the rai_user application role |
rai-pyrel-coding: Write PyRel (use always)rai-ontology-design: Design PyRel models (use for modeling complicated domains & use cases)rai-discovery: Discover questions to answer or problems to solve — surfaces what the data can support and routes to the right reasoner workflowdata-ai
Configure and train graph neural network (GNN) models, generate predictions, evaluate results, and manage trained models. Use when ready to train, generate predictions, evaluate, or manage models; for concepts, data loading, edges, and feature configuration, see `rai-predictive-modeling`.
development
Build graph neural network (GNN) models — concepts, Snowflake data loading, task relationships, graph edges, and PropertyTransformer features. Use for node classification, regression, and link prediction tasks; for training, predictions, and evaluation, see `rai-predictive-training`.
development
Setup and configuration for RelationalAI — first-time install walkthrough and all raiconfig.yaml tuning. Use when installing RAI, connecting to Snowflake, or editing raiconfig.yaml. Not for writing PyRel model code (see rai-pyrel-coding) or solver usage and diagnostics (see rai-prescriptive-solver-management).
testing
Converts natural language business rules into PyRel derived properties — validation, classification, derivation, alerting, and reconciliation. Use whenever a task assigns each entity a new tier, segment, score, or flag, or derives a new property; author it here as a derived property, then query it with rai-querying.