| 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
build and test commands.
- Reports root cause, evidence, and exact next commands.
Commands
node skills/rockets-runtime-diagnostics/scripts/diagnose.js .
node skills/rockets-runtime-diagnostics/scripts/diagnose.js /path/to/project
node skills/rockets-runtime-diagnostics/scripts/diagnose.js . --run-build --run-tests
node skills/rockets-runtime-diagnostics/scripts/diagnose.js . --json
Checks implemented
ROCKETS_AUTH_IMPORT_ORDER: RocketsAuthModule must appear before RocketsModule/RocketsServerModule.
ROCKETS_MODULE_NOT_REGISTERED: package installed but module not registered in app.module.ts.
DYNAMIC_USER_METADATA_TOKEN_MISSING: userMetadata configured without TypeOrmExtModule.forFeature({ userMetadata: ... }).
ACL_RESOURCE_LITERAL_NOT_IN_ENUM: literal resource in decorators missing in AppResource enum.
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 build and then targeted tests.
Endpoint Smoke Test
Tests live CRUD endpoints against a running NestJS app:
node skills/rockets-runtime-diagnostics/scripts/smoke-test-endpoints.js --project ./apps/api
node skills/rockets-runtime-diagnostics/scripts/smoke-test-endpoints.js --project ./apps/api --port 4000 --timeout 60000
node skills/rockets-runtime-diagnostics/scripts/smoke-test-endpoints.js --project ./apps/api --no-auth
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 start or npm 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.