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.

Good fit Use it to review API code, backend modules, pull requests, or changes that handle authentication, permissions, organisation data, or database operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/narpatsinghpurohit/tstack/reviewing-nestjs-code
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.

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/github.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/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 reviewing-nestjs-code

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00080 $0.00681
Opus 5.5 $0.00032 $0.00272
Sonnet 5.5 $0.00016 $0.00136
Haiku 4.5 $0.00008 $0.00068

Measured 3mo ago against content hash 5ff378b77f80, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (6 stars, last pushed 8mo ago), licensed MIT. It adds 80 tokens to every session and 681 once invoked, about $0.0003 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-31.

Related

reviewing-nestjs-code compared with skills from other repositories

reviewing-nestjs-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reviewing-nestjs-codenarpatsinghpurohit/tstackSkill68mo agoMITA80Claude Code
platform-apex-generateforcedotcom/sf-skillsSkill1.2k5d agoApache-2.0A122Claude Code
flow-next-impl-reviewgmickel/flow-nextSkill735todayMITA34Claude Code, Codex
api-contract-reviewTencentCloudBase/CloudBase-AI-ToolkitSkill1.2ktodayMITA54Claude Code
principle-model-the-domaincursor/pluginsSkill21ktodaynoneA27Claude Code
flow-next-resolve-prgmickel/flow-nextSkill735todayMITA36Claude Code, Codex
docs-check-kibana-oaselastic/elastic-docs-skillsSkill72todayApache-2.0A106Claude Code