mx-review
Review code for MX Space project conventions. Checks NestJS patterns, TypeGoose models, Zod schemas, API design, etc.
Install
mkdir -p .claude/skills/mx-review && curl -L -o skill.zip "https://mcp.directory/api/skills/download/6424" && unzip -o skill.zip -d .claude/skills/mx-review && rm skill.zipInstalls to .claude/skills/mx-review
About this skill
MX Space Code Review
Review code for project conventions. Target: $ARGUMENTS
Review Checklist
1. Controller Conventions
- Uses
@ApiController()instead of@Controller() - Paginated endpoints use
@HTTPDecorators.Paginator - Authenticated endpoints use
@Auth()decorator - Uses correct HTTP methods (GET/POST/PUT/DELETE)
- Parameter validation uses DTOs
- Return values follow response conventions (arrays auto-wrapped, objects returned directly)
2. Service Conventions
- Uses
@InjectModel()to inject models - Queries use
.lean()for plain objects - Complex queries use aggregation pipelines
- Circular dependencies resolved with
ModuleRef - Async tasks use
scheduleManager.schedule() - Events use
eventManager.emit()oreventManager.broadcast()
3. Model Conventions
- Extends from
BaseModelorWriteBaseModel - Uses
@modelOptions()to configure collection name - Required fields have indexes (
@index()) - Reference fields use
@prop({ ref: () => Model }) - Defines
protectedKeysfor sensitive fields
4. Schema (DTO) Conventions
- Uses Zod instead of class-validator
- Uses
createZodDto()to create DTO classes - Provides Partial DTO for update operations
- Uses project custom validators (e.g.,
zMongoId,zNonEmptyString)
5. API Design Conventions
- RESTful naming (plural nouns)
- Correct status codes (200/201/204/400/401/404)
- Paginated responses include
dataandpagination - Error responses use
BusinessException
6. Test Conventions
- Controllers have corresponding E2E tests
- Services have corresponding unit tests
- Uses
createE2EAppto create test app - Test data created in
pourData - Data cleaned up after tests
7. Security Conventions
- Sensitive operations protected by
@Auth() - User input is validated
- Internal error details not exposed
- Sensitive info not logged
8. Performance Conventions
- Uses
.lean()to reduce memory usage - Batch operations use
Promise.all - Large datasets use cursor iteration
- Hot queries have caching
Common Issues
Issue 1: Using class-validator
// Wrong
import { IsString } from 'class-validator'
class CreateDto {
@IsString()
name: string
}
// Correct
import { z } from 'zod'
import { createZodDto } from 'nestjs-zod'
const Schema = z.object({ name: z.string() })
class CreateDto extends createZodDto(Schema) {}
Issue 2: Not using lean()
// Wrong - returns Mongoose Document
return this.model.find()
// Correct - returns plain object
return this.model.find().lean()
Issue 3: Response not following conventions
// Wrong - manually wrapping array
return { data: items }
// Correct - ResponseInterceptor auto-wraps
return items
Issue 4: Circular Dependency
// Wrong - direct injection causes circular dependency
constructor(private readonly otherService: OtherService) {}
// Correct - use ModuleRef for lazy loading
private otherService: OtherService
constructor(private readonly moduleRef: ModuleRef) {}
onApplicationBootstrap() {
this.otherService = this.moduleRef.get(OTHER_SERVICE_TOKEN, { strict: false })
}
Output Format
After review, output in the following format:
## Review Results
### Passed
- [x] Item 1
- [x] Item 2
### Needs Changes
- [ ] Issue description
- Location: `file:line`
- Suggestion: Change recommendation
### Optimization Suggestions
- Suggestion 1
- Suggestion 2
More by mx-space
View all skills by mx-space →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversOptimize your codebase for AI with Repomix—transform, compress, and secure repos for easier analysis with modern AI tool
Create modern React UI components instantly with Magic AI Agent. Integrates with top IDEs for fast, stunning design and
Enhance productivity with AI-driven Notion automation. Leverage the Notion API for secure, automated workspace managemen
Supercharge AI platforms with Azure MCP Server for seamless Azure API Management and resource automation. Public Preview
Create flashcards and study anything with Rember, the anki flashcards tool using spaced repetition to help you remember
Get structured & freeform code reviews with code quality analysis tools powered by OpenAI, Google & Anthropic. Supports
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.