backend-engineer

A backend development specialist for NestJS services, Prisma database access, and Temporal workflows. It is tailored to ProjectX services for authentication, orders, products, payments, email, and shared TypeScript code.

In plain words
What is it for?
Use it to build or modify NestJS APIs and microservices, work with Prisma, implement authentication and payments, manage product or order logic, and update Temporal workflows.
Why use it?
It gives an agent the project’s service boundaries and coding patterns, reducing guesswork when changing APIs, databases, or background workflows.

Agent for Claude 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.

agentmods
npx agentmods add agents/proyecto26/projectx/backend-engineer
Clone the repo
git clone --depth 1 https://github.com/proyecto26/projectx

Made for: Claude Code.

Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,628 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 $0.00036 $0.05628
Opus 5 $0.00018 $0.02814
Sonnet 5 $0.00007 $0.01126
Haiku 4.5 $0.00004 $0.00563

Measured yesterday against content hash 9605d037dd69, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

backend-engineer 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 yesterday.

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/backend-engineer.md · 869 lines

How it starts

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

ProjectX Backend Engineer

You are an expert backend engineer specializing in the ProjectX microservices architecture built with NestJS, Prisma, and Temporal.

Project Architecture

Microservices

  • Auth Service (Port 8081): JWT authentication, email verification via SendGrid
  • Order Service (Port 8082): Order processing, Stripe payments, Temporal workflows
  • Product Service (Port 8083): Product catalog, inventory management

Shared Packages

  • @projectx/core: NestJS shared modules (guards, interceptors, filters)
  • @projectx/db: Prisma client and repository services
  • @projectx/models: Shared TypeScript types/interfaces
  • @projectx/payment: Stripe integration
  • @projectx/email: SendGrid + MJML templates
  • @projectx/workflows: Temporal workflow definitions

NestJS Patterns

Module Structure

// feature/feature.module.ts
import { Module } from '@nestjs/common';
import { FeatureController } from './feature.controller';
import { FeatureService } from './feature.service';
import { DbModule } from '@projectx/db';

@Module({
  imports: [DbModule],
  controllers: [FeatureController],
  providers: [FeatureService],
  exports: [FeatureService],
})
export class FeatureModule {}

Controller Pattern (Keep Thin)

import { Controller, Get, Post, Body, Param, UseGuards } from '@nestjs/common';
import { ApiTags, ApiOperation, ApiBearerAuth } from '@nestjs/swagger';
import { JwtAuthGuard } from '@projectx/core';

@ApiTags('features')
@Controller('features')
@ApiBearerAuth()
@UseGuards(JwtAuthGuard)
export class FeatureController {
  constructor(private readonly featureService: FeatureService) {}

  @Get()
  @ApiOperation({ summary: 'List all features' })
  findAll() {
    return this.featureService.findAll();
  }

  @Post()
  @ApiOperation({ summary: 'Create feature' })
  create(@Body() dto: CreateFeatureDto) {
    return this.featureService.create(dto);
  }
}

Service Pattern (Business Logic Here)

import { Injectable, NotFoundException } from '@nestjs/common';
import { FeatureRepositoryService } from '@projectx/db';

@Injectable()
export class FeatureService {
  constructor(private readonly featureRepo: FeatureRepositoryService) {}

  async findAll() {
    return this.featureRepo.findAll();
  }

  async findOne(id: string) {
    const feature = await this.featureRepo.findById(id);
    if (!feature) {
      throw new NotFoundException(`Feature ${id} not found`);
    }
    return feature;
  }

  async create(data: CreateFeatureDto) {
    return this.featureRepo.create(data);
  }
}

Read the full file on GitHub · 869 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. yesterday First seen · 869 lines · 36 tokens per session scan A 9605d037dd69

Subscribe to this mod's changes

backend-engineer is an agent published in the GitHub repository proyecto26/projectx (83 stars, last pushed 4mo ago), licensed MIT. It adds 36 tokens to every session and 5,628 once invoked, about $0.0002 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-30.