ワンクリックで
dev-workflow
Common development commands and workflows — linting, testing, building, Docker management, and troubleshooting.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Common development commands and workflows — linting, testing, building, Docker management, and troubleshooting.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Runbook for diagnosing and resolving production issues with the Site Scanning Engine on Cloud.gov.
Guide for deploying the Site Scanning Engine to Cloud.gov via GitHub Actions, and using the Cloud Foundry CLI to monitor and troubleshoot deployed environments.
Guide for adding new fields/columns to scan results, including entity decorators, snapshot integration, and API exposure.
Guide for implementing a new scan in the core-scanner library, including page evaluation, entity integration, and testing.
Commands for loading and managing scan data — ingesting federal domains, enqueueing scans, running single-site tests, and exporting snapshots.
Guide through initial development setup of the Site Scanning Engine (prerequisites, Docker, building, first data load).
| name | dev-workflow |
| description | Common development commands and workflows — linting, testing, building, Docker management, and troubleshooting. |
Common development commands and workflows for the Site Scanning Engine.
npm run lint # ESLint with auto-fix
npm run format # Prettier formatting
Run these before committing code.
npm run test:unit # Run all unit tests (excludes e2e)
npm run tdd # Watch mode for test-driven development
npm run test:cov # Run tests with coverage report
npm run test:e2e # Run end-to-end tests only
Note: Test files use .spec.ts extension.
npm run start:all # Start all services (API + scan-engine)
npm run start:api # Start API only (port 3000)
npm run start:scan-engine # Start scan-engine worker only
npm run start:dev # Start with watch mode (auto-reload on changes)
npm run scan:dev # Test scan with watch mode (defaults to supremecourt.gov)
npm run scan:dap # Test DAP scan specifically
For custom site:
npx nest start cli -- scan-site --url yourdomain.gov
npm run build:all # Build all apps
npm run build:api # Build API only
npm run build:scan-engine # Build scan-engine only
npm run build:cli # Build CLI only
docker-compose up --build -d
Starts:
docker-compose up --build -d
Warning: This deletes all database and Redis data.
docker-compose down
docker-compose logs -f
docker-compose logs -f postgres # Specific service
docker build -f apps/scan-engine/Dockerfile .
Note: Docker is only for local dev - not used in production Cloud Foundry environment.
nest g app <app_name>
Creates new app in apps/ directory.
nest g library <library_name>
Creates new library in libs/ directory.
Configured in tsconfig.json and package.json:
import { DatabaseModule } from '@app/database';
import { CoreScannerService } from '@app/core-scanner';
import { MessageQueueModule } from '@app/message-queue';
npm run start:dev for rapid iterationnpm run tdd for test-driven developmentnpm run scan:dev for testing scan logicnpm run lintnpm run formatnpm run test:unitnpm run build:allConfigured in .pre-commit-config.yaml - automatically runs on git commit:
To skip hooks (not recommended):
git commit --no-verify
Auto-generated API docs available at:
Updates automatically when you add/modify endpoints.
In local development:
Kill process using port:
lsof -ti:3000 | xargs kill -9 # API port
lsof -ti:6379 | xargs kill -9 # Redis port
Ensure correct Node.js version:
nvm use # Uses version from .nvmrc (24.x)
Rebuild Puppeteer:
npm rebuild puppeteer
Full reset:
docker-compose down
rm -rf node_modules dist
npm i
npm run build:all
docker-compose up --build -d
npm run start:all