Loading...
Loading...
Technical checklist for backend PR self-review (NestJS/TypeScript) — B1–B21 static analysis + G1–G16 design patterns. Use when you want to run a checklist against a PR or piece of code. For the full review workflow with GitHub posting and Notion integration, use pr-review.
npx skill4agent add gadanihiman/grs-skills pr-checkgit diff main...HEADconst FOO = process.env.BARConfigServiceprocess.env||as constfield?: Tfield <= 0falseundefined||.toHaveBeenCalled().toBeDefined.toBeTruthy.toBeFalsy.toBeNull()fakermockRejectedValuemockResolvedValue.not.toHaveBeenCalled()/apinull{ data: [] }200 OKupdateLastSyncreturninstanceof AxiosErrorSELECT FOR UPDATEfindOne()findOne()nullif (!record) throw new NotFoundException('record not found');.mdYOUR_BEARER_TOKEN_HERE<api-token>faker.string.alphanumeric()faker.finance.currencyCode()should <do something> when <condition>https://example.comhttps://test.invalid.env.example.env.example||as consterrorwarntimestamptzbigintsmallintintbigintsmallintfloatdecimalvarchar[B1] path/to/file.ts:3
Severity: High
Issue: reads process.env at module-load time before ConfigModule bootstraps.
Fix: inject ConfigService, read inside method.
[G3] path/to/file.ts:42
Issue: method name is too vague — doesn't communicate what it does without reading the body.
Fix: rename to something that describes the actual behaviour.Static analysis: X high, Y medium, Z low
Design review: X blocking, Y nit
Overall: READY / NEEDS CHANGESpr-check-staticpr-check-stylepr-check-frontend