SQL Master Data Agent
Paste the following prompt into your AI chat to install this skill:
Please install @user_64e5b706/sql-master according to https://skillhub.cn/install/skillhub.md.
About this skill
Problems to Solve
SQL work often fails less on syntax than on missing context: mapping business logic to queries, slow-query diagnosis without EXPLAIN, index design, dialect differences, NULL / pagination / type conversion, and the gap between data extraction, charts, and reports.
How It Works
- Intent routing: first classify the task as generation, optimization, design, diagnosis, explanation, or visualization, then request missing
schema, data volume, and performance targets. - Production-grade SQL: outputs consider database version and dialect, explicit
NULLhandling, avoidingSELECT *, functions on indexedWHERE/JOINcolumns, string concatenation, and large-offsetOFFSETpagination. - Diagnosis and optimization: use execution plans, slow-query analysis, indexing, warehouse layering, and
Hiveskew scenarios; include minimalDDLandINSERTfixtures when reproducibility matters. - Data pipeline: when Python dependencies are available, connect to SQLite, MySQL, PostgreSQL, SQL Server, ClickHouse, or Oracle; read CSV, Excel, JSON, or Parquet files; then move into querying, transformation, charts, and HTML reports.
Boundaries
Without Python dependencies, the skill is limited to text-based SQL generation, optimization advice, and conceptual explanation. Database connectivity, query execution, file ingestion, and report generation require a dependency environment. Complex queries still need real EXPLAIN output and test-data validation.
Use Cases
- Turn natural-language business metrics into reviewable multi-dialect SQL.
- Diagnose slow-query logs or EXPLAIN output for indexing, pagination, and type-cast issues.
- Pull data from CSV, Parquet, or MySQL, then query, transform, chart, and export an HTML report.
- Design tables, indexes, and warehouse layers with minimal DDL and INSERT fixtures.
Best For
- Data engineers maintaining MySQL/PG reports and debugging slow queries
- Analysts querying local CSV, Excel, or Parquet files to build charts
- Data platform engineers designing Hive or warehouse layering and index strategy
- Application developers reviewing SQL security, dialect differences, and pagination patterns
Related Skills
A universal base component that automatically launches the Edge browser and connects the BrowserSkill extension, ensuring readiness for web scraping and browser automation tasks.
A fully local-run WeChat chat analysis tool with MBTI personality inference, sentiment analysis, risk detection, relationship health assessment, and conversation prediction, emphasizing privacy.
Fetches the top 20 A-share stocks by trading volume from Wencai, including ranking, price changes, and sectors, with sector analysis.
Automatically fetches A-share closing indices, sector moves, market sentiment, commodities, and global events to generate a daily recap.