/postgresql-skills:postgres-schema-reviewfrom PostgreSQL Diagnostics and Review
Reviews PostgreSQL table design for missing constraints, naming issues, mixed responsibilities, mutable facts, nullable/flag semantics, and contention. Reports refactoring candidates from schema snapshots, domain contracts, and observed writes.
Ships in PostgreSQL Diagnostics and Review. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
対象DBとschema、1行が表す事実、業務上の関連・必須性を確認する。取得済みのスキーマ、migration、ORM、業務資料から先に調べる。DDLだけで確定できない責務・ライフサイクルは、出典付きの設計契約と書込処理で補う。
scripts/review.pyで候補を抽出し、判定基準を使って根拠と反例を確認する。制約の存在・強制・既存行の検証を分け、domain NOT NULLを列保証と同一視しない。未取得・打切り・業務仕様不明を報告し、観測範囲を越えて問題なしと判定しない。*_id、列数、NULL、boolean、updated_atの存在は調査の手掛かりになる。個々の設計意図と使用状況を照合する。確定済みの事実、下書き、現在状態、キャッシュを区別する。
収集・判定スクリプトは単独で動作する。既存の性能診断skillが使える場合は待機の時系列を、負荷検証skillが使える場合は変更前後の整合性と応答時間を照合する。セキュリティ診断skillが使える場合は分割先の権限・RLSも確認する。
agents/openai.yaml (opens in a new tab)assets/contract.example.json (opens in a new tab)assets/evidence.example.json (opens in a new tab)references/evidence.md (opens in a new tab)references/refactoring.md (opens in a new tab)references/rules.md (opens in a new tab)scripts/collect.py (opens in a new tab)scripts/lifecycle.py (opens in a new tab)scripts/review.py (opens in a new tab)scripts/structure.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub soudai/postgresql-use-improve-agents-skill --plugin postgresql-skills5 skills in this plugin
/postgres-config-tuningReview and optimize PostgreSQL 18 and 19 server configuration (postgresql.conf, ALTER SYSTEM, role/database settings, managed-service parameter groups). Use when asked to tune, size or audit memory, connections, WAL/checkpoints, autovacuum, planner, I/O, parallelism, JIT, logging or timeouts; produce evidence-backed changes with apply, verify and rollback steps./postgres-performance-diagnosticsDiagnose PostgreSQL 18 and 19 performance using wait-event sampling, cumulative statistics, execution plans, and logs. Use for slow queries, high CPU, wait events, I/O, spills, locking, index design (missing or redundant), excessive calls, vacuum backlog, WAL, replication, and resource contention; produce evidence-backed candidates and validation plans./postgres-security-reviewReview PostgreSQL roles, row level security, authentication, TLS, deployment privileges and security updates. Use to assess exposure, propose scoped remediation, or verify security changes using catalog snapshots, access contracts and staging tests./postgres-workload-validationCompare PostgreSQL SQL, index, or configuration changes under a reproducible workload. Use for benchmark design, pgbench replay, capacity and latency regressions, and accept, investigate, or roll back decisions.Other plugins' skills for the same job