NestJS Code One Task Group
| This documentation was generated with the assistance of AI. Please report any inaccuracies. |
Implement one bucket of NestJS tasks from a plan’s task group end to end: one quality baseline up front, each task implemented with its unit specs, then the whole bucket validated once — with the e2e stage serialized behind a repository-wide lock.
Purpose
iru-nestjs-code-one-task-group is the NestJS counterpart to iru-typescript-code-one-task-group, built on the same
gate skills (iru-typescript-test, -coverage, -code-quality, -tsdoc), each run through an iru-gate-runner agent.
Step 1 detects the flavor once — ESM/Vitest or CommonJS/Jest, Express or Fastify, ORM, Prisma, builder, standard or
monorepo mode, any architecture-boundary check, and whether the e2e suite exists and needs Docker. It captures one
pre-change quality baseline, then implements each task through iru-nestjs-code-one-task (in parallel agents when
allowed, except tasks that edit the same module or global-setup file or depend on each other’s providers). Step 3
validates cheapest first: prisma generate when Prisma is used, license headers, TSDoc, optional architecture
boundaries, scoped unit tests, an 80% line and branch coverage gate from unit tests alone (with *.module.ts, main.ts
and generated code excluded, and decorator-metadata branch artifacts accepted), the full unit suite, lint plus
tsc --noEmit plus Prettier diffed against the baseline, a single nest build, and last the e2e stage behind the atomic
mkdir-based .integration-test.lock (stale after 60 minutes, bounded ~45-minute wait, released on every exit path). E2E
results never count toward coverage, and an e2e stage that needs Docker when it is unavailable is reported unverified.
Plugin
Shipped by the iru-nestjs plugin of the ai-catalog marketplace (install with /plugin install iru-nestjs@ai-catalog; see Plugins).
Inputs
| Argument | Required | Description | Default |
|---|---|---|---|
Bucket text |
Yes |
Every NestJS-tagged task/sub-task in the bucket with its own text, the group’s |
None — always invoked with a specific bucket’s text, by |
Outputs
-
Source files, unit specs and e2e specs created or modified per task, via
iru-nestjs-code-one-task. -
License headers and TSDoc kept current across the files the bucket touched.
-
Unit-test coverage of at least 80% lines and branches for changed/new source files, never satisfied by e2e tests.
-
No new lint,
tscor Prettier issues versus the baseline (everytscerror blocks, including in spec files), and a successfulnest build. -
implementation_plan.mdwith each task’s checkbox checked and its note replaced by the final outcome, quoting the unit-only coverage and the e2e result separately. -
A bucket report to the caller: detected flavor, per-task results, accepted coverage exceptions, type-check and build results, the e2e outcome (passed, fixed, unverified with reason, or not wired) and lock behavior, and any blocked task.
Execution flow
Dependencies
Invokes
-
NestJS Code One Task — Step 2, once per task in the bucket (concurrently or sequentially), via the
iru-isolated-skill-executoragent; implements the task and its unit specs and checks off its own checkbox.
Each of the following is invoked via the iru-gate-runner agent so reports stay out of
this skill’s context:
-
TypeScript Code Quality — Step 1 (baseline) and Step 3.7 (lint,
tsc --noEmit, Prettier vs baseline). -
Check License — Step 3.1, license headers for every file the bucket touched.
-
TypeScript TSDoc — Step 3.2, TSDoc for the source files.
-
TypeScript Test — Steps 3.4, 3.6 and 3.9, scoped unit tests, the full unit suite and the e2e run.
-
TypeScript Coverage — Step 3.5, unit-only coverage for the bucket’s changed files.
Invoked by
-
Code One Task Group — Step 2, bucket for key nestjs.
Related agents
-
iru-isolated-skill-executor— one per task in Step 2, so each task’s transcript stays out of this skill’s context. -
iru-gate-runner— the baseline (Step 1) and every validation check (Step 3), includingprisma generate, the architecture check,nest buildand the lock-protected e2e run.
Source
SKILL.md on GitHub — the file this page was generated from.