一键导入
staging-deploy
Build, push, migrate, and deploy to staging environment with health check verification. Use when deploying a completed phase to staging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build, push, migrate, and deploy to staging environment with health check verification. Use when deploying a completed phase to staging.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run a comprehensive code review across architecture, security, testing, naming, and patterns. Invokes relevant reviewer agents in sequence. Use before merging features or at the end of a phase. With --quorum, dispatches multi-model analysis for higher confidence.
Run a comprehensive code review across architecture, security, testing, naming, and patterns. Invokes relevant reviewer agents in sequence. Use before merging features or at the end of a phase. With --quorum, dispatches multi-model analysis for higher confidence.
Guided end-to-end bug-fix workflow for Plan Forge tempering bugs — load → pre-fix review → write failing test → fix → validate → post-fix sweep → close. Composes /code-review, /clean-code-review, /forge-quench, and /test-sweep around the forge_bug_* tool surface so a fix never closes without a regression check.
Guided end-to-end bug-fix workflow for Plan Forge tempering bugs — load → pre-fix review → write failing test → fix → validate → post-fix sweep → close. Composes /code-review, /clean-code-review, /forge-quench, and /test-sweep around the forge_bug_* tool surface so a fix never closes without a regression check.
Plan-Forge-tuned comprehensive code review — runs public-surface diff, forge analysis, architecture / security / testing / patterns checks, plus Plan-Forge-specific gates (ACI compliance, dual-shell parity, branch model). Use before merging features or at the end of a phase. With --quorum, dispatches multi-model analysis.
Stack-agnostic Clean Code audit — module size, function-length/complexity (via your project's existing linter), long parameter lists, TODO/FIXME/HACK markers, commented-out code, debug-print leakage, and optional duplication detection. Produces a structured findings report with optional fix suggestions. Use before merges, at end of a feature, or as a regular hygiene pass.
| name | staging-deploy |
| description | Build, push, migrate, and deploy to staging environment with health check verification. Use when deploying a completed phase to staging. |
| argument-hint | [service or component to deploy] |
| tools | ["run_in_terminal","read_file","forge_validate"] |
"Deploy to staging" / "Push to staging environment"
Use the forge_validate MCP tool to verify setup integrity before deploying.
dotnet build --configuration Release
dotnet test --configuration Release --no-build
If Step 1 (Pre-Flight Checks) fails → STOP. Do not proceed to build.
docker build -t contoso-api:staging -f Dockerfile .
docker tag contoso-api:staging registry.contoso.com/api:staging
docker push registry.contoso.com/api:staging
# Apply pending database migrations
psql -h staging-db -d contoso_staging -f Database/migrations/latest.sql
# Kubernetes
kubectl apply -f k8s/staging/ --context staging
# Or Docker Compose
docker compose -f docker-compose.staging.yml up -d
# Health check
curl -f https://staging-api.contoso.com/health
# Version check
curl https://staging-api.contoso.com/api/version
# Smoke test
dotnet test --filter "Category=Smoke" -- TestEnvironment=Staging
kubectl rollout undo deployment/api --context staging| Shortcut | Why It Breaks |
|---|---|
| "It works locally, skip staging" | Local environments mask configuration, networking, and scaling issues that only surface in staging. |
| "Health check isn't needed yet" | Without health checks, orchestrators can't detect failures. A "successful" deploy may serve errors silently. |
| "I'll add monitoring after launch" | Post-launch is too late. Staging is where you verify observability works before production traffic arrives. |
| "One big deploy is simpler" | Monolithic deploys are harder to roll back. Deploy incrementally so failures are isolated to a single change. |
After completing this skill, confirm:
dotnet build --configuration Release && dotnet test --configuration Release passes before container buildcurl -f https://staging/health)dotnet test --filter "Category=Smoke"search_thoughts("deploy failure", project: "<YOUR PROJECT NAME>", created_by: "copilot-vscode", type: "postmortem") — load prior deployment failures and environment-specific gotchascapture_thought("Deploy: <outcome — success or failure details>", project: "<YOUR PROJECT NAME>", created_by: "copilot-vscode", source: "skill-staging-deploy") — persist environment issues and config changes for next deployment