railway-postgres-crud
Installation
SKILL.md
Railway PostgreSQL CRUD
Safely look up, insert, update, and delete entities in a Railway-hosted PostgreSQL database.
No psql required — uses the project's own node_modules/pg.
This skill is project-agnostic. It discovers service names, connection
strings, and schema structure at runtime from the linked Railway project and
the local Prisma schema (or information_schema if Prisma is not used).
Safety rules
- Staging is always the default. Never target production unless the user explicitly says "production".
- Production requires confirmation. State the action and its effect, then ask the user before executing any
INSERT,UPDATE, orDELETEagainst production. - Look up before mutating. Always run a
SELECTfirst and show the user the affected rows before any write operation. - Verify after mutating. Run a follow-up
SELECTafter every write to confirm the expected outcome. - Protect system data in production. Identify seed/system tables by reading the seed files and never delete from them in production.