nestjs-backend-conventions

nestjs-backend-conventions is a skill for Claude Code, Codex from lh17708357536-gif/flutter-cn-overseas-app-skills. It costs 106 tokens per session (5,955 once invoked), scanned A, original, MIT.

A set of conventions for building NestJS and Prisma backends, server-side applications that use structured modules and database access.

In plain words
What is it for?
It guides module, controller, and service structure; validated request objects; tenant-aware database schemas; JWT login protection; Redis and BullMQ integration; file uploads; content review; and AI charge refunds.
Why use it?
It gives teams consistent patterns for authentication, data separation between customers, validation, background jobs, uploads, moderation, and AI billing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit It guides module, controller, and service structure; validated request objects; tenant-aware database schemas; JWT login protection; Redis and BullMQ integration; file uploads; content review; and AI charge refunds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lh17708357536-gif/flutter-cn-overseas-app-skills/nestjs-backend-conventions
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 lh17708357536-gif/flutter-cn-overseas-app-skills --skill nestjs-backend-conventions
Clone the repo
git clone --depth 1 https://github.com/lh17708357536-gif/flutter-cn-overseas-app-skills

Made for: Claude Code, Codex.

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-backend-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/lh17708357536-gif/flutter-cn-overseas-app-skills/nestjs-backend-conventions/github.svg)](https://agentmods.dev/skills/lh17708357536-gif/flutter-cn-overseas-app-skills/nestjs-backend-conventions)
Your own site
<a href="https://agentmods.dev/skills/lh17708357536-gif/flutter-cn-overseas-app-skills/nestjs-backend-conventions"><img src="https://agentmods.dev/badge/skills/lh17708357536-gif/flutter-cn-overseas-app-skills/nestjs-backend-conventions/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-backend-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/lh17708357536-gif/flutter-cn-overseas-app-skills/nestjs-backend-conventions"><img src="https://agentmods.dev/badge/skills/lh17708357536-gif/flutter-cn-overseas-app-skills/nestjs-backend-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,955 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00106 $0.05955
Opus 5 $0.00053 $0.02978
Sonnet 5 $0.00021 $0.01191
Haiku 4.5 $0.00011 $0.00596

Measured 12d ago against content hash 84011e9a5a7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

nestjs-backend-conventions scanned grade A with 1 finding 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 12d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| **Wave1** | 后端 API 独立可用 + curl 验证 | curl 通过 |
skills/nestjs-backend-conventions/SKILL.md · 582 lines

How it starts

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

NestJS 后端开发规范 Skill

适用于 Flutter + NestJS + Prisma + MySQL 全栈项目的后端层。所有 <PLACEHOLDER> 替换为项目实际值。

占位符约定:本 skill 用 <TENANT_ID> 表示业务租户字段名(id 列),<tenant> 表示其 Prisma model 小写(如 <tenant> model 实际可能是 hotel / store / org),<Tenant> 表示 Pascal case 类型。新项目按业务命名替换 — 例如酒店 SaaS 用 hotelId / hotel / Hotel,门店 SaaS 用 storeId / store / Store,通用多租户用 tenantId / tenant / Tenant

1. 分层架构

server/
├── prisma/
│   ├── schema.prisma           # 数据库 schema(唯一真相源)
│   └── migrations/             # 生产用 migration(开发用 db push 即可)
├── src/
│   ├── modules/                # 业务模块(每个模块一个文件夹)
│   │   └── <feature>/
│   │       ├── <feature>.module.ts
│   │       ├── <feature>.controller.ts
│   │       ├── <feature>.service.ts
│   │       ├── dto/
│   │       │   └── <feature>.dto.ts
│   │       └── interfaces/
│   ├── common/                 # 跨模块基础设施
│   │   ├── prisma/             # PrismaModule(全局)
│   │   ├── redis/              # RedisModule(全局,ioredis)
│   │   ├── queue/              # BullMQ QueueModule(全局)
│   │   ├── decorators/         # @CurrentUser、@RequirePermission
│   │   ├── guards/             # JwtAuthGuard、PermissionGuard
│   │   ├── interceptors/       # 日志 / 限流
│   │   ├── filters/            # HTTP 异常过滤器
│   │   ├── services/           # UploadService、CryptoService 等
│   │   ├── constants/          # 全局常量(语言列表、tier 限额、credit 默认值)
│   │   └── utils/              # 工具函数(normalizeBusinessLanguageCode 等)
│   ├── h5/                     # 对客 H5 渲染(Handlebars 模板)
│   ├── websocket/              # WebSocket Gateway
│   └── main.ts                 # bootstrap
└── .env                        # 环境配置(不进 git)

2. 命名规范

  • 文件:kebab-case.ts(如 complaint-analytics.service.ts
  • 类:PascalCase(如 ComplaintAnalyticsService
  • DTO 类:<Action><Resource>Dto(如 CreateComplaintDto
  • 注释:中文(如团队偏好)
  • Service 方法:动词开头,camelCase(generateAnalyticsReport / consumeReserved

3. Module / Controller / Service 模板

// <feature>.module.ts
@Module({
  imports: [/* PrismaModule、RedisModule 全局,无需重复 import */],
  controllers: [<Feature>Controller],
  providers: [<Feature>Service],
  exports: [<Feature>Service],   // 仅当其他模块需要才 export
})
export class <Feature>Module {}

Read the full file on GitHub · 582 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. 12d ago First seen · 582 lines · 106 tokens per session scan A 84011e9a5a7d

Subscribe to this mod's changes

nestjs-backend-conventions is a skill published in the GitHub repository lh17708357536-gif/flutter-cn-overseas-app-skills (20 stars, last pushed 2mo ago), licensed MIT. It adds 106 tokens to every session and 5,955 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

using-redis-token-buckets

Use when adding a bucket-like rate limit backed by Redis: a per-caller budget with burst capacity and continuous refill, a refund path for requests that did no work, or a limit whose Retry-After must be a real wait rather than a window edge. posthog/tokenbucket.py provides an atomic Lua token bucket (consume, refund…

PostHog/posthog-foss · 148 tokens

spring-boot-cache

Provides patterns for implementing Spring Boot caching: configures Redis/Caffeine/EhCache providers with TTL and eviction policies, applies @Cacheable/@CacheEvict/@CachePut annotations, validates cache hit/miss behavior, and exposes metrics via Actuator. Use when adding caching to Spring Boot services, configuring…

giuseppe-trisciuoglio/developer-kit · 79 tokens

using-redis-token-buckets

Use when adding a bucket-like rate limit backed by Redis: a per-caller budget with burst capacity and continuous refill, a refund path for requests that did no work, or a limit whose Retry-After must be a real wait rather than a window edge. posthog/tokenbucket.py provides an atomic Lua token bucket (consume, refund…

PostHog/posthog · 148 tokens

spring-data-redis

Use when implementing caching, session storage, rate limiting, or any Redis integration. Covers cache-aside pattern, key naming, TTL strategy, and serialization config.

rrezartprebreza/spring-boot-skills · 37 tokens

background-job-orchestrator

Expert in background job processing with Bull/BullMQ (Redis), Celery, and cloud queues. Implements retries, scheduling, priority queues, and worker management. Use for async task processing, email campaigns, report generation, batch operations. Activate on "background job", "async task", "queue", "worker", "BullMQ"…

curiositech/some_claude_skills · 95 tokens

nw-sd-patterns

Core distributed systems patterns - load balancing, caching, sharding, consistent hashing, message queues, rate limiting, CDN, Bloom filters, ID generation, replication, conflict resolution, CAP theorem.

nWave-ai/nWave · 43 tokens