| name | RubyGems |
| description | Cross-machine RubyGems operations (NOT coding practices). Runs gem on fuji (macOS) or junkpile (Linux) transparently via SSH. Install, update, list gems and run executables via exec.
<example>
Context: User wants to install a gem
user: "install the personality gem on both machines"
</example>
<example>
Context: User wants to run a gem executable
user: "run itt on junkpile"
</example>
|
Gem Skill
Manages RubyGems across fuji and junkpile transparently. Includes an exec subcommand for running gem-installed executables.
Usage
bash ${CLAUDE_PLUGIN_ROOT}/skills/gem/gem.sh <target> <gem-args...>
bash ${CLAUDE_PLUGIN_ROOT}/skills/gem/gem.sh <target> exec <executable> [args...]
Target
| Target | Description |
|---|
local | Auto-detect current host |
fuji | Run on Mac, SSH if needed |
junkpile | Run on PC, SSH if needed |
both | Run on both machines |
Examples
bash ${CLAUDE_PLUGIN_ROOT}/skills/gem/gem.sh both install puma
bash ${CLAUDE_PLUGIN_ROOT}/skills/gem/gem.sh junkpile list
bash ${CLAUDE_PLUGIN_ROOT}/skills/gem/gem.sh junkpile exec itt --help
bash ${CLAUDE_PLUGIN_ROOT}/skills/gem/gem.sh fuji exec puma -p 3000
bash ${CLAUDE_PLUGIN_ROOT}/skills/gem/gem.sh both update marauder
Machine Reference
| Host | Gem Path | Gem Bin Dir | SSH Alias |
|---|
| fuji | /opt/homebrew/opt/ruby/bin/gem | /opt/homebrew/lib/ruby/gems/4.0.0/bin | f |
| junkpile | /home/linuxbrew/.linuxbrew/opt/ruby/bin/gem | /home/linuxbrew/.linuxbrew/lib/ruby/gems/4.0.0/bin | j |
Gem Executables
Installed gem executables (itt, puma, etc.) live in the gem bin directory. Use exec to run them:
gem.sh <target> exec <name> [args...]
This resolves to the correct gem bin path on the target machine automatically.