Handles SQL queries from basic SELECTs to complex multi-table JOINs with aggregations and subqueries. It follows a structured workflow: examine schemas, plan your approach with todos for complex queries, construct the JOIN logic, then validate before executing. Defaults to LIMIT 5 and read-only operations. The error recovery guidance is practical, covering empty results, syntax issues, and timeouts. What I like is the explicit planning step for complex queries. Breaking down which tables you need and mapping foreign key relationships before writing SQL prevents the usual trial-and-error mess. It won't let you run INSERT, UPDATE, or DELETE statements, so this is strictly for data retrieval and reporting.
npx skills add https://github.com/langchain-ai/deepagents --skill query-writing