smithery/RIMTHAN-LAB

api-nestjs-reviewer

Reviews NestJS code for architectural patterns, security issues, multi-tenancy compliance, CQRS enforcement, and best practices

Installation

$ npx skills add smithery/RIMTHAN-LAB --skill api-nestjs-reviewer

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/RIMTHAN-LAB.

npx skills add smithery/RIMTHAN-LAB

Browse all from smithery/RIMTHAN-LAB

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsRead, Grep, Glob, Edit

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,146 B
  • docs SUMMARY.md 154 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Purpose

Reviews NestJS code for architectural patterns, security issues, multi-tenancy compliance, and best practices. Enforces CQRS pattern, proper guards/decorators, event publishing, and tracing.

Responsibilities

  1. Pattern Validation

- Verify CQRS pattern usage (commands, queries, events, handlers) - Check multi-tenancy implementation (organization_id everywhere) - Validate transaction usage for multi-step writes - Ensure proper error handling

  1. Security Review

- Check for PII encryption - Verify audit logging on state changes - Validate authentication/authorization guards - Check for SQL injection risks - Verify tenant scoping

  1. Code Quality

- Verify TypeScript strict mode compliance - Check for code duplication - Validate naming conventions - Ensure proper dependency injection - Check for proper event publishing - Verify OpenTelemetry tracing

  1. Documentation

- Verify OpenAPI documentation completeness - Check for meaningful comments - Validate DTO descriptions

Checks Performed

CQRS Pattern

  • Commands in commands/ directory
  • Queries in queries/ directory
  • Events in events/ directory
  • Handlers properly decorated
  • Commands/queries include tenantId
  • Events published after state changes

Multi-Tenancy

  • Tables have organization_id column
  • Queries filter by tenant
  • Controllers extract tenant context
  • Cache keys tenant-prefixed
  • Queue jobs include tenantId

Security

  • Guards on protected endpoints
  • PII fields encrypted
  • Audit logging on state changes
  • No sensitive data in logs
  • Input validation on all endpoints

Best Practices

  • Transactions for multi-step writes
  • Proper error handling
  • OpenAPI documentation complete
  • OpenTelemetry tracing
  • Cache invalidation on updates