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 hoblin/claude-ruby-marketplace --skill rspecgit clone --depth 1 https://github.com/hoblin/claude-ruby-marketplaceWrote 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/hoblin/claude-ruby-marketplace/rspec)<a href="https://agentmods.dev/skills/hoblin/claude-ruby-marketplace/rspec"><img src="https://agentmods.dev/badge/skills/hoblin/claude-ruby-marketplace/rspec.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.00125 | $0.02672 |
| Opus 5 | $0.00063 | $0.01336 |
| Sonnet 5 | $0.00025 | $0.00534 |
| Haiku 4.5 | $0.00013 | $0.00267 |
Grade A, and why
rspec 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 8d 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 — 350 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RSpec Testing
This skill provides comprehensive guidance for writing effective RSpec tests in Ruby and Rails applications. Use for writing new specs, fixing failing tests, understanding matchers, using test doubles, and following RSpec best practices.
Quick Reference
Basic Structure
RSpec.describe Order do
subject(:order) { described_class.new(items) }
let(:items) { [item1, item2] }
let(:item1) { double("item", price: 10) }
let(:item2) { double("item", price: 20) }
describe "#total" do
it "sums item prices" do
expect(order.total).to eq(30)
end
end
context "with discount" do
let(:order) { described_class.new(items, discount: 5) }
it "applies discount" do
expect(order.total).to eq(25)
end
end
end
Key Concepts
| Concept | Purpose |
|---|---|
describe / context |
Group related examples |
it / specify |
Define individual test cases |
let |
Lazy-evaluated, memoized helper |
let! |
Eager-evaluated helper (runs before each example) |
subject |
Primary object under test |
before / after |
Setup and teardown hooks |
expect |
Make assertions |
Writing Good Specs
Use Named Subject for Method Tests
describe "#calculate_total" do
subject(:total) { order.calculate_total }
it "returns sum of items" do
expect(total).to eq(100)
end
end
Context Blocks for Different States
describe "#withdraw" do
context "with sufficient funds" do
let(:account) { build(:account, balance: 100) }
it "reduces balance" do
expect { account.withdraw(50) }.to change(account, :balance).by(-50)
end
end
context "with insufficient funds" do
let(:account) { build(:account, balance: 10) }
it "raises error" do
expect { account.withdraw(50) }.to raise_error(InsufficientFunds)
end
end
end
Common Matchers
Equality
expect(x).to eq(y) # ==
expect(x).to eql(y) # eql? (type-sensitive)
expect(x).to be(y) # equal? (identity)
What ships with it
54 files 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.
- examples/core/basic_structure.rb 1.5 KB runs code
- examples/core/configuration.rb 3.1 KB runs code
- examples/core/hooks.rb 2.9 KB runs code
- examples/core/memoized_helpers.rb 3.4 KB runs code
- examples/core/metadata_filtering.rb 3.3 KB runs code
- examples/core/shared_examples.rb 3.5 KB runs code
- examples/factory_bot/associations.rb 6.9 KB runs code
- examples/factory_bot/build_strategies.rb 6.0 KB runs code
- examples/factory_bot/callbacks.rb 7.3 KB runs code
- examples/factory_bot/custom_construction.rb 6.8 KB runs code
- examples/factory_bot/factory_definition.rb 4.4 KB runs code
- examples/factory_bot/inheritance.rb 6.6 KB runs code
- examples/factory_bot/traits.rb 6.4 KB runs code
- examples/factory_bot/transients.rb 5.4 KB runs code
- examples/matchers/change.rb 2.9 KB runs code
- examples/matchers/collections.rb 4.2 KB runs code
- examples/matchers/comparisons.rb 2.1 KB runs code
- examples/matchers/composing.rb 4.1 KB runs code
- examples/matchers/custom_matchers.rb 4.5 KB runs code
- examples/matchers/equality.rb 1.4 KB runs code
- examples/matchers/errors.rb 3.8 KB runs code
- examples/matchers/output.rb 2.6 KB runs code
- examples/matchers/predicates.rb 2.2 KB runs code
- examples/matchers/truthiness.rb 2.3 KB runs code
- examples/matchers/types.rb 2.3 KB runs code
- examples/matchers/yield.rb 3.9 KB runs code
- examples/mocks/any_instance.rb 4.7 KB runs code
- examples/mocks/argument_matchers.rb 5.5 KB runs code
- examples/mocks/constants.rb 4.8 KB runs code
- examples/mocks/doubles.rb 4.2 KB runs code
- examples/mocks/expectations.rb 3.5 KB runs code
- examples/mocks/message_chains.rb 5.0 KB runs code
- examples/mocks/ordering.rb 4.1 KB runs code
- examples/mocks/receive_counts.rb 4.2 KB runs code
- examples/mocks/responses.rb 5.8 KB runs code
- examples/mocks/spies.rb 3.9 KB runs code
- examples/mocks/stubbing.rb 3.5 KB runs code
- examples/rails/channels.rb 6.0 KB runs code
- examples/rails/controller_specs.rb 7.4 KB runs code
- examples/rails/helper_specs.rb 6.6 KB runs code
- examples/rails/job_specs.rb 6.5 KB runs code
- examples/rails/mailer_specs.rb 6.0 KB runs code
- examples/rails/matchers.rb 9.5 KB runs code
- examples/rails/model_specs.rb 4.7 KB runs code
- examples/rails/request_specs.rb 7.4 KB runs code
- examples/rails/routing_specs.rb 6.5 KB runs code
- examples/rails/system_specs.rb 7.0 KB runs code
- examples/rails/transactions.rb 6.4 KB runs code
- examples/rails/view_specs.rb 6.1 KB runs code
- references/core.md 18 KB
- references/factory_bot.md 12 KB
- references/matchers.md 9.9 KB
- references/mocks.md 8.2 KB
- references/rails.md 11 KB
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.
- 8d ago First seen · 350 lines · 125 tokens per session scan A 1c70348ca326
rspec is a skill published in the GitHub repository hoblin/claude-ruby-marketplace (37 stars, last pushed today), licensed MIT. It adds 125 tokens to every session and 2,672 once invoked, about $0.0006 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-08-30.
Other skills, from other repositories
testing
Authoring Ruby/Rails/Grape/Sidekiq tests: request specs, factories, anti-flake. Triggers: "RSpec patterns", "factory setup", "flaky test". Do NOT use for: running tests, executing rspec.
util-function
Creates a well-typed, tested utility function from a description.
rspec-conventions
Rootstrap RSpec conventions. Use when writing, reviewing, or editing RSpec test files (spec//spec.rb, spec/railshelper.rb, spec/spechelper.rb, spec/support//.rb) or factories. Covers describe/context structure, let/subject, matchers, factories, mocking/stubbing, shared examples, and spec types (model, request…
ruby
Ruby development guidelines covering idiomatic code style, Ruby 3.x features, testing with RSpec, and best practices for building maintainable Ruby applications.
rspec
RSpec testing best practices for Ruby and Rails applications, covering test organization, data management, and isolation patterns.
testunit-skill
Generates Test::Unit tests in Ruby. Classic xUnit-style testing with assert methods and test case classes. Use when user mentions "Test::Unit", "assertequal Ruby", "Ruby test-unit". Triggers on: "Test::Unit", "Ruby test-unit", "assertequal Ruby" (not RSpec).