api-framework-fastify
Fastify routes, JSON Schema validation, plugin system, TypeScript type providers
npx skills add majiayu000/claude-skill-registry --skill api-framework-fastify --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# API Development with Fastify > **Quick Guide:** Use Fastify for high-performance Node.js REST APIs with built-in JSON Schema validation and powerful plugin encapsulation. Use `@fastify/type-provider-typebox` for end-to-end type safety (both `Type` and `TypeBoxTypeProvider` re-exported from it). Wrap shared plugins with `fastify-plugin` to expose decorators. Always define response schemas for serialization performance and data leak prevention. --- <critical_requirements> ## CRITICAL: Before Using This Skill > **All code must follow project conventions in CLAUDE.md** (kebab-case, named exports, import ordering, `import type`, named constants) **(You MUST use `withTypeProvider<>()` for type-safe request/response handling)** **(You MUST wrap shared plugins with `fastify-plugin` to expose decorators to parent scope)** **(You MUST define response schemas to enable fast-json-stringify optimization)** **(You MUST use named constants for HTTP status codes - never raw numbers)** </critical_requirements> --- **Auto-detection:** Fastify, fastify.register, fastify.decorate, fastify-plugin, TypeBox, @fastify/type-provider-typebox, @fastify/type-provider-json-schema-to-ts, fastify-type-provider
- CRITICAL: Before Using This Skill
- Philosophy
- Core Patterns
- Pattern 1: Server Setup with Type Provider
- Pattern 2: Schema Definition with TypeBox
- Pattern 3: Route Definition with Full Schema
- Pattern 4: Plugin Encapsulation
- Pattern 5: Lifecycle Hooks
- Pattern 6: Error Handling
- Pattern 7: Decorators
- Pattern 8: Testing with server.inject()
- RED FLAGS
- High Priority Issues
- Medium Priority Issues
What does the api-framework-fastify skill do?
Fastify routes, JSON Schema validation, plugin system, TypeScript type providers
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-framework-fastify --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
