Supabase
magnus919/agent-skills
A skill your agent uses when developing applications with Supabase, running the Supabase CLI, designing migrations and RLS policies, testing database behavior, generating client types, deploying the…
Detect which gbrain engine is in use (PGLite vs Postgres), prefer Postgres for agent-harness installs, install/provision Postgres (Supabase discovery via SUPABASEACCESSTOKEN, local Postgres, opt-in…
$ npx skills add garrytan/gbrain --skill postgres-adopt -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install garrytan/gbrain postgres-adopt --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/postgres-adopt .claude/skills/postgres-adopt && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "postgres-adopt" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/postgres-adopt into .claude/skills/postgres-adopt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-adopt", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/garrytan/gbrain/tree/master/skills/postgres-adoptType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add garrytan/gbrain --skill postgres-adopt -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install garrytan/gbrain postgres-adopt --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/postgres-adopt .agents/skills/postgres-adopt && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "postgres-adopt" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/postgres-adopt into .agents/skills/postgres-adopt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-adopt", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add garrytan/gbrain --skill postgres-adopt -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install garrytan/gbrain postgres-adopt --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/postgres-adopt .cursor/skills/postgres-adopt && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "postgres-adopt" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/postgres-adopt into .cursor/skills/postgres-adopt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-adopt", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/garrytan/gbrain.git --path skills/postgres-adopt--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add garrytan/gbrain --skill postgres-adopt -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install garrytan/gbrain postgres-adopt --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/postgres-adopt .gemini/skills/postgres-adopt && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "postgres-adopt" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/postgres-adopt into .gemini/skills/postgres-adopt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-adopt", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install garrytan/gbrain postgres-adoptInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add garrytan/gbrain --skill postgres-adopt -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/postgres-adopt .github/skills/postgres-adopt && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "postgres-adopt" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/postgres-adopt into .github/skills/postgres-adopt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-adopt", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add garrytan/gbrain --skill postgres-adopt -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install garrytan/gbrain postgres-adopt --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/garrytan/gbrain.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/postgres-adopt .opencode/skills/postgres-adopt && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "postgres-adopt" agent skill from https://github.com/garrytan/gbrain/tree/master/skills/postgres-adopt into .opencode/skills/postgres-adopt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgres-adopt", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
postgres-adoptDetect which gbrain engine is in use (PGLite vs Postgres), prefer Postgres for agent-harness installs, install/provision Postgres (Supabase discovery via SUPABASEACCESSTOKEN, local Postgres, opt-in…
Postgres Adopt is an agent skill from garrytan/gbrain. Detect which gbrain engine is in use (PGLite vs Postgres), prefer Postgres for agent-harness installs, install/provision Postgres (Supabase discovery via SUPABASEACCESSTOKEN, local Postgres, opt-in Docker), and move an existing PGLite brain to Postgres with its history (plan, ask, run). Detection is one engine-free command; the install ladder is one flag.
Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file.
It sits in DevOps & Cloud, covering Containers. It works with PostgreSQL, Supabase and Docker. The repository describes itself as: Garry's Opinionated OpenClaw/Hermes Agent Brain. The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 5b58910. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
SUPABASE_ACCESS_TOKENSUPABASE_DB_PASSWORDFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Postgres Adopt loads about 2.1k tokens when it runs. Until then it costs about 94 tokens; SKILL.md has 1,014 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from garrytan/gbrain at commit 5b58910, republished under its MIT licence (© garrytan). 1,014 words, ~2,099 tokens.
.claude/skills/postgres-adopt/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.The engine is the brain's foundation: PGLite is the zero-config floor, Postgres is where concurrency, multi-machine access, and 1000+ pages live. This skill answers "which one am I on?", prefers Postgres when the operator wants it, and moves data safely — never by flipping config.
This skill guarantees:
gbrain engine status --json
answers with the database down (that is the point of the command).gbrain migrate --to postgres (alias --to supabase), which graduates it:
plan first (exit 3), run only with the user's --yes --expect <plan_hash>,
verify every table, then flip routing. This skill wraps it; it never
reimplements it.GBRAIN_TARGET_URL and every command uses --url-env GBRAIN_TARGET_URL.--allow-docker,
creating a database on a local server needs --allow-create-db. Headless
mutation of infrastructure the operator didn't opt into never happens.gbrain engine status --jsonBranch on the output:
effective_engine: "postgres" and (optionally) --probe says ok →
report healthy, done.effective_engine: "postgres" but the probe fails → this is an ACCESS
problem, not an adoption problem: route to db-repair.config_file_engine differs from effective_engine → an env URL is
overriding the config file; tell the operator which one wins — the signal
is db_url_source (env:GBRAIN_DATABASE_URL / env:DATABASE_URL means
env wins; env.note additionally fires when both env URLs are set or the
cwd-.env shadow guard excluded one).thin_client: true → the brain lives on a remote server; engine choices
belong to that host. Stop.effective_engine: null (no brain) → Step 2.effective_engine: "pglite" with data → Step 3.graduation block whose state is not none (in progress,
interrupted, graduated or split) → Step 4.gbrain init --prefer-postgresThe ladder tries, in order: an env URL → Supabase Management-API discovery
(SUPABASE_ACCESS_TOKEN, plus SUPABASE_PROJECT_REF on multi-project
accounts and SUPABASE_DB_PASSWORD for the connection string) → a local
Postgres (only when PGHOST/PGPORT/PGUSER/PGPASSWORD are set or
--local-postgres is passed) → docker → PGLite. Each unusable rung prints a
one-line note and falls through; nothing is silent.
--allow-docker (it creates and owns a
gbrain-postgres container that survives reboots) or --allow-create-db
(it runs CREATE DATABASE on their local server).--json reports {engine, ladder_rung, url_source} — relay which rung won.Full reference: Move a PGLite brain to Postgres.
read -rs GBRAIN_TARGET_URL && export GBRAIN_TARGET_URL). On Supabase use
the transaction pooler; on an IPv4-only host also set
GBRAIN_DIRECT_DATABASE_URL to the session pooler.confirmation_required document:gbrain migrate --to postgres --url-env GBRAIN_TARGET_URL --jsonuser_message, what moves, what stays on this computer, blockers
and the estimate. Stop and wait for the user. A blocker with its own
fix gets cleared first (ask when it says ask_user).fix.command from the document:gbrain migrate --to postgres --url-env GBRAIN_TARGET_URL --yes --expect <plan_hash>preview_changed means the plan changed: go back to step 2. For thousands
of pages run it in the background and poll gbrain migrate --status --json.gbrain mcp expose follow-up for other machines, and, if a serve handed
the brain over, that the user restarts the MCP client.gbrain serve holding the brain hands it over on its own; never ask the
user to stop it first. graduation_source_writer_held names the process to
stop when one does not.<path>.graduated-<run_id> (doctor's
pglite_leftovers reports it). Deleting it is the user's call.gbrain doctor's pglite_scale check warns at 1000+ pages and points at
the plan command — that warning is this skill's cue.gbrain migrate --status --jsonIt is read-only and names the next command for the state. Exit 75 or a
run in progress → wait and poll. Interrupted → gbrain migrate --resume
(or gbrain migrate --rollback-to-source if the user wants to stay on
PGLite). Every refusal names its fix; the recovery table is in the guide.
A rollback that lists data loss runs only with the user's
--rollback-to-source --yes --expect <hash>.
Postgres wins on concurrency, multi-machine access, and scale. PGLite keeps
the per-turn bootstrap hook lane (hook injection is PGLite-only today —
docs/guides/bootstrap.md); on Postgres, ambient context rides
MCP-every-session and the pull protocol instead. Recommend Postgres when the
operator has concurrent agents, multiple machines, or a 1000+ page brain;
otherwise PGLite is genuinely fine.
Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
effective_engine: "postgres" but the probe fails: this is an access problem; run gbrain engine status --probe, then the db-repair skill.--allow-docker, the move needs --yes --expect <plan_hash> after the user saw the plan.gbrain config set engine … is refused by design: switch engines through the migrate path, never by editing config.gbrain config set engine ... — it is refused by design; an engine
flip without a data migration splits the brain across two stores.--yes before the user has seen the plan, and never use
--force unless the plan listed what it wipes and the user agreed.--url-env GBRAIN_TARGET_URL.SUPABASE_ACCESS_TOKEN / passwords into output.Detection reports in one line; changes report in 2-4:
Engine: <pglite|postgres> (source: <db_url_source>) [probe: ok, 42ms]
Action: <none | init rung that won | migrate --to postgres result>
Next: <upgrade note, or "healthy — nothing to do">Quote gbrain engine status output as-is (it is already redacted); name the
winning ladder rung when an install ran; after a migration, include the
target's gbrain doctor verdict.
© garrytan, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/postgres-adopt of garrytan/gbrain.
Open the folder on GitHubat commit 5b58910
Postgres Adopt next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Postgres Adopt this skillgarrytan/gbrain | 31k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Supabasemagnus919/agent-skills | 111 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Cb Build TestBlkLeg/CircuitBreaker | 201 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Monstermq Broker Configvogler75/monster-mq | 142 | — | ~2.2k | Automated safety check: Pass | GPL-3.0 | |
| Docker Deploymentfossasia/eventyay | 1.7k | — | ~574 | Automated safety check: Notes | Apache-2.0 | |
| Code PatternsAedelon/claude-code-blueprint | 120 | — | ~1.2k | Automated safety check: Pass | Custom licence |
magnus919/agent-skills
A skill your agent uses when developing applications with Supabase, running the Supabase CLI, designing migrations and RLS policies, testing database behavior, generating client types, deploying the…
BlkLeg/CircuitBreaker
How Circuit Breaker is built, tested, packaged, and kept secret-safe — the make dev/verify/test targets, the PostgreSQL integration test database and its fixtures, the mono Docker image and native…
vogler75/monster-mq
Guide for configuring, deploying, and operating the MonsterMQ broker.
fossasia/eventyay
Docker Compose, container services, deployment. An agent skill from fossasia/eventyay.
Aedelon/claude-code-blueprint
Reference patterns for REST APIs, pytest/vitest testing, Docker multi-stage builds, GitHub Actions CI/CD, PostgreSQL, TypeScript generics, Python async, and React Server Components.
modelguide/modelguide
Trigger phrases - "reset local db", "recreate local postgres", "restore dump to local", "reset local database", "load backup locally"
garrytan/gbrain
Traces a factual error the user points out back to its source (a brain page, a memory file, SOUL.md or USER.md, or a hallucination) and fixes that source instead of just noting the correction.
garrytan/gbrain
Searches and writes a company-wide knowledge brain through the gbrain CLI, so durable decisions and facts about people, projects and history stay findable beyond one session.
garrytan/gbrain
Ingest links, articles, tweets, and ideas into the brain. An agent skill from garrytan/gbrain.
garrytan/gbrain
Sends what your notes already know about a topic to Perplexity, so the cited web search reports only what is new, such as entity updates or deal changes.
garrytan/gbrain
Migrate a brain from gbrain-base (or any pack) to gbrain-base-v2's 14-canonical-type taxonomy via gbrain onboard --check + the unify-types Minion handler.
garrytan/gbrain
Run gbrain skillpack-check to produce an agent-readable JSON health report for the gbrain install.
Works with
Categories
Detect which gbrain engine is in use (PGLite vs Postgres), prefer Postgres for agent-harness installs, install/provision Postgres (Supabase discovery via SUPABASEACCESSTOKEN, local Postgres, opt-in…. Postgres Adopt is an agent skill from garrytan/gbrain. Detect which gbrain engine is in use (PGLite vs Postgres), prefer Postgres for agent-harness installs, install/provision Postgres (Supabase discovery via SUPABASEACCESSTOKEN, local Postgres, opt-in Docker), and move an existing PGLite brain to Postgres with its history (plan, ask, run).
Postgres Adopt fits situations like: tasks that involve Containers.
Run `npx skills add garrytan/gbrain --skill postgres-adopt -a claude-code`. Or copy the skill folder (skills/postgres-adopt in garrytan/gbrain) into .claude/skills/postgres-adopt in your project. Claude Code loads it when a task matches its description.
Run `npx skills add garrytan/gbrain --skill postgres-adopt -a codex`. Or copy the skill folder (skills/postgres-adopt in garrytan/gbrain) into .agents/skills/postgres-adopt in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add garrytan/gbrain --skill postgres-adopt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/postgres-adopt, .gemini/skills/postgres-adopt, .github/skills/postgres-adopt and .opencode/skills/postgres-adopt in your project.
Going by SKILL.md and its folder, Postgres Adopt needs credentials named SUPABASE_ACCESS_TOKEN and SUPABASE_DB_PASSWORD. Our summary lists: Docker; A credential in SUPABASE_ACCESS_TOKEN.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Postgres Adopt is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Postgres Adopt: Supabase (magnus919/agent-skills, 111 stars), Cb Build Test (BlkLeg/CircuitBreaker, 201 stars), Monstermq Broker Config (vogler75/monster-mq, 142 stars) and Docker Deployment (fossasia/eventyay, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
garrytan (a GitHub user) maintains it in garrytan/gbrain, which has 30,605 GitHub stars. The repository holds 47 skills in this directory. The repository was last updated on October 7, 2026.
Source: garrytan/gbrain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.