agentscope-examples/agents/agentscope-dataagent/src/main/resources/shared/agents/data-agent/skills/sql-analysis/SKILL.md
Answer a quantitative business question by writing a SQL query against the data warehouse, validating it, and presenting the result. Use when the user asks "how many...", "what's the trend of...", "compare X vs Y over...", "what's our top N...", or anything that resolves to a query against tabular data. Produces a small result table plus the underlying query.
npx skillsauth add agentscope-ai/agentscope-java sql-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Repeatable SOP for turning a business question into a verifiable SQL answer.
Restate the question as a metric. In one sentence, write: "<metric> by <grouping> over <time window>, filtered by <filter>". If any of those four (metric / grouping / window / filter) is missing or ambiguous, ask one clarifying question and stop. Do not guess.
Locate the source. Decide where the data lives:
knowledge/ first for any schema notes, data-dictionary entries,
or prior query examples uploaded by the user.data-explorer
sub-agent with the metric definition as the prompt — its job is to
identify the canonical source.Draft the query. Write the SQL in a fenced sql block. Conventions:
WHERE clause — never query the
full history "just in case".SELECT an explicit column list — never SELECT * in an answer.WITH x AS (...)) over nested subqueries for anything beyond
two levels of nesting.-- excludes internal test accounts).Validate before reporting. Run the query and check:
NULLs in the grouping column unless that is the intended cohort.Write the report. Use this exact structure:
## Answer
<one-sentence direct answer with the headline number(s)>
## Result
<small markdown table — at most ~15 rows; for longer results, summarise
and offer to render a chart or attach the full CSV>
## Query
```sql
<the exact query you ran>
schema.table_name (row count, freshness if known)
LIMIT N to "make the output fit" without explaining what got cut.data-explorer.data-explorer.report-writer after you have
the underlying numbers ready.tools
Expert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
documentation
四层技能合成、技能市场、自学习闭环
documentation
Four-layer skill composition, skill marketplaces, the self-learning loop
content-media
Use when the user asks for a summary, TL;DR, or condensed version of any content.