loom-ruby

loom-ruby is a skill for Claude Code, Codex from cosmix/loom. It costs 15 tokens per session (6,945 once invoked), scanned A, original, MIT.

Ruby language guidance for Ruby 3.x applications, including Bundler, Rails, and RSpec or Minitest. Bundler manages Ruby libraries and keeps the project's dependency versions consistent.

In plain words
What is it for?
Use it to manage gems, install from a lockfile, run application commands and tests, update individual dependencies, and check known vulnerabilities.
Why use it?
It helps avoid Ruby and Rails problems such as confusing keyword arguments, unexpected closure returns, repeated database queries, unsafe deserialization, and concurrency limits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to manage gems, install from a lockfile, run application commands and tests, update individual dependencies, and check known vulnerabilities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cosmix/loom/loom-ruby
View source ↗ cosmix/loom
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cosmix/loom --skill loom-ruby
Clone the repo
git clone --depth 1 https://github.com/cosmix/loom

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for loom-ruby

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmix/loom/loom-ruby/github.svg)](https://agentmods.dev/skills/cosmix/loom/loom-ruby)
Your own site
<a href="https://agentmods.dev/skills/cosmix/loom/loom-ruby"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-ruby/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for loom-ruby

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmix/loom/loom-ruby"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-ruby.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,945 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.06945
Opus 5.5 $0.00006 $0.02778
Sonnet 5.5 $0.00003 $0.01389
Haiku 4.5 $0.00002 $0.00694

Measured 11d ago against content hash 2afe49b101fd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loom-ruby scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

rows = fetch(offset:, limit: size)
skills/loom-ruby/SKILL.md · 460 lines

How it starts

The opening of the file, as written. The whole thing — 460 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ruby Language Expertise

Overview

Idiomatic, production-grade Ruby 3.x: Bundler, the Ruby 3 language additions, blocks and closures, Rails, and RSpec/Minitest. Assumes competence; the value is in what is easy to get wrong (keyword-argument separation, proc return semantics, ||= on falsy values, N+1 queries, unsafe deserialization, the GVL) and in writing tests that loom's rspec and minitest adapters can select one at a time.

Tooling

Preserve the repository's version manager and lockfile. The Ruby version lives in .ruby-version (read by rbenv, chruby, asdf, mise) and in the Gemfile's ruby directive.

Bundler resolves dependencies and isolates the load path.

Task Command
Add a dependency bundle add faraday (edits Gemfile, resolves, updates Gemfile.lock)
Add a dev/test dependency bundle add rspec --group "development, test"
Install from the lock bundle install; set BUNDLE_FROZEN=true in CI so drift fails the build
Update one gem bundle update --conservative faraday (shared dependencies stay pinned)
Run inside the bundle bundle exec rspec spec/foo_spec.rb (bare bundle exec rspec is the stage gate's), or the binstubs bin/rails, bin/rspec
Known CVEs in the lock bundle exec bundler-audit check --update
Deploy platforms bundle lock --add-platform x86_64-linux
  • bundle exec activates exactly the locked versions; a bare rspec or rake may load a different installed version. require "bundler/setup" does the same from inside a script.
  • A gem declares runtime dependencies in its .gemspec; its Gemfile holds gemspec plus development tools.

Format and lint: RuboCop (rubocop -a applies safe corrections; -A adds unsafe ones, so review that diff) or Standard (standardrb --fix, RuboCop with a fixed config). Rails 7.2+ generates bin/rubocop (rubocop-rails-omakase) and bin/brakeman. Plugins: rubocop-rspec, rubocop-performance, rubocop-rails. Disable a cop for a range with # rubocop:disable Style/Foo ... # rubocop:enable Style/Foo; never disable all cops for a file.

Read the full file on GitHub · 460 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed 2afe49b101fd
  2. 2mo ago First seen · 460 lines · 15 tokens per session scan A f82a0d98610a

Subscribe to this mod's changes

loom-ruby is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 15 tokens to every session and 6,945 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.

Related

loom-ruby compared with skills from other repositories

loom-ruby next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loom-rubycosmix/loomSkill66yesterdayMITA15Claude Code, Codex
ruby-scriptLandonSchropp/agent-toolkitSkill3todayMITA20Claude Code
idiomatic-goTypeFox/agent-skillsSkill51mo agoMITA137Claude Code
go-documentationTypeFox/agent-skillsSkill51mo agoMITA98Claude Code
rspecLandonSchropp/agent-toolkitSkill3todayMITA21Claude Code
newclacky-ai/openclackySkill1.2k3d agoMITA10Claude Code
authoring-java-sdk-tasksastronomer/agentsSkill4646d agoApache-2.0A152Claude Code