agentsclimarketplace

Deploy

Skill linenoize/topia/skills/deploy

Deploy application to target platform. Use when user explicitly says 'deploy', 'push to production', 'ship it'. Handles Vercel, Netlify, AWS, GCP, DigitalOcean, and VPS with pre-deploy verification and health checks.From its SKILL.md

Install
npx -y skills add linenoize/topia --skill deploy

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

9.8 KB, as published. Nobody here has run it

deploy

Purpose

Deploy applications to target platforms. Handles the full deployment flow — environment configuration, build, push, verification, and rollback if needed. Supports Vercel, Netlify, AWS, GCP, DigitalOcean, and custom VPS via SSH.

<HARD-GATE> - Tests MUST pass (via `topia:verification`) before deploy runs - Sentinel MUST pass (no CRITICAL issues) before deploy runs - Both are non-negotiable. Failure = stop + report, never skip </HARD-GATE>

Called By (inbound)

  • launch (L1): deployment phase of launch pipeline
  • User: /topia deploy direct invocation

Calls (outbound)

  • test (L2): pre-deploy full test suite
  • db (L2): pre-deploy migration safety check
  • perf (L2): pre-deploy performance regression check
  • verification (L2): pre-deploy build + lint + type check
  • guardian (L2): pre-deploy security scan
  • browser-pilot (L3): verify live deployment visually
  • watchdog (L3): setup post-deploy monitoring
  • journal (L3): record deploy decision, rollback plan, and post-deploy status
  • incident (L2): if post-deploy health check fails → triage and contain
  • L4 extension packs: domain-specific deploy patterns when context matches (e.g., @Topia/devops for infrastructure)

Cross-Hub Connections

  • deploy → verification — pre-deploy tests + build must pass
  • deploy → guardian — security must pass before push

Execution Steps

Step 1 — Pre-deploy checks (HARD-GATE)

Call topia:verification to run the full test suite and build.

If verification fails → STOP. Do NOT proceed. Report failure with test output.

Call topia:guardian to run security scan.

If sentinel returns CRITICAL issues → STOP. Do NOT proceed. Report issues.

Both gates MUST pass. No exceptions.

Step 1.5 — Release Checklist (Production Deploys Only)

Skip for: staging, preview, development deploys.

Before production deploy, verify ALL items:

#CheckHowGate
1Version bumpedpackage.json/pyproject.toml version matches releaseBLOCK if unchanged
2Changelog updatedCHANGELOG.md has entry for this versionWARN if missing
3Breaking changes documentedRFC artifact exists for each breaking changeBLOCK if RFC missing
4Migration scripts readyDB migrations tested on staging firstBLOCK if untested migration
5Rollback plan documented.topia/deploy/rollback-<version>.md existsWARN if missing
6Release notes draftedCustomer-facing notes for release-commsWARN if missing
7Dependencies lockedLock file committed, no floating versionsBLOCK if unlocked

Rollback Plan Template (.topia/deploy/rollback-<version>.md):

# Rollback Plan: v<version>

## Trigger Conditions
- [When to rollback — e.g., error rate >5%, P0 incident, data corruption]

## Steps
1. [Revert command — e.g., `vercel rollback`, `fly releases rollback`]
2. [DB rollback — e.g., `npm run migrate:rollback` or "N/A — no migration"]
3. [Cache invalidation if needed]
4. [Notify stakeholders]

## Verification
- [ ] Previous version serving traffic
- [ ] Health check passing
- [ ] No data loss confirmed

## Post-Rollback
- [ ] Incident created for root cause analysis
- [ ] Fix branch created from rolled-back commit

If any BLOCK item fails → STOP deploy. Fix before retrying. If WARN items missing → proceed but flag in deploy report.

Step 2 — Detect platform

Use Bash to inspect the project root for platform config files:

ls vercel.json netlify.toml Dockerfile fly.toml 2>/dev/null
cat package.json | grep -A5 '"scripts"'

Map findings to platform:

File foundPlatform
vercel.jsonVercel
netlify.tomlNetlify
fly.tomlFly.io
DockerfileDocker / VPS
package.json deploy scriptnpm deploy

If no config found, ask the user which platform to target before continuing.

Step 3 — Deploy

Use Bash to run the platform-specific deploy command:

PlatformCommand
Vercelvercel --prod
Netlifynetlify deploy --prod
Fly.iofly deploy
Dockerdocker build -t app . && docker push <registry>/app
npm scriptnpm run deploy

Capture full command output. Extract deployed URL from output.

Step 4 — Verify deployment

Use Bash to check the deployed URL returns HTTP 200:

curl -o /dev/null -s -w "%{http_code}" <deployed-url>

If status is not 200 → flag as WARNING, do not treat as hard failure unless 5xx.

If topia:browser-pilot is available, call it to take a screenshot of the deployed URL for visual confirmation.

Step 5 — Monitor

Call topia:watchdog to set up post-deploy monitoring alerts on the deployed URL.

Step 6 — Report

Output the deploy report:

## Deploy Report
- **Platform**: [target]
- **Status**: success | failed | rollback
- **URL**: [deployed URL]
- **Build Time**: [duration]

### Checks
- Tests: passed | failed
- Security: passed | failed ([count] issues)
- HTTP Status: [code]
- Visual: [screenshot path if browser-pilot ran]
- Monitoring: active | skipped

If any step failed, include the error output and recommended next action.

Progressive Rollout / Feature Flag Mode

When deploying high-risk changes (new features, migrations, architectural changes), use staged rollout instead of all-at-once deploy. Triggered by: user says "canary", "rollout", "feature flag", "staged", or "progressive" — or when release checklist item 3 (breaking changes) fires.

Progressive Rollout Chain

Stage 1: CANARY (5% traffic)
  → deploy to production with feature flag OFF
  → enable flag for 5% of users (staff, beta users, or random sample)
  → watchdog: monitor error rate, latency, conversions for 15-30 minutes
  → GATE: error rate < 0.5% AND latency ≤ baseline × 1.2

Stage 2: EXPAND (25% → 50% → 100%)
  → for each step: enable flag for N%, wait 15 min, check watchdog metrics
  → GATE: same thresholds at each step
  → At 100%: cleanup flag (remove feature flag code, ship cleanup PR)

ROLLBACK TRIGGER: any stage fails watchdog gate → immediately set flag to 0%, incident auto-created

Feature Flag Integration

PlatformFlag MechanismCleanup Step
VercelEdge Config or @vercel/flagsRemove flag key after 100% rollout
LaunchDarklySDK variation checkArchive flag, clean up variation() calls
GrowthbookFeature flag SDKDeactivate + remove SDK calls
DIY .env flagFEATURE_X_ENABLED=true env varRemove env var + conditional after 100%

Minimum feature flag implementation (no platform dependency):

// Simple env-based flag — works anywhere
const FEATURE_X = process.env.FEATURE_X_ENABLED === 'true';
if (FEATURE_X) { /* new path */ } else { /* old path */ }
// Cleanup: when flag reaches 100% → inline the new path, delete the conditional

Skip if

  • Hotfix deploy (urgency outweighs staged rollout)
  • Static site deploy with no user-state impact
  • Non-production deploy (staging, preview)

Output Format

Deploy Report with platform, status (success/failed/rollback), deployed URL, build time, and checks (tests, security, HTTP, visual, monitoring). See Step 6 Report above for full template.

Constraints

  1. MUST verify tests + sentinel pass before deploying — non-negotiable
  2. MUST have rollback strategy documented before production deploy
  3. MUST verify deploy is live and responding before declaring success
  4. MUST NOT deploy with known CRITICAL security findings
  5. MUST log deploy metadata (version, timestamp, commit hash)
  6. MUST complete release checklist for production deploys — version bump, changelog, rollback plan
  7. MUST create rollback plan artifact before first production deploy of a version

Returns

ArtifactFormatLocation
Deploy reportMarkdowninline (chat output)
Deploy status (success/failed/rollback)Textinline
Health check results (HTTP status, visual)Markdowninline
Rollback plan documentMarkdown.topia/deploy/rollback-<version>.md
Monitoring confirmationTextinline

Sharp Edges

Known failure modes for this skill. Check these before declaring done.

Failure ModeSeverityMitigation
Deploying without verification passingCRITICALHARD-GATE blocks this — both verification AND sentinel must pass first
Platform auto-detected wrongly and wrong command runsHIGHVerify config files explicitly; ask user if multiple platforms detected
HTTP 5xx on live URL treated as non-criticalHIGH5xx = deployment likely failed — report FAILED, do not proceed to monitoring/marketing
Not setting up watchdog monitoring after deployMEDIUMStep 5 is mandatory — post-deploy monitoring is part of deploy, not optional
Deploy metadata not logged (version, commit hash)LOWConstraint 5: log version + timestamp + commit hash in report

Done When

  • verification PASS (tests, types, lint, build all green)
  • guardian PASS (no CRITICAL security findings)
  • Deploy command succeeded with live URL captured
  • Live URL returns HTTP 200
  • watchdog monitoring active on deployed URL
  • Deploy Report emitted with platform, URL, checks, and monitoring status

Cost Profile

~1000-3000 tokens input, ~500-1000 tokens output. Sonnet. Most time in build/deploy commands.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.