一键导入
deploy
Generate Docker Compose stack, Dockerfiles, environment config, init.sh bootstrap script, and verify local deployment with health checks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate Docker Compose stack, Dockerfiles, environment config, init.sh bootstrap script, and verify local deployment with health checks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Switch model mid-session preserving thinking blocks. Used by /model command and by BRD §6.2 failover when the primary provider rate-limits or fails.
Six-phase ReAct loop (pre-check, thinking, self-critique, action, tool, post). Activates per-workflow via the thinking_level knob in config/workflows.yaml. Replaces standard ReAct for workflows where independent verification of the reasoning improves outcomes.
Mines completed sessions for repeating {tool sequence → outcome} tuples. Scores by frequency × success_rate × novelty. High-scoring tuples become "instincts" — candidate skill seeds — in instincts/pending/.
Walk-back algorithm for the Spec-Auditor subagent. Given a failure at phase N, identifies the earliest phase whose spec, if tightened, would have prevented the failure. Proposes a surgical amendment.
Sessions stored as trees (not lists). /fork creates a branch from any point; /tree navigates; /branch labels a path; /export produces HTML for review. All branches live in one session file under sessions/<project>/<session_id>.json.
Progressive context refinement for subagents. Don't dump everything; retrieve in passes. Start with a list of file paths and one-line abstracts; load full content only when the abstract proves insufficient.
| name | deploy |
| description | Generate Docker Compose stack, Dockerfiles, environment config, init.sh bootstrap script, and verify local deployment with health checks. |
| argument-hint | [--up] |
Generate deployment infrastructure and optionally start the local stack.
/deploy # Generate deployment files only
/deploy --up # Generate + start Docker Compose stack
project-manifest.json exists with stack, verification, and evaluation sections populated by the architect.specs/design/deployment.md exists with deployment topology.Read project-manifest.json. Extract:
stack.backend — language, framework, package managerstack.frontend — framework, package managerstack.database — primary, secondarystack.deployment — method, services listverification.mode — docker / local / stubverification.health_check — URL, retries, backoffevaluation.api_base_url, evaluation.ui_base_urlRead .claude/templates/docker-compose.template.yml as the base.
Customize for the project:
stack.deployment.servicesverification.health_check configdepends_on with condition: service_healthy for correct startup orderWrite to docker-compose.yml in project root.
Read .claude/templates/Dockerfile.backend.dev and .claude/templates/Dockerfile.frontend.dev.
Customize:
Write to Dockerfile.backend.dev and Dockerfile.frontend.dev in project root.
Read .claude/templates/.env.example.
Populate with:
Write to .env.example in project root.
Read .claude/templates/init-sh.template.
Replace placeholders:
{{BACKEND_INSTALL}} — e.g., cd backend && uv sync && cd .. (Python/uv) or cd backend && npm ci && cd .. (Node){{FRONTEND_INSTALL}} — cd frontend && npm ci && cd ..{{DOCKER_COMPOSE_CMD}} — docker compose up -d --build{{HEALTH_CHECKS}} — curl commands for each service URL from manifestWrite to init.sh and chmod +x init.sh.
If --up flag is provided:
# Copy env if needed
[ ! -f .env ] && cp .env.example .env
# Start everything
docker compose up -d --build
# Wait for health
RETRIES=10
BACKOFF=2
URL=$(jq -r '.verification.health_check.url' project-manifest.json)
for i in $(seq 1 $RETRIES); do
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL" 2>/dev/null)
[ "$STATUS" = "200" ] && echo "✓ Stack healthy at $URL" && break
echo "Waiting for stack... attempt $i/$RETRIES"
sleep $BACKOFF
BACKOFF=$((BACKOFF * 2))
done
if [ "$STATUS" != "200" ]; then
echo "✗ Stack not healthy after $RETRIES attempts"
docker compose logs --tail=30
fi
.env.example with all required variables. Never commit .env itself.