# Ruby

> Ruby is an open-source agent skill for developer tools. Adds Ruby-specific checklists to spec interviews and spec implementation. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/sorah/config/tree/master/claude/marketplace/plugins/sorah-spec/skills/ruby
- **Repository:** https://github.com/sorah/config
- **GitHub stars:** 31
- **License:** MIT
- **Skill name:** ruby
- **Collection:** https://github.com/sorah/config
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent a Ruby-focused checklist for reviewing a spec before and during implementation. It covers architecture questions such as service object names and signatures, module and file layout, when to use Struct, Data or plain classes, and include versus extend. It also prompts for keyword argument design, error handling, nil handling at interface boundaries, and RSpec coverage including factories and edge cases.

The checklist includes a security section that asks for the password hashing algorithm and cost factor, hashed rather than plaintext token storage, and constant-time secret comparison. It points to a separate general Ruby conventions skill for underlying style guidance and states that project-specific conventions take priority.

The skill is a single SKILL.md file with no scripts. It is written for Claude Code and is distributed through a Claude Code plugin marketplace, and it assumes a spec document exists to interview against.

## When your agent uses it

> This skill should be used when conducting spec interviews or implementing specs for Ruby projects, or when the spec mentions "Ruby", "RSpec", "service objects", "Struct", or Ruby class/module patterns. Provides Ruby-specific interview and implementation checklist items.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-spec/skills/ruby)
- [License: MIT](https://github.com/sorah/config/tree/HEAD/claude/marketplace/plugins/sorah-spec/skills/ruby)

## Features

- **Architecture review prompts:** Questions about service object signatures, namespaces, file layout and value object choices.
- **Method signature checks:** Guidance on keyword arguments, required versus optional parameters and return types.
- **Error and nil handling:** Prompts to decide which exceptions are rescued and how nil is handled at boundaries.
- **RSpec coverage planning:** Checks on unit and integration spec structure, factories and edge case expectations.
- **Credential security checklist:** Items covering password hashing cost, hashed token storage and constant-time comparison.

## Good for

- Review a Ruby feature spec for missing service object details before coding
- Plan RSpec structure and factories for a new Ruby module
- Check whether a Ruby spec specifies error handling and nil behavior
- Verify a spec covers password hashing and token storage safely

## Install

### Claude Code

This skill ships in the `sorah-spec` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add sorah/config
/plugin install sorah-spec@sorah-marketplace
```

Or copy only this skill to `~/.claude/skills/ruby`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ruby &&
cp -R "$tmp/claude/marketplace/plugins/sorah-spec/skills/ruby" ~/.claude/skills/ruby &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ruby` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ruby` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ruby &&
cp -R "$tmp/claude/marketplace/plugins/sorah-spec/skills/ruby" ~/.agents/skills/ruby &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ruby` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ruby` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ruby &&
cp -R "$tmp/claude/marketplace/plugins/sorah-spec/skills/ruby" ~/.cursor/skills/ruby &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ruby` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/sorah/config.git --path claude/marketplace/plugins/sorah-spec/skills/ruby
```

Or copy the folder to `~/.gemini/skills/ruby` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ruby`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ruby &&
cp -R "$tmp/claude/marketplace/plugins/sorah-spec/skills/ruby" ~/.copilot/skills/ruby &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ruby` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/sorah/config.git
```

Then copy `config/claude/marketplace/plugins/sorah-spec/skills/ruby` into your agent's skills folder as `ruby`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Ruby trigger?

It is meant to be used when conducting spec interviews or implementing specs for Ruby projects, or when a spec mentions Ruby, RSpec, service objects, Struct or Ruby class and module patterns.

### Does Ruby run any scripts or tools?

No. The skill folder contains only SKILL.md and no scripts.

### Does it replace general Ruby conventions?

No. It refers to a separate sorah-guides Ruby skill for underlying conventions, and project-specific conventions take priority.

### How do I install Ruby in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ruby to use it in all your projects, or to .claude/skills/ruby in one project. Or install the sorah-spec plugin, which includes it: /plugin marketplace add sorah/config, then /plugin install sorah-spec@sorah-marketplace.

### Does Ruby run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Ruby?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Ruby?

The closest alternatives to Ruby are Rails, Rspec skill, Specify, Spec driven development and Validate skills.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Rails](https://ai-powered.com/skills/rails-sorah): Rails is an open-source agent skill for developer tools.
- [Rspec skill](https://ai-powered.com/skills/rspec-skill): Rspec skill is an open-source agent skill for developer tools.
- [Specify](https://ai-powered.com/skills/specify): Specify is an open-source agent skill for developer tools.
- [Spec driven development](https://ai-powered.com/skills/spec-driven-development-ajyadav013-2): Spec driven development is an open-source agent skill for developer tools.
- [Validate skills](https://ai-powered.com/skills/validate-skills): Validate skills is an open-source agent skill for developer tools.
- [Spec conventions](https://ai-powered.com/skills/spec-conventions): Spec conventions is an open-source agent skill for developer tools.
- [Review skills](https://ai-powered.com/skills/review-skills): Review skills is an open-source agent skill for developer tools.
- [Code review checklist](https://ai-powered.com/skills/code-review-checklist): Code review checklist is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/ruby-sorah
