Ruby Version Manager logo

Ruby Version Manager

Community
st0012
ruby-version-manager

Use at session start for Ruby projects (Gemfile, .ruby-version, or .tool-versions present). Detect version manager BEFORE running ruby, bundle, gem, rake, rails, rspec, or any Ruby command.

Overview

Publisherst0012
Repositoryruby-skills
Skill nameruby-version-manager
Stars
125
Forks
7
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by st0012 on GitHub. Read the source before you install it.

Installation

Install the Ruby Version Manager AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/st0012/ruby-skills/tree/master/plugins/ruby-skills/skills/ruby-version-manager
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/st0012/ruby-skills.git /tmp/ruby-skills
mkdir -p .claude/skills
cp -r /tmp/ruby-skills/plugins/ruby-skills/skills/ruby-version-manager .claude/skills/ruby-version-manager
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ruby Version Manager in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ruby Version Manager on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ruby Version Manager is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Ruby Version Manager Skill

Detects and configures Ruby version managers for proper environment setup.

When to Use

Run detect.sh IMMEDIATELY when:

  • Starting work in a directory with Gemfile, .ruby-version, or .tool-versions
  • Before your first Ruby command (ruby, bundle, gem, rake, rails, rspec, etc.)
  • When switching between Ruby projects

Do NOT wait for commands to fail or user requests. Proactive detection prevents version mismatch errors.

Always chain activation with commands: ACTIVATION_COMMAND && ruby_command

Usage

Step 1: Run detect.sh

Run detect.sh from this skill's directory (path provided by session-start hook).

Step 2: Parse Output

The script outputs key=value pairs:

text
VERSION_MANAGER=rbenv
PROJECT_RUBY_VERSION=3.2.0
VERSION_AVAILABLE=true
ACTIVATION_COMMAND=eval "$(rbenv init -)"

Step 3: Execute Ruby Commands

Chain ACTIVATION_COMMAND with your Ruby command:

bash
eval "$(rbenv init -)" && bundle install
eval "$(rbenv init -)" && bundle exec rspec

Run detect.sh once per project session; reuse ACTIVATION_COMMAND for subsequent commands.

Output Variables

VariableDescription
VERSION_MANAGERDetected: shadowenv, chruby, rbenv, rvm, asdf, rv, mise, or none
VERSION_MANAGER_PATHInstallation path
PROJECT_RUBY_VERSIONVersion required by project
PROJECT_VERSION_SOURCESource file (.ruby-version, .tool-versions, .mise.toml, Gemfile)
RUBY_ENGINEImplementation (ruby, truffleruby, jruby)
INSTALLED_RUBIESComma-separated available versions
VERSION_AVAILABLEtrue/false - whether requested version is installed
ACTIVATION_COMMANDShell command to activate the manager
SYSTEM_RUBY_VERSIONSystem Ruby (when VERSION_MANAGER=none)
WARNINGEnvironment warnings
NEEDS_USER_CHOICEtrue when multiple managers detected without preference
AVAILABLE_MANAGERSList of detected managers (when NEEDS_USER_CHOICE=true)
NEEDS_VERSION_CONFIRMtrue when no version specifier found
SUGGESTED_VERSIONLatest installed Ruby (when NEEDS_VERSION_CONFIRM=true)

Activation Commands by Manager

ManagerActivation CommandNotes
rbenveval "$(rbenv init -)"Or use rbenv exec ruby ...
chrubysource .../chruby.sh && chruby <version>detect.sh provides full command
rvmsource "$HOME/.rvm/scripts/rvm"Or use ~/.rvm/bin/rvm-auto-ruby
asdf (v0.16+)Noneasdf exec ruby ...
asdf (<v0.16)source "$HOME/.asdf/asdf.sh"Then asdf exec ruby ...
miseNonemise x -- ruby ...
rvNonerv ruby run -- ...
shadowenvNoneshadowenv exec -- ruby ...
noneNoneruby ... (uses PATH)

Commands Requiring Activation

CategoryCommands
Coreruby, irb, gem, bundle, bundler
Build/Taskrake, rails, thor
Testingrspec, minitest, cucumber
Lintingrubocop, standardrb, reek
LSP/IDEruby-lsp, solargraph, steep
Debugpry, byebug, debug
Gem binariesAny executable from gem install or Gemfile

Handling Special Cases

Multiple Version Managers (NEEDS_USER_CHOICE=true)

Ask the user which manager to use, then store preference:

bash
/path/to/set-preference.sh chruby  # Saves to ~/.config/ruby-skills/preference.json

Detection priority: shadowenv > chruby > rbenv > rvm > asdf > rv > mise > none

No Version Specifier (NEEDS_VERSION_CONFIRM=true)

Ask: "No .ruby-version found. Use Ruby [SUGGESTED_VERSION] for this session?" If declined, show options from INSTALLED_RUBIES.

Version Not Installed (VERSION_AVAILABLE=false)

Inform user and offer installation:

Ruby {PROJECT_RUBY_VERSION} is not installed. Install with:

  • rbenv: rbenv install {VERSION}
  • rvm: rvm install {VERSION}
  • asdf: asdf install ruby {VERSION}
  • mise: mise install ruby@{VERSION}
  • chruby: ruby-install ruby {VERSION}

Always ask before installing. For chruby, check INSTALLED_RUBIES for compatible versions (same major.minor).

Shadowenv Trust Issues

If "untrusted shadowenv program" error appears, user must run shadowenv trust in the project directory.

Version Format Variations

Supported formats: 3.3.0, ruby-3.3.0, truffleruby-21.3.0, 3.3.0-rc1, 3.3 (matches any patch)

CI/Docker Environments

When VERSION_MANAGER=none, use system Ruby directly.

Troubleshooting

If Ruby commands fail after activation:

  1. Re-run detect.sh to verify environment
  2. Check VERSION_AVAILABLE - install if false
  3. Verify manager installation at VERSION_MANAGER_PATH
  4. chruby: Check ~/.rubies or /opt/rubies for installations
  5. rvm: Check both ~/.rvm and /usr/local/rvm

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ruby Version Manager AI skill do?

Use at session start for Ruby projects (Gemfile, .ruby-version, or .tool-versions present). Detect version manager BEFORE running ruby, bundle, gem, rake, rails, rspec, or any Ruby command.

Why use Ruby Version Manager on TypingMind?

Because you install it once and use it with any model. Ruby Version Manager is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ruby Version Manager in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/st0012/ruby-skills/tree/master/plugins/ruby-skills/skills/ruby-version-manager. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ruby Version Manager?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ruby Version Manager?

As many as you like. As long as a model supports skills, you can use Ruby Version Manager with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ruby Version Manager AI skill free?

Yes. It is published on GitHub by st0012 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇