Infrastructure and scaffolding worker for repo setup, Docker, Prisma, and monorepo configuration
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Features involving:
Read the feature description carefully. Understand exactly what infrastructure/scaffold changes are needed.
Check existing state. Before creating anything:
ls the working directory to see current filespackage.json, docker-compose.yml, prisma/schema.prisma if they exist.factory/services.yaml for service definitions.factory/library/architecture.mdPlan changes. List all files to create/modify before starting.
Write tests first where applicable:
npx prisma validatecd apps/api && pnpm testImplement the changes:
.factory/library/architecture.md).factory/library/.factory/services.yamlgh repo create Pibomeister/command-center --public --source=. --pushVerify everything works:
pnpm install (if package.json was modified)cd apps/api && npx prisma validate (if schema was modified)cd apps/api && npx prisma generate (if schema was modified)docker-compose config (if docker-compose.yml was modified)turbo typecheck to ensure TypeScript compilesturbo test to ensure all tests passManual verification:
docker-compose ps{
"salientSummary": "Scaffolded Turborepo monorepo with apps/api (NestJS 11) and apps/web (Next.js 16). Docker Compose with PostgreSQL 16 + Redis 7. Prisma schema with 8 core models. Health endpoint returns 200. All services start with docker-compose up.",
"whatWasImplemented": "Created monorepo structure with pnpm workspaces and Turborepo. apps/api: NestJS 11 with Prisma, JWT auth guard, health controller. apps/web: Next.js 16 with Tailwind CSS, Radix UI, auth provider. docker-compose.yml with db (postgres:16-alpine:5432), redis (redis:7-alpine:6379), api (:8000), web (:3000). Prisma schema: Organization, User, Board, Task, Agent, Approval, CustomFieldDefinition, CustomFieldValue. Seed script creates default org and local auth user.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "pnpm install", "exitCode": 0, "observation": "All dependencies installed" },
{ "command": "cd apps/api && npx prisma validate", "exitCode": 0, "observation": "Schema valid" },
{ "command": "docker-compose config", "exitCode": 0, "observation": "Valid config with 4 services" },
{ "command": "docker-compose up -d", "exitCode": 0, "observation": "All 4 services started" },
{ "command": "curl http://localhost:8000/health", "exitCode": 0, "observation": "{ \"status\": \"ok\" }" },
{ "command": "turbo typecheck", "exitCode": 0, "observation": "No type errors" },
{ "command": "turbo test", "exitCode": 0, "observation": "All tests passed" }
],
"interactiveChecks": [
{ "action": "curl http://localhost:3000", "observed": "Next.js app loads with HTML response" },
{ "action": "docker-compose ps", "observed": "4 services running with healthy status" }
]
},
"tests": {
"added": [
{ "file": "apps/api/test/health.e2e-spec.ts", "cases": [
{ "name": "GET /health returns 200", "verifies": "Health endpoint responds" },
{ "name": "GET /health includes database status", "verifies": "Database connectivity" }
]}
]
},
"discoveredIssues": []
}