跳到正文
TakoAPI
返回技能列表

agent-nestjs-skills

由 tuanvidev 提供

Coding Agents & IDEs
384下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

NestJS best practices and architecture patterns for building production-ready applications.

描述

该技能的功能

A reference guide of 40 NestJS rules organized across 10 categories, from architecture and dependency injection to security and deployment. Each rule includes code examples showing incorrect and correct patterns. Intended for use during code writing, review, and refactoring.

Rules are prioritized by impact (CRITICAL down to LOW-MEDIUM), so an agent can focus on the highest-risk issues first rather than treating all guidelines equally.

何时使用

  • Catching circular module dependencies during code review
  • Setting up JWT authentication and authorization guards
  • Refactoring a bloated service into single-responsibility units
  • Preventing N+1 query problems in database-heavy endpoints
  • Configuring rate limiting on a public API

示例工作流

输入

User asks: Review my NestJS user module for architecture and security issues

智能体
  1. 1

    Load arch- and security- rule files from the rules/ directory

  2. 2

    Check module structure for circular dependencies and improper provider sharing

  3. 3

    Verify services follow single-responsibility and use constructor injection

  4. 4

    Confirm input validation uses class-validator and guards handle authorization

  5. 5

    Check for missing rate limiting on public endpoints

输出

Annotated list of violations per rule ID with corrected code snippets

安装

clawhub install tuanvidev/agent-nestjs-skills

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接