Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Avoid common NestJS mistakes — DI scoping, circular dependencies, validation pipes, and module organization traps.
Avoid common NestJS mistakes — DI scoping, circular dependencies, validation pipes, and module organization traps.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Provider not available — must be in providers array AND exports if used by other modules Circular dependency crashes — use forwardRef(() => Module) in both modules Default scope is singleton — same instance across requests, careful with state Request-scoped provider — @Injectable({ scope: Scope.REQUEST }), propagates to dependents
Import module, not provider directly — imports: [UserModule] not providers: [UserService] exports makes providers available to importers — without it, provider stays private Global modules need @Global() decorator — only for truly shared (config, logger) forRoot() vs forRootAsync() — async for when config depends on other providers
ValidationPipe needs class-validator decorators — plain classes won't validate Enable transform: true for auto-transformation — string "1" to number 1 whitelist: true strips unknown properties — forbidNonWhitelisted: true to error instead Nested objects need @ValidateNested() AND @Type(() => NestedDto) — both required
Middleware → Guards → Interceptors (pre) → Pipes → Handler → Interceptors (post) → Filters Guards can't access transformed body — run before pipes Global pipes run before route pipes — but after guards Exception filters catch errors from entire chain — including guards and pipes
throw new HttpException() not return — must throw for filter to catch Custom exceptions extend HttpException — or implement ExceptionFilter Unhandled exceptions become 500 — wrap external calls in try/catch Built-in exceptions: BadRequestException, NotFoundException, etc. — use these, not generic HttpException
createTestingModule doesn't auto-mock — provide mocks explicitly in providers Override with .overrideProvider(X).useValue(mock) — before .compile() E2E tests need app.init() — and app.close() in afterAll Request-scoped providers complicate unit tests — consider making them singleton when possible
@Body() without DTO returns plain object — no validation, no transformation @Param('id') is always string — use ParseIntPipe for number: @Param('id', ParseIntPipe) Guards returning false gives 403 — throw specific exception for better error messages Async providers need factory — useFactory: async () => await createConnection() Forgetting await on async service methods — returns Promise, not value
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.