ruby-lsp — Claude Code plugin: what it does, how to install
Connects the Ruby language server to Claude Code for code intelligence across .rb, .rake, .gemspec, .ru, and .erb files.
/plugin install ruby-lsp@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-officialWhat ruby-lsp does
The plugin brings Shopify's Ruby language server into Claude Code. It provides code analysis and syntax intelligence while working in Ruby codebases. Supported file extensions include .rb, .rake, .gemspec, .ru, and .erb.
It requires Ruby 3.0 or later. The server will not start without the gem installed in your environment. You can install it directly with gem install ruby-lsp or add gem 'ruby-lsp', group: :development to your Gemfile and run bundle install.
What it helps with
- enable Ruby language intelligence in Claude Code
- analyze syntax across .rake, .gemspec, and .erb files
- navigate Ruby codebases running on Ruby 3.0 or later
Example prompts for the agent
- Analyze the dependencies defined in
application.gemspec. - Check
tasks/deploy.rakefor syntax issues. - Inspect method definitions in
server.rb.
How to install ruby-lsp
Plugin marketplace
/plugin install ruby-lsp@claude-plugins-official/plugin marketplace add anthropics/claude-plugins-officialStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about ruby-lsp
How do I install ruby-lsp in Claude Code?
First, register the marketplace by running /plugin marketplace add anthropics/claude-plugins-official. Then install the plugin with /plugin install ruby-lsp@claude-plugins-official.
What does ruby-lsp do?
It hooks Claude Code into the Ruby language server to provide code analysis and intelligence. It handles .rb, .rake, .gemspec, .ru, and .erb files.
What are the requirements for ruby-lsp?
You need Ruby 3.0 or later on your machine. You must also install the ruby-lsp gem using gem install ruby-lsp or via Bundler in your Gemfile.
Source text
ruby-lsp · Apache-2.0
# ruby-lsp Ruby language server for Claude Code, providing code intelligence and analysis. ## Supported Extensions `.rb`, `.rake`, `.gemspec`, `.ru`, `.erb` ## Installation ### Via gem (recommended) ```bash gem install ruby-lsp ``` ### Via Bundler Add to your Gemfile: ```ruby gem 'ruby-lsp', group: :development ``` Then run: ```bash bundle install ``` ## Requirements - Ruby 3.0 or later ## More Information - [Ruby LSP Website](https://shopify.github.io/ruby-lsp/) - [GitHub Repository](https://github.com/Shopify/ruby-lsp)
© Anthropic · Apache-2.0 · anthropics/claude-plugins-official