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.
npx skills add lugassawan/swe-workbench --skill language-rubygit clone --depth 1 https://github.com/lugassawan/swe-workbenchWrote 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.
[](https://agentmods.dev/skills/lugassawan/swe-workbench/language-ruby)<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/language-ruby"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-ruby.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.01051 |
| Opus 5 | $0.00032 | $0.00526 |
| Sonnet 5 | $0.00013 | $0.00210 |
| Haiku 4.5 | $0.00006 | $0.00105 |
Grade A, and why
language-ruby scanned grade A with 0 findings 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 3d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ruby
Ruby 3.x syntax
- Use pattern matching for structural dispatch on hashes, arrays, and domain data; avoid using it as a verbose
if/elsif. - Prefer endless methods only for tiny, obvious expressions. Multi-step behavior deserves a normal
def. - Hash shorthand (
{name:, email:}) is clear when local names match keys; use explicit pairs when transformation happens. - Use Ractor for isolated parallelism only when its object-sharing constraints fit better than threads or processes.
case payload
in {type: "user_created", id:, email:}
create_user(id:, email:)
in {type: "user_deleted", id:}
delete_user(id)
else
raise ArgumentError, "unknown payload"
end
def active? = status == "active"
Blocks, procs, and lambdas
- Blocks are the default for one-off callbacks and iteration; yield when the method owns the flow.
Procis lenient about arity andreturn; use it for flexible callbacks only when that behavior is intentional.- Lambdas behave like methods for arity and return locally. Prefer them for stored callable behavior.
def with_lock(lock)
lock.acquire
yield
ensure
lock.release
end
normalize = ->(value) { value.to_s.strip.downcase }
Frozen string literals
- Add
# frozen_string_literal: trueto new files unless the project has a different convention. - Treat strings as immutable values; use
String.new, unary+, ordupwhen mutation is required. - Avoid hidden mutation of arguments. Return a new string unless the method name clearly signals mutation with
!.
Enumerable and Comparable
- Include
Enumerablewhen the type can define a meaningfuleach. - Include
Comparablewhen<=>has a total ordering that callers will agree with. - Prefer
map,filter,each_with_object,tally, andsumover manual accumulator loops.
class Money
include Comparable
attr_reader :cents
def initialize(cents) = @cents = cents
def <=>(other) = cents <=> other.cents
end
Error handling
- Rescue the narrowest exception class you can actually handle.
- Keep
begin/rescuescopes small so unrelated failures are not swallowed. - Avoid bare
rescue(no class specified); the implicitStandardErrorscope hides intent and can silently swallow subclasses you did not anticipate. Always name the class explicitly. - Re-raise with context when crossing a boundary; preserve the original exception when useful.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3d ago First seen · 109 lines · 65 tokens per session scan A 636d97c7d3b9
language-ruby is a skill published in the GitHub repository lugassawan/swe-workbench (2 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 1,051 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
language-idioms-refiner
Facilitate a structured conversation to define language-specific idioms and patterns for a repository. Produces a language-idioms.md document consumed by multiple atoms to adapt pseudocode defaults to the project's language. Use when setting up a new project, switching languages, or when the user says 'setup…
wasm
WebAssembly (WASM) integration, WASI, component model, Rust/Go to WASM compilation. Use when implementing WASM modules, browser/edge compute, or polyglot runtime.
functions-development
Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…
go-core-idioms
Use when writing or reviewing idiomatic sequential Go — error handling, slog logging, generics, interfaces, style. Not for concurrency (go-concurrency).
gemtracker
Analyze Ruby gem dependencies, vulnerabilities, outdated packages, maintenance health, and insecure gem sources with the gemtracker CLI. Use when asked to audit Ruby gems, check Gemfile.lock security, review dependency health, or run gemtracker.
ruzzy
Use when asked to set up and run coverage-guided fuzzing of Ruby code or C extensions with Ruzzy, producing crash reports or clean campaign summaries. Not for C/C++ fuzzing: use libfuzzer or libfuzzer.