This skill should be used when the user asks to "add an endpoint to users", "create a route in users service", "write tests for users", "test users service", "add auth to a route", "work on users API", or mentions the users service, Fastify routes, or user management functionality.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
users-service
description
This skill should be used when the user asks to "add an endpoint to users", "create a route in users service", "write tests for users", "test users service", "add auth to a route", "work on users API", or mentions the users service, Fastify routes, or user management functionality.
Users Service Development Skill
This skill provides patterns and workflows for developing the Users Service, a Fastify-based REST API at services/users/ that handles user management with Auth0 authentication and Prisma ORM.
Service Overview
Location: services/users/Framework: Fastify v5 with TypeScript
Database: PostgreSQL via Prisma
Auth: Auth0 JWT verification with jose
Port: 3001 (API docs at http://localhost:3001/docs)
Key Files
File
Purpose
src/app.ts
Fastify app setup, plugin registration
src/routes/users.ts
User CRUD endpoints and auth endpoints
src/services/user.ts
Business logic (Prisma operations)
src/schemas/index.ts
OpenAPI schema definitions
prisma/schema.prisma
Database schema
Adding New Endpoints
Route Structure Pattern
Follow this pattern when adding new routes to src/routes/users.ts: