Backend Test Worker
CorrectRoadH/OpenTickly
Build and verify real-Postgres Go tests and thin transport smoke for tracking behavior.
Rules when working with PostgreSQL database in Gram. An agent skill from speakeasy-api/gram.
$ npx skills add speakeasy-api/gram --skill postgresql -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install speakeasy-api/gram postgresql --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/speakeasy-api/gram.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/postgresql .claude/skills/postgresql && 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 "postgresql" agent skill from https://github.com/speakeasy-api/gram/tree/main/.agents/skills/postgresql into .claude/skills/postgresql/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgresql", 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/speakeasy-api/gram/tree/main/.agents/skills/postgresqlType 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 speakeasy-api/gram --skill postgresql -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install speakeasy-api/gram postgresql --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/speakeasy-api/gram.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/postgresql .agents/skills/postgresql && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "postgresql" agent skill from https://github.com/speakeasy-api/gram/tree/main/.agents/skills/postgresql into .agents/skills/postgresql/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgresql", 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 speakeasy-api/gram --skill postgresql -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install speakeasy-api/gram postgresql --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/speakeasy-api/gram.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/postgresql .cursor/skills/postgresql && 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 "postgresql" agent skill from https://github.com/speakeasy-api/gram/tree/main/.agents/skills/postgresql into .cursor/skills/postgresql/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgresql", 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/speakeasy-api/gram.git --path .agents/skills/postgresql--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 speakeasy-api/gram --skill postgresql -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install speakeasy-api/gram postgresql --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/speakeasy-api/gram.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/postgresql .gemini/skills/postgresql && 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 "postgresql" agent skill from https://github.com/speakeasy-api/gram/tree/main/.agents/skills/postgresql into .gemini/skills/postgresql/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgresql", 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 speakeasy-api/gram postgresqlInstalls 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 speakeasy-api/gram --skill postgresql -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/speakeasy-api/gram.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/postgresql .github/skills/postgresql && 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 "postgresql" agent skill from https://github.com/speakeasy-api/gram/tree/main/.agents/skills/postgresql into .github/skills/postgresql/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgresql", 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 speakeasy-api/gram --skill postgresql -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install speakeasy-api/gram postgresql --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/speakeasy-api/gram.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/postgresql .opencode/skills/postgresql && 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 "postgresql" agent skill from https://github.com/speakeasy-api/gram/tree/main/.agents/skills/postgresql into .opencode/skills/postgresql/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "postgresql", 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.
postgresqlRules when working with PostgreSQL database in Gram. An agent skill from speakeasy-api/gram.
Postgresql is an agent skill from speakeasy-api/gram. Rules when working with PostgreSQL database in Gram
Its SKILL.md is about 3.4k 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: Securely scale AI usage across your organization. A single stack to Connect, Secure, Observe and Distribute agents, MCPs, and Skills within your company. The licence is AGPL-3.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit ad78247. 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:
miseFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
atlasgo.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Postgresql loads about 3.4k tokens when it runs. Until then it costs about 16 tokens; SKILL.md has 1,841 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 speakeasy-api/gram at commit ad78247, republished under its AGPL-3.0 licence (© speakeasy-api). 1,841 words, ~3,441 tokens.
.claude/skills/postgresql/SKILL.md (or your agent's skills folder).Comprehensive guidelines when working with PostgreSQL database to build Gram which include rules for schema design, database migration and application logic. All rules are kept in a rules folder with names of each rule outlined below (e.g. rules/<rule-name>.md).
Reference these guidelines when:
Code Formatting and Comments:
pgformatter or similar.-- a comment); do not add a space for commented-out code (--raise notice).Naming Conventions:
snake_case for identifiers (e.g., user_id, customer_name).customers, products).Data Integrity and Data Types:
INTEGER, VARCHAR, TIMESTAMP).NOT NULL, FOREIGN KEY) to enforce data integrity but not for UNIQUE-ness — that is enforced with unique indexes.CHECK constraints for pure enumeration / value validation (e.g. CHECK (status IN ('active', 'inactive'))). Validate allowed values in application code, where they can evolve without a migration. Exception: keep CHECKs that are structural to the Class Table Inheritance (CTI) pattern, e.g. pinning a subtype's discriminator (CHECK (provider = 'aws_kms')) so the composite foreign key back to the supertype enforces 1:1 semantics.ON DELETE SET NULL clause.Indexing:
WHERE clauses and JOIN conditions.B-tree, Hash, GIN, GiST) based on the data and query requirements.(organization_id, id) key that a tenant-scoped child composite-FKs to for tenancy pinning), declare it as a CREATE UNIQUE INDEX, not a table-level UNIQUE constraint. Postgres accepts a non-partial, plain-column unique index as an FK target. This matters when adding the key to an existing table: ALTER TABLE ... ADD CONSTRAINT ... UNIQUE takes an ACCESS EXCLUSIVE lock and builds the index synchronously, whereas a CREATE UNIQUE INDEX (which Atlas automatically emits as CONCURRENTLY per its concurrent_index policy) does not. Trade-off: a concurrent index makes the migration non-transactional (Atlas emits -- atlas:txmode none for you), so keep such migrations minimal.CHECK or FOREIGN KEY constraint to an existing table takes an ACCESS EXCLUSIVE lock while Postgres scans every existing row, blocking reads and writes for the duration. Atlas reports this as lint PG305 (CHECK) or PG306 (FOREIGN KEY) but has no diff policy that avoids it, so the online-safe two-step form has to be hand-written: see the NOT VALID recipe under Database migrations.Schema evolution:
mise db:diff <migration-name> after making schema changes to generate a migration file. Replace <migration-name> with a clear snake-case migration id such as users-add-email-column.mise run db:reset 2. mise run db:migrate to re-run all migrations from the beginning.<relevant-tasks>
mise run db:diff <name-of-migrations>: Create a database migrationmise run db:reset: Drop the database and re-create it. No migrations applied at this point.mise run db:migrate: Run all pending database migrations. If you have just reset the database, this will run all migrations from the beginning.</relevant-tasks>
When creating any tables, add a non-nullable column named project_id of type uuid with a foreign key constraint to the projects table. If appropriate to the nature and usage patterns of the table also include organization_id TEXT NOT NULL column.
All tables should have created_at and updated_at columns:
create table if not exists example (
-- ...
created_at timestamptz not null default clock_timestamp(),
updated_at timestamptz not null default clock_timestamp() on update clock_timestamp(),
-- ...
);A nullable deleted_at column may be added to tables to perform soft deletes:
create table if not exists example (
-- ...
deleted_at timestamptz,
deleted boolean not null generated always as (deleted_at is not null) stored,
-- ...
);Deleting rows with DELETE FROM table is not strongly discouraged. Instead,
use:
UPDATE example SET deleted_at = clock_timestamp() WHERE id = ?;server/database/schema.sql is DDL only — no DO, ALTER, or other procedural blocks. Declare tables in dependency order so every FOREIGN KEY resolves inline; if a target is declared later, move it up.
All constraints should be named with this format:
{tablename}_{columnname(s)}_{suffix}Where suffix is:
key for a unique constraintfkey for a foreign key constraintidx for any other kind of indexcheck for a check constraintexcl for an exclusion constraintseq for an sequencesEnsure that all schema changes are designed for backwards compatibility.
These are examples of terrible practices to avoid:
Instead, strongly consider these better alternatives:
These rules apply any time you touch server/migrations/, atlas.sum, or server/database/schema.sql. They are non-negotiable.
Gram uses Atlas in versioned mode. Two file kinds are involved, and they are not the same thing:
server/database/schema.sql is the SDL — the declarative, desired-state schema. This is the file you edit.server/migrations/*.sql are the DDL diff Atlas generates from that schema. Running mise db:diff <name> computes the delta (e.g. ALTER TABLE ... ADD COLUMN ...), writes a new timestamped migration file, and updates atlas.sum.Rules:
Migrations ship in their own PR. No application/business-logic code, no backfills, no unrelated changes alongside. Shipping migrations with business logic risks outages — the server can query a schema that has not rolled out yet — and makes the PR hard to revert.
Migration files and atlas.sum are produced only by the Atlas CLI (mise run db:diff). Never hand-edit, rename, or rehash them. There is exactly one sanctioned exception: the NOT VALID constraint pattern in the last rule below.
Migration files contain only DDL — never DML. Backfills and other data manipulation (INSERT / UPDATE / DELETE) do not belong in a migration file. Data migrations live in application code, not migrations.
Follow expand-contract. Never drop a column or table in the same migration that adds others. If a column is unwanted, mark it nullable with a comment and leave it for a later contract migration; sticking around for a few days is fine.
Never run agents (or any tooling) against dev or prod databases. Local databases only.
Out-of-order timestamps: if mise lint:migrations (or CI) reports a migration timestamp at or before the latest on main, do NOT rename the file. Delete the offending migration on your branch, rebase/merge main, then re-run mise db:diff <name> so the migration is regenerated on top with a fresh timestamp.
Migration merge conflicts: never resolve them by hand. Delete your migrations, rebase/merge main, then re-run mise db:diff so your changes are recreated on top.
Adding a CHECK or FOREIGN KEY constraint to an existing table triggers Atlas lint PG305 / PG306: the plain ADD CONSTRAINT scans the whole table under an ACCESS EXCLUSIVE lock, blocking reads and writes for the duration of the scan. Both are warnings and do not fail CI. Whether to avoid the scan is a question of table size and nothing else. A constraint over a column added in the same migration still triggers the same scan, it just cannot fail (unless that column has a DEFAULT, in which case existing rows are checked against the default value). For small or empty tables, accept the warning and say so in the PR description. For large or hot tables, use the two-step NOT VALID pattern:
server/database/schema.sql and run mise run db:diff <name> as usual.NOT VALID to each generated ADD CONSTRAINT clause in place, leaving Atlas's combined ALTER TABLE intact, then add one ALTER TABLE ... VALIDATE CONSTRAINT ...; statement per constraint after it. Do not break the generated ALTER TABLE into separate statements: each statement takes its own ACCESS EXCLUSIVE lock, and splitting a paired DROP CONSTRAINT / ADD CONSTRAINT opens a window where the table has no constraint at all.-- atlas:txmode none the first line of the file. The two statements must not share a transaction: inside one transaction the ACCESS EXCLUSIVE lock taken by the ADD is held until commit, so the validation scan runs under the full lock anyway and the split gains nothing. mise lint:migrations enforces this directive.mise run db:hash to re-hash atlas.sum. Until you do, every Atlas command fails on a checksum mismatch.-- atlas:txmode none
-- Atlas generates:
-- ALTER TABLE "t" ADD CONSTRAINT "t_x_check" CHECK (...), ADD COLUMN "y" text NULL;
ALTER TABLE "t" ADD CONSTRAINT "t_x_check" CHECK (...) NOT VALID, ADD COLUMN "y" text NULL;
ALTER TABLE "t" VALIDATE CONSTRAINT "t_x_check";The end state is identical to the one-step form, so later mise run db:diff runs see no drift (CI verifies this). VALIDATE CONSTRAINT scans under SHARE UPDATE EXCLUSIVE, which allows concurrent reads and writes.
Three things the pattern does not buy you:
NOT VALID does not mean unenforced. It skips the scan of existing rows only. Every subsequent INSERT and UPDATE is checked immediately, including updates to rows that already violate the constraint. Because migrations ship ahead of application code, only add a constraint that currently deployed code already satisfies.VALIDATE blocks every later migration until someone repairs the data by hand. Confirm there are no violating rows before shipping instead of planning to fix them afterwards.A constraint declared inside a brand-new CREATE TABLE does not trigger PG305 / PG306 and needs no change.
All SQLc queries live in **/queries.sql files in the codebase. This is an important convention to maintain.
When writing SQLc queries, follow these guidelines:
project_id to explicitly limit the scope of writes.<relevant-tasks>
mise run infra:start: bring up the local Postgres/ClickHouse/etc containers — required before running sqlc, since sqlc connects to the database to type-check queries.mise run gen:sqlc-server: generates Go code from SQLc queries (requires the local database from mise run infra:start).</relevant-tasks>
© speakeasy-api, AGPL-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 .agents/skills/postgresql of speakeasy-api/gram.
Open the folder on GitHubat commit ad78247
Postgresql 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 |
|---|---|---|---|---|---|---|
| Postgresql this skillspeakeasy-api/gram | 272 | — | ~3.4k | Automated safety check: Pass | AGPL-3.0 | |
| Backend Test WorkerCorrectRoadH/OpenTickly | 306 | — | ~1.3k | Automated safety check: Pass | AGPL-3.0 | |
| Ef Core Migrationsjihadkhawaja/Egroo | 178 | — | ~673 | Automated safety check: Pass | Apache-2.0 | |
| Add Oliphaunt Extensionf0rr0/oliphaunt | 105 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Diagnose Cloud SessionFreakStudioCN/mpy-hardware-extension | 132 | — | ~809 | Automated safety check: Notes | Custom licence | |
| DB AdminEliasOulkadi/shokunin | 114 | — | ~2k | Automated safety check: Notes | MIT |
CorrectRoadH/OpenTickly
Build and verify real-Postgres Go tests and thin transport smoke for tracking behavior.
jihadkhawaja/Egroo
Handle EF Core schema changes in Egroo. An agent skill from jihadkhawaja/Egroo.
f0rr0/oliphaunt
Add, update, or remove an Oliphaunt PostgreSQL contrib or external extension, including source pins, build recipes, target support, SDK metadata, release products, carrier identities, and package…
FreakStudioCN/mpy-hardware-extension
用户报告 Blockless 扩展在云端实测时出问题(卡死/灰屏/跳步/构建失败),但本地复现不了、日志不在本地文件里时,用这个从云端托管数据库拉真实 session 定位症状与根因 / Use when a user reports an in-product Blockless bug from live cloud-backend testing and the real session…
EliasOulkadi/shokunin
PostgreSQL database administration — backup/restore (pgdump, PITR, WAL archiving), health monitoring (connections, bloat, cache hit ratio, dead tuples), connection pooling (PgBouncer), replication…
ynulihao/AgentSkillOS
Design a PostgreSQL-specific schema. An agent skill from ynulihao/AgentSkillOS.
speakeasy-api/gram
A skill your agent uses when automating the Gram dashboard in a browser, capturing screenshots, inspecting pages.
speakeasy-api/gram
A skill your agent uses when adding, changing, restyling, reviewing, validating, or previewing a Gram/Speakeasy transactional email, in Go or in LMX/MJML — a template<name.go, a TemplateKey…
speakeasy-api/gram
A skill your agent uses when adding, changing, or styling UI in client/admin (the Gram admin dashboard) that touches shadcn/ui — a button, dialog, table, sidebar, badge, select, tabs, tooltip, card…
speakeasy-api/gram
A skill your agent uses when adding, editing, reviewing, testing, or locating a reviewed skill distributed with the Platform MCP plugin; triggers include "Platform MCP skill", "platformmcpskills"…
speakeasy-api/gram
A skill your agent uses when changing or reviewing Gram ClickHouse schemas, migrations, queries, inserts, access principals, bootstrap SQL, Cloud compatibility, partial migration failures, or…
speakeasy-api/gram
A skill your agent uses when gating a feature behind a flag, dogfooding or gradually rolling out a change, choosing between productfeatures and PostHog feature flags, adding or checking a product…
Works with
Categories
Rules when working with PostgreSQL database in Gram. An agent skill from speakeasy-api/gram. Postgresql is an agent skill from speakeasy-api/gram.
Postgresql fits situations like: databases work in your project.
Run `npx skills add speakeasy-api/gram --skill postgresql -a claude-code`. Or copy the skill folder (.agents/skills/postgresql in speakeasy-api/gram) into .claude/skills/postgresql in your project. Claude Code loads it when a task matches its description.
Run `npx skills add speakeasy-api/gram --skill postgresql -a codex`. Or copy the skill folder (.agents/skills/postgresql in speakeasy-api/gram) into .agents/skills/postgresql 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 speakeasy-api/gram --skill postgresql -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/postgresql, .gemini/skills/postgresql, .github/skills/postgresql and .opencode/skills/postgresql in your project.
Going by SKILL.md and its folder, Postgresql needs the command-line tools its instructions call (mise).
SKILL.md names 1 domain. As links in the text: atlasgo.io. 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.
Postgresql is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k 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 Postgresql: Backend Test Worker (CorrectRoadH/OpenTickly, 306 stars), Ef Core Migrations (jihadkhawaja/Egroo, 178 stars), Add Oliphaunt Extension (f0rr0/oliphaunt, 105 stars) and Diagnose Cloud Session (FreakStudioCN/mpy-hardware-extension, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
speakeasy-api (a GitHub organization) maintains it in speakeasy-api/gram, which has 272 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on October 8, 2026.
Source: speakeasy-api/gram on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.