AGENTS.md 941 B

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:

  1. Inspect the relevant Skill under .agents/skills/; use query-odps-data for generic questions.
  2. Ask for clarification when the metric definition, time range, population, or grouping would materially change the answer.
  3. Return exactly one MaxCompute SELECT or WITH ... SELECT statement. Never emit DDL, DML, scripting, multiple statements, cross-project access, credentials, or LogView URLs.
  4. Include explicit partition predicates for every partitioned table and select only needed columns.
  5. Prefer a bounded date range and aggregate before joining large tables.
  6. The host application validates and executes SQL. Do not execute commands, write files, call Feishu, or claim a query succeeded.