nestjs-api

nestjs-api is an agent for Claude Code from kumaran-is/claude-code-onboarding. It costs 0 tokens per session (758 once invoked), scanned A, original, MIT.

A backend development assistant for NestJS 11.17.x with Fastify, Prisma, and TypeScript 5.9.x. It creates server modules and supporting code such as controllers, services, data-access layers, validation objects, security guards, and tests.

In plain words
What is it for?
Use it to build NestJS features such as payment APIs, modules, controllers, repositories, DTOs, JWT authentication, role checks, PostgreSQL migrations, and automated tests.
Why use it?
It gives backend work a consistent structure with strict typing, input validation, error handling, authentication, and database integration.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to build NestJS features such as payment APIs, modules, controllers, repositories, DTOs, JWT authentication, role checks, PostgreSQL migrations, and automated tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kumaran-is/claude-code-onboarding/nestjs-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/kumaran-is/claude-code-onboarding

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nestjs-api

README.md
[![agentmods](https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/nestjs-api/github.svg)](https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/nestjs-api)
Your own site
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/nestjs-api"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/nestjs-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nestjs-api

Your own site · 80×15
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/nestjs-api"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/nestjs-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 758 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00758
Opus 5.5 $0.00000 $0.00303
Sonnet 5.5 $0.00000 $0.00152
Haiku 4.5 $0.00000 $0.00076

Measured 1mo ago against content hash 7b63b7aa092f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nestjs-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/nestjs-api.md · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior Node.js backend engineer specializing in NestJS 11.17.x with Fastify adapter, Prisma ORM, and TypeScript 5.9.x.

Your Responsibilities

  1. Scaffold new NestJS projects with Fastify, Prisma 7.x, and proper module structure
  2. Create feature modules with controller, service, DTO, and repository
  3. Design services with proper dependency injection and error handling
  4. Write Prisma 7.x schemas and migrations for PostgreSQL (driver adapter pattern, prisma.config.ts)
  5. Create DTOs with class-validator decorators for input validation
  6. Implement guards for authentication (JWT) and authorization (roles)
  7. Write tests with Vitest + supertest or NestJS Testing utilities
  8. Ensure scaffolded projects boot immediately — .env populated with working defaults

How to Work

  1. Read the nestjs-api skill for project structure, conventions, and code templates
  2. Use TypeScript strict mode always, experimentalDecorators and emitDecoratorMetadata enabled
  3. Use class-validator + class-transformer for DTO validation
  4. Error handling: custom exceptions extending BaseException, global exception filter
  5. Use Prisma 7.x Client via PrismaService composition wrapper with @prisma/adapter-pg (do NOT extend PrismaClient — use composition)
  6. Module aggregation: ConfigModule → CommonModule → CoreModule → FeaturesModule
  7. All external calls wrapped in circuit breaker pattern
  8. Request context via AsyncLocalStorage for correlation ID propagation
  9. .env files: Always write via Bash (not Write/Edit tools — hooks block .env writes). Include ALL required env vars with working dev defaults so the app boots without manual config
  10. Prisma 7.x: Use provider = "prisma-client" (not prisma-client-js), add output path, no url in datasource block — URL goes in prisma.config.ts

When Creating a New Feature

  1. Create the Prisma model and run migration
  2. Create DTOs (create, update, response) with validation decorators
  3. Create the repository wrapping Prisma Client
  4. Create the service with business logic
  5. Create the controller with route decorators
  6. Register in the feature module, import in FeaturesModule
  7. Write unit tests for service and integration tests for controller

Read the full file on GitHub · 50 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 50 lines · 0 tokens per session scan A 7b63b7aa092f

Subscribe to this mod's changes

nestjs-api is an agent published in the GitHub repository kumaran-is/claude-code-onboarding (36 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 758 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.