rai-deployment

rai-deployment is a skill for Claude Code from RelationalAI/rai-agent-skills. It costs 114 tokens per session (3,160 once invoked), scanned A, original, Apache-2.0.

A deployment guide for moving a completed RelationalAI model into production through Snowflake. It covers deploying into a Snowflake schema or creating a Snowflake CoWork agent, including model versioning and lifecycle actions.

In plain words
What is it for?
Use it after building and validating a RelationalAI model when you need to deploy it, manage versions through the RAI models command-line tool, or deploy it as a Snowflake CoWork agent.
Why use it?
Moving a model from testing to production involves different deployment paths and controlled changes. This explains how to manage those steps, including branching, collaboration, merging, and teardown where supported.

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 after building and validating a RelationalAI model when you need to deploy it, manage versions through the RAI models command-line tool, or deploy it as a Snowflake CoWork agent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/relationalai/rai-agent-skills/rai-deployment
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-deployment
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-deployment

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/relationalai/rai-agent-skills/rai-deployment"><img src="https://agentmods.dev/badge/skills/relationalai/rai-agent-skills/rai-deployment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,160 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.00114 $0.03160
Opus 5.5 $0.00046 $0.01264
Sonnet 5.5 $0.00023 $0.00632
Haiku 4.5 $0.00011 $0.00316

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

Security

Grade A, and why

rai-deployment 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.

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-deployment/SKILL.md · 148 lines

How it starts

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

RelationalAI Deployment (Path to Prod)

Covers the path from a built RelationalAI model to production: the rai models CLI (schema deployment + lifecycle). Built on the relationalai package (PyRel).

Early access. Deploy mode and semantic model management — rai models deploy and teardown — are early-access features (documented in the RAI docs' early-access section); the API, messages, and defaults may still change. Op-log recording is on by default.

Summary

What: Everything between a built model and production. You've built and validated a model; this skill ships it: deploy into a Snowflake schema, iterate on it, track every change in the op log, and tear it down safely.

When to use:

  • Deploying a model to a Snowflake schema (rai models deploy) and understanding what the op log records
  • Developing against a dev schema — the redeploy loop, refresh status, deploy warnings, and diagnosing a failed refresh or deploy
  • Promoting a model from dev to prod (profiles, roles, CI)
  • Removing a deployed model (rai models teardown)
  • Upgrading a deployment from PyRel 1.x

When NOT to use:

  • First-time install, rai connect, or raiconfig.yaml auth/engine tuning — see rai-setup
  • Building or evolving the model itself (concepts, rules, queries) — see rai-ontology, rai-pyrel
  • Diagnosing engine performance or failed transactions — see rai-health

Overview: Read Quick Reference for the command surface, then Deploy for the foundation and The dev loop for how iteration and monitoring work, then load the reference matching the task (deploy and op log, dev loop/monitoring, deploy warnings, teardown, 1.x upgrade).


Prerequisites

  • relationalai at the minimum in rai-setup (rai --version).
  • A reachable Snowflake connection (rai connect passes) and a deployment: section naming both schemas: a fully qualified deployment.public_schema (DB.SCHEMA) for the model's published views and tables, and deployment.identity.internal_schema for its internal objects and metadata. A section missing either fails at config load, and deploy pre-flight rejects a bare public_schema. New projects use what rai models init generates (<public_schema>_INTERNAL); for a 1.x deployment, see Upgrading a 1.x deployment. For install/auth, see rai-setup.
  • A model to deploy — a .py model file or package, with model.path set in raiconfig.yaml (or pass --path). Its outputs need a refresh schedule (deployment.schedules + deployment.schedule) or deploy refuses with "Unscheduled Outputs".
  • PyRel queries kept out of the model definition — the model file is loaded whole at deploy time.
  • Prescriptive Problems deploy too (preview, Snowflake only): register each with problem.configure(...) instead of solve() (rai-prescriptive-problem > Deploy Mode) and set the four deployment.pat_* fields after the one-time setup in prescriptive-deploy-setup.md.

Read the full file on GitHub · 148 lines

Files

What ships with it

5 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 · -46 lines · -42 tokens per session 912f197a9692
  2. 1mo ago Changed · +37 lines · +33 tokens per session 28be52832a78
  3. 3mo ago First seen · 157 lines · 123 tokens per session scan A 8bb4ce0c1d03

Subscribe to this mod's changes

rai-deployment is a skill published in the GitHub repository RelationalAI/rai-agent-skills (5 stars, last pushed 18d ago), licensed Apache-2.0. It adds 114 tokens to every session and 3,160 once invoked, about $0.0005 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-deployment compared with skills from other repositories

rai-deployment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rai-deploymentRelationalAI/rai-agent-skillsSkill518d agoApache-2.0A114Claude Code
bigquery-migration-metadata-extractorgoogle/skillsSkill26ktodayApache-2.0A188Claude Code, Codex
cloud-databases-onboardinggoogle/skillsSkill26ktodayApache-2.0A83Claude Code, Codex
atlas-lakebaseariga/atlasSkill8.9k4d agoApache-2.0A140Claude Code
azure-resource-manager-mysql-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA87Claude Code
azure-mgmt-mongodbatlas-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA64Claude Code
azure-resource-manager-redis-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA114Claude Code