원클릭으로
deploy
Generate Docker Compose stack, Dockerfiles, environment config, and init.sh bootstrap script.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate Docker Compose stack, Dockerfiles, environment config, and init.sh bootstrap script.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Discover and map an existing codebase before planning or changing it.
Change the behavior of existing code — story-driven by default, or --issue N for a GitHub bug fix. Test-first, full verification, code review.
Use when a planned change touches persisted data shape — ORM models, migration files, schema definitions, serialized formats, or message contracts — in /change, /refactor, or /implement on an existing codebase. Routes schema changes through expand-contract and proves reversibility before any deploy.
Generate production code and tests for a story group using agent teams for parallel execution.
Refactor existing code for quality, performance, or maintainability. Enforces core quality principles with ratchet gate.
Generate test plan, test cases, test data fixtures, and Playwright E2E tests mapped to acceptance criteria.
| name | deploy |
| description | Generate Docker Compose stack, Dockerfiles, environment config, and init.sh bootstrap script. |
| argument-hint | [--up] |
| context | fork |
| agent | planner |
/deploy
/deploy --up
/deploy — generate all deployment files without starting services./deploy --up — generate files and immediately run bash init.sh to start the stack.The following must exist before running this skill:
backend/ and/or frontend/ — source code with known runtimes and entry points.specs/design/deployment.md — deployment architecture decisions (DB engine, port assignments, service names).project-manifest.json — for service names, port config, and environment variable inventory.If any of these are missing, stop and report what is absent.
Read project-manifest.json. Extract:
Read specs/design/deployment.md. Extract:
docker-compose.ymlGenerate docker-compose.yml at the project root from the deployment template.
Requirements:
depends_on with a condition: service_healthy entry.healthcheck block with a realistic test, interval, timeout, and retries.postgres:16-alpine), never latest.backend/Dockerfile
builder stage installs dependencies, runtime stage copies only the built artefact.EXPOSE the port declared in the manifest.HEALTHCHECK instruction matching the health check endpoint.frontend/Dockerfile (if frontend exists)
EXPOSE the frontend port..env.exampleGenerate .env.example at the project root.
Every environment variable referenced in docker-compose.yml or either Dockerfile must have an entry. Each entry must include a comment explaining what it is and what format it expects:
# Database connection string
DATABASE_URL=postgresql://user:pass@db:5432/appdb
# JWT signing secret — generate with: openssl rand -hex 32
JWT_SECRET=change-me-in-production
No variable may appear in compose or Dockerfiles without a corresponding .env.example entry.
init.shGenerate init.sh at the project root from the init template.
The script must:
.env.example to .env if .env does not already exist.docker compose build.docker compose up -d.Make init.sh executable (chmod +x init.sh).
This gate runs BEFORE the stack is started — it exists to catch invalid compose syntax, port conflicts, and missing health checks before they become runtime failures.
First, validate syntax deterministically:
docker compose config
Fix any errors before spawning the evaluator.
Then spawn the evaluator agent (artifact mode) to validate deploy artifacts.
Agent invocation:
Spawn Agent with subagent_type="evaluator" and prompt:
Ratchet loop (max 2 iterations):
--up on an unresolved FAIL — report the failure instead.--up FlagOnly after the gate above has passed (or warnings were explicitly accepted), run:
bash init.sh
Report the output. If any service fails its health check, print the service logs and stop.
| Path | Purpose |
|---|---|
docker-compose.yml | Full service stack definition |
backend/Dockerfile | Backend container build |
frontend/Dockerfile | Frontend container build (if applicable) |
.env.example | All required environment variables documented |
init.sh | Bootstrap script: build, start, health check |
depends_on with health conditions. Services that start before their dependencies are ready cause intermittent failures. Always use condition: service_healthy.docker compose down. Bind mounts to host paths break in CI and on other machines.docker-compose.yml. All secrets go in .env..env.example entries. New variables added to compose but not documented leave other developers with silent failures.latest image tags. Tags like postgres:latest break reproducibility. Pin to a specific version.