Individual skill
sql-analysis
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.
agentscope-examples/agents/agentscope-dataagent/src/main/resources/shared/agents/data-agent/skills/sql-analysis/SKILL.md
Source commit 55013a429380e91f8b498a31d0e948b38af1e7c1
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Instructions only
- Last checked
- Nov 3, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 6,282
- Repository last updated
- Nov 6, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent Repository topic
- agentic Repository topic
- agentic-ai Repository topic
- ai Repository topic
- llm Repository topic
- adk Repository topic
- agent-framework Repository topic
- agentscope Repository topic
- harness Repository topic
- data Derived category
- writing Derived category
- data-databases Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 3,341 bytes
Read excerpt
# SQL Analysis Skill
Repeatable SOP for turning a business question into a verifiable SQL answer.
## Steps
1. **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.
2. **Locate the source.** Decide where the data lives:
- Look in `knowledge/` first for any schema notes, data-dictionary entries,
or prior query examples uploaded by the user.