fastify
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- 用 Fastify 编写高性能 Node.js HTTP 服务、 schema 校验与插件
- 配置路由、序列化、日志与 TypeScript
How to use this skill
- 核心:fastify()、get/post、request/reply;schema 与 serialization;插件与装饰器。
- 进阶:@fastify/cors、formbody、static;类型与 async/await。
- 参考:https://fastify.dev/docs/latest/
Best Practices
- schema 定义请求响应;插件封装与顺序。
- 生产用日志与错误处理;性能与安全头。