# Sorbet adoption

> Sorbet adoption is an open-source agent skill for developer tools. Guides a gradual rollout of Sorbet type checking across a Ruby or Rails app. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/sorah/config/tree/master/claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption
- **Repository:** https://github.com/sorah/config
- **GitHub stars:** 31
- **License:** MIT
- **Skill name:** sorbet-adoption
- **Collection:** https://github.com/sorah/config
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill is a playbook for moving an existing Ruby or Rails application to Sorbet strict typing through a sequence of reviewable pull requests. It walks the agent through surveying the repository, settling decisions such as scope and generated RBI placement, and setting up the shared infrastructure first. It then covers stamping file sigils, ordering typing work from the lowest dependency layer upward, and splitting each slice into annotation-only commits followed by any behaviour change.

The workflow also includes running per-slice work in parallel worktrees, integrating stacked branches with bottom-up type checks, and a review phase that audits casts and untyped sites. A final phase covers keeping the stack current after rebases and regenerating RBIs when dependencies change. It points to a companion sorbet skill for how the types themselves are written, and to a Steep-based skill for gems.

The skill expects a Ruby codebase with Git, mise, and Sorbet tooling such as tapioca and spoom, and it refers to the gh-stack workflow for branch and PR mechanics.

## When your agent uses it

> This skill should be used when introducing Sorbet static type checking to an existing Ruby or Rails application, or when continuing such a rollout. It applies when the user asks to "add type checking", "adopt Sorbet", "set up Sorbet and tapioca", "add RBS types to the codebase", "type the app gradually", "raise everything to typed: strict", or "plan typing PRs", or mentions a typing stack or issue in progress. Provides a proven rollout playbook: a repository survey, decisions to settle up front, the infra PR, sigil stamping, dependency-ordered slices as stacked PRs, parallel per-slice agents, serial integration, review, and keeping the stack current. Pair with the sorbet skill, which defines how the types themselves are written. For a Ruby library or gem, prefer Steep through the steep-adoption skill.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Ruby scripts](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption)
- [No network calls found in its scripts](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption)
- [License: MIT](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption)

## Features

- **Repository survey checklist:** Covers size, dependency locks, Docker build context, vendored code and ORM DSLs that affect typing.
- **Infra PR setup:** Adds Sorbet and tapioca, configuration, generated RBIs, shims and CI wiring in one PR.
- **Sigil stamping:** Marks every Ruby file in scope with a typed sigil through a mechanical script.
- **Dependency-ordered slices:** Splits typing work into bottom-up slices of 10 to 30 files, each as commits.
- **Parallel slice agents:** Runs per-slice typing in separate worktrees with a prompt template and known traps.
- **Stack integration and review:** Rebases stacked slices, fixes errors bottom-up and audits casts and untyped sites.

## Good for

- Introduce Sorbet to an existing Rails app without breaking CI
- Plan a typing rollout as a stack of small pull requests
- Raise a directory of Ruby files from untyped to typed strict
- Audit a Sorbet stack for leftover casts and untyped annotations
- Regenerate tapioca RBIs after a Gemfile.lock change

## Install

### Claude Code

This skill ships in the `sorah-guides` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add sorah/config
/plugin install sorah-guides@sorah-marketplace
```

Or copy only this skill to `~/.claude/skills/sorbet-adoption`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sorbet-adoption &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption" ~/.claude/skills/sorbet-adoption &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sorbet-adoption` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sorbet-adoption` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sorbet-adoption &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption" ~/.agents/skills/sorbet-adoption &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sorbet-adoption` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sorbet-adoption` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sorbet-adoption &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption" ~/.cursor/skills/sorbet-adoption &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sorbet-adoption` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/sorah/config.git --path claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption
```

Or copy the folder to `~/.gemini/skills/sorbet-adoption` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/sorbet-adoption`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sorbet-adoption &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption" ~/.copilot/skills/sorbet-adoption &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sorbet-adoption` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/sorah/config.git
```

Then copy `config/claude/marketplace/plugins/sorah-guides/skills/sorbet-adoption` into your agent's skills folder as `sorbet-adoption`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should Sorbet adoption be used instead of the Steep approach?

The skill says Sorbet suits an application, while libraries and gems should use Steep through the steep-adoption skill. A gem living only inside an application's repo may follow the app onto Sorbet.

### Does Sorbet adoption explain how to write the types themselves?

No. It defers type syntax and conventions to the companion sorbet skill and focuses on order, scope and rollout mechanics.

### Why does the playbook insist on strict rather than true?

The original rollout found that files at true carried few signatures and had to be redone, so it recommends planning for strict from the start.

### What does the skill ask the user to decide up front?

It lists decisions such as checker and syntax, scope, generated RBI location, PR shape, branch names, target level and team sign-off, to be settled through a question step.

### Does Sorbet adoption include scripts or templates?

It references an infra checklist, a slice agent prompt template and a script that stamps typed sigils on Ruby files.

### How do I install Sorbet adoption in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sorbet-adoption to use it in all your projects, or to .claude/skills/sorbet-adoption in one project. Or install the sorah-guides plugin, which includes it: /plugin marketplace add sorah/config, then /plugin install sorah-guides@sorah-marketplace.

### Does Sorbet adoption run scripts?

Yes. It runs Ruby scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Sorbet adoption?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Sorbet adoption?

The closest alternatives to Sorbet adoption are Sorbet, Steep adoption, Steep, Rails and Incremental implementation.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Sorbet](https://ai-powered.com/skills/sorbet): Sorbet is an open-source agent skill for developer tools.
- [Steep adoption](https://ai-powered.com/skills/steep-adoption): Steep adoption is an open-source agent skill for developer tools.
- [Steep](https://ai-powered.com/skills/steep-sorah): Steep is an open-source agent skill for developer tools.
- [Rails](https://ai-powered.com/skills/rails-sorah): Rails is an open-source agent skill for developer tools.
- [Incremental implementation](https://ai-powered.com/skills/incremental-implementation): Incremental implementation is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-getsentry): Code review is an open-source agent skill for developer tools.
- [TypeScript best practices](https://ai-powered.com/skills/typescript-best-practices): TypeScript best practices is an open-source agent skill for developer tools.
- [Skill creator](https://ai-powered.com/skills/skill-creator): Skill creator is a free agent skill for ai models and llm tooling.

---
Source: https://ai-powered.com/skills/sorbet-adoption
