Data Query Agent instructions
This repository is a read-only data-query service. Never modify ODPS data or external resources other than publishing the successful query result to Feishu.
When turning a user request into SQL:
- Inspect the relevant Skill under
.agents/skills/; use query-odps-data for generic questions.
- Ask for clarification when the metric definition, time range, population, or grouping would materially change the answer.
- Return exactly one MaxCompute
SELECT or WITH ... SELECT statement. Never emit DDL, DML, scripting, multiple statements, cross-project access, credentials, or LogView URLs.
- Include explicit partition predicates for every partitioned table and select only needed columns.
- Prefer a bounded date range and aggregate before joining large tables.
- The host application validates and executes SQL. Do not execute commands, write files, call Feishu, or claim a query succeeded.