ck:databases

Manage MongoDB and PostgreSQL databases with schema design, querying, and performance tuning.

1|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/TNHoang2708/Gym_Ver2 --skill ck-databases-tnhoang2708
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:databases
Source: https://github.com/TNHoang2708/Gym_Ver2/tree/main/.claude/skills/databases
Command: npx skills add https://github.com/TNHoang2708/Gym_Ver2 --skill ck-databases-tnhoang2708

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymongo, psycopg2, clickhouse, pandas, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive toolkit for efficient database management, addressing schema design, querying, and performance optimization tasks for both SQL and NoSQL databases.

Core Features & Use Cases

  • Schema Design: Offers guidelines for OLTP and OLAP database design.
  • SQL/NoSQL Queries: Supports writing and optimizing SQL and MongoDB query language queries.
  • Performance Optimization: Identifies slow queries and recommends indexes for better performance.
  • Use Case: For a company looking to optimize their data processing pipeline, this Skill can help design efficient database schemas, optimize queries, and manage database performance.

Quick Start

Use the databases skill to analyze slow queries in your PostgreSQL database and optimize them.

Frequently Asked Questions about ck:databases

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

FAQPage Schema
How do I optimize slow PostgreSQL queries and recommend the right indexes?

To optimize slow PostgreSQL queries, you analyze the execution plan to identify bottlenecks and recommend targeted indexes. This approach minimizes full table scans and significantly improves database data retrieval efficiency.

What is the best way to design database schemas for OLTP and OLAP systems?

Designing database schemas for OLTP and OLAP systems involves structuring data based on workload requirements. OLTP schemas prioritize fast transactional processing and normalization, while OLAP schemas optimize complex analytical queries and data aggregation.

How do I build and optimize MongoDB aggregation pipelines for performance?

Building MongoDB aggregation pipelines for performance requires structuring processing stages sequentially to filter and transform documents. Optimization ensures efficient data processing by minimizing intermediate result sets and leveraging database indexes.

Do I need pymongo and psycopg2 to manage SQL and NoSQL databases with this approach?

Yes, you need pymongo and psycopg2 to manage SQL and NoSQL databases with this approach. These dependencies are required to execute database operations, run queries, and facilitate performance tuning for MongoDB and PostgreSQL.

Can I manage database migrations and replication for PostgreSQL and MongoDB?

Yes, you can manage database migrations and replication for PostgreSQL and MongoDB. This ensures efficient data storage and retrieval by keeping distributed databases synchronized and applying controlled schema changes without downtime.

When should I use NoSQL querying instead of SQL for my database management?

You should use NoSQL querying instead of SQL when managing unstructured or rapidly changing data that requires flexible schema design. SQL is preferred for relational data with strict consistency requirements and complex transactional integrity.