Back to skills
SKILL.md
Fastify
ASecurityFastify schema validation, hooks, plugins, serialization. Use when building Fastify apps.
- 47 stars
- 0 votes
- 0 copies
- 4 views
- Added September 12, 2026
Works with
Security analysis
100/100npx -y skills add skeletorflet/opencode-supreme-setup --skill fastify --agent claude-codeAre you the author of Fastify?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/skeletorflet-fastify)---
name: fastify
description: Fastify schema validation, hooks, plugins, serialization. Use when building Fastify apps.
---
## fastify
Build high-performance Node.js APIs with Fastify.
### Schema Validation
- JSON Schema for request validation via `schema` option
- Fastify serializes responses automatically from schema
- Supports Ajv custom validators and formats
### Hooks & Plugins
- Request lifecycle hooks: onRequest, preHandler, onSend, onResponse
- Encapsulated plugin system via fastify-plugin
- Decorators to extend Fastify instance
### Serialization
- Automatic JSON schema-based serialization
- Custom serializers for non-JSON formats
- Higher throughput than JSON.stringify
### TypeScript
- Full TypeScript support with auto-generated types
- Type providers for validation (Zod, TypeBox)
- Strict typing for request/reply
### Best Practices
- Encapsulate routes in plugins
- Use pino logger (built-in)
- Content Type Parser for non-JSON bodies
- Testing with fastify.inject() (no supertest needed)
- Compression via @fastify/compress
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.