mcpField
F
fastify

fastify

github.com/full-stack-skills开发070 次安装5 周前更新
代码仓库

关于 fastify

fastify 是用于使用 Fastify 构建 Node.js HTTP 服务的 Skill,涵盖路由、schema 校验、插件、序列化、日志和 TypeScript 配置。

主要功能

  1. 01配置路由与请求处理
  2. 02定义请求和响应 schema
  3. 03使用插件与装饰器
  4. 04配置序列化与日志
  5. 05使用 TypeScript 和 async/await

适用场景

  1. 01构建 Node.js HTTP 服务
  2. 02为路由添加 schema 校验
  3. 03以插件组织服务功能

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/full-stack-skills/nodejs-skills --skill fastify

安装后在 Claude Code 中输入/fastify确认已加载。

附带文件agents/openai.yamlLICENSE.txt

README 原文English

来自项目 README

README 暂无中文译文,以下为英文原文;中文介绍见上方。

When to use this skill

Use this skill whenever the user wants to:

  • 用 Fastify 编写高性能 Node.js HTTP 服务、 schema 校验与插件
  • 配置路由、序列化、日志与 TypeScript

How to use this skill

  1. 核心:fastify()、get/post、request/reply;schema 与 serialization;插件与装饰器。
  2. 进阶:@fastify/cors、formbody、static;类型与 async/await。
  3. 参考:https://fastify.dev/docs/latest/

Best Practices

  • schema 定义请求响应;插件封装与顺序。
  • 生产用日志与错误处理;性能与安全头。

Keywords

fastify, Node.js, 高性能, schema

评论

支持 Markdown