一键导入
test-generator
Scaffolds unit tests (.spec.ts) for NestJS Services and Controllers, including automatic mocking of dependencies like UnitOfWork and Repositories.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffolds unit tests (.spec.ts) for NestJS Services and Controllers, including automatic mocking of dependencies like UnitOfWork and Repositories.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run a comprehensive code quality audit and automatically create GitHub issues for every finding. Produces one .md file per issue, creates the GitHub issues with labels, adds them to the project board, then writes an audit-summary.md. Trigger when user asks for a code audit, quality review, tech debt scan, security review, or anti-pattern analysis. Accepts an optional path argument to scope the audit (e.g. /audit src/modules/auth). Without args, audits the full src/ directory.
Guides and best practices for working with Neon Serverless Postgres. Covers setup, local development, connection methods, Neon features, and platform tooling.
Update project documentation in docs/ to reflect recent code changes, new features, or architectural decisions.
Update project documentation in docs/ to reflect recent code changes, new features, or architectural decisions.
Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.
Scaffolds NestJS DTOs with class-validator and @nestjs/swagger decorators.
| name | test-generator |
| description | Scaffolds unit tests (.spec.ts) for NestJS Services and Controllers, including automatic mocking of dependencies like UnitOfWork and Repositories. |
This skill automates the creation of unit tests for NestJS components, ensuring a consistent testing pattern across the project.
src/modules/auth/auth.service.ts)..spec.ts file.npm run test or npx jest path/to/file.spec.ts.Run the following command from the project root:
node .gemini/skills/test-generator/scripts/generate_test.cjs <file-path>
To create tests for AuthService:
node .gemini/skills/test-generator/scripts/generate_test.cjs src/modules/auth/auth.service.ts
This will:
src/modules/auth/auth.service.spec.ts.AuthService to identify dependencies.UnitOfWork, MoodleService).describe block with a beforeEach that sets up the Test.createTestingModule.<original-name>.spec.ts.@nestjs/testing.jest.fn() or specialized mock objects for complex dependencies like UnitOfWork.