Agent skill · Backend & API

api-framework-fastify

Fastify routes, JSON Schema validation, plugin system, TypeScript type providers

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 14 KB
Bundled scripts: none
Path: skills/api/api-framework-fastify/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. CRITICAL: Before Using This Skill
  2. Philosophy
  3. Core Patterns
  4. Pattern 1: Server Setup with Type Provider
  5. Pattern 2: Schema Definition with TypeBox
  6. Pattern 3: Route Definition with Full Schema
  7. Pattern 4: Plugin Encapsulation
  8. Pattern 5: Lifecycle Hooks
  9. Pattern 6: Error Handling
  10. Pattern 7: Decorators
  11. Pattern 8: Testing with server.inject()
  12. RED FLAGS
  13. High Priority Issues
  14. Medium Priority Issues
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
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.

Keep going