# Deploy Check

> Validation complète pré-déploiement. Supporte Vercel, Railway, Docker/VPS. Utilise les scripts Python du projet.

- **Type:** Skill
- **Install:** `agentstack add skill-glamgarondiscord-claude-saas-blueprint-deploy-check`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [GlamgarOnDiscord](https://agentstack.voostack.com/s/glamgarondiscord)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [GlamgarOnDiscord](https://github.com/GlamgarOnDiscord)
- **Source:** https://github.com/GlamgarOnDiscord/claude-saas-blueprint/tree/main/.claude/skills/deploy-check

## Install

```sh
agentstack add skill-glamgarondiscord-claude-saas-blueprint-deploy-check
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## Arguments
- `env` : staging | production

## Étape 1 — Pre-deploy checks (script unifié)

```bash
python scripts/pre_deploy_check.py --env [staging|production]
```

Couvre : TypeScript, lint, tests, secrets, `.env.example`, console.log, migrations, RLS.
**Bloquer si exit 1.**

## Étape 2 — Plateforme de déploiement

### Vercel (recommandé SaaS Next.js)
```bash
vercel --env staging      # Preview URL
vercel --prod             # Production
```
Variables requises dans Vercel : `DATABASE_URL` (pooler port 6543), `DIRECT_URL` (port 5432),
`NEXT_PUBLIC_SUPABASE_URL`, `NEXT_PUBLIC_SUPABASE_ANON_KEY`, `SUPABASE_SERVICE_ROLE_KEY`.

### Railway
```bash
railway up --environment staging
railway up --environment production
```

### Docker / VPS (Coolify, Dokku)
```bash
docker build -t app:$(git rev-parse --short HEAD) .
docker push [registry]/app:[tag]
# Puis trigger deploy via webhook ou CLI Coolify/Dokku
```

## Étape 3 — Migrations DB (si Supabase)

```bash
python scripts/supabase_migrate.py --diff          # Voir ce qui va être appliqué
python scripts/supabase_migrate.py --env [env]     # Appliquer
python scripts/supabase_rls_check.py               # Vérifier RLS
```

## Étape 4 — Post-deploy

1. Smoke test : `curl https://[domain]/api/health`
2. Logs plateforme — 0 erreur 500 dans les 2 premières minutes
3. Sentry — nouvelles erreurs ?
4. Mettre à jour `.claude/memory/session.md` avec la version déployée

## Rollback

**Vercel** : `vercel rollback [deployment-url]`
**Railway** : `railway rollback`
**Docker** : redéployer le tag précédent
**DB** : créer une nouvelle migration inverse (`python scripts/supabase_migrate.py --new rollback-[feature]`)

## Source & license

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

- **Author:** [GlamgarOnDiscord](https://github.com/GlamgarOnDiscord)
- **Source:** [GlamgarOnDiscord/claude-saas-blueprint](https://github.com/GlamgarOnDiscord/claude-saas-blueprint)
- **License:** MIT

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-glamgarondiscord-claude-saas-blueprint-deploy-check
- Seller: https://agentstack.voostack.com/s/glamgarondiscord
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
