跳到正文
cccskills
免费在 GitHub 公开

fastify

Fastify (Node.js 高速 HTTP サーバーフレームワーク, v5) の API リファレンス。

`fastify.register`, encapsulation, `fastify-plugin`, `decorateRequest` / `decorateReply`, `onRequest` / `preHandler` / `onSend` フック, JSON Schema + Ajv, Type Providers (TypeBox / Zod), `fastify.inject`, `FST_ERR_*`, find-my-way ルーティング, fastify-cli, v4→v5 移行。

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(110)

  • SKILL.md7.2 KB
  • references/errors-logging/error-handling.md4.0 KB
  • references/errors-logging/fastify-error-codes.md18.9 KB
  • references/errors-logging/logging.md4.2 KB
  • references/errors-logging/README.md787 B
  • references/getting-started/cli-usage.md820 B
  • references/getting-started/first-plugin.md1.8 KB
  • references/getting-started/first-server.md1.4 KB
  • references/getting-started/installation.md486 B
  • references/getting-started/loading-order.md1.3 KB
  • references/getting-started/lts.md1.6 KB
  • references/getting-started/README.md1.2 KB
  • references/getting-started/request-payload.md544 B
  • references/getting-started/serializing-data.md940 B
  • references/getting-started/validate-data.md1018 B
  • references/getting-started/warnings.md3.6 KB
  • references/guides/benchmarking.md981 B
  • references/guides/database.md2.5 KB
  • references/guides/delay-accepting-requests.md2.7 KB
  • references/guides/detecting-client-abort.md1.6 KB
  • references/guides/migration-v3.md2.7 KB
  • references/guides/migration-v4.md2.3 KB
  • references/guides/migration-v5.md5.8 KB
  • references/guides/prototype-poisoning.md3.6 KB
  • references/guides/README.md1.6 KB
  • references/guides/recommendations.md1.8 KB
  • references/guides/serverless.md2.1 KB
  • references/guides/testing.md2.1 KB
  • references/hooks-lifecycle/application-hooks.md5.6 KB
  • references/hooks-lifecycle/diagnostics-channel-hooks.md2.3 KB
  • references/hooks-lifecycle/hook-scope.md1.6 KB
  • references/hooks-lifecycle/lifecycle.md4.9 KB
  • references/hooks-lifecycle/README.md1.3 KB
  • references/hooks-lifecycle/request-hooks.md7.6 KB
  • references/hooks-lifecycle/route-level-hooks.md2.9 KB
  • references/plugins/decorators.md4.0 KB
  • references/plugins/encapsulation.md4.6 KB
  • references/plugins/fastify-plugin.md2.6 KB
  • references/plugins/middleware.md2.3 KB
  • references/plugins/plugins-guide.md6.5 KB
  • references/plugins/plugins.md4.4 KB
  • references/plugins/README.md1.4 KB
  • references/plugins/write-plugin.md1.4 KB
  • references/request-reply/README.md1.4 KB
  • references/request-reply/reply-errors.md2.5 KB
  • references/request-reply/reply-hijack-trailers.md3.4 KB
  • references/request-reply/reply-methods.md2.6 KB
  • references/request-reply/reply-redirect.md1.4 KB
  • references/request-reply/reply-send.md4.0 KB
  • references/request-reply/reply-serialization.md2.6 KB
  • references/request-reply/request.md8.3 KB
  • references/routing/async-await-handlers.md2.3 KB
  • references/routing/constraints-versioning.md5.1 KB
  • references/routing/http2.md2.2 KB
  • references/routing/README.md1.4 KB
  • references/routing/route-config-log-level.md2.8 KB
  • references/routing/route-options.md6.7 KB
  • references/routing/route-prefixing.md2.4 KB
  • references/routing/shorthand-declaration.md1.7 KB
  • references/routing/url-parameters.md3.5 KB
  • references/server/content-type-parser.md3.1 KB
  • references/server/factory-options.md5.3 KB
  • references/server/instance-content-type.md1.9 KB
  • references/server/instance-decorators.md1.2 KB
  • references/server/instance-handlers.md2.2 KB
  • references/server/instance-inject.md830 B
  • references/server/instance-lifecycle.md2.8 KB
  • references/server/instance-misc.md1.8 KB
  • references/server/instance-plugins.md1.6 KB
  • references/server/instance-routing.md3.1 KB
  • references/server/instance-schemas.md2.4 KB
  • references/server/README.md1.9 KB
  • references/server/router-options.md2.3 KB
  • references/typescript/api-type-system.md9.3 KB
  • references/typescript/code-completion-tips.md2.4 KB
  • references/typescript/getting-started.md1.1 KB
  • references/typescript/plugin-typing.md3.4 KB
  • references/typescript/README.md951 B
  • references/typescript/route-generics.md2.5 KB
  • references/validation-serialization/ajv-configuration.md3.5 KB
  • references/validation-serialization/fluent-schema.md2.0 KB
  • references/validation-serialization/README.md1.7 KB
  • references/validation-serialization/response-serialization.md2.5 KB
  • references/validation-serialization/schema-basics.md4.5 KB
  • references/validation-serialization/schema-error-handling.md2.9 KB
  • references/validation-serialization/schema-refs-shared.md2.7 KB
  • references/validation-serialization/type-providers.md4.2 KB
  • references/validation-serialization/validator-serializer-compiler.md3.8 KB
  • references/validation-serialization/write-type-provider.md1.1 KB
  • samples/basic-server.md1008 B
  • samples/database-integration.md1.9 KB
  • samples/decorators.md918 B
  • samples/error-handling.md983 B
  • samples/graceful-shutdown.md2.5 KB
  • samples/hooks-auth.md1.4 KB
  • samples/logging-pino.md764 B
  • samples/plugin-encapsulation.md1.1 KB
  • samples/README.md2.2 KB
  • samples/serverless-lambda.md1.3 KB
  • samples/testing-inject.md866 B
  • samples/type-provider-typebox.md1.0 KB
  • samples/typescript-server.md2.5 KB
  • samples/validation-json-schema.md1.1 KB
  • scripts/benchmark.md1.2 KB
  • scripts/debug.md544 B
  • scripts/dev.md3.6 KB
  • scripts/generate.md1.9 KB
  • scripts/install.md2.9 KB
  • scripts/README.md1.0 KB
  • scripts/test.md962 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Fastify API リファレンス

Fastify — Node.js ネイティブの高速 HTTP サーバーフレームワーク(対象バージョン v5.12.7)。 encapsulation されたプラグインツリー・decorators・ライフサイクルフック・JSON Schema ベースの validation/serialization を中核とする API 設計・実装時に参照する。

hono(Web Standards / マルチランタイム JS)・go-echo(Go)・fandhe-backend(Rust)は別フレームワークであり、 同名の Router / plugin / middleware / hooks 概念を混同しない。pino は Fastify のロガー本体(Fastify 側は logger / loggerInstance 接続 API のみ)、zod はスキーマライブラリ本体(Fastify では Type Provider 経由で接続) であり、それぞれの API 自体は各スキルを参照する。

v4→v5 の破壊的変更は references/guides/migration-v5.md に一覧があり、影響を受ける個別ページには ## Notes に per-page で明記している(server/instance-lifecycle.md, server/instance-routing.md, server/instance-decorators.md, server/instance-content-type.md, request-reply/request.md, request-reply/reply-redirect.md, request-reply/reply-hijack-trailers.md, errors-logging/logging.md, validation-serialization/schema-basics.md, validation-serialization/type-providers.md, plugins/plugins.md, routing/constraints-versioning.md 等)。

ディレクトリ構成

skills/fastify/
  SKILL.md
  references/
    getting-started/
      README.md
      installation.md
      first-server.md
      first-plugin.md
      loading-order.md
      validate-data.md
      serializing-data.md
      request-payload.md
      cli-usage.md
      lts.md
      warnings.md
    server/
      README.md
      factory-options.md
      router-options.md
      instance-lifecycle.md
      instance-routing.md
      instance-plugins.md
      instance-decorators.md
      instance-schemas.md
      instance-handlers.md
      instance-content-type.md
      instance-inject.md
      instance-misc.md
      content-type-parser.md
    routing/
      README.md
      route-options.md
      shorthand-declaration.md
      url-parameters.md
      async-await-handlers.md
      route-prefixing.md
      constraints-versioning.md
      route-config-log-level.md
      http2.md
    request-reply/
      README.md
      request.md
      reply-methods.md
      reply-send.md
      reply-serialization.md
      reply-redirect.md
      reply-errors.md
      reply-hijack-trailers.md
    hooks-lifecycle/
      README.md
      lifecycle.md
      request-hooks.md
      application-hooks.md
      hook-scope.md
      route-level-hooks.md
      diagnostics-channel-hooks.md
    plugins/
      README.md
      plugins.md
      encapsulation.md
      fastify-plugin.md
      decorators.md
      middleware.md
      write-plugin.md
      plugins-guide.md
    validation-serialization/
      README.md
      schema-basics.md
      ajv-configuration.md
      schema-refs-shared.md
      response-serialization.md
      validator-serializer-compiler.md
      schema-error-handling.md
      type-providers.md
      write-type-provider.md
      fluent-schema.md
    typescript/
      README.md
      getting-started.md
      route-generics.md
      plugin-typing.md
      api-type-system.md
      code-completion-tips.md
    errors-logging/
      README.md
      error-handling.md
      fastify-error-codes.md
      logging.md
    guides/
      README.md
      testing.md
      serverless.md
      recommendations.md
      database.md
      benchmarking.md
      delay-accepting-requests.md
      detecting-client-abort.md
      prototype-poisoning.md
      migration-v5.md
      migration-v4.md
      migration-v3.md
  samples/
    README.md
    basic-server.md
    plugin-encapsulation.md
    decorators.md
    hooks-auth.md
    validation-json-schema.md
    type-provider-typebox.md
    typescript-server.md
    error-handling.md
    logging-pino.md
    testing-inject.md
    serverless-lambda.md
    graceful-shutdown.md
    database-integration.md
  scripts/
    README.md
    install.md
    generate.md
    dev.md
    debug.md
    test.md
    benchmark.md

探索手順

タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:

  1. 下記マッピング表でタスクに対応するカテゴリを探す
  2. そのカテゴリの references/{category}/README.md を参照して目的のページを特定する
  3. 該当ページの .md を Read して詳細を確認する

タスク → カテゴリ マッピング

タスクカテゴリ参照 README
プロジェクト初期セットアップ、最小サーバー起動、CLI 利用、警告コード (FSTWRN / FSTDEP / FSTSEC)getting-startedreferences/getting-started/README.md
ファクトリオプション、find-my-way ルーターオプション、インスタンスライフサイクル、fastify.injectserverreferences/server/README.md
ルート宣言 (QUERY メソッド fastify.query 含む)、URL パラメータ、async/await ハンドラー、バージョニング制約、HTTP/2routingreferences/routing/README.md
Request プロパティ、Reply メソッド、reply.send、リダイレクト、hijack/trailersrequest-replyreferences/request-reply/README.md
onRequest 等のリクエストフック、アプリケーションフック、フックスコープ、diagnostics_channelhooks-lifecyclereferences/hooks-lifecycle/README.md
fastify.register、encapsulation、fastify-plugin、decorators、Express 互換 middlewarepluginsreferences/plugins/README.md
JSON Schema + Ajv、response シリアライズ、Type Providers (TypeBox/Zod)、fluent-schemavalidation-serializationreferences/validation-serialization/README.md
TypeScript 型付け、ルートジェネリクス、プラグインの型、型補完typescriptreferences/typescript/README.md
エラーハンドリング、FST_ERR_* コード一覧、Pino ロガー接続errors-loggingreferences/errors-logging/README.md
テスト、サーバーレスデプロイ、DB 連携、ベンチマーク、v3/v4/v5 移行ガイドguidesreferences/guides/README.md
典型的な使い方を知りたいsamplessamples/README.md
インストール・CLI コマンドを知りたいscriptsscripts/README.md

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

amd-rocm

免费

AMD ROCm / HIP GPU コンピューティングリファレンス。 hipMalloc, hipLaunchKernelGGL, HIP Graph, hipGreenCtx, HIPRTC, hipify, rocBLAS, MIOpen, RCCL, hipThreads, libhipcxx, rocprofv3, amd-smi, rocminfo, TheRock / Core SDK 10, CDNA1-4 / RDNA1-4, MI300 / MI350 / MI350P, gfx942, Matrix Core, wave32/64。

中文简介正在准备中。当前显示原文说明。

Fandhe-AI/agent-reference-skills42026年10月18日 更新

Android アプリ開発 (Kotlin) の推奨アーキテクチャリファレンス。 Jetpack, androidx, UI layer, Domain layer, Data layer, state holder, UDF, SSOT, オフラインファースト, モジュール化, ViewModel, viewModelScope, SavedStateHandle, Lifecycle, repeatOnLifecycle, collectAsStateWithLifecycle, LiveData, Hilt による DI, Paging 3 によるページング処理。

中文简介正在准备中。当前显示原文说明。

Fandhe-AI/agent-reference-skills42026年10月18日 更新

Android アプリ開発 (Kotlin) のバックグラウンド・非同期処理リファレンス。 Jetpack androidx WorkManager: Worker, CoroutineWorker, WorkRequest, Constraints, WorkInfo, WorkContinuation, expedited work, テスト。 Service: フォアグラウンドサービス, バウンドサービス, AIDL, Messenger。 AlarmManager, PendingIntent, BroadcastReceiver, JobScheduler, Doze。 Kotlin コルーチン, Flow, StateFlow, SharedFlow, Channel。

中文简介正在准备中。当前显示原文说明。

Fandhe-AI/agent-reference-skills42026年10月18日 更新

Android アプリ開発 (Kotlin) の Gradle ビルドシステムリファレンス。 Android Gradle Plugin (AGP), Kotlin DSL (build.gradle.kts), version catalog, KSP, R8/ProGuard, App Bundle, baseline profile。

中文简介正在准备中。当前显示原文说明。

Fandhe-AI/agent-reference-skills42026年10月18日 更新

Android Jetpack Compose (Kotlin) の androidx Material3 コンポーネントリファレンス。 Button, IconButton, FloatingActionButton, Checkbox, Switch, Slider, TextField, SearchBar, DropdownMenu, Chip, DatePicker, TimePicker, Card, Scaffold, Dialog, BottomSheet, TopAppBar, NavigationBar, NavigationRail, Tab, Snackbar, ProgressIndicator, Badge, Icon, MaterialTheme, ColorScheme, Typography, Shapes。

中文简介正在准备中。当前显示原文说明。

Fandhe-AI/agent-reference-skills42026年10月18日 更新

Android Jetpack Compose (Kotlin) のアニメーション・描画リファレンス。 androidx.compose.animation / graphics API。 AnimatedVisibility, AnimatedContent, animate*AsState, Animatable, AnimationSpec, Canvas, DrawScope, Brush, Path, Color, Image。

中文简介正在准备中。当前显示原文说明。

Fandhe-AI/agent-reference-skills42026年10月18日 更新

查看 Fandhe-AI 的全部技能

报告此技能的问题