fastify-best-practices

📁 mcollina/skills 📅 13 days ago
87
总安装量
87
周安装量
#2618
全站排名
安装命令
npx skills add https://github.com/mcollina/skills --skill fastify-best-practices

Agent 安装分布

opencode 72
codex 68
github-copilot 67
gemini-cli 67
claude-code 50
antigravity 45

Skill 文档

When to use

Use this skill when you need to:

  • Develop backend applications using Fastify
  • Implement Fastify plugins and route handlers
  • Get guidance on Fastify architecture and patterns
  • Use TypeScript with Fastify (strip types)
  • Implement testing with Fastify’s inject method
  • Configure validation, serialization, and error handling

How to use

Read individual rule files for detailed explanations and code examples:

Core Principles

  • Encapsulation: Fastify’s plugin system provides automatic encapsulation
  • Schema-first: Define schemas for validation and serialization
  • Performance: Fastify is optimized for speed; use its features correctly
  • Async/await: All handlers and hooks support async functions
  • Minimal dependencies: Prefer Fastify’s built-in features and official plugins