willyd61/nautobot-v2-custom-metrics-old/fastify
Claude Code and agent skill by willyd61/nautobot-v2-custom-metrics-old
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Fastify high-performance Node.js framework. Covers routing, plugins, validation, and serialization. Use when building fast Node.js APIs. USE WHEN: user mentions "Fastify", "fastify", "TypeBox", "schema validation", asks about "fast Node.js framework", "high-throughput API", "JSON schema validation", "performance-critical backend", "plugin-based architecture" DO NOT USE FOR: Enterprise DI patterns - use `nestjs` instead, Minimalist approach - use `express` instead, Edge runtimes - use `hono` instead, Deno - use `oak` or `fresh` instead
Install
npx vskill@latest install willyd61/nautobot-v2-custom-metrics-old/fastifySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as claude-dev-suite/claude-dev-suite/fastify.
Fastify Core Knowledge
Full Reference: See advanced.md for WebSocket authentication, room management, heartbeat patterns, message validation, and Redis scaling.
Deep Knowledge: Usemcp__documentation__fetch_docswith technology:fastifyfor comprehensive documentation.
Basic Setup
Route with Schema Validation
Plugins
Error Handling
Health Checks
Testing
WebSocket Setup
When NOT to Use This Skill
- Enterprise Architecture - Use NestJS for DI and modular design
- Simple CRUD APIs - Use Express if performance is not critical
- Edge Runtimes - Use Hono for Cloudflare Workers
- Deno Projects - Use Oak or Fresh instead
Anti-Patterns
| Anti-Pattern | Why It's Bad | Correct Approach | |
|---|---|---|---|
| Not using schema validation | Loses performance advantage | Define schemas for routes | |
Missing fastify-plugin wrapper | Encapsulation issues | Use fp() for shared plugins | |
Using app.listen() in tests | Slow, port conflicts | Use app.inject() | |
| Ignoring response schema | Slower serialization | Define response schemas |
Quick Troubleshooting
| Issue | Likely Cause | Solution | |
|---|---|---|---|
| "Cannot call reply.send twice" | Multiple sends | Return after first reply.send() | |
| Plugin not accessible | Missing fastify-plugin | Wrap with fp() | |
| Schema not working | Not registered | Add schema: {} to route options | |
| Type errors with schemas | Provider missing | Use withTypeProvider<TypeBoxTypeProvider>() |
Production Checklist
- [ ] TypeBox schema validation
- [ ] Helmet security headers
- [ ] Rate limiting configured
- [ ] Structured logging (Pino)
- [ ] Request ID tracing
- [ ] Custom error handler
- [ ] Health/readiness endpoints
- [ ] Graceful shutdown
- [ ] Database connection pooling
Monitoring Metrics
| Metric | Target | |
|---|---|---|
| Response time (p99) | < 50ms | |
| Error rate (5xx) | < 0.1% | |
| Request throughput | > 10k/s |
Reference Documentation
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.mcp-servers/skill-loader/skills/backend-frameworks/fastify/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/willyd61/nautobot-v2-custom-metrics-old/fastify)