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…

Ver código fuente

Cómo usar

  1. Copia el comando y revisa el paquete antes de instalarlo en tu entorno de agente.
  2. Consulta las herramientas, credenciales y entornos necesarios en el documento original.
  3. Describe las entradas y el resultado deseado; contrasta la salida con las fuentes.
npx skills add https://github.com/fandhe-ai/agent-reference-skills --skill fastify

Antes de empezar

  • La instalación no incluye suscripción al modelo, cuota API ni permisos sobre tus archivos.
  • Las estrellas e instalaciones reflejan actividad, no una prueba independiente de calidad o seguridad.
Documento original del Skill

Contenido del repositorio de origen con títulos, ejemplos, código, tablas, enlaces e imágenes preservados.

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

Relacionados por tarea

del mismo repositorio

Más Skills

Todos los Skills
fandhe-ai
Comunidad

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 統合。

instalaciones
2
GitHub Stars
4
Actualizado
24 oct
fandhe-ai
Comunidad

anthropic-api-core

Claude API (platform.claude.com) の Messages API リファレンス。 streaming (SSE), thinking (adaptive) / effort, prompt caching, context editing, compaction, structured outputs, Message Batches, token counting, vision / PDF, Files API, citations, embeddings (Voyage AI)。 errors, rate limits, beta headers, Amazon Bedrock / Vertex AI / Foundry 経由アクセスを含む。

instalaciones
1
GitHub Stars
4
Actualizado
14 oct
fandhe-ai
Comunidad

anthropic-claude-code-admin

Claude Code (code.claude.com) の権限・セキュリティ・企業管理リファレンス。 permissions (allow / ask / deny), permission modes, auto mode, sandboxing (sandboxed Bash), sandbox environments, zero data retention, data usage, admin setup, server-managed settings, corporate launcher, network config, authentication (SSO), analytics, monitoring (OpenTelemetry), costs, large codebases。

instalaciones
1
GitHub Stars
4
Actualizado
14 oct
fandhe-ai
Comunidad

anthropic-claude-code-deploy

Claude Code (code.claude.com) のデプロイ・CI/CD リファレンス。 Amazon Bedrock / Google Cloud Agent Platform (Vertex AI) / Microsoft Foundry / Claude Platform on AWS 経由、Claude apps gateway、LLM gateway (protocol / rollout)、 GitHub Actions (claude-code-action) / GitLab CI/CD / GitHub Enterprise Server (GHES)、 code review 自動化・ultrareview、Slack (Claude Tag)、headless mode、cloud environments、 devcontainer、self-hosted environments(runner 構成・identity 検証・本番デプロイ)。

instalaciones
1
GitHub Stars
4
Actualizado
14 oct