From ruby
When you need check documentation about Ruby classes, modules, and methods use this skill to get full details. Avoid check source code or use `ruby -e` for documentation unless absolutely necessary.
npx claudepluginhub elct9620/claudekit --plugin rubyThis skill is limited to using the following tools:
Use the `ri` command to access Ruby documentation which is installed locally on your system.
Provides authoritative Ruby resources: official docs by version, stdlib gems, testing (minitest), typing (Sorbet/RBI, RBS/Steep/Tapioca). Use in Ruby projects.
Fetches and summarizes official API docs for Rails, Tailwind, external libraries, and explores Ruby gem sources before implementation.
Manages Ruby gems and Bundler: writes Gemfiles with version constraints and groups, runs bundle commands, creates gem structures and gemspecs, handles Gemfile.lock.
Share bugs, ideas, or general feedback.
Use the ri command to access Ruby documentation which is installed locally on your system.
Use ri [options] <whatever> to look up information about Ruby classes, modules, and methods.
head to fast check documentation before displaying full content.wc to count relevant items when searching for multiple entries.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?'
Check specific Ruby classes or methods accurately.
ri Array#push
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
wcandgrepto ensure the output is concise and relevant.
Get a list of all classes and modules under a specific namespace.
ri --list 'MyModule::Application'
Preview the first few lines of documentation for a method or class.
ri 'String#upcase' | head -n 10
Explore various options available with the ri command.
ri --help
You can get README and other documentation if bundled with gems.
ri rspec:README.md
To list all available documentation files for a gem:
ri rspec:
Append the : after the gem name to see all documentation files associated with that gem.
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'
For more information, refer to the official Ruby documentation: https://ruby.github.io/rdoc/index.html