AL

alwib-backend

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.zip

Installs 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.
254 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

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

You give it
API requirements, data models, or feature specifications
You get back
Implemented NestJS modules, updated Prisma schema and migrations, passing lint/test results

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

  1. Model the API contract first: DTO + response shape.
  2. Keep architecture explicit: controller -> service -> prisma access.
  3. Add validation decorators in DTO classes and keep Swagger decorators updated.
  4. Keep controller thin and push business logic into services.
  5. Protect private endpoints with JwtAuthGuard and document auth with @ApiBearerAuth('JWT-auth').
  6. Run quality checks in backend/:
    • npm run lint
    • npm run test
    • npm run test:e2e when endpoint behavior changes

Prisma conventions

  • Edit prisma/schema.prisma for model changes.
  • Create migrations with npx prisma migrate dev --name <migration-name>.
  • Regenerate client with npx prisma generate after schema updates.
  • Commit generated SQL under prisma/migrations/.

Auth and security conventions

  • Use ValidationPipe assumptions already configured globally in src/main.ts.
  • Return sanitized user payloads (no password fields).
  • Keep cookie key as token, httpOnly: true, and environment-aware secure flag.
  • Use Nest exceptions (UnauthorizedException, ConflictException, etc.) for clear HTTP behavior.

Project-specific notes

  • AuthService has a seeded superuser/dev path (SUPERUSER_* constants).
  • If changing auth flow, keep frontend src/services/authServices.ts contract 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.

SkillInstallsUpdatedSafetyDifficulty
alwib-backend (this skill)05moNo flagsAdvanced
azure-postgres-ts01moReviewIntermediate
convex06moNo flagsBeginner
nanoclaw-backend-ts03moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry