一键导入
backend-architecture-nestjs-prisma-vertical
NestJS, Prisma ORM, Vertical Slice Architecture, and Strict TypeScript for zero-hallucination backend development.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
NestJS, Prisma ORM, Vertical Slice Architecture, and Strict TypeScript for zero-hallucination backend development.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Syncs Telegram supergroup topics into local task files and GitHub issues, using embedded Python scripts for deterministic JSON state management. Preserves raw bilingual messages verbatim, injects refactored prompts, and correlates codebase context.
100% Jetpack Compose, MVI (UDF), Hilt, and SQLDelight for token-efficient, zero-hallucination Android development.
Expo Managed Workflow, Expo Router, NativeWind, and Strict TypeScript for zero-hallucination cross-platform apps.
Automatically generates decentralized task files based on manager instructions.
Idiomatic Go, Clean Architecture, and Gin routing best practices
Hexagonal Architecture (Ports and Adapters), gRPC, Uber Fx, and Redis caching for ultra-low latency Go backends.
| name | backend-architecture-nestjs-prisma-vertical |
| description | NestJS, Prisma ORM, Vertical Slice Architecture, and Strict TypeScript for zero-hallucination backend development. |
@Controller, @Injectable) and modules.controllers/, services/). Group all files by feature (e.g., src/features/auth/) to localize AI context and save memory tokens.any type is strictly forbidden.schema.prisma, and rely on the compiler to catch invalid database calls.class-validator and class-transformer.src/
├── main.ts # Application entry point
├── app.module.ts # Root module
├── core/ # Core infrastructure (written once)
│ ├── prisma/ # Prisma service and module
│ ├── guards/ # Authentication/Authorization guards
│ ├── filters/ # Global exception filters
│ └── interceptors/ # Global interceptors
└── features/ # ⬅️ Vertical Slices (Feature Modules)
├── auth/
│ ├── auth.module.ts
│ ├── auth.controller.ts
│ ├── auth.service.ts
│ └── dtos/
│ ├── login.dto.ts
│ └── register.dto.ts
└── users/
├── users.module.ts
├── users.controller.ts
└── users.service.ts
| Artifact | Convention | Example |
|---|---|---|
| Files | kebab-case with type | auth.controller.ts |
| Classes | PascalCase | AuthController |
| Methods/Variables | camelCase | registerUser |
| Prisma Models | PascalCase (Singular) | model User |
Dependency Injection: Use NestJS constructor injection exclusively.
Prisma Workflow:
prisma/schema.prisma.PrismaService into feature services to interact with the DB. The LSP will guide you with exact types.Global Error Handling:
Do not use inline try/catch for standard HTTP errors. Throw NestJS exceptions (ConflictException, NotFoundException) and let the global filter handle the JSON formatting.
| Layer | Test Type | Framework | File Naming |
|---|---|---|---|
| Feature Service | Unit | Jest + Mock Prisma | auth.service.spec.ts |
| Controller | Unit | Jest | auth.controller.spec.ts |
| Feature Endpoint | E2E | Jest + Supertest + TestDB | auth.e2e-spec.ts |