fastify-production

fastify-production is a skill for Claude Code from RadOrigin-LLC/RAD-Claude-Skills. It costs 97 tokens per session (3,220 once invoked), scanned A, original, Apache-2.0.

A set of deployment and security guidelines for Fastify applications, a Node.js web framework, running in production.

In plain words
What is it for?
It helps configure reverse proxies, security headers, CORS, rate limits, trusted proxy settings, graceful shutdown, Kubernetes deployments, and performance settings.
Why use it?
It helps prevent unsafe internet exposure and prepares the application to handle traffic, shutdowns, proxies, and common web threats.

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 configure reverse proxies, security headers, CORS, rate limits, trusted proxy settings, graceful shutdown, Kubernetes deployments, and performance settings.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/radorigin-llc/rad-claude-skills/fastify-production"><img src="https://agentmods.dev/badge/skills/radorigin-llc/rad-claude-skills/fastify-production.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,220 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.00097 $0.03220
Opus 5 $0.00048 $0.01610
Sonnet 5 $0.00019 $0.00644
Haiku 4.5 $0.00010 $0.00322

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

Security

Grade A, and why

fastify-production 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 11d 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-production/SKILL.md · 346 lines

How it starts

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

Fastify Production Hardening

When helping a user prepare a Fastify application for production, follow every section below. These are non-negotiable requirements for a production-grade Fastify deployment. Do not skip sections. If the user's codebase is missing any of these, flag it explicitly and provide the fix.

Reverse Proxy (Non-Negotiable)

NEVER allow a Fastify server to be exposed directly to the internet. This is an explicit anti-pattern called out by the Fastify team themselves. ALWAYS deploy Fastify behind a reverse proxy such as Nginx, HAProxy, AWS ALB, GCP Load Balancer, or Cloudflare.

The reverse proxy is responsible for:

  • TLS termination -- Node.js is significantly less efficient at encryption than dedicated proxy software. Offloading TLS to the proxy frees the event loop for request handling.
  • Static file serving -- serve assets from the proxy layer, not from Fastify.
  • Load balancing -- distribute traffic across multiple Fastify instances.
  • Connection management -- handle keep-alive, timeouts, and slow clients at the proxy layer.

When Fastify runs behind a proxy, configure trustProxy so that request.ip and request.hostname resolve correctly from forwarded headers:

const app = fastify({
  trustProxy: true // trusts all proxies
})

// Or be specific with IP/CIDR:
const app = fastify({
  trustProxy: '10.0.0.0/8'
})

Without trustProxy, the X-Forwarded-For, X-Forwarded-Host, and X-Forwarded-Proto headers can be spoofed by any client. Always set this when behind a proxy. Never set it when not behind a proxy.

Security Headers & Plugins

@fastify/helmet (Required)

Register @fastify/helmet on every production Fastify instance. It sets critical security headers including Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Strict-Transport-Security, and others.

Register it early, before any route definitions, so that headers apply to all responses including error responses:

Read the full file on GitHub · 346 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. 11d ago First seen · 346 lines · 97 tokens per session scan A 1c8ca34a0c64

Subscribe to this mod's changes

fastify-production is a skill published in the GitHub repository RadOrigin-LLC/RAD-Claude-Skills (5 stars, last pushed 24d ago), licensed Apache-2.0. It adds 97 tokens to every session and 3,220 once invoked, about $0.0005 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

draper-decorators

This skill should be used when the user asks to "create a decorator", "write a decorator", "move logic into decorator", "clean logic out of the view", "isn't it decorator logic", "test a decorator", or mentions Draper, keeping views clean, or representation logic in decorators. Should also be used when editing…

hoblin/claude-ruby-marketplace · 131 tokens

rudder-mcp-workflow

Connects AI agents to RudderStack via MCP tool calls for catalog, sources, destinations, transformations, and live events. Use when connecting an AI agent to RudderStack's MCP server, driving RudderStack via MCP, or mentions of mcp.rudderstack.com.

rudderlabs/rudder-agent-skills · 63 tokens

helius

Skill "helius" from helius-labs/core-ai, covering helius — build on solana, prerequisites, 1. helius mcp server, 2. mcp router surface and 3. api key.

helius-labs/core-ai · 0 tokens

api-contracts

API design and contract engineering — REST resource modelling, error envelopes, pagination, filtering, idempotency, versioning and deprecation, rate limiting, webhooks, OpenAPI, GraphQL schema and N+1 defence, and contract testing. Use when designing, reviewing or documenting an endpoint or integration; when the user…

Kin9Zeus/senior-engineer-skills · 148 tokens

performance-engineering

Performance engineering across the stack — Core Web Vitals (LCP, INP, CLS), bundle size and rendering strategy, image and font optimisation, backend latency budgets, caching layers, database query cost, profiling, and load testing. Use when the user says "slow", "performance", "optimize", "Core Web Vitals", "LCP"…

Kin9Zeus/senior-engineer-skills · 146 tokens

bug-reporting

Load this skill whenever you are filing, reviewing, or generating accessibility bug reports — whether from automated tool output, manual testing, user reports, or testing with disabled people. The purpose of this skill is to make accessibility findings easier to report accurately, connect them to real people and…

mgifford/accessibility-skills · 122 tokens