reviewing-nestjs-code

reviewing-nestjs-code is a skill for Claude Code from narpatsinghpurohit/tstack. It costs 80 tokens per session (681 once invoked), scanned A, original, MIT.

A checklist for reviewing NestJS backend code, where NestJS is a framework for building server-side TypeScript applications. It checks architecture, security, validation, error handling, organisation data isolation, logging, and tests.

In plain words
What is it for?
Use it to review API code, backend modules, pull requests, or changes that handle authentication, permissions, organisation data, or database operations.
Why use it?
It reveals issues that may cause security problems, inconsistent behaviour, poor performance, or rejected changes. It also checks whether code follows the project's required backend structure.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

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.

agentmods
npx agentmods add skills/narpatsinghpurohit/tstack/reviewing-nestjs-code
Any agent
npx skills add narpatsinghpurohit/tstack --skill reviewing-nestjs-code
Clone the repo
git clone --depth 1 https://github.com/narpatsinghpurohit/tstack

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 reviewing-nestjs-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/narpatsinghpurohit/tstack/reviewing-nestjs-code.svg)](https://agentmods.dev/skills/narpatsinghpurohit/tstack/reviewing-nestjs-code)
Your own site
<a href="https://agentmods.dev/skills/narpatsinghpurohit/tstack/reviewing-nestjs-code"><img src="https://agentmods.dev/badge/skills/narpatsinghpurohit/tstack/reviewing-nestjs-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 681 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00080 $0.00681
Opus 5 $0.00040 $0.00341
Sonnet 5 $0.00016 $0.00136
Haiku 4.5 $0.00008 $0.00068

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

Security

Grade A, and why

reviewing-nestjs-code 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 6d 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/skills/reviewing-nestjs-code/SKILL.md · 81 lines

How it starts

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

Reviewing NestJS Code

Severity levels

  • NON-NEGOTIABLE: Blocks merge. No exceptions.
  • CRITICAL: Must fix before merge.
  • SUGGESTION: Should fix.

Review process

  1. Read all files in the module being reviewed
  2. Check against non-negotiable rules in rules/backend-rules.md
  3. Check permission coverage using the permission-guidelines skill
  4. Check for common issues in references/common-issues.md
  5. Output findings

Non-negotiable checks

  • Repository extends BaseRepository, not raw Mongoose model usage in service
  • All queries scoped by orgId (multi-tenant isolation)
  • @Can(PERMISSIONS.X) on all protected endpoints
  • Validation via ZodValidationPipe with schemas from the shared package, NOT class-validator
  • DTOs imported from the shared package, NOT defined locally
  • @CurrentUser() used to extract user, orgId passed to service
  • No console.log — use NestJS Logger
  • No process.env — use ConfigService.getOrThrow()
  • No guard imports in feature modules (guards are global via APP_GUARD)
  • Module registered in app.module.ts

Architecture checks

  • Controller: HTTP layer only, no business logic
  • Service: Business logic, throws proper NestJS exceptions
  • Repository: Data access only, uses .lean() for reads
  • Schema: orgId first field, timestamps: true, proper indexes

Performance checks

  • .lean() used for read queries
  • Proper indexes for query patterns
  • Promise.all() for parallel async operations
  • No N+1 query patterns

Output format

## Code Review: [Module Name]

### NON-NEGOTIABLE (blocks merge)
- **[File:Line]** [Rule ID]: [Description and exact fix]

### Critical
- **[File:Line]**: [Description and fix]

### Suggestions
- **[File:Line]**: [Recommendation]

### Passed
- [Categories that passed all checks]

Rules

Read the full file on GitHub · 81 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 81 lines · 80 tokens per session scan A 5ff378b77f80

Subscribe to this mod's changes

reviewing-nestjs-code is a skill published in the GitHub repository narpatsinghpurohit/tstack (5 stars, last pushed 5mo ago), licensed MIT. It adds 80 tokens to every session and 681 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens