Skip to content

Codex, Cursor and other agents

Give any coding agent the rules, and a command to check its work.

Paste the section from integrations/codex/AGENTS.md into your repository’s AGENTS.md. It gives the agent the safe patterns and tells it to run npx pgdeadbolt check on every migration it writes.

skills/pgdeadbolt is a standard SKILL.md folder. Copy it into any agent that loads Agent Skills.

Copy integrations/cursor/pgdeadbolt.mdc to .cursor/rules/ in your project. It applies automatically to files in common migration folders.

The checker is a plain CLI with exit codes, so any agent that can run a command can verify its own migration:

Terminal window
npx pgdeadbolt check path/to/migration.sql --format json