fastify-testing

fastify-testing is a skill for Claude Code from RadOrigin-LLC/RAD-Claude-Skills. It costs 81 tokens per session (2,045 once invoked), scanned A, original, Apache-2.0.

A set of guidance for testing Fastify applications, a Node.js web framework, without opening a real network connection.

In plain words
What is it for?
It helps write unit and integration tests for routes, handlers, and plugins using Fastify's in-process request simulation.
Why use it?
It avoids slow network-based tests and port conflicts, while encouraging a clear separation between the application and the server.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rad-fastify plugin — 8 skills, 1 agent shipped together

Good fit It helps write unit and integration tests for routes, handlers, and plugins using Fastify's in-process request simulation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/radorigin-llc/rad-claude-skills/fastify-testing
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.

Any agent
npx skills add RadOrigin-LLC/RAD-Claude-Skills --skill fastify-testing
Clone the repo
git clone --depth 1 https://github.com/RadOrigin-LLC/RAD-Claude-Skills

Made for: Claude Code.

Or install rad-fastify, the plugin that ships this one along with the rest of its 8 skills, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/radorigin-llc/rad-claude-skills/fastify-testing/github.svg)](https://agentmods.dev/skills/radorigin-llc/rad-claude-skills/fastify-testing)
Your own site
<a href="https://agentmods.dev/skills/radorigin-llc/rad-claude-skills/fastify-testing"><img src="https://agentmods.dev/badge/skills/radorigin-llc/rad-claude-skills/fastify-testing/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 fastify-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/radorigin-llc/rad-claude-skills/fastify-testing"><img src="https://agentmods.dev/badge/skills/radorigin-llc/rad-claude-skills/fastify-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,045 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 original 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.1 $0.00081 $0.02045
Opus 5 $0.00041 $0.01022
Sonnet 5 $0.00016 $0.00409
Haiku 4.5 $0.00008 $0.00204

Measured 9d ago against content hash 7341cb63084b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

fastify-testing 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 9d 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.

archive/plugins/rad-fastify/skills/fastify-testing/SKILL.md · 199 lines

How it starts

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

Fastify Testing Patterns

You are guiding the user through testing Fastify applications. Follow these instructions precisely when generating test code, reviewing test files, or advising on Fastify test architecture.

Core Principle: In-Process Injection

NEVER bind Fastify to a real TCP port during unit or integration tests. Use the .inject() method for all HTTP simulation. Fastify ships with light-my-request built in, so .inject() simulates requests entirely in-process with zero network stack overhead. This means dramatically faster execution and no "address in use" port conflicts when running tests in parallel.

When you see test code that calls app.listen() or binds to a port, flag it immediately and refactor to use .inject() instead.

App/Server Separation (Non-Negotiable)

ALWAYS separate plugin and route registration from the network listener. Structure every Fastify project with this separation:

  • Create an app.js (or app.ts) that exports a build() or createApp() function. This function constructs the Fastify instance, registers all plugins and routes, then returns the instance without listening.
  • Create a server.js (or server.ts) that imports build(), calls it, and then calls app.listen(). This file contains minimal code and is not tested directly.
  • The test suite creates fresh, isolated instances per test case by calling build().

When scaffolding a new Fastify project, always apply this pattern from the start. When reviewing existing code that does not follow this pattern, recommend the refactor as a prerequisite to testability.

Pattern

// app.js
const Fastify = require('fastify')

async function build(opts = {}) {
  const app = Fastify(opts)
  app.register(require('./plugins/db'))
  app.register(require('./routes/users'), { prefix: '/api/users' })
  return app
}

module.exports = build

// server.js
const build = require('./app')

const start = async () => {
  const app = await build({ logger: true })
  await app.listen({ port: 3000, host: '0.0.0.0' })
}

start()

Read the full file on GitHub · 199 lines

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. 9d ago First seen · 199 lines · 81 tokens per session scan A 7341cb63084b

Subscribe to this mod's changes

fastify-testing is a skill published in the GitHub repository RadOrigin-LLC/RAD-Claude-Skills (5 stars, last pushed 22d ago), licensed Apache-2.0. It adds 81 tokens to every session and 2,045 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

vibe-domain-extractor

Extracts pure, framework-free, IO-free domain models and deterministic business rules from a rapid prototype with strict preservation vs replacement classification and purity audit enforcement.

richfrem/agent-plugins-skills · 36 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

self-audit

Trigger with "run self-audit", "test the analyzer", "regression test the plugin analyzer", "audit the agent-scaffolders", or "verify the analyzer works correctly". Runs the analyze-plugin skill against the agent-scaffolders itself and its test fixtures as a regression smoke test. Use this after making changes to the…

richfrem/agent-plugins-skills · 76 tokens

test-writing

Write comprehensive tests for code including unit tests, integration tests, and end-to-end tests. Use this to ensure code quality, catch bugs, and validate functionality.

KarmaloopAI/Jiva · 35 tokens

pytest-optimizer

Use when a pytest suite or its fixtures are slow and need measured, safety-gated optimization across the full pipeline.

tony/skills · 27 tokens

testing-strategy

Test strategy and quality engineering — the test pyramid, what to test at each layer, meaningful coverage policy, integration and contract testing, E2E for critical journeys, test data and fixtures, flaky-test control, mutation testing, load and security testing, and CI gating. Use when the user says "tests"…

Kin9Zeus/senior-engineer-skills · 156 tokens