deploying-with-supabase
Deploy to Supabase from CI — `supabase db push` forward-only semantics, "only one db push at a time" concurrency, migrations in CI via session-mode `--db-url`…
Skill by hierovision
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/hierovision-deploying-with-supabase
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, devops, cloud, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/deploying-with-supabase
What's inside
- Skill name
deploying-with-supabase- Description
- Deploy to Supabase from CI — `supabase db push` forward-only semantics, "only one db push at a time" concurrency, migrations in CI via session-mode `--db-url` vs `link` + `SUPABASE_ACCESS_TOKEN`, Supabase Branching for preview envs, staging-canary, pgaudit / audit-logging safety, and declarative schemas applied via CLI. Use whenever the user says "run supabase migrations in CI", "set up supabase deploy", "db push in GitHub Actions", "supabase preview environment", or surfaces a Supabase release needing design — even without saying "Supabase". Pairs with designing-cicd (the topology) and securing-ci (token hardening); routes review of the resulting workflow to reviewing-code. Not for the CI topology itself (designing-cicd), application code (implementing-features), or non-Supabase clouds (deploying-to-azure-swa).
- License
- MIT
- Instructions
- 153 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (6)
- SKILL.md
- evals.json · evals/
- deploy.yml · evals/fixtures/phasewave/supabase-ci/.github/workflows/
- AGENTS.md · evals/fixtures/phasewave/supabase-ci/
- verify-supabase.cjs · evals/fixtures/phasewave/supabase-ci/scripts/
- supabase-ci.md · references/
SKILL.md (first lines)
# Deploying with Supabase
Turn a Supabase release into a CI-safe migration + deploy that a separate
build session can run cold. A deploy pass is **done** when the migration-in-
CI config exists (a plan artifact and/or a drafted workflow), the
forward-only + single-push-at-a-time invariants hold, and the user has
approved it. The skill is **gated**: it does not run `supabase db push`
itself — a migration is stateful and irreversible-ish, so it stops and asks
before any push. Implementation routes to `implementing-features`.
This skill fills the **Supabase-specific deploy step** that `designing-cicd`
designs the topology around. It owns the migration mechanics; it does not
re-decide triggers or job DAGs (that is `designing-cicd`).
## The deploy pass
Copy this checklist and check off items as you complete them.
```
Supabase Deploy Progress:
- [ ] 1. Identify target project ref + environment (staging / prod)
- [ ] 2. Choose migration mode (link + token vs session-mode --db-url)
- [ ] 3. Enforce forward-only migrations (never patch an applied migration)
- [ ] 4. Serialize db push (concurrency: one push at a time)
- [ ] 5. Order migrate-before-deploy (hand off to designing-cicd DAG)
- [ ] 6. Supabase Branching for PR preview envs
- [ ] 7. Staging-canary: staging first, then prod
- [ ] 8. pgaudit / audit logging — keep on, additive only
- [ ] 9. Declarative schemas (config) via CLI, not by hand
- [ ] 10. Secrets: SUPABASE_ACCESS_TOKEN / DB URL from secrets
- [ ] 11. Present config + approval question; STOP (do not push)
```
### Step 1 — Target project ref + environment
Each environment (staging, prod) is a distinct Supabase project with its own
`project-ref` and DB URL. The plan names both. Never point a prod workflow
at a staging ref.
### Step 2 — Choose migration mode
Two ways to authenticate the CLI in CI (see
[references/supabase-ci.md](references/supabase-ci.md) for the exact
invocations):
- **`link` + `SUPABASE_ACCESS_TOKEN`** — the standard CI path. `supabase
link --project-ref <ref>` then `supabase db push`. The token is a
**secret** (`${{ secrets.SUPABASE_ACCESS_TOKEN }}`); it must never sit in
`vars` or be echoed.
- **session-mode `--db-url`** — for ephemeral / preview DBs: `supabase db
push --db-url "${{ secrets.SUPABASE_DB_URL }}"` without linking. Useful in
Supabase Branching preview flows.
Pick per environment; document which the plan uses.
### Step 3 — Forward-only migrations
`supabase db push` applies **new** migration files forward-only. The skill's
hard rules:
- Never edit or re-order an already-applied migration — that desyncs the
`_supabase_migrations` history from the DB.
- To change something a prior migration did, write a **new** migration that
undoes/alters it.
- A workflow that patches a committed migration file before pushing is a
**blocker** (it silently corrupts migration history).
### Step 4 — Serialize db push (one at a time)
Two `db push` runs against the same project in parallel corrupt migration
history. The migrate job **must** have `concurrency`:
```yaml
migrate:
concurrency:
group: supabase-migrate-${{ env.ENV }} # one push per env, at a time
cancel-in-progress: false
```
A migrate job with a `matrix` (parallel pushes across regions) or no
`concurrency` is a finding. Serialize — do not parallelize — the push.
### Step 5 — Migrate-before-deploy
The migrate job is a prerequisite of the deploy job in the DAG
(`designing-cicd` owns this). `deploy` `needs: [migrate]`; new code serves
only after the schema it expects exists. A Supabase deploy that runs
`db push` after `./deploy` is the same cardinal violation as in
`designing-cicd` — **blocker**.
### Step 6 — Supabase Branching for previews
For PR preview environments, use Supabase Branching: create a branch
(`supabase branches create`) per PR, run migrations against the branch DB
(`--db-url` to the branch URL), deploy the preview app there, tear down on
PR close. This keeps prod schema untouched by preview churn. The plan names
the branch lifecycle.
### Step 7 — Staging-canary
Ship schema + code to **staging first**, let it bake (smoke tests, a
canary window), then promote to prod. Two separate `environment`s
(`staging`, `production`) with their own protection rules. A plan that
deploys straight to prod with no staging gate is a major (lost canary
signal) unless the user explicitly opts out.
### Step 8 — pgaudit / audit logging
Keep audit logging **on** in every environment. Do not disable `pgaudit` or
row-level audit triggers to "simplify" a migration — that is a security
finding (`securing-ci` territory). Additive audit changes (new table
tracked) are fine; removing audit coverage is not.
### Step 9 — Declarative schemas (config)
Auth / storage / RLS-policy config lives in `supabase/config.toml` and is
applied via `supabase db push` / the CLI — not hand-clicked in the dashboard
(nothing reproducible survives a dashboard click). The plan treats config
as code; the schema source of truth is the migration files + `config.toml`.From hierovision/ai-framework, MIT.
More from hierovision/ai-framework
- 0.592score
auditing-supply-chain
hierovision
Audit a software supply chain — dependency manifests and lockfiles, build provenance, SBOMs, and release artifacts — for what makes it untrustworthy…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
optimizing-model-routing
hierovision
Re-derive the library's model bindings from objective evidence — gather the live opencode catalogs (or a local snapshot), identify and verify the most…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
refining-issue-acceptance
hierovision
Refine a GitHub issue into a proper engineering spec — a short, clear description plus well-defined acceptance criteria (AC) written as observable, external…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
reviewing-code
hierovision
Review a change (a diff, a branch, or an implement pass's output) against the plan that authorized it and against engineering quality, then issue a verdict…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
debugging-test-failures
hierovision
Diagnose WHY a failing verification won't converge — reproduce first, hypothesis + discriminating experiment, classify the defect (code / test / plan /…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
capturing-ui-evidence
hierovision
Captures the current visual state of UI targets into a structured, addressable EVIDENCE ARTIFACT — screenshots (full-page + element-clipped) plus a…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
deploying-to-azure-swa
hierovision
Deploy a static front end to Azure Static Web Apps from GitHub Actions — preview-per-PR environments, production promotion on push to main, capturing the…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
designing-architecture
hierovision
Turn ONE selected roadmap entry or direct feature request into a verifiable implementation plan that a separate build session can execute cold — then stop at…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
designing-cicd
hierovision
Design GitHub Actions CI/CD topology — trigger selection (push / pull_request / workflow_run / workflow_dispatch), job sequencing via needs, concurrency…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
facilitating-product-vision
hierovision
Facilitates an owner-led product vision session and produces two artifacts: a strategy-only vision document plus roadmap items (outcome themes under…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
handling-security-incidents
hierovision
Handle a security incident through the NIST SP 800-61 lifecycle — validate and scope the signal, build a timestamped fact timeline, classify severity, plan…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
managing-github-issues
hierovision
Persist an established ROADMAP.md as GitHub issues — one issue per open roadmap row, enriched from its source files, tagged with a stable roadmap-id label for…
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 7
- Last commit (this folder)
- Sep 28, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/hierovision/ai-framework
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from hierovision
- 0.592score
auditing-supply-chain
hierovision
Audit a software supply chain — dependency manifests and lockfiles, build provenance, SBOMs, and release artifacts — for what makes it untrustworthy…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
facilitating-product-vision
hierovision
Facilitates an owner-led product vision session and produces two artifacts: a strategy-only vision document plus roadmap items (outcome themes under…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
deploying-to-azure-swa
hierovision
Deploy a static front end to Azure Static Web Apps from GitHub Actions — preview-per-PR environments, production promotion on push to main, capturing the…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
designing-architecture
hierovision
Turn ONE selected roadmap entry or direct feature request into a verifiable implementation plan that a separate build session can execute cold — then stop at…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
designing-cicd
hierovision
Design GitHub Actions CI/CD topology — trigger selection (push / pull_request / workflow_run / workflow_dispatch), job sequencing via needs, concurrency…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
handling-security-incidents
hierovision
Handle a security incident through the NIST SP 800-61 lifecycle — validate and scope the signal, build a timestamped fact timeline, classify severity, plan…
SkillAFreshness: A★ 1Claude Code +9
Cite this page
deploying-with-supabase skill. Agent Mart. https://agentmart.dev/skills/hierovision-deploying-with-supabase (last updated 2026-10-24)