Agent skill

Nestjs Configuration

by HoangNguyen0403 in HoangNguyen0403/agent-skills-standard

Environment variables validation and ConfigModule setup. An agent skill from HoangNguyen0403/agent-skills-standard.

MITAuto-check: notesBackend & APIs

Install Nestjs Configuration

skills CLI
$ npx skills add HoangNguyen0403/agent-skills-standard --skill nestjs-configuration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HoangNguyen0403/agent-skills-standard nestjs-configuration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/nestjs/nestjs-configuration .claude/skills/nestjs-configuration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nestjs-configuration
GitHub stars
572
Token cost
~591 tokens
SKILL.md length
205 words
Files
2
Skills in repo
211
Repo updated
First seen
Licence
MIT

At a glance

Environment variables validation and ConfigModule setup. An agent skill from HoangNguyen0403/agent-skills-standard.

  • Works in 2 steps: Library: Use @nestjs/config. → Initialization: Import…
  • Validating environment variables with Joi/Zod
  • SKILL.md covers Priority: P1 (HIGH), Setup, Validation and Usage, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Nestjs Configuration is an agent skill from HoangNguyen0403/agent-skills-standard. Environment variables validation and ConfigModule setup. Use when validating environment variables with Joi/Zod or configuring ConfigModule in NestJS.

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `evals/evals.json`).

It sits in Backend & APIs, covering Secrets management and Forms and validation. It works with NestJS and Zod. The repository describes itself as: A collection of Agent Skills Standard and Best Practice for Programming Languages, Frameworks that help our AI Agent follow best practies on frameworks and programming laguages. The licence is MIT.

When your agent uses it

  • Validating environment variables with Joi/Zod
  • Configuring ConfigModule in NestJS

Example prompts

  • “/nestjs-configuration”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Library: Use @nestjs/config.
  2. Initialization: Import ConfigModule.forRoot({ isGlobal: true }) in AppModule.

What it can do on your machine

Read from SKILL.md and the folder at commit b529c2d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nestjs Configuration loads about 591 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 205 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~591

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:47
    - **Secrets**: Never commit `.env` files. Add `.env*` to `.gitignore`.
  • NoteMentions a .env fileSKILL.md:55
    3. **`.env.development` / `.env.test`**: Add actual development values.
  • NoteMentions a .env fileSKILL.md:62
    - **No committed secrets**: Add `.env*` to `.gitignore`; load values via ConfigService only.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HoangNguyen0403/agent-skills-standard at commit b529c2d, republished under its MIT licence (© HoangNguyen0403). 205 words, ~591 tokens.

Download SKILL.mdSave it as .claude/skills/nestjs-configuration/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
nestjs-configuration
description
Environment variables validation and ConfigModule setup. Use when validating environment variables with Joi/Zod or configuring ConfigModule in NestJS.

NestJS Configuration Standards

Priority: P1 (HIGH)

Setup

  1. Library: Use @nestjs/config.
  2. Initialization: Import ConfigModule.forRoot({ isGlobal: true }) in AppModule.

Validation

  • Mandatory: Validate environment variables at startup.
  • Tool: Use joi or custom validation class.
  • Effect: app must crash immediately if required env var (e.g., DB_URL) missing.
typescript
// app.module.ts
ConfigModule.forRoot({
  validationSchema: Joi.object({
    NODE_ENV: Joi.string()
      .valid('development', 'production')
      .default('development'),
    PORT: Joi.number().default(3000),
    DATABASE_URL: Joi.string().required(),
  }),
});

Usage

  • Injection: Inject ConfigService to access values.
  • Typing: Avoid magic strings. Use type-safe getter helper or dedicated configuration object/interface.
  • Secrets: Never commit .env files. Add .env* to .gitignore.

⚠️ Adding New Variables

When adding new environment variable to application, you MUST update all of following:

  1. src/config/env.validation.ts: Add class property with appropriate class-validator decorators.
  2. .env.example: Add placeholder value so other developers know about it.
  3. .env.development / .env.test: Add actual development values.
  4. CI/CD Pipelines & Infrastructure: You MUST map new variable in your deployment scripts (e.g., .github/workflows/*.yml, gitlab-ci.yml, Terraform, or Azure Pipelines). Most modern cloud platforms (Cloud Run, ECS, Kubernetes) require explicit mapping of secrets/env-vars into container runtime. Failure to this will cause production deployment to crash or silently fail.

Anti-Patterns

  • No unchecked env vars: Validate all required variables at startup; app must crash if missing.
  • No committed secrets: Add .env* to .gitignore; load values via ConfigService only.
  • No new vars without CI/CD update: Always update env.validation.ts, .env.example, and pipeline manifests.

© HoangNguyen0403, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/nestjs/nestjs-configuration of HoangNguyen0403/agent-skills-standard.

  • SKILL.md
  • evals/evals.json

Open the folder on GitHubat commit b529c2d

Compare with similar skills

Nestjs Configuration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nestjs Configuration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nestjs Configuration this skillHoangNguyen0403/agent-skills-standard572—~591Automated safety check: NotesMIT
Nestjs Trpctrycompai/crm11k—~2.8kAutomated safety check: PassMIT
Nestjs Drizzle Crud Generatorgiuseppe-trisciuoglio/developer-kit357—~1.3kAutomated safety check: NotesMIT
Arkenvyamcodes/arkenv147—~2.5kAutomated safety check: PassMIT
Backend Dev Guidelineslangfuse/langfuse36k—~1.9kAutomated safety check: PassCustom licence
Warden Hardenjeremylongshore/tons-of-skills-marketplace2.8k—~2.4kAutomated safety check: NotesMIT

Similar skills

  • Nestjs Trpc

    trycompai/crm

    Build end-to-end type-safe tRPC APIs inside NestJS using the nestjs-trpc adapter — @Router/@Query/@Mutation/@Subscription decorators, TRPCModule.forRoot, injectable middlewares and context, Zod…

    11k GitHub stars~2.8k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Nestjs Drizzle Crud Generator

    giuseppe-trisciuoglio/developer-kit

    Generates complete CRUD modules for NestJS applications with Drizzle ORM.

    357 GitHub stars~1.3k tokensUpdated 1 mo ago
    DatabasesAuto-check: notes
  • Arkenv

    yamcodes/arkenv

    Answer questions about ArkEnv and help implement environment variable validation.

    147 GitHub stars~2.5k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Backend Dev Guidelines

    langfuse/langfuse

    Build or review Langfuse backend code. An agent skill from langfuse/langfuse.

    36k GitHub stars~1.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Warden Harden

    jeremylongshore/tons-of-skills-marketplace

    Produce a hardening spec and implement it — auth patterns, security headers, rate limiting, input validation, secrets management, dependency hygiene.

    2.8k GitHub stars~2.4k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Backend Dev Guidelines

    litefuse/litefuse

    Comprehensive backend development guide for Litefuse's Next.js 14/tRPC/Express/TypeScript monorepo.

    101 GitHub starsUsed in 1 repo~5.8k tokens
    Backend & APIsAuto-check passed

More from HoangNguyen0403/agent-skills-standard

All 211 skills in this repo
  • Subagent-Driven Development

    HoangNguyen0403/agent-skills-standard

    Runs a multi-task implementation plan by sending each task to a fresh implementer subagent, reviewing it independently, then reviewing the whole branch.

    572 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • draw.io Architecture Diagramming

    HoangNguyen0403/agent-skills-standard

    Draws architecture diagrams as editable draw.io files from a JSON spec, with a fixed house style, one C4 level per diagram and evidence-tagged shapes.

    572 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Android Navigation 3 Guide

    HoangNguyen0403/agent-skills-standard

    Implements and migrates to Jetpack Navigation 3 in Compose: NavDisplay, typed route objects, a state-list back stack, deep links, multiple back stacks and dialog scenes.

    572 GitHub stars~687 tokensUpdated yesterday
    Auto-check passed
  • Angular HttpClient Standards

    HoangNguyen0403/agent-skills-standard

    Sets rules for Angular HTTP code: functional interceptors, typed requests, services that own every call, and httpResource for reactive data loading in Angular 17+.

    572 GitHub stars~652 tokensUpdated yesterday
    Auto-check passed
  • Angular Tooling

    HoangNguyen0403/agent-skills-standard

    Angular CLI usage, code generation, build configuration, and bundle optimization.

    572 GitHub stars~743 tokensUpdated yesterday
    Auto-check passed
  • Common Code Review

    HoangNguyen0403/agent-skills-standard

    Conduct high-quality, persona-driven code reviews. An agent skill from HoangNguyen0403/agent-skills-standard.

    572 GitHub stars~772 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Nestjs Configuration

What does Nestjs Configuration do?

Environment variables validation and ConfigModule setup. An agent skill from HoangNguyen0403/agent-skills-standard. Nestjs Configuration is an agent skill from HoangNguyen0403/agent-skills-standard. Environment variables validation and ConfigModule setup.

When should I use Nestjs Configuration?

Nestjs Configuration fits situations like: validating environment variables with Joi/Zod; configuring ConfigModule in NestJS.

How do I install Nestjs Configuration in Claude Code?

Run `npx skills add HoangNguyen0403/agent-skills-standard --skill nestjs-configuration -a claude-code`. Or copy the skill folder (skills/nestjs/nestjs-configuration in HoangNguyen0403/agent-skills-standard) into .claude/skills/nestjs-configuration in your project. Claude Code loads it when a task matches its description.

How do I install Nestjs Configuration in Codex?

Run `npx skills add HoangNguyen0403/agent-skills-standard --skill nestjs-configuration -a codex`. Or copy the skill folder (skills/nestjs/nestjs-configuration in HoangNguyen0403/agent-skills-standard) into .agents/skills/nestjs-configuration in your project. Codex loads it when a task matches its description.

Can I use Nestjs Configuration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HoangNguyen0403/agent-skills-standard --skill nestjs-configuration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nestjs-configuration, .gemini/skills/nestjs-configuration, .github/skills/nestjs-configuration and .opencode/skills/nestjs-configuration in your project.

What does Nestjs Configuration need to run?

SKILL.md names no scripts, command-line tools or credentials: Nestjs Configuration is instructions for the agent only.

Does Nestjs Configuration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Nestjs Configuration safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Nestjs Configuration use?

Nestjs Configuration is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nestjs Configuration use?

About 591 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Nestjs Configuration?

Skills that share tags, products or a category with Nestjs Configuration: Nestjs Trpc (trycompai/crm, 11k stars), Nestjs Drizzle Crud Generator (giuseppe-trisciuoglio/developer-kit, 357 stars), Arkenv (yamcodes/arkenv, 147 stars) and Backend Dev Guidelines (langfuse/langfuse, 36k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nestjs Configuration?

HoangNguyen0403 (a GitHub user) maintains it in HoangNguyen0403/agent-skills-standard, which has 572 GitHub stars. The repository holds 211 skills in this directory. The repository was last updated on October 9, 2026.

Source: HoangNguyen0403/agent-skills-standard on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.