Agent Skills Best Practices
Rules that keep Postgres Agent Skills accurate, safe, and aligned with PostgreSQL 18.4 production policy.
Search across all documentation pages
Rules that keep Postgres Agent Skills accurate, safe, and aligned with PostgreSQL 18.4 production policy.
SKILL.md under .cursor/skills/.pg_terminate_backend without blocker evidence. Incident skill outputs PID; human executes.psql, flyway migrate, patronictl list, exit codes.pg_class.reltuples.df, pg_locks, replication views in one script.docs/skills/README.md.Minimum four: EXPLAIN review, migration safety, failover drill, incident triage. Add upgrade skill when multi-major jumps are frequent.
Keep SKILL.md portable markdown in repo. Tool-specific paths symlink to same content. Stack pin is universal.
Yes with on-call buddy. Skill structures thinking; human executes destructive actions.
Stack versions: This page was written for PostgreSQL 18.4, Flyway 10+, Patroni 4.x, and pgBackRest 2.55+.
Reviewed by Chris St. John·Last updated Jul 16, 2026