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
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
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
- When to use
- Quick Start
- Recommended Reading Order for Common Scenarios
- How to use
- Core Principles
Key facts
- Author
- Matteo Collina
- Repo
- mcollina/skills
- 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
- Files in the skill folder
- 21 files: SKILL.md, tile.json, 19 in rules/
- skills.sh audits
- Gen Agent Trust Hub pass, Socket pass, Snyk pass
- Rule files
- 19 markdown files under rules/
- Folder name in the repo
- skills/fastify; the SKILL.md name is fastify-best-practices
What it includes
Five paths: new to Fastify, authentication, performance, testing, production
Recommended reading orderEncapsulation, schema-first, performance, async/await, minimal dependencies
Core principlesPlugin encapsulation, route organization and JSON Schema validation
plugins.md, routes.md, schemas.mdRequest lifecycle hooks and error handling patterns
hooks.md, error-handling.mdAuth and authorization, CORS and security headers
authentication.md, cors-security.mdResponse serialization, speed tuning and content type parsing
serialization.md, performance.md, content-type.mdTesting with inject(), Pino logging and TypeScript integration
testing.md, logging.md, typescript.mdDatabase integration, WebSocket support and reply.from() proxying
database.md, websockets.md, http-proxy.mdApp 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
Sources
Docs, issue trackers and discussions this page is built from.
Show all 3Hide
- fastify-best-practices SKILL.md · github.com
- mcollina/skills README · github.com
- fastify-best-practices on skills.sh · skills.sh