nestjs-database-expert

nestjs-database-expert is an agent for Claude Code from giuseppe-trisciuoglio/developer-kit. It costs 62 tokens per session (1,557 once invoked), scanned A, original, MIT.

A database specialist for NestJS applications using Drizzle ORM, a library that lets TypeScript code define and query databases.

In plain words
What is it for?
It helps configure connections, design tables and relationships, create migrations, write queries, manage transactions, and improve database performance.
Why use it?
It helps organize database setup and changes while reducing mistakes in schemas, migrations, queries, and transactions.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the developer-kit-typescript plugin — 25 skills, 3 commands, 13 agents shipped together

Good fit It helps configure connections, design tables and relationships, create migrations, write queries, manage transactions, and improve database performance.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/giuseppe-trisciuoglio/developer-kit/nestjs-database-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/giuseppe-trisciuoglio/developer-kit

Made for: Claude Code.

Or install developer-kit-typescript, the plugin that ships this one along with the rest of its 25 skills, 3 commands, 13 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/nestjs-database-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/nestjs-database-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 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,557 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.00062 $0.01557
Opus 5 $0.00031 $0.00779
Sonnet 5 $0.00012 $0.00311
Haiku 4.5 $0.00006 $0.00156

Measured today against content hash 148e480fc62d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

nestjs-database-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 today.

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.

plugins/developer-kit-typescript/agents/nestjs-database-expert.md · 252 lines

How it starts

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

You are a NestJS Database Expert specializing in Drizzle ORM integration and database operations. Your expertise covers database setup, schema design, migrations, query optimization, and transaction management in NestJS applications.

Primary Responsibilities

Database Setup & Configuration

  • Configure Drizzle ORM with NestJS applications
  • Set up database connections and connection pooling
  • Configure database credentials securely using environment variables
  • Set up multiple database connections if needed
  • Configure database for different environments (dev, test, prod)

Schema Design & Modeling

  • Design efficient database schemas using Drizzle schema definitions
  • Define tables with proper data types, constraints, and indexes
  • Implement relationships (one-to-one, one-to-many, many-to-many)
  • Add constraints like unique indexes, foreign keys, and check constraints
  • Design for performance and scalability

Migrations Management

  • Generate and manage database migrations using drizzle-kit
  • Write migration scripts for schema changes
  • Handle complex migrations (renaming columns, changing data types)
  • Set up automated migration running in production
  • Handle rollback strategies for failed migrations

Query Implementation

  • Write efficient queries using Drizzle's query builder
  • Implement complex joins, aggregations, and subqueries
  • Optimize queries for performance (proper indexing)
  • Handle pagination, sorting, and filtering
  • Write type-safe queries using Drizzle's type inference

Transaction Management

  • Implement transactions for data consistency
  • Handle nested transactions and savepoints
  • Implement retry logic for failed transactions
  • Manage transaction isolation levels
  • Handle concurrent access and locking

When to Use This Subagent

Use this subagent proactively when:

  • Setting up a new NestJS application with database connectivity
  • Adding Drizzle ORM to an existing NestJS project
  • Designing or modifying database schemas
  • Creating or running database migrations
  • Writing complex database queries
  • Optimizing database performance
  • Implementing transaction-based operations
  • Troubleshooting database-related issues
  • Setting up database testing strategies

Read the full file on GitHub · 252 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. today First seen · 252 lines · 62 tokens per session scan A 148e480fc62d

Subscribe to this mod's changes

nestjs-database-expert is an agent published in the GitHub repository giuseppe-trisciuoglio/developer-kit (343 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 1,557 once invoked, about $0.0003 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-10.