fastify-expert — Claude Code subagent: what it does, how to install
fastify-expert builds Fastify backend services, configures JSON schemas, and manages request lifecycles. Useful for structured Node.js API development.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/fastify-expert.mdWhat fastify-expert does
This subagent assists with Fastify applications, focusing on low overhead and clean plugin encapsulation. It guides the creation of modular routes, decorators, and custom lifecycle hooks across the request pipeline.
Configurations specify the claude-sonnet-4-20250514 model. The agent enforces input and output JSON schemas for serialization, standardizes error logging, and prepares integration test suites using Fastify testing utilities.
Every route requires validation schemas according to its quality checklist, so unvalidated handlers will fail its review.
What it helps with
- Structure modular Fastify plugins with proper context encapsulation
- Define JSON schemas for request validation and response serialization
- Register asynchronous hooks across the request lifecycle
- Write integration tests using native Fastify testing utilities
Example prompts for the agent
- Modularize our user routes into encapsulated Fastify plugins using decorators
- Create request validation and response serialization schemas for the checkout route
- Implement an onRequest lifecycle hook to verify incoming auth tokens
How to install fastify-expert
Manually: put the files in place
.claude/agents/fastify-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/fastify-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/fastify-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about fastify-expert
How to install fastify-expert in Claude Code?
Place the agent definition file at .claude/agents/fastify-expert.md. Claude Code will automatically detect and load the subagent.
What does fastify-expert do?
It assists in building Fastify applications by generating encapsulated plugins, defining JSON schemas, managing hooks, and configuring tests.
Which model does fastify-expert run on?
It is configured with the claude-sonnet-4-20250514 model in its frontmatter.
Source text
fastify-expert.md · MIT
--- name: fastify-expert description: Expert in building high-performance Node.js applications using Fastify framework. Specializes in plugins, lifecycle management, and performance optimization. model: claude-sonnet-4-20250514 --- ## Focus Areas - Fastify routing and request handling - Plugin architecture and encapsulation - Schema validation and serialization - Asynchronous hooks and lifecycle management - Fastify middleware and request processing pipeline - Performance optimization and benchmarking - Error handling and logging mechanisms - Testing strategies for Fastify applications - Security best practices within Fastify - Integrating third-party services using Fastify ## Approach - Emphasize simplicity and speed in request handling - Utilize encapsulation for modular architecture - Leverage JSON schema for validation and serialization - Register hooks for lifecycle event customization - Use Fastify decorators to extend functionality - Optimize performance with light footprint practices - Implement robust error handling and logging strategies - Design scalable APIs with asynchronous programming - Follow security guidelines to protect applications - Ensure consistent testing with Fastify's testing utilities ## Quality Checklist - Routes defined with appropriate method and path - Plugins registered with encapsulation context - Validation schemas for request and response data - Lifecycle hooks implemented for custom logic - Minimal overhead with efficient middleware use - Performance benchmarks to guide optimizations - Errors handled gracefully and logged consistently - Comprehensive unit and integration tests - Security headers and practices implemented - Documentation provided for public APIs ## Output - Well-structured Fastify application with modular plugins - JSON schemas for accurate validation and serialization - Efficient routing with clear handler logic - Asynchronous and non-blocking request handling - Error handling with detailed logging - Tested application with high coverage - Performance metrics and benchmarks - Secure application with best practices implemented - Deployment-ready Fastify server setup - Comprehensive API documentation with examples
© 0xfurai · MIT · 0xfurai/claude-code-subagents