PlugWiki

fastify-best-practices Skill for Claude Code: Fastify Rules for Routes, Plugins and Testing

Gives your assistant Fastify rules for routes, plugins, validation, hooks, testing and production setup.

Installs
87.5K
on skills.sh
Stars
2K
on GitHub
Files
20
besides SKILL.md
Updated
Oct 2026
last repo commit

fastify-best-practices makes your assistant follow Fastify conventions when you build, configure or debug a Fastify server. The SKILL.md holds a minimal runnable server, a recommended reading order for five scenarios (new to Fastify, authentication, performance, testing, production) and five core principles: encapsulation, schema-first, performance, async/await and minimal dependencies.

The detail lives in 19 rule files that the assistant opens as needed, from plugins, routes and schemas to hooks, authentication, WebSockets, database patterns and deployment. It triggers on prompts about Fastify, Node.js servers and REST API routes. The folder is markdown plus a tile.json file, and bundles no scripts.

Good for

  • Node.js developers building REST APIs with Fastify
  • TypeScript teams using Fastify with strip types
  • Developers moving a Fastify app to production

Install fastify-best-practices

Claude Code

  1. 1

    Copy this prompt.

    Install the fastify-best-practices skill in Claude Code. Run this command:
    
    npx skills add https://github.com/mcollina/skills --skill fastify-best-practices
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

From its listing on skills.sh. Source.

What's in the skill

When it loads

Guides development of Fastify Node.js backend servers and REST APIs using TypeScript or JavaScript. Use when building, configuring, or debugging a Fastify application — including defining routes, implementing plugins, setting up JSON Schema validation, handling errors, optimising performance, managing authentication, configuring CORS and security headers, integrating databases, working with WebSockets, and deploying to production. Covers the full Fastify request lifecycle (hooks, serialization, logging with Pino) and TypeScript integration via strip types. Trigger terms: Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, app.ts.

Sections in SKILL.md

  1. When to use
  2. Quick Start
  3. Recommended Reading Order for Common Scenarios
  4. How to use
  5. Core Principles

Key facts

Installs on skills.sh
87,546 (Nov 2, 2026)
GitHub stars (whole repo)
1,960 (Nov 2, 2026)
License
MIT
Last repo commit
Oct 27, 2026

What it includes

  • Five paths: new to Fastify, authentication, performance, testing, production

    Recommended reading order

  • Encapsulation, schema-first, performance, async/await, minimal dependencies

    Core principles

  • Plugin encapsulation, route organization and JSON Schema validation

    plugins.md, routes.md, schemas.md

  • Request lifecycle hooks and error handling patterns

    hooks.md, error-handling.md

  • Auth and authorization, CORS and security headers

    authentication.md, cors-security.md

  • Response serialization, speed tuning and content type parsing

    serialization.md, performance.md, content-type.md

  • Testing with inject(), Pino logging and TypeScript integration

    testing.md, logging.md, typescript.md

  • Database integration, WebSocket support and reply.from() proxying

    database.md, websockets.md, http-proxy.md

  • App configuration, production deployment and decorators

    configuration.md, deployment.md, decorators.md

From the official docs

Questions

What does the fastify-best-practices skill do?

It guides your assistant when it writes or debugs Fastify code. It points to rule files for routes, plugins, validation, hooks, auth, testing, logging and deployment.

How do I install the fastify-best-practices skill?

Use the install box at the top of this page.

Why is it called fastify in the repo?

The repo's folder and its README table list it as fastify. The SKILL.md's own name field is fastify-best-practices, which is the name skills.sh shows.

Does it cover TypeScript?

Yes. The description says it covers TypeScript integration via strip types, and there is a typescript.md rule file.

Does it cover testing and authentication?

Yes. There are testing.md (testing with Fastify's inject method) and authentication.md rule files.

Is the fastify-best-practices skill safe to install?

It is markdown rules plus a tile.json file, with no scripts bundled. It does not name an API key. It shapes the code your assistant writes in your project, so review that code as usual.

Information

updated Nov 2, 2026

Repository
mcollina/skills
Folder
skills/fastify

mcollina/skillsskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 3
  1. fastify-best-practices SKILL.md · github.com
  2. mcollina/skills README · github.com
  3. fastify-best-practices on skills.sh · skills.sh

Updated Nov 2, 2026.