ck:databases

Translate business requirements into scalable MongoDB and PostgreSQL schema designs.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/DatTran26/KienTruThiHanh --skill ck-databases-dattran26
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:databases
Source: https://github.com/DatTran26/KienTruThiHanh/tree/main/.agents/skills/databases
Command: npx skills add https://github.com/DatTran26/KienTruThiHanh --skill ck-databases-dattran26

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Design robust, scalable databases across MongoDB (NoSQL) and PostgreSQL (SQL) that align with both transactional (OLTP) and analytical (OLAP) workloads, enabling correct data modeling, efficient queries, and smooth migrations.

Core Features & Use Cases

  • Guidance on OLTP/OLAP schema design, including normalization, fact/dimension modeling, and appropriate use of NoSQL vs SQL stores.
  • Instructional patterns for writing efficient queries, indexing strategies, and migration planning across MongoDB and PostgreSQL.
  • Real-world scenarios and best practices for schema evolution, data integrity, and performance optimization across transactional and analytical workloads.

Quick Start

Describe your current data model and workloads so I can generate a concrete MongoDB and PostgreSQL schema design.

Frequently Asked Questions about ck:databases

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

FAQPage Schema
How do I design a scalable database schema for both MongoDB and PostgreSQL?

To design a scalable database schema, you translate business requirements into entities, relationships, and access patterns. This generates an implementation-ready outline with sample DDL, constraints, and indexing strategies for MongoDB and PostgreSQL.

What's the best way to model entities and relationships for OLTP and OLAP workloads?

Modeling entities for OLTP and OLAP workloads requires analyzing access patterns to apply normalization or fact/dimension modeling. This delivers tailored schema designs, constraints, and performance considerations for your specific database stack.

How do I create indexing strategies and migration plans across SQL and NoSQL databases?

Creating indexing strategies and migration plans across SQL and NoSQL databases involves analyzing query patterns and schema evolution. This provides instructional patterns for writing efficient queries and ensuring smooth transitions between PostgreSQL and MongoDB.

Does this database design approach support both transactional and analytical use cases?

Yes, this approach supports both transactional and analytical use cases by providing explicit OLTP and OLAP guidance. It delivers schema modeling and performance optimization tailored to handle distinct workloads in MongoDB and PostgreSQL.

Can I generate sample DDL and constraints for PostgreSQL from business requirements?

Yes, you can generate sample DDL and constraints for PostgreSQL by providing your business requirements and current data model. It returns an implementation-ready schema outline with necessary constraints and indexing strategies.

When should I choose MongoDB vs PostgreSQL for my schema design?

Choosing MongoDB vs PostgreSQL depends on analyzing your specific access patterns, data integrity needs, and workload types. This schema design process evaluates NoSQL versus SQL stores to recommend the appropriate target stack for your use case.