testing-patterns

testing-patterns is a skill for Claude Code, Codex from tarv7/ai-spec-driven-development-template-rails. It costs 77 tokens per session (1,375 once invoked), scanned A, original, no licence file.

A set of testing patterns for Minitest, a Ruby testing library, using fixtures, which are fixed test data sets. It follows conventions associated with 37signals projects instead of RSpec and FactoryBot.

In plain words
What is it for?
Use it when writing tests, adding test coverage, or creating fixtures in a Minitest-based Ruby project.
Why use it?
It helps keep tests and test data consistent with projects that use Minitest and fixtures exclusively.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/tarv7/ai-spec-driven-development-template-rails/testing-patterns
Any agent
npx skills add tarv7/ai-spec-driven-development-template-rails --skill testing-patterns
Clone the repo
git clone --depth 1 https://github.com/tarv7/ai-spec-driven-development-template-rails

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 testing-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/tarv7/ai-spec-driven-development-template-rails/testing-patterns.svg)](https://agentmods.dev/skills/tarv7/ai-spec-driven-development-template-rails/testing-patterns)
Your own site
<a href="https://agentmods.dev/skills/tarv7/ai-spec-driven-development-template-rails/testing-patterns"><img src="https://agentmods.dev/badge/skills/tarv7/ai-spec-driven-development-template-rails/testing-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,375 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00077 $0.01375
Opus 5 $0.00039 $0.00687
Sonnet 5 $0.00015 $0.00275
Haiku 4.5 $0.00008 $0.00137

Measured 4d ago against content hash b46bcdfc137a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

testing-patterns 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 4d 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.

.opencode/skills/testing-patterns/SKILL.md · 211 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

3 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.

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. 4d ago First seen · 211 lines · 77 tokens per session scan A b46bcdfc137a

Subscribe to this mod's changes

testing-patterns is a skill published in the GitHub repository tarv7/ai-spec-driven-development-template-rails (2 stars, last pushed 3mo ago), with no licence file. It adds 77 tokens to every session and 1,375 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

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…

rootstrap/rails_api_base · 82 tokens

testing-patterns

Writes Minitest tests with fixtures following 37signals conventions. Uses Minitest (not RSpec) and fixtures (not factories). Use when writing tests, adding test coverage, or creating fixtures. WHEN NOT: For RSpec or FactoryBot patterns (this project uses Minitest + fixtures exclusively). For test configuration/CI…

dilolabs/nosia · 77 tokens

rspec

This skill should be used when the user asks to "write specs", "create spec", "add RSpec tests", "fix failing spec", or mentions RSpec, describe blocks, it blocks, expect syntax, test doubles, or matchers. Should also be used when editing spec.rb files, working in spec/ directory, planning implementation phases that…

hoblin/claude-ruby-marketplace · 125 tokens

test-service

Use when writing RSpec for a service object under spec/services/. Test the public .call contract. Trigger words: service spec, test service object, spec/services.

igmarin/rails-agent-skills · 36 tokens

write-tests

Use when writing or cleaning up Rails RSpec. Run the spec and keep the real output. Trigger words: write spec, rspec, test-driven, write tests.

igmarin/rails-agent-skills · 37 tokens

ruby-test-frameworks

Use when writing or running tests in a Ruby project that uses minitest or test-unit. These frameworks have deceptively similar APIs with critical naming differences that cause NoMethodError at runtime. Consult this before writing assertions, running specific tests, or using setup/teardown lifecycle methods.

st0012/ruby-skills · 61 tokens