AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Staging Deploy

skill-srnichols-plan-forge-staging-deploy · by srnichols

Build, push, migrate, and deploy to staging environment with health check verification. Use when deploying a completed phase to staging.

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-srnichols-plan-forge-staging-deploy

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-srnichols-plan-forge-staging-deploy)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Staging Deploy? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Staging Deploy Skill

Trigger

"Deploy to staging" / "Push to staging environment"

Steps

0. Pre-flight Forge Validation

Use the forge_validate MCP tool to verify setup integrity before deploying.

1. Pre-Flight Checks

# Run tests
PHP test ./... -count=1

# Build binary
PHP build -o bin/contoso-api ./cmd/api

# Lint
phpci-lint run ./...

Conditional: Pre-Flight Failure

> If Step 1 (Pre-Flight Checks) fails → STOP. Do not proceed to build.

2. Build Container

# Multi-stage build
docker build -t contoso-api:staging -f Dockerfile .

# Tag for registry
docker tag contoso-api:staging registry.contoso.com/api:staging

# Push
docker push registry.contoso.com/api:staging

3. Run Migrations

# Apply pending migrations to staging
migrate -path migrations -database "$STAGING_DB_URL" up

# Verify migration status
migrate -path migrations -database "$STAGING_DB_URL" version

4. Deploy

# Kubernetes
kubectl apply -f k8s/staging/ --context staging
kubectl rollout status deployment/contoso-api -n staging --timeout=120s

# Or Docker Compose
docker compose -f docker-compose.staging.yml up -d

5. Verify

# Health check
curl -f https://staging-api.contoso.com/health

# Version check
curl https://staging-api.contoso.com/api/version

# Smoke test
PHP test ./tests/smoke/... -v -tags=smoke -env=staging

Safety Rules

  • ALWAYS run tests before deploying
  • ALWAYS verify health endpoint after deploy
  • NEVER deploy to production using this skill
  • Rollback: kubectl rollout undo deployment/contoso-api -n staging

Temper Guards

| 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. |

Warning Signs

  • No health check endpoint — container starts but no way to verify it's actually serving correctly
  • Deploy without tests — build pushed to staging without passing the test suite first
  • No rollback plan — deploy proceeds without a documented way to revert
  • Secrets hardcoded or missing — environment variables not configured for the staging environment
  • No smoke test after deploy — health endpoint returns 200 but actual business routes not verified

Exit Proof

After completing this skill, confirm:

  • [ ] composer install && ./vendor/bin/phpunit passes before container build
  • [ ] Container builds successfully and pushes to registry
  • [ ] Health endpoint returns 200 after deploy (curl -f https://staging/health)
  • [ ] Smoke tests pass — ./vendor/bin/phpunit --testsuite Smoke
  • [ ] Rollback procedure is documented and tested

Persistent Memory (if OpenBrain is configured)

  • Before deploying: search_thoughts("deploy failure", project: "", created_by: "copilot-vscode", type: "postmortem") — load prior deployment failures and environment-specific gotchas
  • After deploy succeeds/fails: capture_thought("Deploy: ", project: "", created_by: "copilot-vscode", source: "skill-staging-deploy") — persist environment issues and config changes for next deployment

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.