AGENTS.md@.agents/skills/nestjs-best-practicesB

AGENTS.md@.agents/skills/nestjs-best-practices from asymmetric-al/core is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add asymmetric-al/core/.agents/skills/nestjs-best-practices/AGENTS.md@git:20260526.54acd2a

Pins git:20260526.54acd2a in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 13 of 14 checks passed
Kind
AGENTS.md file
Repository
asymmetric-al/core
Path
.agents/skills/nestjs-best-practices/AGENTS.md
Versions recorded
3
Latest version
git:20260526.54acd2a, committed May 26, 2026
First version recorded
Feb 18, 2026
Size
163,058 bytes
Repository stars
370
License
AGPL-3.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# NestJS Best Practices

**Version 1.1.0**
NestJS Best Practices
January 2026

> **Note:**
> This document is mainly for agents and LLMs to follow when maintaining,
> generating, or refactoring NestJS codebases. Humans may also find it
> useful, but guidance here is optimized for automation and consistency
> by AI-assisted workflows.

---

## Abstract

Comprehensive best practices and architecture guide for NestJS applications, designed for AI agents and LLMs. Contains 40 rules across 10 categories, prioritized by impact from critical (architecture, dependency injection) to incremental (DevOps patterns). Each rule includes detailed explanations, real-world examples comparing incorrect vs. correct implementations, and specific impact metrics to guide automated refactoring and code generation.

---

## Table of Contents

1. [Architecture](#1-architecture) — **CRITICAL**
   - 1.1 [Avoid Circular Dependencies](#11-avoid-circular-dependencies)
   - 1.2 [Organize by Feature Modules](#12-organize-by-feature-modules)
   - 1.3 [Use Proper Module Sharing Patterns](#13-use-proper-module-sharing-patterns)
   - 1.4 [Single Responsibility for Services](#14-single-responsibility-for-services)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add asymmetric-al/core/.agents/skills/nestjs-best-practices/AGENTS.md@sha256:799cd8c60194aec3

The line at the top of this page pins the label git:20260526.54acd2a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_cvh6essbtu4trh6c.svg)](https://markdownregistry.com/a/art_cvh6essbtu4trh6c)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Feb 18, 2026 and May 26, 2026, about one every 49 days.

versioncommittedcommitsizeaudit
git:20260526.54acd2a latest2026-05-26 54acd2a 163,058 BB view · diff
git:20260223.38c67952026-02-23 38c6795 163,006 BB view · diff
git:20260218.048cbae2026-02-18 048cbae 163,016 BB view

Audit of the latest version

B  13 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No script tag (matched: <script)
  • pass: Size between 200 bytes and 200 KB (163058 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address

Starting a new one? Use a template for AGENTS.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

asymmetric-al/core · 370 stars · license AGPL-3.0 · pushed 2026-11-06 · branch develop

API

GET https://markdownregistry.com/api/v1/artifacts/art_cvh6essbtu4trh6c
GET https://markdownregistry.com/api/v1/resolve?ref=asymmetric-al/core/.agents/skills/nestjs-best-practices/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/799cd8c60194aec3d89181db4b87ea8297a1da598a6ac7e9ce6c6f0c6d561ad5

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from asymmetric-al/core

accessibility-review SKILL.md skill
asymmetric-al/core · .agents/skills/accessibility-review/SKILL.md · Audit and fix accessibility in Core UI. Use when changing or reviewing buttons, links, forms, validation, dialogs…
git:20260715.59137de · audit A · 370 stars
agent-browser SKILL.md skill
asymmetric-al/core · .agents/skills/agent-browser/SKILL.md · Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages…
git:20260923.15c9348 · audit A · 370 stars
agent-email-inbox SKILL.md skill
asymmetric-al/core · .agents/skills/agent-email-inbox/SKILL.md · Use when building any system where email content triggers actions — AI agent inboxes, automated support handlers…
v4.1.0 · audit F · 370 stars
anim SKILL.md skill
asymmetric-al/core · .agents/skills/anim/SKILL.md · Tasteful, subtle web UI animation following Emil Kowalski / animations.dev principles. Use when adding or reviewing…
git:20260725.705f77b · audit A · 370 stars
animate-expo SKILL.md skill
asymmetric-al/core · .agents/skills/animate-expo/SKILL.md · Build animations for Expo and React Native only, using Reanimated, Gesture Handler, Expo Router, and expo-haptics. Use…
git:20261022.752a38b · audit A · 370 stars
animate SKILL.md skill
asymmetric-al/core · .agents/skills/animate/SKILL.md · Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it…
git:20261022.752a38b · audit A · 370 stars
animation-vocabulary SKILL.md skill
asymmetric-al/core · .agents/skills/animation-vocabulary/SKILL.md · Reverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the…
git:20261022.752a38b · audit A · 370 stars
api-design-principles SKILL.md skill
asymmetric-al/core · .agents/skills/api-design-principles/SKILL.md · Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight…
git:20261022.752a38b · audit A · 370 stars
apple-design SKILL.md skill
asymmetric-al/core · .agents/skills/apple-design/SKILL.md · Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing…
git:20261022.752a38b · audit A · 370 stars
architecture-patterns SKILL.md skill
asymmetric-al/core · .agents/skills/architecture-patterns/SKILL.md · Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven…
git:20261022.752a38b · audit A · 370 stars
ask-matt SKILL.md skill
asymmetric-al/core · .agents/skills/ask-matt/SKILL.md · Ask which skill or flow fits your situation. A router over the skills in this repo.
git:20261022.752a38b · audit A · 370 stars
ask-sonner SKILL.md skill
asymmetric-al/core · .agents/skills/ask-sonner/SKILL.md · Guide to Sonner, the React toast library — install and wire up the Toaster, pick the right toast() call, promise and…
git:20261022.752a38b · audit A · 370 stars

Every file in asymmetric-al/core

Browse by kind, by grade B, or by owner.