Automates routine tasks for the Alwib NestJS/Prisma backend.
Install
mkdir -p .claude/skills/alwib-backend && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13112" && unzip -o skill.zip -d .claude/skills/alwib-backend && rm skill.zipInstalls to .claude/skills/alwib-backend
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Develop and maintain the Alwib NestJS backend in `backend/`. Use when implementing or refactoring modules, controllers, services, DTO validation, Swagger docs, authentication/authorization flows, Prisma schema and migrations, and backend lint/test flows.Key capabilities
- →Model API contracts using DTOs and response shapes
- →Implement modules, controllers, and services in NestJS
- →Add validation decorators in DTO classes and update Swagger docs
- →Protect private endpoints with `JwtAuthGuard`
- →Edit `prisma/schema.prisma` for model changes and create migrations
- →Run quality checks including linting and testing
How it works
The skill follows a structured sequence: model API, implement architecture, add validation, protect endpoints, manage Prisma schema, and run quality checks.
Inputs & outputs
When to use alwib-backend
- →Implementing API endpoints
- →Adding new Prisma database models
- →Refactoring service-layer logic
- →Updating validation decorators
About this skill
Alwib Backend
Stack and key paths
- NestJS + TypeScript
- Prisma + PostgreSQL
- JWT auth via cookie token + Passport strategies
- Main API bootstrap in
src/main.ts - Auth module in
src/auth/ - Prisma schema and migrations in
prisma/
Work sequence
- Model the API contract first: DTO + response shape.
- Keep architecture explicit: controller -> service -> prisma access.
- Add validation decorators in DTO classes and keep Swagger decorators updated.
- Keep controller thin and push business logic into services.
- Protect private endpoints with
JwtAuthGuardand document auth with@ApiBearerAuth('JWT-auth'). - Run quality checks in
backend/:npm run lintnpm run testnpm run test:e2ewhen endpoint behavior changes
Prisma conventions
- Edit
prisma/schema.prismafor model changes. - Create migrations with
npx prisma migrate dev --name <migration-name>. - Regenerate client with
npx prisma generateafter schema updates. - Commit generated SQL under
prisma/migrations/.
Auth and security conventions
- Use
ValidationPipeassumptions already configured globally insrc/main.ts. - Return sanitized user payloads (no password fields).
- Keep cookie key as
token,httpOnly: true, and environment-awaresecureflag. - Use Nest exceptions (
UnauthorizedException,ConflictException, etc.) for clear HTTP behavior.
Project-specific notes
AuthServicehas a seeded superuser/dev path (SUPERUSER_*constants).- If changing auth flow, keep frontend
src/services/authServices.tscontract in sync. - Keep CORS origins and frontend URL handling aligned with environment variables.
Done criteria
- DTOs, Swagger docs, guards, and responses are consistent.
- Prisma schema/migrations are synchronized.
- Lint/tests pass for touched behavior.
- No sensitive data leaks in API responses.
When not to use it
- →When the project is not an Alwib NestJS backend
- →When the database is not PostgreSQL with Prisma
- →When authentication is not JWT via cookie token
Limitations
- →Requires NestJS + TypeScript stack
- →Requires Prisma + PostgreSQL for database
- →Requires JWT auth via cookie token + Passport strategies
How it compares
This skill provides a specific, opinionated workflow for developing an Alwib NestJS backend, ensuring consistency in architecture, validation, and quality checks, unlike a generic backend development approach.
Compared to similar skills
alwib-backend side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| alwib-backend (this skill) | 0 | 5mo | No flags | Advanced |
| azure-postgres-ts | 0 | 1mo | Review | Intermediate |
| convex | 0 | 6mo | No flags | Beginner |
| nanoclaw-backend-ts | 0 | 3mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
azure-postgres-ts
aiskillstore
Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package.
convex
waynesutton
Umbrella skill for all Convex development patterns. Routes to specific skills like convex-functions, convex-realtime, convex-agents, etc.
nanoclaw-backend-ts
binidx
Use when editing NanoClaw backend TypeScript under src. Covers Express routes, conversation flow, database persistence, runtime state, providers, scheduler, and agent execution.
backend-patterns
chenqin231
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
resource
owlmeans
How to use @owlmeans/resource — generic resource abstraction (CRUD over a collection of records) used by mongo-resource, redis-resource, state, storage-resource, etc. Auto-invoked when importing from this package or implementing a custom resource type.
assets
salazarsebas
Stellar Assets (classic) + trustlines + Stellar Asset Contract (SAC) bridge to Soroban. Covers asset issuance, distribution, authorization flags, clawback, regulated assets, trustline management, and the SAC interop layer that exposes classic assets as Soroban tokens. Use when tokenizing real-world