name: rockets-runtime-diagnostics description: Diagnose common Rockets SDK startup/build/security wiring issues with executable checks and fix-ready output. Use when an app fails to boot, build, or enforce ACL as expected.
Rockets Runtime Diagnostics
Use this skill to diagnose real runtime/build problems in Rockets projects, not just read guides.
What this skill does
- Runs static diagnostics for known Rockets failure patterns.
- Optionally runs
buildandtestcommands. - Reports root cause, evidence, and exact next commands.
Commands
# Diagnose project in current directory
node skills/rockets-runtime-diagnostics/scripts/diagnose.js .
# Diagnose another project
node skills/rockets-runtime-diagnostics/scripts/diagnose.js /path/to/project
# Include build and tests
node skills/rockets-runtime-diagnostics/scripts/diagnose.js . --run-build --run-tests
# Machine-readable output
node skills/rockets-runtime-diagnostics/scripts/diagnose.js . --json
Checks implemented
ROCKETS_AUTH_IMPORT_ORDER:RocketsAuthModulemust appear beforeRocketsModule/RocketsServerModule.ROCKETS_MODULE_NOT_REGISTERED: package installed but module not registered inapp.module.ts.DYNAMIC_USER_METADATA_TOKEN_MISSING:userMetadataconfigured withoutTypeOrmExtModule.forFeature({ userMetadata: ... }).ACL_RESOURCE_LITERAL_NOT_IN_ENUM: literal resource in decorators missing inAppResourceenum.ACCESS_QUERY_SERVICE_MISSING: module has CRUD controller but no*-access-query.service.ts.
Typical workflow
- Run diagnostics script.
- Fix issues by severity: CRITICAL -> HIGH -> MEDIUM.
- Re-run diagnostics until no CRITICAL/HIGH issues remain.
- Run
yarn buildand then targeted tests.
Endpoint Smoke Test
Tests live CRUD endpoints against a running NestJS app:
# Basic usage
node skills/rockets-runtime-diagnostics/scripts/smoke-test-endpoints.js --project ./apps/api
# Custom port + longer timeout
node skills/rockets-runtime-diagnostics/scripts/smoke-test-endpoints.js --project ./apps/api --port 4000 --timeout 60000
# Without auth (public endpoints only)
node skills/rockets-runtime-diagnostics/scripts/smoke-test-endpoints.js --project ./apps/api --no-auth
# Keep server running after tests
node skills/rockets-runtime-diagnostics/scripts/smoke-test-endpoints.js --project ./apps/api --keep
What it does:
- Discovers CRUD modules by scanning
src/modules/*/\*.crud.controller.ts - Starts the NestJS app (
yarn startornpm start) - Waits for server readiness
- Signs up a test user + logs in to get JWT
- For each module: tests CREATE, READ MANY, READ ONE, UPDATE, DELETE
- Kills the app and outputs a JSON report
Output: { passed, summary: { total, passed, failed, modules }, auth, modules }
Diagnostics Smoke Test
node skills/rockets-runtime-diagnostics/scripts/smoke-test.js
This validates the diagnostic engine against fixture projects with known errors.