rig-onboard

An onboarding tool that examines a project, creates its project profile, and installs selected Rig skills, agents, scripts, and continuous-integration workflows.

In plain words
What is it for?
Use it to detect a project's technology stack, set up Rig, choose the pieces to install, and prepare the project for Rig-based work.
Why use it?
It removes the manual work of adapting Rig to an unfamiliar codebase. The setup is agreed with the user and left documented in the project.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/agent-rig/rig/rig-onboard
Any agent
npx skills add agent-rig/rig --skill rig-onboard
Clone the repo
git clone --depth 1 https://github.com/agent-rig/rig

Made for: Claude Code, Codex.

Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,223 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00067 $0.03223
Opus 5 $0.00034 $0.01612
Sonnet 5 $0.00013 $0.00645
Haiku 4.5 $0.00007 $0.00322

Measured 2d ago against content hash 8ca976c89830, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rig-onboard 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 2d 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.

skills/rig-onboard/SKILL.md · 210 lines

How it starts

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

Rig onboarding

You are onboarding the current working project (the "target") into Rig. Your job is to detect what the project is, agree a project profile with the user, copy in the pieces they want, and leave them with a working, documented setup. Be interactive but efficient — detect aggressively, ask only what you cannot infer.

0. Locate the kit (RIG_DIR)

The kit lives in a directory (RIG_DIR) separate from the target project — you copy files out of it. Resolve RIG_DIR in this order:

  1. An explicit local path in the invocation args.

  2. This skill's own location (.../rig/skills/rig-onboard/) → RIG_DIR is two levels up (the repo root that contains skills/, agents/, ci/).

  3. ~/dev/rig, then ~/rig.

  4. Remote (the zero-setup path). If none of the above exist — which is the case when the user just pointed you at a GitHub URL for this skill — clone the kit to a temp dir and use that as RIG_DIR:

    RIG_DIR="$(mktemp -d)/rig"
    git clone --depth 1 <RIG_REPO_URL> "$RIG_DIR"
    

    Derive <RIG_REPO_URL> from the URL you were given: strip any /blob/<branch>/… or raw.githubusercontent.com/… suffix back to the repo root (e.g. https://github.com/agent-rig/rig). Cloning is strongly preferred over fetching files one-by-one — the kit is ~40 small text files and a shallow clone grabs them all at once. If git isn't available, fall back to fetching individual raw files as you need them.

Then confirm the resolved RIG_DIR with the user before copying anything. Never copy a file onto itself — if the target project is the kit, stop and say so.

1. Detect the stack (no questions yet)

Read, don't ask. Gather:

  • Runtime / package manager: presence of bun.lockb/bunfig.toml → bun; pnpm-lock.yaml → pnpm; yarn.lock → yarn; package-lock.json → npm; else inspect package.json. Note the monorepo tool (turbo.json, nx.json, workspaces) and package layout (packages/*, apps/*).
  • Test command: read package.json scripts (test, test:integration, test:e2e). Detect whether tests boot a database (docker in test setup, testcontainers, a test-setup.ts preload, a Postgres dep).
  • VCS: git remote get-url originproject.repo; git symbolic-ref refs/remotes/origin/HEAD or the default branch → vcs.defaultBranch + vcs.baseRef. Check branch protection / merge queue only if gh is available.
  • Tracker: is a Linear MCP server connected? Do existing branch names / recent PR titles carry a ticket prefix (e.g. ABC-123)? If neither, default tracker.provider: "none".
  • Review bot: scan recent PRs (if gh available) for a bot reviewer ("codex", "claude"). Otherwise review.bot: "none".
  • Agent(s) / delivery target: which coding agent does this project use? Map from repo markers to delivery targets (may be more than one):
    • .claude/ or CLAUDE.mdclaude-code (native: .claude/skills/, .claude/agents/).
    • AGENTS.md, .agents/, .cursor/, .github/copilot-instructions.md, GEMINI.md, or .windsurf/agents-md (universal: skills land in .agents/skills/<name>/ — the standard cross-agent "Agent Skills" layout that Codex, Cursor, Gemini CLI, Copilot, and Rovo Dev auto-discover natively, so no per-skill index file is needed; agents/scripts/review patterns stay under .rig/, the same home as the config profile, since nothing else standardizes those; plus a minimal ## Rig pointer block injected into AGENTS.md). If none detected, default to claude-code; if unsure, ask.
    • .pi/pi (pi: skills go to .agents/skills/, which pi scans natively; personas to .pi/agents/ in pi-subagents frontmatter; a /rig dispatcher to .pi/prompts/). Detect alongside the others — a repo worked on from both Claude Code and pi wants both targets.
  • Existing .claude/ or .agents/skills/: note any skills/agents already present so you can warn before overwriting. Also check for a legacy .rig/skills/*.md flat-file layout from a pre-.agents/skills/ onboarding — see "Re-running" below.

Read the full file on GitHub · 210 lines

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. 2d ago First seen · 210 lines · 67 tokens per session scan A 8ca976c89830

Subscribe to this mod's changes

rig-onboard is a skill published in the GitHub repository agent-rig/rig (2 stars, last pushed 16d ago), licensed MIT. It adds 67 tokens to every session and 3,223 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

hooksmith

Use when designing or reviewing safe Grok Build hooks for linting, tests, formatting, notifications, command guards, lifecycle automation, or project hook trust decisions.

DominikTobureto/awesome-grok-build · 35 tokens

github-actions

GitHub Actions workflow review, scaffolding, and security hardening. Use when user says 'review my workflow', 'check my actions', 'scaffold a workflow', 'is my CI correct', 'pin actions', 'OIDC to AWS', or when working in .github/workflows/.yml files.

anmolnagpal/devops-skills · 66 tokens

ci

GitLab CI/CD pipeline review and scaffolding for Terraform and Helm/EKS deployments, including individual stages, jobs, manual gates on prod stages, and pipeline credentials. Use when user says 'review my pipeline', 'check my gitlab-ci', 'scaffold a pipeline', 'is my CI correct', 'is my pipeline gated before prod'…

anmolnagpal/devops-skills · 137 tokens

e2e-failure-paths

Validate pipeline behavior under failure conditions. Use when simulating test failures, SAST failures, build failures, validating no GitOps update occurs, or checking error propagation.

paruff/uFawkesAI · 41 tokens

e2e-happy-path

Validate the full pipeline success path from commit to deployment. Use when triggering a full CI pipeline run, validating build artifacts, GitOps update, reconciliation, deployment, or running smoke tests.

paruff/uFawkesAI · 44 tokens

pipeline-execution-validation

Validate that the CI pipeline executes all required stages correctly. Use when validating type-check, lint, SAST, build, test, and release stages, or validating artifact generation.

paruff/uFawkesAI · 40 tokens