rig

rig is a skill for Claude Code from vinnie357/claude-skills. It costs 110 tokens per session (1,287 once invoked), scanned A, original, MIT.

A guide for using Rig, a Rust library for building applications with large language models, tools, structured outputs, and retrieval pipelines.

In plain words
What is it for?
It helps create provider clients and agents, add tools, build retrieval-augmented generation pipelines, stream responses, and use MCP integrations.
Why use it?
It gives developers the setup and usage details needed to connect model providers and build LLM features in Rust.

Skill for Claude Code

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

Part of the rig plugin — 1 skill shipped together

Good fit It helps create provider clients and agents, add tools, build retrieval-augmented generation pipelines, stream responses, and use MCP integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vinnie357/claude-skills/rig
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 vinnie357/claude-skills --skill rig
Clone the repo
git clone --depth 1 https://github.com/vinnie357/claude-skills

Made for: Claude Code.

Or install rig, the plugin that ships this one along with the rest of its 1 skill.

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 rig

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vinnie357/claude-skills/rig"><img src="https://agentmods.dev/badge/skills/vinnie357/claude-skills/rig.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,287 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00110 $0.01287
Opus 5 $0.00055 $0.00643
Sonnet 5 $0.00022 $0.00257
Haiku 4.5 $0.00011 $0.00129

Measured 4d ago against content hash 2239d623ec21, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rig 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 4d 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/tools/rig/skills/rig/SKILL.md · 121 lines

How it starts

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

Rig

Rig (crate rig-core) is a Rust library for building LLM-powered applications: provider clients, agents with tools, structured extractors, RAG pipelines, and streaming completions. This skill covers rig-core 0.40.0, workspace edition 2024, repo-pinned toolchain 1.94.0.

Setup

cargo add rig-core

Feature flags relevant to agent work:

  • derive — enables the rig-derive macros (schema derivation for tool/extractor types)
  • rmcp — enables MCP (Model Context Protocol) tool integration via the rmcp crate
[dependencies]
rig-core = { version = "0.40", features = ["rmcp"] }

derive and reqwest/rustls ship in rig-core's default feature set; add rmcp explicitly for MCP tools.

AgentBuilder quickstart

Every provider client exposes .agent(model), returning an AgentBuilder:

use rig_core::prelude::*;
use rig_core::providers::anthropic;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = anthropic::Client::from_env()?;

    let agent = client
        .agent(anthropic::completion::CLAUDE_SONNET_4_6)
        .preamble("Answer concisely.")
        .temperature(0.0)
        .build();

    let answer = agent.prompt("What is Rig?").await?;
    println!("{answer}");
    Ok(())
}

from_env() reads provider credentials from environment variables — no API key touches application code. .agent() takes impl Into<String> for the model argument: a provider module constant (anthropic::completion::CLAUDE_SONNET_4_6) or a raw string both work. See references/providers.md for the constants available per provider and the env-var contract each from_env() reads.

Hybrid multi-provider harness

A single Rust process commonly needs several models at once — a cheap model for extraction, a mid-tier model for the main loop, a strong model for review, one of them local. Rig provides the primitives (clients, AgentBuilder, the CompletionModel trait) — it does not ship a built-in multi-tier harness type. The tier-selection pattern in references/providers.md is guidance built on those primitives, not a first-party rig recipe.

Read the full file on GitHub · 121 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. 4d ago First seen · 121 lines · 110 tokens per session scan A 2239d623ec21

Subscribe to this mod's changes

rig is a skill published in the GitHub repository vinnie357/claude-skills (25 stars, last pushed 3d ago), licensed MIT. It adds 110 tokens to every session and 1,287 once invoked, about $0.0006 per session on Opus 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-09-04.

Related

Other skills, from other repositories

golem-add-llm-rust

Adding LLM and AI capabilities to a Rust Golem agent. Use when the user wants to add LLM chat, embeddings, web search, vector DB, graph DB, document search, video generation, speech-to-text, text-to-speech, or any AI provider integration.

golemcloud/golem · 65 tokens

ax-rust-llm

Use when writing Rust code with axllm for using the generated Ax package, factory functions, package docs, examples, and API reference.

ax-llm/ax · 37 tokens

ax-rust-signature

Use when writing Rust code with axllm for string signatures, field descriptors, JSON schema output, validation, and typed tool argument shapes.

ax-llm/ax · 36 tokens

crate-structure

Map of the html-to-markdown workspace — the seven crates/ (core, cli, ffi, py, node, php, wasm) with the unsafecode forbid/override rule, the out-of-workspace language packages under packages/, and the primary convert() API with its ConversionResult shape, feature flags, and dual parser. Load when navigating…

xberg-io/html-to-markdown · 95 tokens

azure-search-documents-ts

Build search applications using Azure AI Search SDK for JavaScript (@azure/search-documents). Use when creating/managing indexes, implementing vector/hybrid search, semantic ranking, or building ag...

benjaminasterA/antigravity-awesome-skills · 43 tokens

qdrant

Manage Qdrant vector database via REST API. Use when the user asks to create or delete collections, upsert or search vectors, inspect points, filter by payload fields, manage snapshots, check cluster status, or debug semantic search issues. Covers collection CRUD, point upsert/search/scroll/count, payload indexes…

bug-ops/zeph · 88 tokens