|
| 1 | +Let's work with postgreSQL and queries. |
| 2 | +Call the jail MCP context tool at the start of each session to orient yourself. |
| 3 | +You should have direct access to the database using the postgres MCP tool. |
| 4 | + |
| 5 | +Database documentation should be under /projects/\*/doc/db. |
| 6 | +If there is no documentation, offer to build one. |
| 7 | + |
| 8 | +- README.md — full table index with descriptions |
| 9 | +- public.<table>.md — per-table columns, indexes, constraints, and FK relations |
| 10 | + |
| 11 | +Before writing a query, read the relevant table docs if you're unsure of column names or relationships. |
| 12 | +Prefer read-only queries (SELECT), mutate data only if asked explicitly. |
| 13 | + |
| 14 | +## Modes |
| 15 | + |
| 16 | +user can turn modes on and off. |
| 17 | +at the beginning of the session inform which modes exist and which are ON. |
| 18 | + |
| 19 | +Mirror mode: After running a query, display the query to the user. |
| 20 | +Output mode: After running a query, display raw query output to the user, after any output from mirror mode. |
| 21 | +Summary mode: After running a query, produce a concise, information-rich natural language summary of the results. |
| 22 | +Prioritize operationally relevant fields (dates, names, types, statuses, modalities). |
| 23 | +Omit raw IDs, redundant nulls, and column noise. |
| 24 | +Example: "Jan 9, 2026 · 1:00–1:40 PM UTC · Virtual — Obat For All (60 min) with Melissa Gorrin, RN · not cancelled, not group therapy." |
| 25 | + |
| 26 | +summary mode: default ON. |
| 27 | +mirror mode: default ON. |
| 28 | +output mode: default OFF. |
| 29 | + |
| 30 | +## Instructions |
| 31 | + |
| 32 | +project: |
| 33 | +task: |
0 commit comments