fastify-inject-testing

fastify-inject-testing is a skill for Codex from OutlineDriven/outline-driven-development. It costs 54 tokens per session (1,768 once invoked), scanned A, original, Apache-2.0.

A testing setup for Fastify web applications that exercises routes through Fastify's built-in request injection instead of opening network sockets.

In plain words
What is it for?
It is for writing and running Node.js integration tests for Fastify routes, including authenticated requests, rejected input, file uploads, and streamed responses.
Why use it?
It makes route tests more isolated and avoids needing a running network listener. It covers behavior such as authentication, validation errors, uploads, streams, plugins, and hooks.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is app.register(import('../src/plugins/database.js'), {.

Good fit It is for writing and running Node.js integration tests for Fastify routes, including authenticated requests, rejected input, file uploads, and streamed responses.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/outline-driven-development
agentmods
npx agentmods add skills/outlinedriven/outline-driven-development/fastify-inject-testing

Made for: 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 fastify-inject-testing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/outline-driven-development/fastify-inject-testing"><img src="https://agentmods.dev/badge/skills/outlinedriven/outline-driven-development/fastify-inject-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,768 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00054 $0.01768
Opus 5 $0.00027 $0.00884
Sonnet 5 $0.00011 $0.00354
Haiku 4.5 $0.00005 $0.00177

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

Security

Grade A, and why

fastify-inject-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 5d 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.

.devin/skills/fastify-inject-testing/SKILL.md · 126 lines

How it starts

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

Fastify inject testing

Contract

Field Bound contract
Trigger Testing Fastify applications without network sockets: auth, validation errors, uploads, streams, plugins, hooks.
Authority Reversible local: write only test files under the project test tree and run node:test suites. Roll back by deleting the added test files and reverting test-only config; never mutate application source, credentials, or remote state.
Side effect Writes test files; runs node:test suites.
Done Integration tests exercise routes via inject() with no listener, covering auth, validation failure, and at least one stream/upload path, passing in parallel.

Inputs

  • A Fastify application factory (e.g. buildApp() or buildTestApp(options)) that returns a ready FastifyInstance without calling listen(). Required.
  • Route definitions under test (path, method, schema, auth). Required.
  • Optional: a test database URL (TEST_DATABASE_URL) or mocked dependency factories for isolation.
  • Optional: fixture files for upload tests (e.g. ./test/fixtures/test.pdf).

Procedure

  1. Build a reusable test app factory that constructs Fastify({ logger: false, ...options }), registers the real plugins and routes, calls await app.ready(), and returns { app, inject: app.inject.bind(app) }. Never call app.listen(); inject() simulates HTTP without a network socket.
import Fastify from 'fastify';
import type { FastifyInstance } from 'fastify';

export async function buildTestApp(options = {}): Promise<{
  app: FastifyInstance;
  inject: FastifyInstance['inject'];
}> {
  const app = Fastify({ logger: false, ...options });
  app.register(import('../src/plugins/database.js'), {
    connectionString: process.env.TEST_DATABASE_URL,
  });
  app.register(import('../src/routes/index.js'));
  await app.ready();
  return { app, inject: app.inject.bind(app) };
}

Done when: the factory returns { app, inject } without calling listen().

  1. In each describe block, create a fresh app instance in before and close it in after so suites are isolated and can run in parallel.

Read the full file on GitHub · 126 lines

Files

What ships with it

1 file 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. 5d ago First seen · 126 lines · 54 tokens per session scan A b79dc9152601

Subscribe to this mod's changes

fastify-inject-testing is a skill published in the GitHub repository OutlineDriven/outline-driven-development (52 stars, last pushed 4d ago), licensed Apache-2.0. It adds 54 tokens to every session and 1,768 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

server-side-calls

Call tRPC procedures directly from server code using t.createCallerFactory() and router.createCaller(context) for integration testing, internal server logic, and custom API endpoints. Catch TRPCError and extract HTTP status with getHTTPStatusCodeFromError(). Error handling via onError option.

trpc/trpc · 61 tokens

voiden

Create and edit Voiden .void files for API testing. Covers the .void file format and all enabled extension block types.

VoidenHQ/voiden · 28 tokens

csharp-dotnet

Use when writing, reviewing, testing, or shipping C# / .NET code — ASP.NET Core APIs (minimal APIs vs controllers), EF Core data access, async correctness, solution layout in .cs/.csproj/.sln. NOT a Java/Spring backend (that is spring-boot), NOT a Node/TypeScript backend (that is nestjs), NOT framework-neutral REST…

ericrisco/rsc-harness · 89 tokens

1c-xdto-validate

A checker for XDTO packages in 1C:Enterprise. XDTO describes the structure and data types used when 1C exchanges data with external systems.

Desko77/cursor-1c-skills · 36 tokens

verification-before-completion

Use when a task, feature, or fix is called done, complete, finished, or fixed, or before a commit, PR, or next task. Not for fact-checking: use verify-both-ways. Not for measuring: use verify-this.

OutlineDriven/odin-claude-plugin · 57 tokens

backend-dev-guidelines

Backend development guidelines for Node.js/Express/TypeScript applications. Layered architecture (Routes → Controllers → Services → Repositories), error handling, validation, middleware patterns, database access, and testing. Use when creating routes, endpoints, APIs, controllers, services, repositories, middleware…

Bbeierle12/Skill-MCP-Claude · 68 tokens