typescript:fastify

Creates REST APIs in TypeScript using Fastify and TypeBox validation with RFC 7807 errors.

39|4|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/martinffx/atelier --skill typescript-fastify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript:fastify
Source: https://github.com/martinffx/atelier/tree/main/skills/typescript%3Afastify
Command: npx skills add https://github.com/martinffx/atelier --skill typescript-fastify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured, type-safe foundation for building Fastify-based REST APIs with TypeBox validation in TypeScript, ensuring consistent schemas and robust routing patterns.

Core Features & Use Cases

  • TypeBox-based schemas and validation integrated with Fastify routes
  • Modular routing, reusable schemas, and RFC 7807 error handling
  • Guidance for headers, authentication, and permission checks in API design
  • Real-world patterns for scalable, maintainable API services

Quick Start

Set up a Fastify project with TypeBox schemas, register modular routes, and wire a global error handler.

Frequently Asked Questions about typescript:fastify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a type-safe REST API with Fastify and TypeScript?

Build a type-safe REST API with Fastify using TypeBox to define strict input and output schemas, enabling automatic route-level validation and type inference for your TypeScript backend services.

What is the best way to validate Fastify request and response schemas in TypeScript?

Validate Fastify schemas using TypeBox definitions with $id, separating input and output types to enforce route-level validation and ensure strict request and response typing in TypeScript.

How do I implement RFC 7807 error handling in a Fastify API?

Implement RFC 7807 error handling in a Fastify API by configuring a global error handler that returns standardized problem details, ensuring consistent error response formats across all modular routes.

Can I use TypeBox for modular routing and dependency injection in Fastify?

Yes, TypeBox supports Fastify modular routing through dependency injection-friendly routers, allowing you to register reusable schemas with $id and separate input and output types for scalable API architectures.

How do I structure authentication and permission checks in a Fastify REST API?

Structure authentication and permission checks in a Fastify REST API using route-level validation and middleware guidance for headers, ensuring secure access control and scalable modular routing patterns.