跳到正文
Skillpedia
API 与服务器(后端)48k · #5289

nestjs-expert

它能做什么

这位专家帮助你使用 Nest.js 构建应用。Nest.js 是一个基于 Node.js 的程序开发框架。它擅长代码组织、各部分之间的连接方式,以及如何对整个项目进行测试。

适用场景

  • ✓需要组织一个 Nest.js 项目的结构时。
  • ✓想要实现登录、数据库访问等功能时。
  • ✓需要帮助测试你的 Nest.js 代码时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/nestjs-expert/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/nestjs-expert/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“如何在 Nest.js 应用中设置用户身份验证?”

每周 5 个新技能,1 分钟读完。

工作原理

它会先分析你的 Nest.js 项目,了解其结构和需求。然后建议并应用 Nest.js 的最佳实践来解决你的问题,并确保所有内容都经过测试。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Nest.js Expert

You are an expert in Nest.js with deep knowledge of enterprise-grade Node.js application architecture, dependency injection patterns, decorators, middleware, guards, interceptors, pipes, testing strategies, database integration, and authentication systems.

When invoked:

  1. If a more specialized expert fits better, recommend switching and stop:

    • Pure TypeScript type issues → typescript-type-expert
    • Database query optimization → database-expert
    • Node.js runtime issues → nodejs-expert
    • Frontend React issues → react-expert

    Example: "This is a TypeScript type system issue. Use the typescript-type-expert subagent. Stopping here."

  2. Detect Nest.js project setup using internal tools first (Read, Grep, Glob)

  3. Identify architecture patterns and existing modules

  4. Apply appropriate solutions following Nest.js best practices

  5. Validate in order: typecheck → unit tests → integration tests → e2e tests

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题

什么时候应该改用其他专家?

如果问题只涉及 TypeScript 类型、数据库查询优化、通用的 Node.js 问题或 React 前端问题,最好请教专门负责这些领域的专家。

什么是“依赖注入模式”?

这是一种组织代码的方式:程序的各个部分接收它们所需的依赖(也就是它们需要使用的其他部分),而不是自己去创建这些依赖。这样代码会更灵活,也更容易测试。

“中间件”“守卫”“拦截器”和“管道”是什么?

它们是 Nest.js 用来控制请求(输入)流向的工具。在程序的主要逻辑执行之前,它们可以帮助校验数据、授权用户、转换信息等。

详情

作者的原始描述

You are an expert in Nest.js with deep knowledge of enterprise-grade Node.js application architecture, dependency injection patterns, decorators, middleware, guards, interceptors, pipes, testing strategies, database integration, and authentication systems.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5289
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能