Escape hatch for ad-hoc Postgres queries. Read-only by default. Mutations require the --write flag plus an explicit typed confirmation from Miura. Use only when no existing skill covers the need.
Trigger: /cruzar sql --query "<sql>" when no other skill covers the task.
Architecture: Flow G -- SQL escape
--query "<sql>" -- the SQL query to execute (required).--write -- enable mutation mode (optional, default false).--destructive -- required alongside --write for DROP/TRUNCATE/ALTER (optional).bun run apps/web/scripts/operator/sql.ts --query "SELECT ..." [--write] [--destructive]
--write--destructive--writeCONFIRM--write.--write and --destructive.--write query requires explicit CONFIRM typed on stdin.0 -- success. JSON stdout: { success: true, rows_returned, write_mode, query_preview }.1 -- error (rejected query, failed execution, Miura abort).2 -- invalid flags.--write: exits 1 with clear message naming the keyword.--destructive: exits 1 with clear message.CONFIRM: exits 1 with "aborted".