Skip to main content
subagent CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/fastify-expert.md
Open on GitHub

What 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.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

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

Similar subagents

All subagents for Backend and APIs →

From the same set137

The whole set →
openapi-expert openapi-expert — a Claude subagent that writes and checks OpenAPI specs: contracts, schemas, status codes and endpoint documentation. CX Codex ★ 1,029repo stars kubernetes-expert kubernetes-expert designs Kubernetes manifests, configures cluster autoscaling, and troubleshoots workload issues. Helps prepare container deployments and RBAC policies. CX Codex ★ 1,029repo stars ocaml-expert ocaml-expert — an OCaml subagent for typed functional design, code review, testing, and performance work when a project needs deeper language-specific guidance. CX Codex ★ 1,029repo stars tauri-expert tauri-expert — a Claude subagent for Tauri desktop apps: config files, Rust commands, IPC and the frontend side, plus a checklist to run before release. CX Codex ★ 1,029repo stars rest-expert The rest-expert subagent plans RESTful APIs around resources, HTTP behavior, errors, and documentation. Use it for new API designs or reviews of existing endpoints. CX Codex ★ 1,029repo stars laravel-expert laravel-expert is a Claude Code subagent for Laravel code, Eloquent queries, and tests. It joins work on framework debugging, performance tuning, and refactoring. CX Codex ★ 1,029repo stars prometheus-expert prometheus-expert — a Claude Code subagent that assists with Prometheus monitoring setup, PromQL queries, Alertmanager rules, and Grafana dashboards. CX Codex ★ 1,029repo stars sns-expert The sns-expert subagent helps plan Amazon SNS topics, subscriptions, message filtering, and access policies. Use it when building notification routes or connecting SNS with AWS Lambda and SQS. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open