fastify-patterns
OfficialBuild Fastify APIs with confidence.
AuthorMolcajeteAI
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a comprehensive set of patterns and best practices for building high-performance Node.js APIs using the Fastify framework, streamlining development and ensuring robust API design.
Core Features & Use Cases
- Schema-First Development: Enforces data validation and serialization using Zod schemas.
- Plugin Architecture: Demonstrates patterns for registering reusable plugins like database connections and authentication.
- Route Management: Shows how to structure routes, including nested routes and schema-based definitions.
- Error Handling: Implements a global error handler for consistent error responses.
- Testing: Includes examples for unit testing routes with Vitest.
- Use Case: Quickly scaffold a new Fastify API project by leveraging these pre-defined patterns for routing, database integration, and authentication.
Quick Start
Use the fastify-patterns skill to generate a basic Fastify API structure with schema-based routing and a database plugin.
Dependency Matrix
Required Modules
fastify@fastify/cors@fastify/jwt@fastify/swagger@fastify/swagger-uizodzod-to-json-schemapino-pretty@prisma/clientvitest
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: fastify-patterns Download link: https://github.com/MolcajeteAI/plugin/archive/main.zip#fastify-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.