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.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
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
- Define query goals, constraints, and expected outputs.
- Inspect schema, statistics, and access paths.
- Optimize queries and validate with EXPLAIN.
- 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.
Độ 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
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.