Find Postgres Bug
digoal/blog
Find latent bugs in a local PostgreSQL source tree (RELxxSTABLE branch or HEAD) the way a core hacker does: build a heavily-poisoned debug instance (cassert + cache-discard + -O0/-ggdb3 + core…
A skill your agent uses when inspecting, debugging, or understanding the GOAT PostgreSQL database — querying projects, layers, users, orgs, teams, roles, jobs, or checking data state during local dev.
$ npx skills add plan4better/goat --skill db -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install plan4better/goat db --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/plan4better/goat.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/db .claude/skills/db && 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 "db" agent skill from https://github.com/plan4better/goat/tree/main/.claude/skills/db into .claude/skills/db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db", 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/plan4better/goat/tree/main/.claude/skills/dbType 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 plan4better/goat --skill db -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install plan4better/goat db --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/plan4better/goat.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/db .agents/skills/db && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "db" agent skill from https://github.com/plan4better/goat/tree/main/.claude/skills/db into .agents/skills/db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db", 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 plan4better/goat --skill db -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install plan4better/goat db --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/plan4better/goat.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/db .cursor/skills/db && 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 "db" agent skill from https://github.com/plan4better/goat/tree/main/.claude/skills/db into .cursor/skills/db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db", 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/plan4better/goat.git --path .claude/skills/db--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 plan4better/goat --skill db -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install plan4better/goat db --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/plan4better/goat.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/db .gemini/skills/db && 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 "db" agent skill from https://github.com/plan4better/goat/tree/main/.claude/skills/db into .gemini/skills/db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db", 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 plan4better/goat dbInstalls 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 plan4better/goat --skill db -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/plan4better/goat.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/db .github/skills/db && 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 "db" agent skill from https://github.com/plan4better/goat/tree/main/.claude/skills/db into .github/skills/db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db", 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 plan4better/goat --skill db -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install plan4better/goat db --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/plan4better/goat.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/db .opencode/skills/db && 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 "db" agent skill from https://github.com/plan4better/goat/tree/main/.claude/skills/db into .opencode/skills/db/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db", 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.
dbA skill your agent uses when inspecting, debugging, or understanding the GOAT PostgreSQL database — querying projects, layers, users, orgs, teams, roles, jobs, or checking data state during local dev.
DB is an agent skill from plan4better/goat. Use when inspecting, debugging, or understanding the GOAT PostgreSQL database — querying projects, layers, users, orgs, teams, roles, jobs, or checking data state during local dev.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases. It works with PostgreSQL. The repository describes itself as: WebGIS with Planning Intelligence. The licence is GPL-3.0.
Read from SKILL.md and the folder at commit a181bf4. 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.
Shell commands in SKILL.md call:
dockerFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use docker, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
POSTGRES_PASSWORDFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
DB loads about 1.3k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 398 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 noted patterns worth knowing about, such as sudo or a known installer.
source /home/p4b/goat/.envsource /home/p4b/goat/.envAutomated 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 plan4better/goat at commit a181bf4, republished under its GPL-3.0 licence (© plan4better). 398 words, ~1,276 tokens.
.claude/skills/db/SKILL.md (or your agent's skills folder).Query the GOAT PostgreSQL database to inspect data, debug issues, and understand state.
There is no host psql; go through the running Postgres container. The container name changes
across setups (goat-db, goat-db18, …), so discover it rather than hardcoding:
source /home/p4b/goat/.env
DBC=$(docker ps --format '{{.Names}}' | grep -E '^goat-db' | head -1)
docker exec -e PGPASSWORD=$POSTGRES_PASSWORD "$DBC" psql -h 127.0.0.1 -U $POSTGRES_USER -d $POSTGRES_DBOne-off query:
source /home/p4b/goat/.env
DBC=$(docker ps --format '{{.Names}}' | grep -E '^goat-db' | head -1)
docker exec -e PGPASSWORD=$POSTGRES_PASSWORD "$DBC" psql -h 127.0.0.1 -U $POSTGRES_USER -d $POSTGRES_DB -c "YOUR SQL HERE"| Schema | Purpose |
|---|---|
customer | Everything: users, orgs, teams, roles/permissions, projects, layers, jobs, workflows |
ducklake | DuckLake catalog (managed by geoapi, don't modify directly) |
The SQLModel definitions in apps/core are the source of truth — introspect when unsure:
SELECT table_name FROM information_schema.tables WHERE table_schema='customer' ORDER BY 1;
\d customer.layercustomer)customer)catalog_item / catalog_materialize for promoted catalog layers), field_config (jsonb, per-column metadata), url, size, in_catalog, tags[], catalog_external_uid, catalog_version-- Projects with layer counts
SELECT p.id, p.name, p.created_at, COUNT(lp.id) AS layer_count
FROM customer.project p
LEFT JOIN customer.layer_project lp ON lp.project_id = p.id
GROUP BY p.id ORDER BY p.created_at DESC;
-- Layers in a project with styles
SELECT lp.id, lp.name, lp.order, l.type, l.feature_layer_type, l.feature_layer_geometry_type
FROM customer.layer_project lp
JOIN customer.layer l ON l.id = lp.layer_id
WHERE lp.project_id = 'PROJECT_UUID'
ORDER BY lp.order;
-- Job status
SELECT id, type, status, created_at, payload->>'tool_type' AS tool
FROM customer.job ORDER BY created_at DESC LIMIT 10;
customer.layer), layer data lives in DuckLake (managed by geoapi)layer_project.properties = style/rendering config (jsonb); layer_project.query = active filters (jsonb)project.active_scenario_id were all removed. scenario_feature was the last table using generic columns (integer_attr1..25); nothing in GOAT uses that scheme any morelayer.user_id and layer.folder_id are NULL for promoted catalog layers. Joins from layer to user must be LEFT joins or those rows vanishproject_public.config snapshot, not the live project — re-publish to reflect changesST_AsText() or ST_AsGeoJSON() to read geometry columns© plan4better, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/db of plan4better/goat.
Open the folder on GitHubat commit a181bf4
DB 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 |
|---|---|---|---|---|---|---|
| DB this skillplan4better/goat | 167 | — | ~1.3k | Automated safety check: Notes | GPL-3.0 | |
| Find Postgres Bugdigoal/blog | 8.6k | — | ~4k | Automated safety check: Pass | GPL-2.0 | |
| Diesel Guardayarotsky/diesel-guard | 121 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Releaserogerpadilla/uql | 125 | — | ~842 | Automated safety check: Pass | MIT | |
| Srtd Devt1mmen/srtd | 105 | — | ~2.3k | Automated safety check: Pass | MIT | |
| SQLx Offline Cache Updaterwindmill-labs/windmill | 18k | — | ~1.7k | Automated safety check: Pass | Custom licence |
digoal/blog
Find latent bugs in a local PostgreSQL source tree (RELxxSTABLE branch or HEAD) the way a core hacker does: build a heavily-poisoned debug instance (cassert + cache-discard + -O0/-ggdb3 + core…
ayarotsky/diesel-guard
Lints Diesel and SQLx Postgres migrations for unsafe schema changes that lock tables or cause downtime, and authors custom Rhai checks.
rogerpadilla/uql
Cut and publish a uql release - review the change, changelog entry, commit, version bump and tag, GitHub Release, npm publish, docs site.
t1mmen/srtd
Expert knowledge for developing the SRTD codebase itself. An agent skill from t1mmen/srtd.
windmill-labs/windmill
Safely regenerates Windmill's SQLx offline query cache after a SQL query changes in Rust, with a mandatory backup step and worktree-specific database checks.
digoal/blog
抓取并汇总"数据库、AI、GitHub、AI 论文"近 1 周新闻,输出图文并茂(含 mermaid 图)的 markdown 周报到当前项目的 markdown/ 目录。覆盖 10 个数据源:postgresweekly.com/issues(自动解析最新 issue…
plan4better/goat
A skill your agent uses when working with GOAT's Windmill instance — running or syncing analytics tools, inspecting job execution, adding a new tool, or checking which f/goat/tools/ scripts exist.
Works with
Categories
A skill your agent uses when inspecting, debugging, or understanding the GOAT PostgreSQL database — querying projects, layers, users, orgs, teams, roles, jobs, or checking data state during local dev. DB is an agent skill from plan4better/goat. Use when inspecting, debugging, or understanding the GOAT PostgreSQL database — querying projects, layers, users, orgs, teams, roles, jobs, or checking data state during local dev.
DB fits situations like: understanding the GOAT PostgreSQL database — querying projects; checking data state during local dev.
Run `npx skills add plan4better/goat --skill db -a claude-code`. Or copy the skill folder (.claude/skills/db in plan4better/goat) into .claude/skills/db in your project. Claude Code loads it when a task matches its description.
Run `npx skills add plan4better/goat --skill db -a codex`. Or copy the skill folder (.claude/skills/db in plan4better/goat) into .agents/skills/db 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 plan4better/goat --skill db -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/db, .gemini/skills/db, .github/skills/db and .opencode/skills/db in your project.
Going by SKILL.md and its folder, DB needs the command-line tools its instructions call (docker) and credentials named POSTGRES_PASSWORD. Our summary lists: Docker.
SKILL.md contains no URLs. Its commands use docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
DB is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k 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 DB: Find Postgres Bug (digoal/blog, 8.6k stars), Diesel Guard (ayarotsky/diesel-guard, 121 stars), Release (rogerpadilla/uql, 125 stars) and Srtd Dev (t1mmen/srtd, 105 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
plan4better (a GitHub organization) maintains it in plan4better/goat, which has 167 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 7, 2026.
Source: plan4better/goat on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.