nestjs-starter: Instructions file for Claude Code

CLAUDE.md

nestjs-starter CLAUDE.md is an instructions file for Claude Code from hmake98/nestjs-starter. It costs 6,232 tokens per session, scanned A, original, MIT.

A project guide for a NestJS server application using PostgreSQL, Redis, background jobs, and token-based authentication. It lists the main development, database, testing, formatting, and administrative commands.

In plain words
What is it for?
Use it when developing features, running the server, building it, managing database migrations, seeding or removing an administrator, or running tests and linting.
Why use it?
It gives coding agents the project’s structure and standard commands so changes can follow the existing setup and be checked correctly.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is hmake98/nestjs-starter's own configuration. It tells Claude Code how to work on nestjs-starter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nestjs-starter configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hmake98/nestjs-starter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hmake98/nestjs-starter/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/hmake98/nestjs-starter

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-starter CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hmake98/nestjs-starter/claude-md/github.svg)](https://agentmods.dev/instructions/hmake98/nestjs-starter/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/hmake98/nestjs-starter/claude-md"><img src="https://agentmods.dev/badge/instructions/hmake98/nestjs-starter/claude-md/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-starter CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hmake98/nestjs-starter/claude-md"><img src="https://agentmods.dev/badge/instructions/hmake98/nestjs-starter/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,232 This file is loaded in full into every session.
When invoked 6,232 The same file — it is already loaded in full.
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.06232 $0.06232
Opus 5.5 $0.02493 $0.02493
Sonnet 5.5 $0.01246 $0.01246
Haiku 4.5 $0.00623 $0.00623

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

Security

Grade A, and why

nestjs-starter CLAUDE.md 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 2mo 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.md · 588 lines

How it starts

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

CLAUDE.md

This file gives Claude Code complete context to work in this repository without scanning source files each session.

Stack

NestJS 11 · Prisma 7 + @prisma/adapter-pg (pg Pool, no Prisma binary engine) · PostgreSQL · Redis (ioredis via CacheService) · BullMQ · JWT (passport-jwt, argon2) · nestjs-pino · nestjs-i18n · Sentry · Swagger (non-production only) · TypeScript 6 · Node ≥20

Commands

npm run dev               # nest start --watch
npm run build             # nest build → dist/
npm start                 # node dist/main
npm test                  # jest --coverage --runInBand --forceExit
npm run lint:fix          # eslint --fix
npm run format            # prettier --write
npm run db:generate       # prisma generate --config prisma/prisma.config.ts
npm run db:migrate        # prisma migrate dev
npm run db:migrate-prod   # prisma migrate deploy
npm run seed:admin        # npm run cli -- seed:admin
npm run remove:admin      # npm run cli -- remove:admin

Directory Structure

src/
├── app/
│   ├── app.module.ts           ← root module (see Module Wiring below)
│   ├── controllers/
│   │   └── health.controller.ts
│   └── enums/
│       └── app.enum.ts         ← APP_ENVIRONMENT enum
├── common/
│   ├── common.module.ts        ← imports ConfigModule + all infra; exports DatabaseModule, CacheModule
│   ├── config/                 ← registerAs() factories; never import elsewhere directly
│   │   ├── index.ts            ← barrel: [AppConfig, AuthConfig, DocConfig, RedisConfig, SeedConfig]
│   │   ├── app.config.ts       ← 'app.*' keys
│   │   ├── auth.config.ts      ← 'auth.accessToken.*' / 'auth.refreshToken.*' keys
│   │   ├── doc.config.ts       ← 'doc.*' keys
│   │   ├── redis.config.ts     ← 'redis.*' keys
│   │   └── seed.config.ts      ← 'seed.admin.*' keys
│   ├── bullmq/                 ← BullMqModule (shared Redis connection)
│   ├── cache/
│   │   ├── cache.module.ts
│   │   ├── constants/cache.constant.ts   ← REDIS_CLIENT token
│   │   └── services/cache.service.ts     ← CacheService (ioredis wrapper)
│   ├── database/
│   │   ├── database.module.ts            ← provides + exports DatabaseService, UserRepository
│   │   ├── services/database.service.ts  ← PrismaClient via PrismaPg adapter
│   │   ├── repositories/user.repository.ts
│   │   ├── interfaces/user.interface.ts  ← UserEntity, CreateUserInput, UpdateUserInput
│   │   └── enums/role.enum.ts           ← re-exports Prisma Role as UserRole
│   ├── doc/
│   │   └── decorators/
│   │       ├── doc.api-endpoint.decorator.ts  ← @ApiEndpoint (THE decorator for all methods)
│   │       ├── doc.response.decorator.ts
│   │       ├── doc.generic.decorator.ts
│   │       └── doc.paginated.decorator.ts
│   ├── logger/
│   │   └── services/logger.service.ts
│   ├── message/
│   │   └── services/message.service.ts   ← i18n resolution
│   ├── request/
│   │   ├── request.module.ts             ← registers 3 APP_GUARDs
│   │   ├── constants/request.constant.ts ← PUBLIC_ROUTE_KEY, ROLES_KEY
│   │   ├── decorators/
│   │   │   ├── auth-user.decorator.ts    ← @AuthUser()
│   │   │   ├── public.decorator.ts       ← @PublicRoute()
│   │   │   └── roles.decorator.ts        ← @AllowedRoles([...])
│   │   ├── guards/
│   │   │   ├── jwt-access.guard.ts
│   │   │   ├── jwt-refresh.guard.ts      ← used only on refresh endpoint
│   │   │   └── roles.guard.ts
│   │   └── interfaces/request.interface.ts  ← IAuthUser, IRequest
│   └── response/
│       ├── response.module.ts
│       ├── dtos/
│       │   ├── response.success.dto.ts    ← ApiSuccessResponseDto<T>
│       │   ├── response.generic.dto.ts    ← ApiGenericResponseDto
│       │   ├── response.paginated.dto.ts
│       │   └── response.error.dto.ts
│       ├── filters/response.exception.filter.ts
│       ├── interceptors/response.interceptor.ts
│       └── services/
│           ├── response.serializer.service.ts
│           └── response.sentry.service.ts
├── modules/
│   ├── auth/
│   │   ├── auth.module.ts
│   │   ├── controllers/auth.public.controller.ts
│   │   ├── dtos/
│   │   │   ├── auth.login.dto.ts    ← UserLoginDto
│   │   │   ├── auth.signup.dto.ts   ← UserCreateDto extends UserLoginDto
│   │   │   └── auth.response.dto.ts ← TokenDto, AuthResponseDto, AuthRefreshResponseDto
│   │   ├── providers/
│   │   │   ├── jwt-access.strategy.ts
│   │   │   └── jwt-refresh.strategy.ts
│   │   └── services/auth.service.ts
│   └── user/
│       ├── user.module.ts
│       ├── controllers/
│       │   ├── user.public.controller.ts  ← GET /v1/user/profile, PUT /v1/user
│       │   └── user.admin.controller.ts   ← DELETE /v1/admin/user/:id
│       ├── dtos/
│       │   ├── user.dto.ts        ← UserResponseDto, UserGetProfileResponseDto, UserUpdateProfileResponseDto
│       │   └── user.update.dto.ts ← UserUpdateDto
│       └── services/user.service.ts
├── workers/
│   ├── worker.module.ts
│   └── schedulers/midnight.scheduler.ts
└── migration/
    ├── migration.module.ts
    └── seeds/user.seed.ts

Read the full file on GitHub · 588 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. 2mo ago First seen · 588 lines · 6,232 tokens per session scan A 00a98ec20272

Subscribe to this mod's changes

nestjs-starter CLAUDE.md is an instructions file published in the GitHub repository hmake98/nestjs-starter (64 stars, last pushed 5mo ago), licensed MIT. It adds 6,232 tokens to every session, about $0.0249 per session on Opus 5.5. 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.

Related

nestjs-starter CLAUDE.md compared with instructions from other repositories

nestjs-starter CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nestjs-starter CLAUDE.mdhmake98/nestjs-starterInstructions file645mo agoMITA6,232Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode