·fastify-best-practices
</>

fastify-best-practices

Fastify 5 个最佳实践、API 参考以及路由、插件、挂钩、验证、错误处理和 TypeScript 的模式。在以下情况下使用:(1) 编写新的 Fastify 路由、插件或挂钩,(2) 查找 Fastify API 签名或选项,(3) 调试 Fastify 问题(生命周期、封装、验证、插件超时),(4) 检查 Fastify 代码中的反模式。触发器:“添加路由”、“创建插件”、“Fastify hook”、“验证架构”、“Fastify 错误”、“setErrorHandler”、“fastify-plugin”。

14安装·1热度·@jgamaraalv

安装

$npx skills add https://github.com/jgamaraalv/ts-dev-kit --skill fastify-best-practices

如何安装 fastify-best-practices

通过命令行快速安装 fastify-best-practices AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/jgamaraalv/ts-dev-kit --skill fastify-best-practices
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:jgamaraalv/ts-dev-kit。

SKILL.md

查看原文

Error at any stage → onError hooks → error handler → onSend → response → onResponse.

Project convention: use FastifyPluginCallback + done() (avoids require-await lint errors).

Load the relevant file when you need detailed API information:

Fastify 5 个最佳实践、API 参考以及路由、插件、挂钩、验证、错误处理和 TypeScript 的模式。在以下情况下使用:(1) 编写新的 Fastify 路由、插件或挂钩,(2) 查找 Fastify API 签名或选项,(3) 调试 Fastify 问题(生命周期、封装、验证、插件超时),(4) 检查 Fastify 代码中的反模式。触发器:“添加路由”、“创建插件”、“Fastify hook”、“验证架构”、“Fastify 错误”、“setErrorHandler”、“fastify-plugin”。 来源:jgamaraalv/ts-dev-kit。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/jgamaraalv/ts-dev-kit --skill fastify-best-practices
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-11

Browse more skills from jgamaraalv/ts-dev-kit

快速解答

什么是 fastify-best-practices?

Fastify 5 个最佳实践、API 参考以及路由、插件、挂钩、验证、错误处理和 TypeScript 的模式。在以下情况下使用:(1) 编写新的 Fastify 路由、插件或挂钩,(2) 查找 Fastify API 签名或选项,(3) 调试 Fastify 问题(生命周期、封装、验证、插件超时),(4) 检查 Fastify 代码中的反模式。触发器:“添加路由”、“创建插件”、“Fastify hook”、“验证架构”、“Fastify 错误”、“setErrorHandler”、“fastify-plugin”。 来源:jgamaraalv/ts-dev-kit。

如何安装 fastify-best-practices?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/jgamaraalv/ts-dev-kit --skill fastify-best-practices 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/jgamaraalv/ts-dev-kit