claude

PostgreSQL Coding Standards

PostgreSQL coding standards for AI assistants: queries, jsonb, schema, indexing, performance analysis, safe migrations. PostgreSQL 18 and later.

1 on GitHubby Cadasto B.V.v0.1.0MITupdated 13 days agodevelopment
/

Plugin pgsql-coding from marketplace cadasto in Cadasto/plugin-marketplace. Commands read from the repo's manifest — 12 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (8)

  • pgsql-coding

    PostgreSQL coding-standards router for PostgreSQL 18 and later (19 additions flagged as hints). This skill should be used when a task writes, reviews, tunes or debugs SQL, a .sql file, a migration, a schema, or a query string in Go (pgx) or PHP (PDO) code, when the task spans several areas, or when

  • pgsql-indexing

    This skill should be used when a task adds, chooses, reviews or drops a PostgreSQL index, or asks why a query ignores one, for example "which index should I add", "what column order", "why isn't my index used", "deleting a parent row is slow", "can we drop this index", "how do I index this LIKE sear

  • pgsql-jsonb

    This skill should be used whenever SQL reads, writes, builds, filters, indexes or validates json or jsonb in PostgreSQL, or passes it through pgx or PDO, for example "query this JSON field", "update one key in the document", "return the rows as a JSON array", "why is this jsonb filter slow", "why is

  • pgsql-lint-setup

    This skill should be used when the user runs /pgsql-lint-setup or asks to "set up squawk", "add SQL linting", "lint our Postgres migrations", "add a migration linter to CI", "fail the build on unsafe migrations" or "scaffold .squawk.toml", or asks how to set squawk's pg_version or assume_in_transact

  • pgsql-migrations

    This skill should be used when a task writes or reviews a migration or DDL that runs against a live PostgreSQL 18 table, such as ALTER TABLE, ADD COLUMN, SET NOT NULL, ADD CONSTRAINT or a foreign key, CREATE INDEX, DROP INDEX or REINDEX on a populated or partitioned table, an INVALID index left by a

  • pgsql-performance

    This skill should be used when a PostgreSQL query or database is slow, or when a plan is pasted or compared (Seq Scan, Nested Loop, actual time, Rows Removed by Filter, Buffers, external merge, Batches, Index Searches, JIT, Workers Launched), for example "why is this query slow", "what is wrong with

  • pgsql-query

    This skill should be used before writing, reviewing or debugging any PostgreSQL query or statement, including SQL in Go or PHP code, for example "find customers with no orders this month", "paginate this list", "upsert", "bulk insert", "make this job queue safe", "retry on a serialization failure or

  • pgsql-schema

    This skill should be used when a task designs or reviews PostgreSQL tables and the objects around them, for example "design these tables", "which type for money or ids", "should status be an enum", "cascade the delete", "add row-level security per tenant". Covers CREATE TABLE, column types (identity

Subagents (2)

  • pgsql-plan-analyst

    Use this agent when a PostgreSQL EXPLAIN plan needs analysing and runs past about 50 lines (the assistant's own included), when two plans must be compared (before and after an index, a rewrite or new statistics), or when reading the plan would otherwise fill the conversation. It runs the plugin's pl

  • pgsql-reviewer

    Use this agent to review SQL for the bugs that survive tests and squawk: .sql files, migrations, DDL, or SQL strings in Go (pgx) or PHP (PDO). It finds NULL slips, SQL injection, unstable or deep-OFFSET pagination, jsonb predicates no index serves, unindexed foreign keys, migrations that lock or rew

Hooks (3)

  • SessionStart

    bash "${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh"

  • PostToolUse

    bash "${CLAUDE_PLUGIN_ROOT}/hooks/lint-on-save.sh"

  • PostToolUse

    bash "${CLAUDE_PLUGIN_ROOT}/hooks/skill-nudge.sh"

View source on GitHub cadasto.github.io

More from Cadasto/plugin-marketplace

All 7 plugins →

openEHR clinical modeling for AI assistants — archetypes, templates, compositions, AQL, CKM reuse search, and specification lookup.

8 skills · 3 commands · 3 agents · 1 MCP server · hooks

1

Spec-Driven Development for AI assistants — requirements, RFC-2119 specs, and ADRs with stable identifiers, machine-checked traceability, and the delivery pipeline that runs on them: workers, review into a findings file, close-out; two profiles.

8 skills · 4 agents · hooks

1

Human-facing documentation and content standards for AI assistants: technical writing, copy editing, AI-tell cleanup, marketing copy, SEO and AI citability, with claims grounded in cited evidence.

8 skills · 2 agents · hooks

1

Idiomatic Go coding standards for AI assistants — formatting, errors, concurrency, testing, layout.

7 skills · 1 agent · hooks

1

Maintainer plugin for developing the openEHR Assistant MCP server and plugin — authoring guides, prompts, MCP tools, examples, and managing releases

4 skills · 1 agent · hooks

1

Idiomatic PHP coding standards for AI assistants — PHP 8.4+, PER Coding Style, PHPStan level 8.

2 skills · 1 agent · hooks

1

Similar plugins

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

Build powerful, stateful CLI interfaces for any GUI application using the cli-anything harness methodology.

5 commands

HKUDS/CLI-Anything 58,665

Automates browser interactions for web testing, form filling, screenshots, and data extraction

12 skills

vercel-labs/agent-browser 50,373

Use Alibaba Open Code Review from local Codex.

2 skills

alibaba/open-code-review 50,068

slidev

claude

Claude Code skill for creating and presenting Slidev slidedecks

1 skill

slidevjs/slidev 49,452

Maintain PostgreSQL Coding Standards?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins7 plugins