Index of every page on this site: llms.txt
All skills
amirtaherkhani avatar

/nestjs-code-audit

@8272374
Run it yourself

Audits an existing NestJS repository with bundled semantic guidance and optional specialist skills and returns one prioritized, evidence-backed code-quality report. Use when asked to check a whole NestJS codebase or a scoped folder for syntax, TypeScript, lint, module-boundary, dependency, design-smell, security, testing, performance, reliability, or production-readiness problems. This is a read-only review workflow: it does not fix code, install dependencies, run migrations, or deploy. When other skills also apply, reconcile ownership before mutation.

Use this Skill: https://skilld.dev/gh/amirtaherkhani/nestjs-skills/nestjs-code-audit

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencessemantic-review.md

≈821 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Standalone Semantic Review

Use these lanes when reviewing a NestJS repository. Optional architecture, OOP, and runtime skills can deepen a relevant lane; their absence does not block this audit. Confirm framework behavior against the target's installed version and official documentation.

Architecture: trace a consumer, not just exports

Follow controller/message entry → application operation → storage/external adapter and Nest imports/providers/exports. Ask who owns each write and transaction. An exported storage provider is not automatically a defect: show a consumer bypassing a public operation and the concrete invariant, authorization, consistency, or change boundary it evades. A broad export with no harmful call path is a review candidate, not a confirmed bug.

Healthy control: a consumer calls the owning module's public operation, which enforces the invariant and performs the write. Do not demand a port, CQRS, separate service, or Clean Architecture layer when the existing direct design protects the contract. Confirm cycles from imports/wiring, not folder names or forwardRef alone.

Object design: locate the policy

Read callers and public operations. Find invariants enforced inconsistently, hidden dependencies, unrelated reasons to change, or real interchangeable behavior. Trace at least one failing/unsafe path before proposing a pattern. File length, a switch, plain objects, and constructor injection are not defects by themselves. One boundary leak must not become separate architecture and OOP findings.

Runtime and security: check boundary behavior

Trace input through actual pipes/DTO transformation, guards, handlers, filters, and response mapping. Query strings arrive as strings: Boolean coercion treats the string "false" as truthy. Verify omitted, true, false, and invalid values over HTTP using the repository's contract; do not assume a type annotation parses input. Inspect authentication separately from resource/tenant authorization.

Check retry/idempotency and transaction effects together. Validate timeouts, resource bounds, shutdown, and failure contracts from code and safe evidence. Never run live load, migration, external-service, or shared-database checks merely to complete a report.

Performance: measurement before conclusions

Trace dependency calls and request counts, then measure a controlled workload when authorized. Repeated sequential I/O can suggest a hypothesis, not a measured latency claim. Compare the same inputs and environment before/after, preserve response ordering/equality and failure handling, and bound concurrency. Request-local deduplication differs from cross-request caching: stale data and authorization keys require separate justification.

Evidence and negative controls

Report file/line and call-path evidence, impact, smallest remedy, and validation. Separate a known tool failure from a semantic finding. Mark unrun checks and uncertain performance/security claims as needing verification. Record healthy controls actually observed, and do not flag them simply because they resemble the seeded problem.

Sources: Nest modules, pipes, and testing.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3d3 checks · Risk SAFE
  • Gen Agent Trust Hub4d

    The skill is a code auditing tool for NestJS projects that performs static analysis using local tools. It follows a strict read-only workflow, ensuring that no modifications are made to the codebase and no data is exfiltrated.

  • Socket3d

    No alerts

  • Snyk4d

    Risk: LOW · No issues

Signed by skilld at 8272374. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 5 days ago
compatibility
Requires Node.js 20+ and a NestJS repository. Sibling skills are optional.
metadata
{
  "author": "amirtaherkhani",
  "version": "1.0.3"
}

README badge

README badge for amirtaherkhani/nestjs-skills/nestjs-code-audit