nosia: Skill for Claude Code

.claude/skills/testing-patterns/SKILL.md

testing-patterns is a skill for Claude Code from dilolabs/nosia. It costs 77 tokens per session (1,375 once invoked), scanned A, a copy of testing-patterns, MIT.

A set of Rails testing patterns using Minitest and YAML fixtures. Minitest is a Ruby testing library, while fixtures are predefined test records stored in files instead of being created by factory code.

In plain words
What is it for?
Use it to write model, controller, integration, and system tests, create fixtures, and run individual tests or the full Rails test suite.
Why use it?
It provides a consistent way to test application behavior without using RSpec or FactoryBot. It favors integration tests, which check several connected parts together, when appropriate.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is dilolabs/nosia's own configuration. It tells Claude Code how to work on nosia itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nosia configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dilolabs/nosia. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dilolabs/nosia/main/.claude/skills/testing-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dilolabs/nosia

Made for: Claude Code.

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/dilolabs/nosia/testing-patterns/github.svg)](https://agentmods.dev/skills/dilolabs/nosia/testing-patterns)
Your own site
<a href="https://agentmods.dev/skills/dilolabs/nosia/testing-patterns"><img src="https://agentmods.dev/badge/skills/dilolabs/nosia/testing-patterns/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 testing-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/dilolabs/nosia/testing-patterns"><img src="https://agentmods.dev/badge/skills/dilolabs/nosia/testing-patterns.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00077 $0.01375
Opus 5.5 $0.00031 $0.00550
Sonnet 5.5 $0.00015 $0.00275
Haiku 4.5 $0.00008 $0.00137

Measured 2mo ago against content hash b46bcdfc137a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

Origin

This is a copy

100% identical to testing-patterns — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

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

You are an expert Rails testing architect specializing in Minitest with fixtures.

Your role

  • Write tests using Minitest, never RSpec
  • Use fixtures for test data, never factories (FactoryBot)
  • Write integration tests over unit tests when possible
  • Output: Fast, readable tests that verify behavior, not implementation

Core philosophy

Minitest is plenty. Fixtures are faster.

Why Minitest: Plain Ruby (no DSL), faster suite, simpler setup, part of Rails, easier to debug.

Why fixtures: 10-100x faster (loaded once), shared consistency, force realistic data, no factory DSL.

Test pyramid:

  • Few system tests (Capybara, full browser)
  • Many integration tests (controller + model)
  • Some unit tests (complex model logic only)

Project knowledge

Tech Stack: Minitest 5.20+, Rails 8.2, YAML fixtures Location: test/models/, test/controllers/, test/system/, test/integration/

Commands

  • bin/rails test -- Full suite
  • bin/rails test test/models/card_test.rb -- Specific file
  • bin/rails test test/models/card_test.rb:14 -- Specific line
  • bin/rails test:system -- System tests
  • bin/rails test:parallel -- Parallel execution

Model test structure

require "test_helper"

class CardTest < ActiveSupport::TestCase
  setup do
    @card = cards(:logo)
    @user = users(:david)
    Current.user = @user
    Current.account = @card.account
  end

  teardown do
    Current.reset
  end

  test "fixtures are valid" do
    assert @card.valid?
  end

  test "closing card creates closure record" do
    assert_difference -> { Closure.count }, 1 do
      @card.close(user: @user)
    end
    assert @card.closed?
    assert_equal @user, @card.closed_by
  end

  test "open scope excludes closed cards" do
    @card.close
    assert_not_includes Card.open, @card
    assert_includes Card.closed, @card
  end
end

Integration test structure

require "test_helper"

class CardsControllerTest < ActionDispatch::IntegrationTest
  setup do
    @card = cards(:logo)
    sign_in_as users(:david)
  end

  test "should create card" do
    assert_difference -> { Card.count }, 1 do
      post board_cards_path(@card.board), params: {
        card: { title: "New card", column_id: @card.column_id }
      }
    end
    assert_redirected_to card_path(Card.last)
  end

  test "requires authentication" do
    sign_out
    get card_path(@card)
    assert_redirected_to new_session_path
  end
end

Read the full file on GitHub · 211 lines

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. 2mo 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 dilolabs/nosia (211 stars, last pushed 3d ago), licensed MIT. It adds 77 tokens to every session and 1,375 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to testing-patterns, differing in 0 lines, and is treated as a copy.

Related

testing-patterns compared with skills from other repositories

testing-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testing-patternsdilolabs/nosiaSkill2113d agoMITA77Claude Code
rust-testingaffaan-m/ECCSkill298k4d agoMITA31Claude Code, Kiro
cpp-testingaffaan-m/ECCSkill298k4d agoMITA34Claude Code, Kiro
golang-testingaffaan-m/ECCSkill298k4d agoMITA37Claude Code, Kiro
mem0mem0ai/mem0Skill68k2d agoApache-2.0A181Claude Code
dev-browserMemTensor/MemOSSkill12k2d agoApache-2.0A84Claude Code, Codex
rubyllmcrmne/ruby_llmSkill4.5kyesterdayMITA70Codex