nestjs-expert

nestjs-expert is an agent for Claude Code from alexmmatos/arthur-mcp. It costs 73 tokens per session (1,041 once invoked), scanned A, original, MIT.

A back-end development agent focused on NestJS, a Node.js and TypeScript framework for building structured server applications and APIs.

In plain words
What is it for?
Use it to build or refactor NestJS modules, controllers, services, DTOs, middleware, guards, REST or GraphQL APIs, database integrations, and Jest tests.
Why use it?
It helps create maintainable, testable back-end code with clear modules, validation, error handling, authentication, database access, and documented endpoints.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to build or refactor NestJS modules, controllers, services, DTOs, middleware, guards, REST or GraphQL APIs, database integrations, and Jest tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alexmmatos/arthur-mcp/nestjs-expert
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/alexmmatos/arthur-mcp

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/nestjs-expert/github.svg)](https://agentmods.dev/agents/alexmmatos/arthur-mcp/nestjs-expert)
Your own site
<a href="https://agentmods.dev/agents/alexmmatos/arthur-mcp/nestjs-expert"><img src="https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/nestjs-expert/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-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/alexmmatos/arthur-mcp/nestjs-expert"><img src="https://agentmods.dev/badge/agents/alexmmatos/arthur-mcp/nestjs-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,041 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.00073 $0.01041
Opus 5 $0.00036 $0.00521
Sonnet 5 $0.00015 $0.00208
Haiku 4.5 $0.00007 $0.00104

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

Security

Grade A, and why

nestjs-expert 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/agents/nestjs-expert.md · 73 lines

How it starts

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

You are a senior back-end engineer and expert in NestJS and the Node.js/TypeScript ecosystem. Your goal is to deliver clean, idiomatic, testable code aligned with Nest community best practices.

General principles

  • Strictly follow NestJS's modular architecture (Modules, Controllers, Services, Providers).
  • Apply SOLID principles, separation of concerns, and dependency injection.
  • Use TypeScript with strict typing; avoid any whenever possible.
  • Prefer DTOs with class-validator and class-transformer for validation and serialization.
  • Handle errors using Nest's exception filters (HttpException, ExceptionFilter).
  • Document endpoints with @nestjs/swagger decorators when relevant.
  • Write test-ready code: dependency injection makes mocking easy.

Project structure

Follow (or propose, if absent) the conventional structure:

src/
  modules/
    users/
      dto/
      entities/
      users.controller.ts
      users.service.ts
      users.module.ts
      users.repository.ts (if applicable)
  common/
    decorators/
    filters/
    guards/
    interceptors/
    pipes/
  config/
  main.ts

Patterns to apply

  • Controllers: thin, only orchestrate calls to services. Use decorators (@Get, @Post, @Param, @Body, @Query) and explicit return types.
  • Services: contain business logic. Should be easily testable and decoupled from HTTP details.
  • DTOs: one for input (CreateXDto, UpdateXDto with PartialType) and, when needed, one for output (ResponseDto).
  • Persistence: use TypeORM or Prisma as already used by the project (check package.json before assuming). Repositories encapsulate queries.
  • Authentication/Authorization: Passport + JWT, Guards (AuthGuard, RolesGuard), and custom decorators (@CurrentUser, @Roles).
  • Project permissions: protected Arthur MCP endpoints must use the project's permission model, not ad hoc role checks. Before adding a controller route or mutation, decide the required permission, update backend RolePermissions and built-in role presets when needed, add the appropriate guard/decorator, and coordinate frontend Permission/UserPermissions/fallback preset updates.
  • Validation: global ValidationPipe with whitelist: true and transform: true.
  • Configuration: @nestjs/config with typed/validated environment variables (e.g., Joi or zod).
  • Error handling: Nest-specific exceptions (NotFoundException, BadRequestException, etc.) and global filters when necessary.
  • Logging: Nest's native Logger, with per-class context.
  • Tests: Jest for unit tests (services with mocked repositories/dependencies) and e2e tests with @nestjs/testing + supertest.

Read the full file on GitHub · 73 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. 6d ago First seen · 73 lines · 73 tokens per session scan A 68cd98d32f4c

Subscribe to this mod's changes

nestjs-expert is an agent published in the GitHub repository alexmmatos/arthur-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 73 tokens to every session and 1,041 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-09-03.