fandhe-ai/agent-reference-skills

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, FSTERR, find-my…

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill fastify

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

Fastify API リファレンス

Fastify — Node.js ネイティブの高速 HTTP サーバーフレームワーク(対象バージョン v5.12.1)。 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 等)。

ディレクトリ構成

text
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 利用、警告コードgetting-startedreferences/getting-started/README.md
ファクトリオプション、find-my-way ルーターオプション、インスタンスライフサイクル、fastify.injectserverreferences/server/README.md
ルート宣言、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

Related by task

from this repository

More skills

All skills
fandhe-ai
Community

fandhe-frontend

Rust 製フロントエンドフレームワーク fandhe-frontend のリファレンス。 SSR / SPA / SSG / View Transitions、hydration、Document builder(SSR 組み込み)、CSP meta、単一実行ファイル配布、Vercel、既定エスケープ。 クレート core / app / interactive / server(generatepages) / headless-ui(Primitives, AutocompleteToken, passkey) / pre-styled-ui(Themes, motion) / wireframe-ui(Wireframes) / animation(data- 属性) / wasm-full。 Blocks(Hero / Pricing / Cart 等セクション例 335 件)。CLI fw。

1h installs
2
GitHub stars
4
Updated
Nov 3
fandhe-ai
Community

playwright

Playwright v1.64 (E2E / コンポーネントテストフレームワーク) リファレンス。 test, expect, page, locator, getByRole / getByText / getByLabel / getByTestId / getByRef、 toBeVisible, click, fill, route, mock, fixtures、playwright.config.ts、 auth 永続化、Credentials (passkeys / WebAuthn)、WebStorage、WebMCP、 Playwright MCP / playwright-cli、trace viewer、screencast、test locks、codegen、UI モード。

1h installs
2
GitHub stars
4
Updated
Nov 3
fandhe-ai
Community

rust

Rust 言語リファレンス。 別名: rustlang, rs (拡張子)、Rust-lang。 TRPL (The Rust Programming Language)、Rust by Example、Reference、 Cargo Book、rustc Book、rustdoc Book、Rustonomicon (Unsafe Rust)、 Edition Guide、Standard Library、Error Index。 所有権、ライフタイム、トレイト、async / await、エラーハンドリング、マクロ。

1h installs
2
GitHub stars
4
Updated
Nov 3
fandhe-ai
Community

better-auth

Better Auth (TypeScript 認証フレームワーク) v1.7 リファレンス。 認証・認可、サインアップ・サインイン、セッション管理、OAuth、パスキー、二要素認証 (2FA / TOTP)、SSO / SAML、SCIM、 OAuth Provider (OAuth 2.1 / OIDC)、MCP 認可 (@better-auth/mcp)、Infrastructure (dash / sentinel)、 プラグイン (organization, admin, magic-link, anonymous 等)。betterAuth, createAuthClient, signUp, signIn, getSession。 Next.js, Nuxt, SvelteKit, Hono, Express, Expo, TanStack, Effect 統合。

1h installs
2
GitHub stars
4
Updated
Oct 24