Agent skill
nestjs-maintenance
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/nestjs-maintenance
SKILL.md
NestJS Maintenance Verification
When to use
- Backend code, config, or dependencies changed and quality gates must be revalidated.
- The user asks to run verification, maintenance checks, or pre-commit validation.
- You need local parity with CI script execution order.
Required inputs
- Project root containing
package.json. - A working package manager command for this repository (
npm,pnpm, oryarn).
Ordered verification scripts
Run only scripts that exist in package.json, in this strict order:
docscleanbuildformatlinttest:cov
Deterministic workflow
- Read
package.jsonand load thescriptsobject. - Build the runnable list by filtering the ordered script names to only those present in
scripts. - If no scripts from the ordered list are present, stop and report that nothing matched the maintenance pipeline.
- If source/API files were changed and the
typescript-jsdoc-developskill is installed, run it beforedocsso generated documentation matches current exports.- If
typescript-jsdoc-developis not installed, continue the maintenance pipeline and reportjsdoc pre-step skipped (skill unavailable)in the final output.
- If
- Execute each runnable script from repository root using the repo package manager:
npm run <script>pnpm run <script>yarn <script>
- If any step fails, fix the root cause and restart from step 5 at the first script in the ordered list.
- Repeat until the full runnable list succeeds in one uninterrupted pass.
Failure handling rules
- Do not skip a script that exists in
package.json. - Do not continue to later scripts after a failure.
- Prefer code/config/dependency fixes over bypasses (
--force, disabling checks, or script removal). - Keep fixes minimal and aligned with existing repository conventions.
Coverage-specific policy (test:cov)
- Prefer adding/updating tests for uncovered statements and branches identified in coverage output.
- Do not lower thresholds or exclude real project source as the default fix.
- Exclusions are acceptable for generated/tooling files only (for example generated Prisma client, bootstrap files, framework wiring).
- If thresholds are temporarily reduced, mark it as technical debt and add a clear follow-up note.
- For deeper coverage remediation workflows, use
nestjs-vitest-coverage.
Success criteria
- Every script that exists from the ordered list passed in order during a single final run.
- No required script in the ordered list was skipped.
- The final report includes: scripts executed, failure(s) fixed, and final pass confirmation.
Output contract
Report:
- Detected package manager and script list.
- Execution order and pass/fail status by step.
- Root-cause fix summary for each encountered failure.
- Final all-pass confirmation.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?