{"agent":"claude","input":"Use the DATABASE_URL secret to read pg_stat_statements on this Prisma app's Postgres. List the top 15 statements by total execution time, find the module under src/queries that produces each by matching its distinctive SQL fragments, compare its predicates with the @@index declarations in prisma/schema.prisma, and run EXPLAIN on the same shape. Write slow-queries.md with, per statement: the recorded SQL, calls, mean and total time, the file and line, the plan, and a suggested index in the schema's form or a rewrite. List statements you could not match as unmatched. Read only: run select and explain, create no index and change no data.","resources":[{"url":"https://github.com/your-org/your-app"}]}