Skip to content
Skill

Sorbet adoption

Guides a gradual rollout of Sorbet type checking across a Ruby or Rails app

Sorbet adoption is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
Ruby
Platforms
Claude Code, Codex, Cursor
GitHub stars
31
Last commit
License
MIT
Listing updated

Similar skills

About Sorbet adoption

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (33 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Sorbet adoption 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.

More from sorah/config

  1. Guides an agent through maintaining sorah's aptly-managed APT repositories and their

    • Open source
    • 31 GitHub stars
    • Cloud and infrastructure
  2. Runs a chief-of-staff session that watches your coding agents and keeps work on track

    • Open source
    • 31 GitHub stars
    • Developer tools
  3. Applies language-agnostic coding conventions to code writing and review

    • Open source
    • 31 GitHub stars
    • Developer tools
  4. Guides the agent to write git commit messages and PR titles in a concise house style

    • Open source
    • 31 GitHub stars
    • Developer tools
  5. Guides an agent through building and testing Rails apps on Aurora DSQL

    • Open source
    • 31 GitHub stars
    • Developer tools
  6. Writes English text in the author's terse, direct technical voice for GitHub and email

    • Open source
    • 31 GitHub stars
    • Developer tools