원클릭으로
deploy-backend
Deploy do backend Django para Cloud Run (GCP). Usar quando precisar publicar mudancas da API em producao.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Deploy do backend Django para Cloud Run (GCP). Usar quando precisar publicar mudancas da API em producao.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Check for drift between spec.md, plan.md, tasks.md, and the actual code. Reports the gaps; does not fix them.
Run a category-specific quality pass (security / performance / accessibility / i18n / privacy / observability) against the current plan and code.
Surface [NEEDS CLARIFICATION] markers in spec.md (or plan.md) to the user, one at a time, and edit the file with the answers.
Bootstrap or amend constitution.md (framework, preset, or project). Inspects existing project context first; enforces the amendment process: issue first, one article per PR, reviewer non-author.
Print the pipeline quick-reference — a one-screen summary of every /aia:* command and its hand-offs, prefixed by a state-aware "Próximo passo" line.
Execute an approved plan + tasks list by dispatching one fresh subagent per task and applying two-stage review (spec compliance, then code quality) before moving on.
| name | deploy-backend |
| description | Deploy do backend Django para Cloud Run (GCP). Usar quando precisar publicar mudancas da API em producao. |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Grep |
Deploy do {{BACKEND_DIR}} para o Cloud Run na GCP.
gcloud autenticado (gcloud auth login)gcloud auth configure-docker {{GCP_REGION}}-docker.pkg.dev)Verificar mudancas pendentes:
cd {{BACKEND_DIR}} && git status
Verificar se ha migrations pendentes:
cd {{BACKEND_DIR}} && source venv/bin/activate && python manage.py showmigrations | grep "\[ \]"
Build da imagem Docker:
cd {{BACKEND_DIR}}
IMAGE="{{GCP_REGION}}-docker.pkg.dev/{{GCP_PROJECT}}/{{ARTIFACT_REPO}}/{{BACKEND_SERVICE}}:latest"
docker build -f Dockerfile.cloudrun -t $IMAGE .
Push para Artifact Registry:
docker push $IMAGE
Deploy no Cloud Run:
gcloud run deploy {{BACKEND_SERVICE}} \
--image $IMAGE \
--region {{GCP_REGION}} \
--platform managed \
--allow-unauthenticated \
--min-instances 1 \
--max-instances 10 \
--memory 1Gi \
--cpu 1 \
--timeout 3600 \
--concurrency 80 \
--no-cpu-throttling
Verificar deploy:
gcloud run services describe {{BACKEND_SERVICE}} --region {{GCP_REGION}} --format="value(status.url)"
--memory 1Gi — 512Mi causa OOM em producaohttps://{{PROD_API_URL}}{{GCP_PROJECT}}:us-central1:{{CLOUD_SQL_INSTANCE}}