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.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
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: