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.
Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
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: