F

fastify-best-practices

by @mcollinav
4.6(55)

Fastifyを使用したバックエンドアプリケーション開発のベストプラクティスを提供し、プラグインの実装、ルーティング処理、アーキテクチャガイダンスを網羅し、高性能サービス構築を支援します。

fastifynodejsweb-frameworksapi-developmentbackend-performanceGitHub
インストール方法
npx skills add https://github.com/mcollina/skills --skill fastify-best-practices
compare_arrows

Before / After 効果比較

1
使用前

明確なベストプラクティスの指針がない場合、Fastifyを使用してバックエンドアプリケーションを開発する際、開発者はプラグイン管理の混乱、不合理なルーティング設計、不十分なパフォーマンス最適化などの問題に直面する可能性があります。これにより、アプリケーションは拡張が困難になり、メンテナンスコストが高くなり、Fastifyの高性能な利点を十分に活用できず、ユーザーエクスペリエンスに影響を与えます。

使用後

Fastifyのベストプラクティスに従うことで、開発者はプラグインを効率的に実装し、ルーティング処理を最適化し、スケーラブルなアーキテクチャを構築する方法を体系的に学ぶことができます。これにより、コード品質と保守性が確保されるだけでなく、Fastifyのパフォーマンスの可能性を最大限に引き出し、チームが応答性が高く、安定した信頼性があり、拡張しやすい高性能バックエンドサービスを迅速に構築できるようになります。

SKILL.md

fastify-best-practices

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

Quick Start

A minimal, runnable Fastify server to get started immediately:

import Fastify from 'fastify'

const app = Fastify({ logger: true })

app.get('/health', async (request, reply) => {
  return { status: 'ok' }
})

const start = async () => {
  await app.listen({ port: 3000, host: '0.0.0.0' })
}
start()

Recommended Reading Order for Common Scenarios

  • New to Fastify? Start with plugins.mdroutes.mdschemas.md

  • Adding authentication: plugins.mdhooks.mdauthentication.md

  • Improving performance: schemas.mdserialization.mdperformance.md

  • Setting up testing: routes.mdtesting.md

  • Going to production: logging.mdconfiguration.mddeployment.md

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

Weekly Installs737Repositorymcollina/skillsGitHub Stars1.5KFirst SeenJan 31, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled onopencode677codex673github-copilot670gemini-cli669cursor621kimi-cli619

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数21.8K
評価4.6 / 5.0
バージョン
更新日2026年7月9日
比較事例1 件

ユーザー評価

4.6(55)
5
24%
4
51%
3
24%
2
2%
1
0%

この Skill を評価

0.0

対応プラットフォーム

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

タイムライン

作成2026年3月17日
最終更新2026年7月9日
🎁 Agent 知識カード
アンケート