Logo di Deploy Verify

Deploy Verify

Community
kirillgreen
deploy-verify

Deploy to staging/preview and prove it works before anything reaches users — runs pre-flight gates (types, tests, env, migrations, build), deploys, smoke-tests the live URL, diagnoses failures, and ends by writing a machine-readable verdict artifact that a release orchestrator can trust. Use for "/deploy-verify", "deploy and test", "deploy to staging", "verify deployment", "pre-flight check". Do NOT use for a plain git push with no verification, or for a production release (use /ship).

Panoramica

Autorekirillgreen
Repositoryskills
Nome della skilldeploy-verify
Stelle
25
Fork
2
File inclusi
Solo istruzioni
LicenzaCC0-1.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da kirillgreen su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Deploy Verify in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/kirillgreen/skills/tree/main/deploy-verify
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kirillgreen/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/deploy-verify .claude/skills/deploy-verify
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Deploy Verify in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Deploy Verify non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Deploy Verify non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

/deploy-verify — Deploy and Verify Workflow

Pre-flight checks → deploy to staging/preview → smoke test → diagnose failures → report.

Adapting this to your setup

  • "Project META" below means whatever file your setup keeps per-project facts in — a *_META.md, a CLAUDE.md, a README. The skill needs three things from it: the deploy platform, the staging/preview URL pattern, and the list of endpoints worth smoke-testing. Anything that answers those works.
  • Platforms (Railway, Vercel, Convex, Replit) are the ones wired here; the detection table is data, not logic — add a row for yours.
  • Step 6's verdict artifact is the contract with /ship. If you use this skill standalone you can ignore it; if you use /ship, do not change the filename shape or the field names — /ship matches on SHA, run_id and timestamp, and a mismatch is treated as NO-GO by design.

Instructions

Step 0: Project & Platform Detection

Detect from cwd and project META file:

SignalPlatformDeploy MethodPreview URL
railway.toml or Railway in METARailwayrailway up or git push*.up.railway.app
vercel.json or .vercel/Vercelvercel deploy*.vercel.app
convex/ directoryConvexnpx convex deployN/A (backend only)
Replit in METAReplitgit push origin mainReplit URL from META

Read the project META to find:

  • Production/staging URLs
  • Health check endpoints
  • Critical API routes
  • Database type (Drizzle / Prisma)

Step 1: Pre-Flight Checks

Run all checks and collect into a results table:

  1. TypeScript compilation: npx tsc --noEmit — CRITICAL (must pass)
  2. Test suite (DB-safety gate FIRST): Before running any DB-touching test, observe the runtime driver connection host the test process will actually use (resolve DATABASE_URL/equivalent as the test config injects it — an env-var-presence check fails open; a config can inject a prod DATABASE_URL directly). If that host is a forbidden prod host (rlwy.net, a Railway-internal host, the project's prod DB) with no safe TEST_DATABASE_URL/override actually wired into the test process, ERROR — do not run (name the cause). When invoked by /ship with a recipe, run the recipe's exact verify_before command; never fall back to an auto-detected npm test. Then run the framework's tests — CRITICAL (Standalone behavior change: this gate may now ERROR a standalone /deploy-verify whose tests connect to a forbidden prod host — a safety win, not a regression.)
  3. Environment variables: Compare .env.example keys vs deployed config
    • Railway: railway variables
    • Vercel: vercel env ls
    • Convex: npx convex env ls
  4. Database migration status:
    • Drizzle: npx drizzle-kit check
    • Prisma: npx prisma migrate status
  5. Build: npm run build or bun run build — CRITICAL
  6. Secrets scan: Run secrets-leak-detector agent on staged changes

GATE: If any CRITICAL check fails (tsc, tests, build), STOP and report. For non-critical (env gaps, pending migrations), warn and ask user whether to proceed.

Step 2: Deploy to Staging/Preview

Based on detected platform:

  • Railway: railway up --environment staging or push to PR branch for PR environment
  • Vercel: vercel deploy (automatically creates preview URL, output includes it)
  • Convex: npx convex deploy --preview <branch-name>

Wait for deployment URL to be live:

bash
# Poll every 5s, max 120s
for i in $(seq 1 24); do
  STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$DEPLOY_URL")
  if [ "$STATUS" = "200" ] || [ "$STATUS" = "301" ] || [ "$STATUS" = "302" ]; then
    break
  fi
  sleep 5
done

Step 3: Smoke Test

For each endpoint, run a curl check:

bash
# Health check
curl -s -w "\n%{http_code} %{time_total}s" "$DEPLOY_URL/api/health"

# Critical API endpoints (from META)
curl -s -w "\n%{http_code} %{time_total}s" "$DEPLOY_URL/api/..."

Validate:

  • Response status code (expect 200)
  • Response body has expected fields (basic JSON structure)
  • Response time is reasonable (<5s)
  • No error strings in response ("undefined", "ECONNREFUSED", "relation does not exist")

Step 4: Diagnose Failures

If any smoke test fails, check common causes:

SymptomLikely CauseDiagnostic Command
502/504DNS not propagated or service not readyWait 60s, retry
500 with "undefined"Missing env varrailway variables / vercel env ls
500 with "relation does not exist"Unmigrated DBprisma migrate status / drizzle-kit check
500 with stack traceRuntime errorrailway logs --tail 50 / vercel logs <url>
429Rate limitingCheck API quotas
Connection refusedService didn't startCheck build logs

Step 5: Report

Output a markdown report:

markdown
## Deploy Verification Report

**Project:** [name] | **Platform:** [Railway/Vercel/...] | **URL:** [deployed URL]

### Pre-Flight
| Check | Status | Details |
|-------|--------|---------|
| TypeScript | PASS/FAIL | N errors |
| Tests | PASS/FAIL | N tests, N failures |
| Env Vars | PASS/WARN | Missing: KEY_NAME |
| Migrations | PASS/WARN | N pending |
| Build | PASS/FAIL | time |
| Secrets | PASS/WARN | N issues |

### Smoke Tests
| Endpoint | Status | Time | Notes |
|----------|--------|------|-------|
| /api/health | 200 | 340ms | OK |
| /api/... | 500 | 1.2s | Missing JWT_SECRET |

### Diagnosis (if failures)
[Root cause and fix recommendation]

Step 6: Verdict artifact (deterministic machine contract for /ship)

The markdown report above is for humans. /ship must not grep narrative prose (an LLM report is not a machine contract). So also end by writing a deterministic verdict file artifact, written atomically (temp file → mv/rename), to a path unique per PR/session so a parallel session can't read a stale or clobbered one. When invoked by /ship, it passes --run-id=<nonce> — use THAT exact run-id in the path so /ship reads exactly this file (a caller can't learn a callee-chosen nonce); standalone, generate your own run-id:

<scratchpad-or-tmp>/deploy-verify-verdict.<repo>.<pr-or-branch>.<run-id>.json
json
{
  "verdict": "PASS|WARN|FAIL|ERROR",
  "verified_sha": "<full SHA that was verified>",
  "branch": "<branch>",
  "run_id": "<unique nonce for this run>",
  "timestamp": "<ISO-8601>",
  "gates": { "tsc": "PASS", "tests": "PASS", "env": "WARN", "migrations": "PASS", "build": "PASS", "secrets": "PASS" },
  "smoke": { "<endpoint>": "PASS|FAIL" },
  "notes": "<short>"
}

verdict rules: PASS only if every CRITICAL gate passed and smoke is green; WARN if green but with env-gap / pending-migration; FAIL if a CRITICAL gate or smoke failed; ERROR if verification couldn't complete (incl. the DB-safety gate firing). /ship trusts a PASS only after asserting verified_sha == the SHA it is about to ship AND timestamp is within a recency window AND the path is this run's; stale/mismatched/missing → NO-GO. Standalone runs write it too (harmless; useful for audit).

Troubleshooting

Deployment timed out

Cause: Build taking too long or deployment stuck. Solution: Check build logs (railway logs / vercel logs). Increase poll timeout if build is large.

Health check returns 502

Cause: DNS propagation delay or service still starting. Solution: Wait 60 seconds and retry. For Railway, check service health in dashboard.

500 after deploy but works locally

Cause: Environment mismatch — different env vars, missing DB migration, or wrong Node version. Solution: Compare railway variables with local .env. Check prisma migrate status. Verify Node version in runtime config.

Tests pass locally but endpoint fails

Cause: Tests mock external dependencies that fail in staging. Solution: Check if staging has access to all required services (Redis, external APIs, etc.).

Examples

Example 1: a Railway-hosted web app

User says: /deploy-verify

  1. Detects Railway from cwd + the project's META
  2. Pre-flight: tsc ✅, vitest ✅, env vars ✅, drizzle check ✅, build ✅
  3. Deploy: git push triggers Railway, polls PR environment URL
  4. Smoke: /api/health 200, /api/items 200, /api/search 200
  5. Report: all green

Example 2: a Vercel app with a pending migration

User says: "deploy and verify"

  1. Detects Vercel from cwd
  2. Pre-flight: tsc ✅, tests ✅, build ✅, prisma: 1 pending migration ⚠️
  3. Asks user: "1 pending Prisma migration. Apply before deploy?"
  4. User confirms → runs migration → continues deploy

Domande frequenti

Cosa fa la skill IA Deploy Verify?

Deploy to staging/preview and prove it works before anything reaches users — runs pre-flight gates (types, tests, env, migrations, build), deploys, smoke-tests the live URL, diagnoses failures, and ends by writing a machine-readable verdict artifact that a release orchestrator can trust. Use for "/deploy-verify", "deploy and test", "deploy to staging", "verify deployment", "pre-flight check". Do NOT use for a plain git push with no verification, or for a production release (use /ship).

Perché usare Deploy Verify su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Deploy Verify è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Deploy Verify in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/kirillgreen/skills/tree/main/deploy-verify. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Deploy Verify?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Deploy Verify?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Deploy Verify: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Deploy Verify è gratuita?

Sì. È pubblicata su GitHub da kirillgreen con licenza CC0-1.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇