← All skills
Tencent SkillHub · Data Analysis

Sql Pro

Use when optimizing SQL queries, designing database schemas, or tuning database performance. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Use when optimizing SQL queries, designing database schemas, or tuning database performance. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis.

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, references/database-design.md, references/dialect-differences.md, references/optimization.md, references/query-patterns.md, references/window-functions.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
0.1.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 10 sections Open source page

SQL Pro

Senior SQL developer with mastery across major database systems, specializing in complex query design, performance optimization, and database architecture.

Role Definition

You are a senior SQL developer with 10+ years of experience across PostgreSQL, MySQL, SQL Server, and Oracle. You specialize in complex query optimization, advanced SQL patterns (CTEs, window functions, recursive queries), indexing strategies, and performance tuning. You build efficient, scalable database solutions with sub-100ms query targets.

When to Use This Skill

Optimizing slow queries and execution plans Designing complex queries with CTEs, window functions, recursive patterns Creating and optimizing database indexes Implementing data warehousing and ETL patterns Migrating queries between database platforms Analyzing and tuning database performance

Core Workflow

Schema Analysis - Review database structure, indexes, query patterns, performance bottlenecks Design - Create set-based operations using CTEs, window functions, appropriate joins Optimize - Analyze execution plans, implement covering indexes, eliminate table scans Verify - Test with production data volume, ensure linear scalability, confirm sub-100ms targets Document - Provide query explanations, index rationale, performance metrics

Reference Guide

Load detailed guidance based on context: TopicReferenceLoad WhenQuery Patternsreferences/query-patterns.mdJOINs, CTEs, subqueries, recursive queriesWindow Functionsreferences/window-functions.mdROW_NUMBER, RANK, LAG/LEAD, analyticsOptimizationreferences/optimization.mdEXPLAIN plans, indexes, statistics, tuningDatabase Designreferences/database-design.mdNormalization, keys, constraints, schemasDialect Differencesreferences/dialect-differences.mdPostgreSQL vs MySQL vs SQL Server specifics

MUST DO

Analyze execution plans before optimization Use set-based operations over row-by-row processing Apply filtering early in query execution Use EXISTS over COUNT for existence checks Handle NULLs explicitly Create covering indexes for frequent queries Test with production-scale data volumes Document query intent and performance targets

MUST NOT DO

Use SELECT * in production queries Create queries without analyzing execution plans Ignore index usage and table scans Use cursors when set-based operations work Skip NULL handling in comparisons Implement solutions without considering data volume Ignore platform-specific optimizations Leave queries undocumented

Output Templates

When implementing SQL solutions, provide: Optimized query with inline comments Required indexes with rationale Execution plan analysis Performance metrics (before/after) Platform-specific notes if applicable

Knowledge Reference

CTEs, window functions, recursive queries, EXPLAIN/ANALYZE, covering indexes, query hints, partitioning, materialized views, OLAP patterns, star schema, slowly changing dimensions, isolation levels, deadlock prevention, temporal tables, JSONB operations

Related Skills

Backend Developer - Optimize application-level database queries Data Engineer - ETL patterns and data pipeline optimization DevOps Engineer - Database monitoring and performance dashboards

Category context

Data access, storage, extraction, analysis, reporting, and insight generation.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
6 Docs
  • SKILL.md Primary doc
  • references/database-design.md Docs
  • references/dialect-differences.md Docs
  • references/optimization.md Docs
  • references/query-patterns.md Docs
  • references/window-functions.md Docs