sql_query

Generate and execute read-only SQL queries to extract insights from data sources.

839|277|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/matevip/mateclaw --skill sql-query-matevip
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql_query
Source: https://github.com/matevip/mateclaw/tree/main/mateclaw-server/src/main/resources/skills/sql_query
Command: npx skills add https://github.com/matevip/mateclaw --skill sql-query-matevip

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires datasourceTool, sqlQueryTool.

What problem does it solve?

Automatically generate and execute read-only SQL queries against connected data sources to extract insights without risking data integrity.

Core Features & Use Cases

  • Discover data sources, inspect tables and columns, then build targeted SELECT queries.
  • Execute and fetch results with built-in safeguards (read-only, defaults, and result limits).
  • Use cases include ad-hoc data checks, reporting on table metrics, and quick data profiling across sources.

Quick Start

Ask your AI to generate a read-only SQL query to summarize user counts from the active data source.

Frequently Asked Questions about sql_query

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate and execute read-only SQL queries for ad-hoc data profiling?

To generate read-only SQL queries for data profiling, you need a tool that discovers data sources, lists tables, and describes columns to build targeted SELECT queries. This approach executes queries with built-in safeguards like read-only access and result limits to extract insights safely.

Can I inspect database tables and columns before running a SQL query?

Yes, you can inspect database tables and columns before running a SQL query by using a data discovery process. This mechanism lists available tables and describes their columns, allowing you to build targeted SELECT queries for accurate data extraction and quick profiling.

What is the best way to perform quick data checks without risking data integrity?

The best way to perform quick data checks without risking data integrity is to execute read-only SQL queries against your data sources. This method enforces read-only access, applies defaults, and limits results to ensure your data remains completely safe during ad-hoc reporting.

Does this SQL query approach work for reporting table metrics across multiple data sources?

Yes, this SQL query approach works for reporting table metrics across multiple data sources. It discovers connected sources, inspects their schemas, and formats the results, allowing you to summarize metrics like user counts and perform quick profiling seamlessly.

What limitations exist when running read-only SQL queries for data analysis?

Limitations of running read-only SQL queries for data analysis include the strict enforcement of read-only access, meaning you cannot modify or write data. Additionally, built-in safeguards apply default settings and result limits to prevent excessive data extraction during profiling.

Do I need a datasource tool to extract insights with read-only SQL?

Yes, you need a datasource tool to extract insights with read-only SQL. The query generation process depends on discovering connected data sources first, then inspecting tables and columns to safely build and execute targeted SELECT statements for your analysis.