MCP HubMCP Hub
スキル一覧に戻る

Ruby Information

elct9620
更新日 Today
45 閲覧
0
GitHubで表示
メタwordai

について

このスキルは、ローカルの`ri`コマンド実行を通じてRubyドキュメントへの迅速なアクセスを提供します。開発者はソースコードを直接確認する必要なく、Rubyのクラス、モジュール、メソッドに関する詳細な情報を検索できます。効率的な検索のために`grep`、`head`、`wc`などのツールを使用したドキュメントのフィルタリングとプレビューをサポートしています。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/elct9620/claude-ruby-plugin
Git クローン代替
git clone https://github.com/elct9620/claude-ruby-plugin.git ~/.claude/skills/Ruby Information

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

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 リポジトリ

elct9620/claude-ruby-plugin
パス: skills/ri

関連スキル

content-collections

メタ

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.

スキルを見る

evaluating-llms-harness

テスト

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.

スキルを見る

sglang

メタ

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.

スキルを見る

cloudflare-turnstile

メタ

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

スキルを見る