一键导入
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 职业分类
| 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).
--up FlagRun:
bash init.sh
Report the output. If any service fails its health check, print the service logs and stop.
After file generation (regardless of --up):
docker compose config
This validates the compose file syntax and interpolated values. Fix any errors before reporting completion.
| 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.Autonomous build loop with Karpathy ratcheting, GAN evaluator, and session chaining. Iterates story groups until all features pass or stopping criteria met.
Socratic interview to create a Business Requirements Document. First step in the SDLC pipeline.
Generate system architecture, machine-readable schemas, and UI mockups. Spawns planner + ui-designer concurrently.
Evaluation patterns — sprint contract format, three-layer verification, scoring rubric references.
Standard GitHub issue workflow. Branch, reproduce, fix, test, PR.
Generate production code and tests for a story group using agent teams for parallel execution.