Nodejs Fastify

Use when the user asks about Fastify, Fastify plugins and encapsulation, JSON Schema or TypeBox route schemas, Fastify hooks, serializers or @fastify/swagger. Produces Fastify 5 apps with schema-validated routes. Not for Express (use nodejs-express-skill).

45 stars 6 forksSoftware Development

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill nodejs-fastify
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/backend/nodejs/fastify ~/.claude/skills/nodejs-fastify

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Node.js Fastify

## Purpose
Build Fastify applications with schema-first validation, plugin encapsulation, request/response serialization, and lifecycle hooks.

## Agent Protocol

### Trigger
User request includes: `fastify`, `fastify server`, `fastify plugin`, `fastify schema`, `fastify hooks`, `fastify validation`, `fastify serializer`, `TypeBox`, `@fastify/swagger`.

### Input Context
- Fastify version (4.x, 5.x)
- Validation approach (JSON Schema, TypeBox, Zod)
- Plugin set (swagger, cors, jwt, rate-limit)
- Database (TypeORM, Prisma, Knex)

### Output Artifact
Server setup, plugin registration, schema definitions, hook pipeline, route patterns.

### Response Format
Produce artifact directly. No preamble, no postamble, no explanations.

### Completion Criteria
- Server created with logger and schema validator
- Plugins registered with encapsulation
- Routes defined with JSON Schema validation
- Hooks attached at correct lifecycle points
- Swagger/OpenAPI documentation configured

### Max Response Length
4096 tokens

## Architecture Decision Trees

### Validation: JSON Schema vs TypeBox vs Zod

| Criterion | JSON Schema | TypeBox | Zod |
|-----------|-------------|---------|-----|
| Type inference | Manual | `Static<typeof schema>` | `z.infer<typeof schema>` |
| Code-first | No | Yes | Yes |
| Composition | `$ref` | `Type.Union`, `Type.Intersect` | `z.union`, `z.intersection` |
| Performance | Fast native compilation | Fastest (TypeCode compiler) | Good |
Read the full skill on GitHub

Details

Skill name
nodejs-fastify
Path
skills/backend/nodejs/fastify/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the Nodejs Fastify skill do?

Use when the user asks about Fastify, Fastify plugins and encapsulation, JSON Schema or TypeBox route schemas, Fastify hooks, serializers or @fastify/swagger. Produces Fastify 5 apps with schema-validated routes. Not for Express (use nodejs-express-skill).

How do I install the Nodejs Fastify skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill nodejs-fastify. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Nodejs Fastify popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

Nodejs Hono

45

j4flmao/agent-skills

Use when the user asks about Hono, Hono RPC client (hc), zValidator, Hono middleware, Hono on Cloudflare Workers or Bun, or c.set/c.get context. Produces Hono apps that run on edge and Node runtimes. Not for Express (use nodejs-express-skill) or Workers platform setup (use cloud-native-cloudflare-workers).

Software Development

Nodejs Express Skill

45

j4flmao/agent-skills

Use when the user asks about Express.js, Express 5, Express middleware order, Express routers, Express error handler, Zod validation in Express or graceful shutdown. Produces an Express app factory with modules and tests. Not for Fastify (use nodejs-fastify) or NestJS (use nestjs-architecture).

Software Development

Nodejs Patterns

45

j4flmao/agent-skills

Use when the user asks about Node.js streams and backpressure, stream.pipeline, worker threads, typed EventEmitter, AbortController, bounded Promise concurrency or DI with awilix. Produces Node runtime pattern code. Not for project structure (use nodejs-architecture).

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.