What is the Fastify Best Practices skill?
Fastify Best Practices is a backend skill by mcollina for Claude Code, Cursor, Codex and other AI coding agents. 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…
Use this skill when you need to: - Develop backend applications using Fastify - Implement Fastify plugins and route handlers - Get guidance on Fastify architecture and patterns - Use TypeScript with Fastify (strip types) - Implement testing with Fastify's inject method - Configure validation, serialization, and error handling
When to use it
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… Use this skill when you need to: - Develop backend applications using Fastify - Implement Fastify plugins and route handlers - Get guidance on Fastify architecture and patterns - Use TypeScript with Fastify (strip types) - Implement testing with Fastify's inject method - Configure validation, serialization, and error handling A minimal, runnable Fastify server to get started immediately: app.get('/health', async (request, reply) = { return { status: 'ok' } })
What the SKILL.md covers
- When to use
- Quick Start
- Recommended Reading Order for Common Scenarios
- How to use
- Core Principles
- Author
- mcollina
- Pack
- mcollina/skills (11 skills)
- Category
- Backend, #155 of 317
- Alyn Score
- 66 / 99
- Files
- 21
- License
- MIT
- Last updated
- 9 days ago
- Works with
- Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot
Fastify Best Practices compared to similar skills
| Skill | Alyn Score | GitHub stars | Updated |
|---|---|---|---|
| Fastify Best Practices · mcollina | 66 | 2k | 9 days ago |
| Cs Backend Review · alirezarezvani | 63 | 30k | 3 days ago |
| Backend Patterns · affaan-m | 91 | 310k | 3 days ago |
| Backend Security Coder · rmyndharis | 66 | 2.1k | 18 days ago |
Install Fastify Best Practices
Pick your agent. Every command is ready to paste.
npx alyn-cli add fastify-best-practicesDetects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
npx skills add mcollina/skills --skill fastify-best-practicesOr use the open skills CLI directly.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads fastify-best-practices when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the fastify-best-practices skill”. In Codex, type $fastify-best-practices.
When to use
Use this skill when you need to:
- Develop backend applications using Fastify
- Implement Fastify plugins and route handlers
- Get guidance on Fastify architecture and patterns
- Use TypeScript with Fastify (strip types)
- Implement testing with Fastify's inject method
- Configure validation, serialization, and error handling
Quick Start
A minimal, runnable Fastify server to get started immediately:
import Fastify from 'fastify'
const app = Fastify({ logger: true })
app.get('/health', async (request, reply) => {
return { status: 'ok' }
})
const start = async () => {
await app.listen({ port: 3000, host: '0.0.0.0' })
}
start()
Recommended Reading Order for Common Scenarios
- New to Fastify? Start with
plugins.md→routes.md→schemas.md - Adding authentication:
plugins.md→hooks.md→authentication.md - Improving performance:
schemas.md→serialization.md→performance.md - Setting up testing:
routes.md→testing.md - Going to production:
logging.md→configuration.md→deployment.md
How to use
Read individual rule files for detailed explanations and code examples:
- rules/plugins.md - Plugin development and encapsulation
- rules/routes.md - Route organization and handlers
- rules/schemas.md - JSON Schema validation
- rules/error-handling.md - Error handling patterns
- rules/hooks.md - Hooks and request lifecycle
- rules/authentication.md - Authentication and authorization
- rules/testing.md - Testing with inject()
- rules/performance.md - Performance optimization
- rules/logging.md - Logging with Pino
- rules/typescript.md - TypeScript integration
- rules/decorators.md - Decorators and extensions
- rules/content-type.md - Content type parsing
- rules/serialization.md - Response serialization
- rules/cors-security.md - CORS and security headers
- rules/websockets.md - WebSocket support
- rules/database.md - Database integration patterns
- rules/configuration.md - Application configuration
- rules/deployment.md - Production deployment
- rules/http-proxy.md - HTTP proxying and reply.from()
Core Principles
- Encapsulation: Fastify's plugin system provides automatic encapsulation
- Schema-first: Define schemas for validation and serialization
- Performance: Fastify is optimized for speed; use its features correctly
- Async/await: All handlers and hooks support async functions
- Minimal dependencies: Prefer Fastify's built-in features and official plugins
Tips for Fastify Best Practices
- • Start a fresh session after installing so your agent picks up the new skill.
- • It is part of a pack with 11 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Fastify Best Practices
What does the Fastify Best Practices skill do?
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…
How do I install Fastify Best Practices?
Run "npx alyn-cli add fastify-best-practices" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Fastify Best Practices work in Cursor and Codex?
Yes. Fastify Best Practices uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
When should I use the Fastify Best Practices skill?
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… Use this skill when you need to: - Develop backend applications using Fastify - Implement Fastify plugins and route handlers - Get guidance on Fastify architecture and patterns - Use TypeScript with Fastify (strip types) - Implement testing with Fastify's inject method - Configure validation, serialization, and error handling A minimal, runnable Fastify server to get started immediately: app.get('/health', async (request, reply) = { return { status: 'ok' } })
What is inside the Fastify Best Practices skill?
The SKILL.md covers When to use, Quick Start, Recommended Reading Order for Common Scenarios, How to use, Core Principles, and the skill folder has 21 files.
What is a good alternative to Fastify Best Practices?
Cs Backend Review by alirezarezvani is the highest-ranked similar skill from another creator, with an Alyn Score of 63 compared to 66 for Fastify Best Practices.
Is Fastify Best Practices free?
Fastify Best Practices is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Fastify Best Practices?
Fastify Best Practices is published by mcollina in the mcollina/skills repository, together with 10 other skills.


