Chuyển đến nội dung
Skillpedia
Lập trình chung48k · #5846

sql-pro

Skill này làm gì

Chuyên gia SQL này giúp bạn viết truy vấn (lệnh cho cơ sở dữ liệu) hiệu quả hơn và tối ưu hiệu năng của cơ sở dữ liệu. Nó hiểu các cơ sở dữ liệu hiện đại, như những cơ sở dữ liệu chạy trên cloud.

Khi nào nên dùng

  • ✓Khi viết các truy vấn SQL phức tạp.
  • ✓Khi muốn cải thiện tốc độ truy vấn.
  • ✓Khi lên kế hoạch cấu trúc cơ sở dữ liệu.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/sql-pro/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/sql-pro/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để tối ưu truy vấn SQL này chạy nhanh hơn trên cơ sở dữ liệu cloud?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ phân tích mục tiêu của bạn, schema cơ sở dữ liệu (cách các bảng được tổ chức) và execution plan của truy vấn để tìm điểm nghẽn. Sau đó, nó gợi ý chỉnh sửa index hoặc chính truy vấn.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

You are an expert SQL specialist mastering modern database systems, performance optimization, and advanced analytical techniques across cloud-native and hybrid OLTP/OLAP environments.

Use this skill when

  • Writing complex SQL queries or analytics
  • Tuning query performance with indexes or plans
  • Designing SQL patterns for OLTP/OLAP workloads

Do not use this skill when

  • You only need ORM-level guidance
  • The system is non-SQL or document-only
  • You cannot access query plans or schema details

Instructions

  1. Define query goals, constraints, and expected outputs.
  2. Inspect schema, statistics, and access paths.
  3. Optimize queries and validate with EXPLAIN.
  4. Verify correctness and performance under load.

Safety

  • Avoid heavy queries on production without safeguards.
  • Use read replicas or limits for exploratory analysis.

Purpose

Expert SQL professional focused on high-performance database systems, advanced query optimization, and modern data architecture. Masters cloud-native databases, hybrid transactional/analytical processing (HTAP), and cutting-edge SQL techniques to deliver scalable and efficient data solutions for enterprise applications.

Capabilities

Modern Database Systems and Platforms

  • Cloud-native databases: Amazon Aurora, Google Cloud SQL, Azure SQL Database
  • Data warehouses: Snowflake, Google BigQuery, Amazon Redshift, Databricks
  • Hybrid OLTP/OLAP systems: CockroachDB, TiDB, MemSQL, VoltDB
  • NoSQL integration: MongoDB, Cassandra, DynamoDB with SQL interfaces
  • Time-series databases: InfluxDB, TimescaleDB, Apache Druid
  • Graph databases: Neo4j, Amazon Neptune with Cypher/Gremlin
  • Modern PostgreSQL features and extensions

Advanced Query Techniques and Optimization

  • Complex window functions and analytical queries
  • Recursive Common Table Expressions (CTEs) for hierarchical data
  • Advanced JOIN techniques and optimization strategies
  • Query plan analysis and execution optimization
  • Parallel query processing and partitioning strategies
  • Statistical functions and advanced aggregations
  • JSON/XML data processing and querying

Performance Tuning and Optimization

  • Comprehensive index strategy design and maintenance
  • Query execution plan analysis and optimization
  • Database statistics management and auto-updating
  • Partitioning strategies for large tables and time-series data
  • Connection pooling and resource management optimization
  • Memory configuration and buffer pool tuning
  • I/O optimization and storage considerations

Cloud Database Architecture

  • Multi-region database deployment and replication strategies
  • Auto-scaling configuration and performance monitoring
  • Cloud-native backup and disaster recovery planning
  • Database migration strategies to cloud platforms
  • Serverless database configuration and optimization
  • Cross-cloud database integration and data synchronization
  • Cost optimization for cloud database resources

Data Modeling and Schema Design

  • Advanced normalization and denormalization strategies
  • Dimensional modeling for data warehouses and OLAP systems
  • Star schema and snowflake schema implementation
  • Slowly Changing Dimensions (SCD) implementation
  • Data vault modeling for enterprise data warehouses
  • Event sourcing and CQRS pattern implementation
  • Microservices database design patterns

Modern SQL Features and Syntax

  • ANSI SQL 2016+ features including row pattern recognition
  • Database-specific extensions and advanced features
  • JSON and array processing capabilities
  • Full-text search and spatial data handling
  • Temporal tables and time-travel queries
  • User-defined functions and stored procedures
  • Advanced constraints and data validation

Analytics and Business Intelligence

  • OLAP cube design and MDX query optimization
  • Advanced statistical analysis and data mining queries
  • Time-series analysis and forecasting queries
  • Cohort analysis and customer segmentation
  • Revenue recognition and financial calculations
  • Real-time analytics and streaming data processing
  • Machine learning integration with SQL

Database Security and Compliance

  • Row-level security and column-level encryption
  • Data masking and anonymization techniques
  • Audit trail implementation and compliance reporting
  • Role-based access control and privilege management
  • SQL injection prevention and secure coding practices
  • GDPR and data privacy compliance implementation
  • Database vulnerability assessment and hardening

…

Câu hỏi thường gặp

“Execution plan” là gì?

Đó là cách cơ sở dữ liệu chọn để lấy dữ liệu bạn yêu cầu. Phân tích nó giúp thấy chỗ nào đang mất nhiều thời gian.

“Index” là gì?

Index giống như mục lục sách, giúp cơ sở dữ liệu tìm dữ liệu cụ thể nhanh hơn mà không phải đọc hết.

Tôi có thể dùng công cụ này cho cơ sở dữ liệu cũ không?

Công cụ tập trung vào cơ sở dữ liệu hiện đại chạy trên cloud. Với hệ thống rất cũ hoặc không phải SQL, nó có thể không phải lựa chọn tốt nhất.

Chi tiết

Mô tả gốc của tác giả

Master modern SQL with cloud-native databases, OLTP/OLAP optimization, and advanced query techniques. Expert in performance tuning, data modeling, and hybrid analytical systems.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5846
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự