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 rootstrap/rails_api_base --skill rspec-conventionsgit clone --depth 1 https://github.com/rootstrap/rails_api_baseWrote 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/rootstrap/rails_api_base/rspec-conventions)<a href="https://agentmods.dev/skills/rootstrap/rails_api_base/rspec-conventions"><img src="https://agentmods.dev/badge/skills/rootstrap/rails_api_base/rspec-conventions/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.
<a href="https://agentmods.dev/skills/rootstrap/rails_api_base/rspec-conventions"><img src="https://agentmods.dev/badge/skills/rootstrap/rails_api_base/rspec-conventions.svg" alt="Reviewed on agentmods" width="80" 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.00082 | $0.01124 |
| Opus 5.5 | $0.00033 | $0.00450 |
| Sonnet 5.5 | $0.00016 | $0.00225 |
| Haiku 4.5 | $0.00008 | $0.00112 |
Grade A, and why
rspec-conventions 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 3mo 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 — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RSpec Conventions (Rootstrap)
Apply these whenever producing or modifying RSpec test code. Full guide: https://github.com/rootstrap/tech-guides/blob/master/ruby/rspec/style_guide.md
Complements ruby-conventions — language-level Ruby style still applies.
Structure & Formatting
- No blank line directly after
describe/context/featureopening. - Leave one blank line after
let/subjectgroups and afterbefore/afterblocks. - Group
letandsubjecttogether; separate them frombefore/afterwith a blank line. - One blank line around each
itblock. - Use
before(notbefore(:each));before(:all)should be rare and explicit.
describe & context
describe '#method'for instance methods,describe '.method'for class methods.contextdescriptions must start withwhenorwith, forming a grammatical sentence.context 'when the display name is not present'- Every
contextshould have a matching opposite/negative case — a lone context is a smell. - Don't end
itdescriptions with a conditional ("...if X") — wrap in acontextinstead.
it / Examples
- Never start
itwith "should" / "should not". State behavior directly.it 'returns the summary' # not: 'should return the summary' - One expectation per
itblock (split multi-assertion examples). - Avoid generating examples via iterators; use shared examples instead.
shared_examples 'responds successfully' do it 'returns 200' do ... end end it_behaves_like 'responds successfully'
let & subject
- Prefer
letoverbefore { @x = ... }for test data (lazy, no instance vars). letis lazy (evaluated on first reference) and cached within a single example, not across examples. Uselet!when you need eager evaluation before each example.- Use
letfor values shared across several (not necessarily all)its in a context; avoid overuse — it hurts readability. - Use
subjectwhen describing a single primary object.subject { create(:article) }
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.
- 3mo ago First seen · 88 lines · 82 tokens per session scan A a8f2321362f4
rspec-conventions is a skill published in the GitHub repository rootstrap/rails_api_base (635 stars, last pushed 18d ago), licensed MIT. It adds 82 tokens to every session and 1,124 once invoked, about $0.0003 per session on Opus 5.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.
rspec-conventions compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rspec-conventionsrootstrap/rails_api_base | Skill | 635 | 18d ago | MIT | A | 82 | Claude Code |
| testunit-skillLambdaTest/agent-skills | Skill | 398 | 14d ago | MIT | A | 70 | Claude Code, Codex |
| rails-upgradeombulabs/claude-code_rails-upgrade-skill | Skill | 414 | 8d ago | MIT | A | 85 | Claude Code |
| upgrade-cleanupombulabs/claude-code_rails-upgrade-skill | Skill | 414 | 8d ago | MIT | A | 139 | Claude Code |
| typescript-testingshinpr/ai-coding-project-boilerplate | Skill | 239 | 2d ago | MIT | A | 31 | Claude Code |
| rspechoblin/claude-ruby-marketplace | Skill | 38 | yesterday | MIT | A | 125 | Claude Code |
| rspecMindrally/skills | Skill | 323 | 1mo ago | Apache-2.0 | A | 24 | Claude Code |