Back to Skills

Ruby Information

elct9620
Updated 3 days ago
15 views
0
View on GitHub
Metawordai

About

This skill provides quick access to Ruby documentation through local `ri` command execution. It allows developers to look up detailed information about Ruby classes, modules, and methods without needing to check source code directly. The skill supports filtering and previewing documentation using tools like `grep`, `head`, and `wc` for efficient searching.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/elct9620/claude-ruby-plugin
Git CloneAlternative
git clone https://github.com/elct9620/claude-ruby-plugin.git ~/.claude/skills/Ruby Information

Copy and paste this command in Claude Code to install this skill

Documentation

Ruby Information

Use the ri command to access Ruby documentation which is installed locally on your system.

Instructions

Use ri [options] <whatever> to look up information about Ruby classes, modules, and methods.

  • Combine with head to fast check documentation before displaying full content.
  • Combine with wc to count relevant items when searching for multiple entries.
  • Combine with grep to filter results based on keywords.

Consider to add quote to queries with special characters to avoid shell interpretation issues. e.g. ri 'String#blank?'

Scenarios

Direct Lookup

Check specific Ruby classes or methods accurately.

ri Array#push

Search method

Check for methods is implemetned in a class or module and get a count of results.

ri '.find' | wc -l

Use grep to filter results.

ri '.find' | grep 'Enumerable'

Note: Use wc and grep to ensure the output is concise and relevant.

List Names

Get a list of all classes and modules under a specific namespace.

ri --list 'MyModule::Application'

Preview Documentation

Preview the first few lines of documentation for a method or class.

ri 'String#upcase' | head -n 10

Explore Options

Explore various options available with the ri command.

ri --help

Project Documentation

You can use rdoc to generate and view documentation for your own Ruby projects.

rdoc --format=ri --output=ri_doc .

View the generated documentation using ri:

ri -d ./ri_doc 'MyClass'

References

For more information, refer to the official Ruby documentation: https://ruby.github.io/rdoc/index.html

GitHub Repository

elct9620/claude-ruby-plugin
Path: skills/ri

Related Skills

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

llamaguard

Other

LlamaGuard is Meta's 7-8B parameter model for moderating LLM inputs and outputs across six safety categories like violence and hate speech. It offers 94-95% accuracy and can be deployed using vLLM, Hugging Face, or Amazon SageMaker. Use this skill to easily integrate content filtering and safety guardrails into your AI applications.

View skill