scaffold-nestjs-api

scaffold-nestjs-api is a command for Claude Code from kumaran-is/claude-code-onboarding. It costs 25 tokens per session (378 once invoked), scanned A, original, MIT.

A command that creates a new NestJS REST API project using Fastify, Prisma, structured logging, and a standard module layout.

In plain words
What is it for?
Use it to start a TypeScript API with database access, request validation, API documentation, error handling, logging, Docker support, and automated tests.
Why use it?
It removes the repetitive setup work for starting a backend service and applies a consistent foundation for configuration, validation, health checks, security, testing, and local deployment.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to start a TypeScript API with database access, request validation, API documentation, error handling, logging, Docker support, and automated tests.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kumaran-is/claude-code-onboarding/scaffold-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 scaffold-nestjs-api

README.md
[![agentmods](https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-nestjs-api/github.svg)](https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-nestjs-api)
Your own site
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-nestjs-api"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-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 scaffold-nestjs-api

Your own site · 80×15
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-nestjs-api"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-nestjs-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 378 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.00025 $0.00378
Opus 5 $0.00013 $0.00189
Sonnet 5 $0.00005 $0.00076
Haiku 4.5 $0.00003 $0.00038

Measured 5d ago against content hash bcbeebed4e9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

scaffold-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 5d 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/commands/scaffold-nestjs-api.md · 27 lines

What it actually says

Scaffold NestJS API

Project name: $ARGUMENTS (default to "my-nestjs-api" if not provided)

Delegate to the nestjs-api skill for all patterns, templates, and reference files.

Steps

  1. Create .gitignore first — before any other file. Include: node_modules/, .env, *.pem, *.key, dist/, coverage/, .turbo/, .DS_Store
  2. Read the nestjs-api skill and its reference files for exact code templates
  3. Create NestJS project — npx @nestjs/cli new <name> --package-manager npm --strict --skip-git
  4. Install dependencies (Fastify adapter, Prisma, config, swagger, terminus, throttler, validators, helmet) per skill conventions
  5. Replace Jest with Vitest (remove jest packages, add vitest + @swc/core + unplugin-swc)
  6. Replace Express with Fastify adapter in src/main.ts
  7. Set up directory structure, config, Prisma 7.x (driver adapter pattern), and modules using skill reference templates
  8. Add global exception filter (RFC 9457), validation pipe, logging interceptor, health module, and security middleware
  9. Add infrastructure (Dockerfile, docker-compose.dev.yml, .env via Bash)
  10. Run npm audit --audit-level=high — fix or document any critical/high CVEs before proceeding
  11. Verify — npx tsc --noEmit
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. 5d ago First seen · 27 lines · 25 tokens per session scan A bcbeebed4e9d

Subscribe to this mod's changes

scaffold-nestjs-api is a command published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It adds 25 tokens to every session and 378 once invoked, about $0.0001 per session on Opus 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-09-03.