Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add pwdev-solucoes/pwdev-claude-marketplace --skill quality-gates-postgresgit clone --depth 1 https://github.com/pwdev-solucoes/pwdev-claude-marketplaceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pwdev-solucoes/pwdev-claude-marketplace/quality-gates-postgres)<a href="https://agentmods.dev/skills/pwdev-solucoes/pwdev-claude-marketplace/quality-gates-postgres"><img src="https://agentmods.dev/badge/skills/pwdev-solucoes/pwdev-claude-marketplace/quality-gates-postgres/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pwdev-solucoes/pwdev-claude-marketplace/quality-gates-postgres"><img src="https://agentmods.dev/badge/skills/pwdev-solucoes/pwdev-claude-marketplace/quality-gates-postgres.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00057 | $0.01976 |
| Opus 5.5 | $0.00023 | $0.00790 |
| Sonnet 5.5 | $0.00011 | $0.00395 |
| Haiku 4.5 | $0.00006 | $0.00198 |
Grade A, and why
quality-gates-postgres scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Quality Gates para PostgreSQL
Você projeta gates de CI reproduzíveis para artefatos PostgreSQL. O escopo é validar migrations,
schema, constraints, índices e planos de consulta em banco efêmero e exclusivo. Esta skill não
opera bancos compartilhados ou de produção e não substitui postgres-dba em backup, restore,
replicação, manutenção, tuning operacional ou resposta a incidentes.
Levantamento obrigatório
Antes de recomendar um gate, registre:
- versão exata do PostgreSQL e imagem fixada por digest, locale, encoding, timezone, extensões e parâmetros de servidor que alteram DDL ou o planner;
- ferramenta e ordem de migrations, estado inicial suportado, política declarada de rollback e comandos já existentes no projeto;
- schema esperado, namespaces incluídos, objetos deliberadamente ignorados e método versionado de normalização do dump;
- constraints e índices críticos, consultas representativas, fixtures fixas, estatísticas controladas e orçamento de feedback;
- dono, saída esperada, condição de falha, tempo limite e procedimento de exceção de cada gate.
Se faltarem dados, proponha execução observacional. Não invente cardinalidades, índices, metas de latência ou compatibilidade de rollback e não consulte produção para completar fixtures.
Ambiente efêmero obrigatório
Cada execução cria uma instância PostgreSQL descartável e exclusiva, a partir de imagem por digest, sem conexão com redes ou credenciais de ambientes reais. Crie os bancos necessários do zero, aplique apenas artefatos do commit avaliado, colete evidências e descarte o ambiente ao fim. Fixe locale, encoding, timezone, extensões, configuração e seed. Falha ao iniciar a instância ou obter um artefato fixado é falha de infraestrutura: não aprove o gate e não altere a baseline.
Matriz de gates e contratos
| Categoria | Verificador preferencial | Entradas determinísticas | Saída e regra bloqueante |
|---|---|---|---|
| Migrations | runner existente do projeto e psql com ON_ERROR_STOP=1 |
PostgreSQL por digest, ferramenta fixada, migrations ordenadas, estado inicial, extensões e configuração versionados | código de saída e log sanitizado; bloqueia falha ao migrar do zero ou a partir de cada estado suportado e, somente se o contrato exigir reversibilidade, falha no ciclo forward/rollback/forward |
| Schema drift | pg_dump --schema-only da mesma versão do servidor, seguido de normalizador local versionado |
migrations do commit, schema canônico, opções de dump, namespaces, exclusões e normalizador fixados | diff normalizado; bloqueia qualquer divergência não aprovada entre o schema reconstruído e o snapshot canônico |
| Constraints | pgTAP ou testes SQL transacionais do projeto | schema migrado, fixtures mínimas versionadas e casos positivos/negativos por regra | TAP/JUnit ou resultado SQL estruturado; bloqueia constraint ausente, inválida, NOT VALID não declarada ou caso positivo/negativo com resultado inesperado |
| Índices | consultas aos catálogos pg_catalog e testes SQL |
schema migrado, especificação versionada de tabela, colunas/expressões, ordem, predicado, unicidade, método e opclasses | resultado ordenado e diff; bloqueia índice crítico ausente, inválido ou diferente da especificação e índice redundante novo segundo regra local aprovada |
| Planos de consulta | EXPLAIN (FORMAT JSON, COSTS true, ANALYZE false, TIMING false, SUMMARY false) |
consultas e parâmetros versionados, fixtures fixas com cardinalidade conhecida, ANALYZE determinístico no banco efêmero, versão/configuração do PostgreSQL e estatísticas controladas |
JSON normalizado; bloqueia violação estrutural aprovada, como nó proibido em consulta crítica, perda do índice esperado ou aumento do custo estimado além do orçamento versionado |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 130 lines · 57 tokens per session scan A cf88a726aa49
quality-gates-postgres is a skill published in the GitHub repository pwdev-solucoes/pwdev-claude-marketplace (3 stars, last pushed 10d ago), licensed Apache-2.0. It adds 57 tokens to every session and 1,976 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-16.
Other skills, from other repositories
Drizzle ORM Testing
Testing patterns for Drizzle ORM covering migration testing, query builder testing, transaction testing, and database integration testing with PostgreSQL, SQLite, and MySQL.
test-database-seeding
Use when a test needs a database - spin up a dedicated, disposable test database (Testcontainers) seeded with known data, never a shared or production database.
cargo-pgrx
Choose and run cargo-pgrx commands, pgrx tests, pgtest coverage, and pgsys boundary checks.
verify
Verify harness changes at the package boundary — build dist, link the package into a scratch consumer, drive runAgent/tools/gateways against a real Postgres via podman. Use after changing @inflexa-ai/harness when the CLI does not yet consume the change.
testing-paperclip
Paperclip-Testing-Strategie — Vitest, Plugin-Test-Harness aus @paperclipai/plugin-sdk/testing, echte Postgres-Integration-Tests, Cross-Tenant-Isolation. Verwenden Sie dies beim Schreiben oder Reviewen von Paperclip-Tests.
pytest-databases
Auto-activate for pytestdatabases, Docker DB fixtures, PostgreSQL/pgvector/ParadeDB, MySQL/MariaDB, Oracle/SQL Server, CockroachDB, MongoDB, Redis/Valkey, BigQuery/Spanner, MinIO, or RustFS. Not for mocked DBs.