[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EKV0BVFPAJER86JCKED3TY":3,"skill-same:01M6EKV0BVFPAJER86JCKED3TY":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6EKV0BVFPAJER86JCKED3TY","database-schema-designer",null,"Use this skill when designing database schemas for relational (SQL) or document (NoSQL) databases. Provides normalization guidelines, indexing strategies, migration patterns, and performance optimization techniques. Ensures scalable, maintainable, and performant data models.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fariegoldkin\u002Fdatabase-schema-designer\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"database schema","database","database schema designer","designer","schema","schema-design","design","Scalable","indexing","strategies","patterns","Designing Database Schemas","databases","normalization","nosql","data","Optimization","sql","ai agent","performance","2026-11-10 10:12:30",false,"---\nname: database-schema-designer\ndescription: Use this skill when designing database schemas for relational (SQL) or document (NoSQL) databases. Provides normalization guidelines, indexing strategies, migration patterns, and performance optimization techniques. Ensures scalable, maintainable, and performant data models.\nversion: 1.0.0\nauthor: AI Agent Hub\ntags: [database, schema-design, sql, nosql, performance, migrations]\n---\n\n# Database Schema Designer\n\n## Overview\n\nThis skill provides comprehensive guidance for designing robust, scalable database schemas for both SQL and NoSQL databases. Whether building from scratch or evolving existing schemas, this framework ensures data integrity, performance, and maintainability.\n\n**When to use this skill:**\n- Designing new database schemas\n- Refactoring or migrating existing schemas\n- Optimizing database performance\n- Choosing between SQL and NoSQL approaches\n- Creating database migrations\n- Establishing indexing strategies\n- Modeling complex relationships\n- Planning data archival and partitioning\n\n## Database Design Philosophy\n\n### Core Principles\n\n**1. Model the Domain, Not the UI**\n- Schema reflects business entities and relationships\n- Don't let UI requirements drive data structure\n- Separate presentation concerns from data model\n\n**2. Optimize for Reads or Writes (Not Both)**\n- OLTP (transactional): Normalized, optimized for writes\n- OLAP (analytical): Denormalized, optimized for reads\n- Choose based on access patterns\n\n**3. Plan for Scale From Day One**\n- Indexing strategy\n- Partitioning approach\n- Caching layer\n- Read replicas\n\n**4. Data Integrity Over Performance**\n- Use constraints, foreign keys, validation\n- Performance issues can be optimized later\n- Data corruption is costly to fix\n\n---\n\n## SQL Database Design\n\n### Normalization\n\nDatabase normalization reduces redundancy and ensures data integrity.\n\n#### 1st Normal Form (1NF)\n**Rule**: Each column contains atomic (indivisible) values, no repeating groups.\n\n```sql\n-- ❌ Violates 1NF (multiple values in one column)\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT,\n  product_ids VARCHAR(255)  -- '101,102,103' (bad!)\n);\n\n-- ✅ Follows 1NF\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT\n);\n\nCREATE TABLE order_items (\n  id INT PRIMARY KEY,\n  order_id INT,\n  product_id INT,\n  FOREIGN KEY (order_id) REFERENCES orders(id)\n);\n```\n\n#### 2nd Normal Form (2NF)\n**Rule**: Must be in 1NF + all non-key columns depend on the entire primary key.\n\n```sql\n-- ❌ Violates 2NF (customer_name depends only on customer_id, not full key)\nCREATE TABLE order_items (\n  order_id INT,\n  product_id INT,\n  customer_id INT,\n  customer_name VARCHAR(100),  -- Depends on customer_id only\n  quantity INT,\n  PRIMARY KEY (order_id, product_id)\n);\n\n-- ✅ Follows 2NF (customer data in separate table)\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT,\n  FOREIGN KEY (customer_id) REFERENCES customers(id)\n);\n\nCREATE TABLE order_items (\n  order_id INT,\n  product_id INT,\n  quantity INT,\n  PRIMARY KEY (order_id, product_id)\n);\n\nCREATE TABLE customers (\n  id INT PRIMARY KEY,\n  name VARCHAR(100)\n);\n```\n\n#### 3rd Normal Form (3NF)\n**Rule**: Must be in 2NF + no transitive dependencies (non-key columns depend only on primary key).\n\n```sql\n-- ❌ Violates 3NF (country depends on postal_code, not on customer_id)\nCREATE TABLE customers (\n  id INT PRIMARY KEY,\n  name VARCHAR(100),\n  postal_code VARCHAR(10),\n  country VARCHAR(50)  -- Depends on postal_code, not id\n);\n\n-- ✅ Follows 3NF\nCREATE TABLE customers (\n  id INT PRIMARY KEY,\n  name VARCHAR(100),\n  postal_code VARCHAR(10),\n  FOREIGN KEY (postal_code) REFERENCES postal_codes(code)\n);\n\nCREATE TABLE postal_codes (\n  code VARCHAR(10) PRIMARY KEY,\n  country VARCHAR(50)\n);\n```\n\n#### Denormalization (When to Break Rules)\n\nSometimes denormalization improves performance for read-heavy applications.\n\n```sql\n-- Denormalized for performance (caching derived data)\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT,\n  total_amount DECIMAL(10, 2),  -- Calculated from order_items\n  item_count INT,               -- Calculated from order_items\n  created_at TIMESTAMP\n);\n\n-- Trigger or application code keeps denormalized data in sync\n```\n\n**When to denormalize:**\n- Read-heavy applications (reporting, analytics)\n- Frequently joined tables causing performance issues\n- Pre-calculated aggregates (counts, sums, averages)\n- Caching derived data to avoid complex joins\n\n---\n\n### Data Types\n\nChoose appropriate data types for efficiency and accuracy.\n\n#### String Types\n\n```sql\n-- Fixed-length (use for predictable lengths)\nCHAR(10)      -- ISO date: '2025-10-31'\nCHAR(2)       -- State code: 'CA'\n\n-- Variable-length (use for variable lengths)\nVARCHAR(255)  -- Email, name, short text\nTEXT          -- Long text (articles, descriptions)\n\n-- ✅ Good: Appropriate sizes\nemail VARCHAR(255)\nphone_number VARCHAR(20)\npostal_code VARCHAR(10)\n\n-- ❌ Bad: Wasteful or too small\nemail VARCHAR(500)       -- Too large\ndescription VARCHAR(50)  -- Too small for long text\n```\n\n#### Numeric Types\n\n```sql\n-- Integer types\nTINYINT    -- -128 to 127 (age, status codes)\nSMALLINT   -- -32,768 to 32,767 (quantities)\nINT        -- -2.1B to 2.1B (IDs, counts)\nBIGINT     -- Large numbers (timestamps, large IDs)\n\n-- Decimal types\nDECIMAL(10, 2)  -- Exact precision (money: $99,999,999.99)\nFLOAT           -- Approximate (scientific calculations)\nDOUBLE          -- Higher precision approximations\n\n-- ✅ Use DECIMAL for money\nCREATE TABLE products (\n  id INT PRIMARY KEY,\n  price DECIMAL(10, 2)  -- Exact precision\n);\n\n-- ❌ Don't use FLOAT for money\nprice FLOAT  -- Rounding errors!\n```\n\n#### Date\u002FTime Types\n\n```sql\nDATE       -- Date only: 2025-10-31\nTIME       -- Time only: 14:30:00\nDATETIME   -- Date + time: 2025-10-31 14:30:00\nTIMESTAMP  -- Unix timestamp (auto-converts timezone)\n\n-- ✅ Always store in UTC\ncreated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\nupdated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n```\n\n#### Boolean\n\n```sql\n-- PostgreSQL\nis_active BOOLEAN DEFAULT TRUE\n\n-- MySQL\nis_active TINYINT(1) DEFAULT 1\n```\n\n---\n\n### Indexing Strategies\n\nIndexes speed up reads but slow down writes. Use strategically.\n\n#### When to Create Indexes\n\n```sql\n-- ✅ Index foreign keys\nCREATE INDEX idx_orders_customer_id ON orders(customer_id);\n\n-- ✅ Index frequently queried columns\nCREATE INDEX idx_users_email ON users(email);\n\n-- ✅ Index columns used in WHERE, ORDER BY, GROUP BY\nCREATE INDEX idx_orders_created_at ON orders(created_at);\n\n-- ✅ Composite index for multi-column queries\nCREATE INDEX idx_orders_customer_status ON orders(customer_id, status);\n```\n\n#### Index Types\n\n**B-Tree Index (Default)**\n```sql\n-- Best for equality and range queries\nCREATE INDEX idx_products_price ON products(price);\n\n-- Queries that benefit:\nSELECT * FROM products WHERE price > 100;\nSELECT * FROM products WHERE price BETWEEN 50 AND 150;\n```\n\n**Hash Index**\n```sql\n-- Best for exact matches only (not ranges)\nCREATE INDEX idx_users_email USING HASH ON users(email);\n\n-- Queries that benefit:\nSELECT * FROM users WHERE email = 'user@example.com';\n```\n\n**Full-Text Index**\n```sql\n-- Best for text search\nCREATE FULLTEXT INDEX idx_articles_content ON articles(title, content);\n\n-- Queries that benefit:\nSELECT * FROM articles WHERE MATCH(title, content) AGAINST('database design');\n```\n\n**Partial Index (PostgreSQL)**\n```sql\n-- Index only specific rows\nCREATE INDEX idx_active_users ON users(email) WHERE is_active = TRUE;\n```\n\n#### Composite Indexes (Column Order Matters)\n\n```sql\n-- ✅ Good: Index supports both queries\nCREATE INDEX idx_orders_customer_status ON orders(customer_id, status);\n\n-- Query 1: Uses index efficiently\nSELECT * FROM orders WHERE customer_id = 123 AND status = 'pending';\n\n-- Query 2: Uses index (customer_id only)\nSELECT * FROM orders WHERE customer_id = 123;\n\n-- ❌ Query 3: Doesn't use index (status is second column)\nSELECT * FROM orders WHERE status = 'pending';\n```\n\n**Rule of Thumb**: Put most selective column first, or most frequently queried alone.\n\n---\n\n### Constraints\n\nUse constraints to enforce data integrity at the database level.\n\n#### Primary Key\n\n```sql\n-- Auto-incrementing integer\nCREATE TABLE users (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  email VARCHAR(255) UNIQUE NOT NULL\n);\n\n-- UUID (better for distributed systems)\nCREATE TABLE users (\n  id CHAR(36) PRIMARY KEY DEFAULT (UUID()),\n  email VARCHAR(255) UNIQUE NOT NULL\n);\n```\n\n#### Foreign Key\n\n```sql\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT NOT NULL,\n  FOREIGN KEY (customer_id) REFERENCES customers(id)\n    ON DELETE CASCADE      -- Delete orders when customer deleted\n    ON UPDATE CASCADE      -- Update orders when customer ID changes\n);\n\n-- Alternatives:\nON DELETE RESTRICT   -- Prevent deletion if referenced\nON DELETE SET NULL   -- Set to NULL when parent deleted\nON DELETE NO ACTION  -- Same as RESTRICT\n```\n\n#### Unique Constraint\n\n```sql\nCREATE TABLE users (\n  id INT PRIMARY KEY,\n  email VARCHAR(255) UNIQUE NOT NULL,\n  username VARCHAR(50) UNIQUE NOT NULL\n);\n\n-- Composite unique constraint\nCREATE TABLE enrollments (\n  student_id INT,\n  course_id INT,\n  UNIQUE (student_id, course_id)  -- Prevent duplicate enrollments\n);\n```\n\n#### Check Constraint\n\n```sql\nCREATE TABLE products (\n  id INT PRIMARY KEY,\n  price DECIMAL(10, 2) CHECK (price >= 0),\n  stock INT CHECK (stock >= 0),\n  discount_percent INT CHECK (discount_percent BETWEEN 0 AND 100)\n);\n```\n\n#### Not Null Constraint\n\n```sql\nCREATE TABLE users (\n  id INT PRIMARY KEY,\n  email VARCHAR(255) NOT NULL,\n  name VARCHAR(100) NOT NULL,\n  bio TEXT  -- Nullable (optional)\n);\n```\n\n---\n\n### Common Schema Patterns\n\n#### One-to-Many (Orders → Order Items)\n\n```sql\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT NOT NULL,\n  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE TABLE order_items (\n  id INT PRIMARY KEY,\n  order_id INT NOT NULL,\n  product_id INT NOT NULL,\n  quantity INT NOT NULL,\n  price DECIMAL(10, 2) NOT NULL,\n  FOREIGN KEY (order_id) REFERENCES orders(id) ON DELETE CASCADE\n);\n```\n\n#### Many-to-Many (Students ↔ Courses)\n\n```sql\nCREATE TABLE students (\n  id INT PRIMARY KEY,\n  name VARCHAR(100) NOT NULL\n);\n\nCREATE TABLE courses (\n  id INT PRIMARY KEY,\n  title VARCHAR(200) NOT NULL\n);\n\n-- Junction table (also called join table, linking table)\nCREATE TABLE enrollments (\n  student_id INT,\n  course_id INT,\n  enrolled_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n  grade VARCHAR(2),\n  PRIMARY KEY (student_id, course_id),\n  FOREIGN KEY (student_id) REFERENCES students(id) ON DELETE CASCADE,\n  FOREIGN KEY (course_id) REFERENCES courses(id) ON DELETE CASCADE\n);\n```\n\n#### Self-Referencing (Employees → Manager)\n\n```sql\nCREATE TABLE employees (\n  id INT PRIMARY KEY,\n  name VARCHAR(100) NOT NULL,\n  manager_id INT,\n  FOREIGN KEY (manager_id) REFERENCES employees(id)\n);\n```\n\n#### Polymorphic Relationships (Comments on Posts\u002FPhotos)\n\n```sql\n-- Approach 1: Separate foreign keys with CHECK constraint\nCREATE TABLE comments (\n  id INT PRIMARY KEY,\n  content TEXT NOT NULL,\n  post_id INT,\n  photo_id INT,\n  CHECK (\n    (post_id IS NOT NULL AND photo_id IS NULL) OR\n    (post_id IS NULL AND photo_id IS NOT NULL)\n  ),\n  FOREIGN KEY (post_id) REFERENCES posts(id) ON DELETE CASCADE,\n  FOREIGN KEY (photo_id) REFERENCES photos(id) ON DELETE CASCADE\n);\n\n-- Approach 2: commentable_type + commentable_id (Rails-style)\nCREATE TABLE comments (\n  id INT PRIMARY KEY,\n  content TEXT NOT NULL,\n  commentable_type VARCHAR(50) NOT NULL,  -- 'Post' or 'Photo'\n  commentable_id INT NOT NULL\n);\n-- Note: No foreign key constraint possible (less data integrity)\n```\n\n---\n\n## NoSQL Database Design\n\n### Document Databases (MongoDB)\n\n**When to use**:\n- Schema flexibility needed\n- Rapid iteration\n- Hierarchical data\n- Read-heavy workloads\n\n#### Embedding vs Referencing\n\n**Embedding (Denormalization)**\n```json\n{\n  \"_id\": \"order_123\",\n  \"customer\": {\n    \"id\": \"cust_456\",\n    \"name\": \"Jane Smith\",\n    \"email\": \"jane@example.com\"\n  },\n  \"items\": [\n    { \"product_id\": \"prod_789\", \"quantity\": 2, \"price\": 29.99 },\n    { \"product_id\": \"prod_101\", \"quantity\": 1, \"price\": 49.99 }\n  ],\n  \"total\": 109.97,\n  \"created_at\": \"2025-10-31T10:30:00Z\"\n}\n```\n\n**When to embed:**\n- Data accessed together frequently\n- 1:few relationships (few items)\n- Child documents don't need independent existence\n\n**Referencing (Normalization)**\n```json\n{\n  \"_id\": \"order_123\",\n  \"customer_id\": \"cust_456\",\n  \"item_ids\": [\"item_1\", \"item_2\"],\n  \"total\": 109.97,\n  \"created_at\": \"2025-10-31T10:30:00Z\"\n}\n```\n\n**When to reference:**\n- Data accessed independently\n- 1:many relationships (many items)\n- Large documents (approaching 16MB limit)\n- Frequently updated data\n\n#### Indexing in MongoDB\n\n```javascript\n\u002F\u002F Create index\ndb.users.createIndex({ email: 1 }, { unique: true });\n\n\u002F\u002F Composite index\ndb.orders.createIndex({ customer_id: 1, created_at: -1 });\n\n\u002F\u002F Text index for search\ndb.articles.createIndex({ title: \"text\", content: \"text\" });\n\n\u002F\u002F Geospatial index\ndb.stores.createIndex({ location: \"2dsphere\" });\n```\n\n---\n\n## Database Migrations\n\n### Migration Best Practices\n\n**1. Always Reversible**\n```sql\n-- Up migration\nALTER TABLE users ADD COLUMN phone VARCHAR(20);\n\n-- Down migration\nALTER TABLE users DROP COLUMN phone;\n```\n\n**2. Backward Compatible**\n```sql\n-- ✅ Good: Add nullable column\nALTER TABLE users ADD COLUMN middle_name VARCHAR(50);\n\n-- ❌ Bad: Add required column (breaks existing code)\nALTER TABLE users ADD COLUMN middle_name VARCHAR(50) NOT NULL;\n\n-- ✅ Better: Add nullable, then populate, then make required\n-- Migration 1: Add column\nALTER TABLE users ADD COLUMN middle_name VARCHAR(50);\n\n-- Migration 2: Populate with default\nUPDATE users SET middle_name = '' WHERE middle_name IS NULL;\n\n-- Migration 3: Make required\nALTER TABLE users MODIFY COLUMN middle_name VARCHAR(50) NOT NULL;\n```\n\n**3. Data Migrations Separate from Schema Changes**\n```sql\n-- Migration 1: Schema change\nALTER TABLE orders ADD COLUMN status VARCHAR(20) DEFAULT 'pending';\n\n-- Migration 2: Data migration\nUPDATE orders SET status = 'completed' WHERE completed_at IS NOT NULL;\n```\n\n**4. Test Migrations on Production Copy**\n- Test on staging with production data snapshot\n- Measure migration duration\n- Plan for downtime (if needed)\n\n---\n\n### Zero-Downtime Migrations\n\n**Adding a Column:**\n```sql\n-- Step 1: Add nullable column\nALTER TABLE users ADD COLUMN phone VARCHAR(20);\n\n-- Step 2: Deploy code that writes to new column\n-- (Application now writes to both old and new column)\n\n-- Step 3: Backfill existing rows\nUPDATE users SET phone = old_phone WHERE phone IS NULL;\n\n-- Step 4: Make column required (if needed)\nALTER TABLE users MODIFY COLUMN phone VARCHAR(20) NOT NULL;\n```\n\n**Renaming a Column:**\n```sql\n-- Step 1: Add new column\nALTER TABLE users ADD COLUMN email_address VARCHAR(255);\n\n-- Step 2: Copy data\nUPDATE users SET email_address = email;\n\n-- Step 3: Deploy code that reads from new column\n\n-- Step 4: Deploy code that writes to new column\n\n-- Step 5: Drop old column\nALTER TABLE users DROP COLUMN email;\n```\n\n---\n\n## Performance Optimization\n\n### Query Optimization\n\n**Use EXPLAIN to analyze queries:**\n```sql\nEXPLAIN SELECT * FROM orders WHERE customer_id = 123 AND status = 'pending';\n```\n\n**Look for:**\n- **Type**: ALL (table scan - bad), index, ref, eq_ref\n- **Possible keys**: Indexes available\n- **Key**: Index actually used\n- **Rows**: Estimated rows scanned\n\n**Optimization techniques:**\n- Add indexes on WHERE, ORDER BY, GROUP BY columns\n- Avoid SELECT * (fetch only needed columns)\n- Use LIMIT for pagination\n- Denormalize for read-heavy queries\n\n### N+1 Query Problem\n\n```python\n# ❌ Bad: N+1 queries (1 query for orders + N queries for customers)\norders = db.query(\"SELECT * FROM orders\")\nfor order in orders:\n    customer = db.query(f\"SELECT * FROM customers WHERE id = {order.customer_id}\")\n    print(f\"{customer.name} ordered {order.total}\")\n\n# ✅ Good: Single query with JOIN\nresults = db.query(\"\"\"\n    SELECT orders.*, customers.name\n    FROM orders\n    JOIN customers ON orders.customer_id = customers.id\n\"\"\")\nfor result in results:\n    print(f\"{result.name} ordered {result.total}\")\n```\n\n---\n\n## Integration with Agents\n\n### Backend System Architect\n- Uses this skill when designing data models\n- Applies normalization and indexing strategies\n- Plans for scalability and performance\n\n### Code Quality Reviewer\n- Validates schema design follows best practices\n- Checks for missing indexes and constraints\n- Reviews migration safety\n\n### AI\u002FML Engineer\n- Uses denormalization patterns for analytics\n- Designs data pipelines and aggregation tables\n\n---\n\n## Quick Start Checklist\n\nWhen designing a new schema:\n\n- [ ] Identify entities and relationships\n- [ ] Choose SQL or NoSQL based on requirements\n- [ ] Normalize to 3NF (SQL) or decide embed\u002Freference (NoSQL)\n- [ ] Define primary keys (INT auto-increment or UUID)\n- [ ] Add foreign key constraints\n- [ ] Choose appropriate data types\n- [ ] Add unique constraints where needed\n- [ ] Plan indexing strategy (foreign keys, WHERE columns)\n- [ ] Add NOT NULL constraints for required fields\n- [ ] Create CHECK constraints for validation\n- [ ] Plan for soft deletes (deleted_at column) if needed\n- [ ] Add timestamps (created_at, updated_at)\n- [ ] Design migration scripts (up and down)\n- [ ] Test migrations on staging\n\n---\n\n**Skill Version**: 1.0.0\n**Last Updated**: 2025-10-31\n**Maintained by**: AI Agent Hub Team\n","# Database Schema Designer\n\n## Overview\n\nThis skill provides comprehensive guidance for designing robust, scalable database schemas for both SQL and NoSQL databases. Whether building from scratch or evolving existing schemas, this framework ensures data integrity, performance, and maintainability.\n\n**When to use this skill:**\n- Designing new database schemas\n- Refactoring or migrating existing schemas\n- Optimizing database performance\n- Choosing between SQL and NoSQL approaches\n- Creating database migrations\n- Establishing indexing strategies\n- Modeling complex relationships\n- Planning data archival and partitioning\n\n## Database Design Philosophy\n\n### Core Principles\n\n**1. Model the Domain, Not the UI**\n- Schema reflects business entities and relationships\n- Don't let UI requirements drive data structure\n- Separate presentation concerns from data model\n\n**2. Optimize for Reads or Writes (Not Both)**\n- OLTP (transactional): Normalized, optimized for writes\n- OLAP (analytical): Denormalized, optimized for reads\n- Choose based on access patterns\n\n**3. Plan for Scale From Day One**\n- Indexing strategy\n- Partitioning approach\n- Caching layer\n- Read replicas\n\n**4. Data Integrity Over Performance**\n- Use constraints, foreign keys, validation\n- Performance issues can be optimized later\n- Data corruption is costly to fix\n\n---\n\n## SQL Database Design\n\n### Normalization\n\nDatabase normalization reduces redundancy and ensures data integrity.\n\n#### 1st Normal Form (1NF)\n**Rule**: Each column contains atomic (indivisible) values, no repeating groups.\n\n```sql\n-- ❌ Violates 1NF (multiple values in one column)\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT,\n  product_ids VARCHAR(255)  -- '101,102,103' (bad!)\n);\n\n-- ✅ Follows 1NF\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT\n);\n\nCREATE TABLE order_items (\n  id INT PRIMARY KEY,\n  order_id INT,\n  product_id INT,\n  FOREIGN KEY (order_id) REFERENCES orders(id)\n);\n```\n\n#### 2nd Normal Form (2NF)\n**Rule**: Must be in 1NF + all non-key columns depend on the entire primary key.\n\n```sql\n-- ❌ Violates 2NF (customer_name depends only on customer_id, not full key)\nCREATE TABLE order_items (\n  order_id INT,\n  product_id INT,\n  customer_id INT,\n  customer_name VARCHAR(100),  -- Depends on customer_id only\n  quantity INT,\n  PRIMARY KEY (order_id, product_id)\n);\n\n-- ✅ Follows 2NF (customer data in separate table)\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT,\n  FOREIGN KEY (customer_id) REFERENCES customers(id)\n);\n\nCREATE TABLE order_items (\n  order_id INT,\n  product_id INT,\n  quantity INT,\n  PRIMARY KEY (order_id, product_id)\n);\n\nCREATE TABLE customers (\n  id INT PRIMARY KEY,\n  name VARCHAR(100)\n);\n```\n\n#### 3rd Normal Form (3NF)\n**Rule**: Must be in 2NF + no transitive dependencies (non-key columns depend only on primary key).\n\n```sql\n-- ❌ Violates 3NF (country depends on postal_code, not on customer_id)\nCREATE TABLE customers (\n  id INT PRIMARY KEY,\n  name VARCHAR(100),\n  postal_code VARCHAR(10),\n  country VARCHAR(50)  -- Depends on postal_code, not id\n);\n\n-- ✅ Follows 3NF\nCREATE TABLE customers (\n  id INT PRIMARY KEY,\n  name VARCHAR(100),\n  postal_code VARCHAR(10),\n  FOREIGN KEY (postal_code) REFERENCES postal_codes(code)\n);\n\nCREATE TABLE postal_codes (\n  code VARCHAR(10) PRIMARY KEY,\n  country VARCHAR(50)\n);\n```\n\n#### Denormalization (When to Break Rules)\n\nSometimes denormalization improves performance for read-heavy applications.\n\n```sql\n-- Denormalized for performance (caching derived data)\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT,\n  total_amount DECIMAL(10, 2),  -- Calculated from order_items\n  item_count INT,               -- Calculated from order_items\n  created_at TIMESTAMP\n);\n\n-- Trigger or application code keeps denormalized data in sync\n```\n\n**When to denormalize:**\n- Read-heavy applications (reporting, analytics)\n- Frequently joined tables causing performance issues\n- Pre-calculated aggregates (counts, sums, averages)\n- Caching derived data to avoid complex joins\n\n---\n\n### Data Types\n\nChoose appropriate data types for efficiency and accuracy.\n\n#### String Types\n\n```sql\n-- Fixed-length (use for predictable lengths)\nCHAR(10)      -- ISO date: '2025-10-31'\nCHAR(2)       -- State code: 'CA'\n\n-- Variable-length (use for variable lengths)\nVARCHAR(255)  -- Email, name, short text\nTEXT          -- Long text (articles, descriptions)\n\n-- ✅ Good: Appropriate sizes\nemail VARCHAR(255)\nphone_number VARCHAR(20)\npostal_code VARCHAR(10)\n\n-- ❌ Bad: Wasteful or too small\nemail VARCHAR(500)       -- Too large\ndescription VARCHAR(50)  -- Too small for long text\n```\n\n#### Numeric Types\n\n```sql\n-- Integer types\nTINYINT    -- -128 to 127 (age, status codes)\nSMALLINT   -- -32,768 to 32,767 (quantities)\nINT        -- -2.1B to 2.1B (IDs, counts)\nBIGINT     -- Large numbers (timestamps, large IDs)\n\n-- Decimal types\nDECIMAL(10, 2)  -- Exact precision (money: $99,999,999.99)\nFLOAT           -- Approximate (scientific calculations)\nDOUBLE          -- Higher precision approximations\n\n-- ✅ Use DECIMAL for money\nCREATE TABLE products (\n  id INT PRIMARY KEY,\n  price DECIMAL(10, 2)  -- Exact precision\n);\n\n-- ❌ Don't use FLOAT for money\nprice FLOAT  -- Rounding errors!\n```\n\n#### Date\u002FTime Types\n\n```sql\nDATE       -- Date only: 2025-10-31\nTIME       -- Time only: 14:30:00\nDATETIME   -- Date + time: 2025-10-31 14:30:00\nTIMESTAMP  -- Unix timestamp (auto-converts timezone)\n\n-- ✅ Always store in UTC\ncreated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\nupdated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\n```\n\n#### Boolean\n\n```sql\n-- PostgreSQL\nis_active BOOLEAN DEFAULT TRUE\n\n-- MySQL\nis_active TINYINT(1) DEFAULT 1\n```\n\n---\n\n### Indexing Strategies\n\nIndexes speed up reads but slow down writes. Use strategically.\n\n#### When to Create Indexes\n\n```sql\n-- ✅ Index foreign keys\nCREATE INDEX idx_orders_customer_id ON orders(customer_id);\n\n-- ✅ Index frequently queried columns\nCREATE INDEX idx_users_email ON users(email);\n\n-- ✅ Index columns used in WHERE, ORDER BY, GROUP BY\nCREATE INDEX idx_orders_created_at ON orders(created_at);\n\n-- ✅ Composite index for multi-column queries\nCREATE INDEX idx_orders_customer_status ON orders(customer_id, status);\n```\n\n#### Index Types\n\n**B-Tree Index (Default)**\n```sql\n-- Best for equality and range queries\nCREATE INDEX idx_products_price ON products(price);\n\n-- Queries that benefit:\nSELECT * FROM products WHERE price > 100;\nSELECT * FROM products WHERE price BETWEEN 50 AND 150;\n```\n\n**Hash Index**\n```sql\n-- Best for exact matches only (not ranges)\nCREATE INDEX idx_users_email USING HASH ON users(email);\n\n-- Queries that benefit:\nSELECT * FROM users WHERE email = 'user@example.com';\n```\n\n**Full-Text Index**\n```sql\n-- Best for text search\nCREATE FULLTEXT INDEX idx_articles_content ON articles(title, content);\n\n-- Queries that benefit:\nSELECT * FROM articles WHERE MATCH(title, content) AGAINST('database design');\n```\n\n**Partial Index (PostgreSQL)**\n```sql\n-- Index only specific rows\nCREATE INDEX idx_active_users ON users(email) WHERE is_active = TRUE;\n```\n\n#### Composite Indexes (Column Order Matters)\n\n```sql\n-- ✅ Good: Index supports both queries\nCREATE INDEX idx_orders_customer_status ON orders(customer_id, status);\n\n-- Query 1: Uses index efficiently\nSELECT * FROM orders WHERE customer_id = 123 AND status = 'pending';\n\n-- Query 2: Uses index (customer_id only)\nSELECT * FROM orders WHERE customer_id = 123;\n\n-- ❌ Query 3: Doesn't use index (status is second column)\nSELECT * FROM orders WHERE status = 'pending';\n```\n\n**Rule of Thumb**: Put most selective column first, or most frequently queried alone.\n\n---\n\n### Constraints\n\nUse constraints to enforce data integrity at the database level.\n\n#### Primary Key\n\n```sql\n-- Auto-incrementing integer\nCREATE TABLE users (\n  id INT AUTO_INCREMENT PRIMARY KEY,\n  email VARCHAR(255) UNIQUE NOT NULL\n);\n\n-- UUID (better for distributed systems)\nCREATE TABLE users (\n  id CHAR(36) PRIMARY KEY DEFAULT (UUID()),\n  email VARCHAR(255) UNIQUE NOT NULL\n);\n```\n\n#### Foreign Key\n\n```sql\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT NOT NULL,\n  FOREIGN KEY (customer_id) REFERENCES customers(id)\n    ON DELETE CASCADE      -- Delete orders when customer deleted\n    ON UPDATE CASCADE      -- Update orders when customer ID changes\n);\n\n-- Alternatives:\nON DELETE RESTRICT   -- Prevent deletion if referenced\nON DELETE SET NULL   -- Set to NULL when parent deleted\nON DELETE NO ACTION  -- Same as RESTRICT\n```\n\n#### Unique Constraint\n\n```sql\nCREATE TABLE users (\n  id INT PRIMARY KEY,\n  email VARCHAR(255) UNIQUE NOT NULL,\n  username VARCHAR(50) UNIQUE NOT NULL\n);\n\n-- Composite unique constraint\nCREATE TABLE enrollments (\n  student_id INT,\n  course_id INT,\n  UNIQUE (student_id, course_id)  -- Prevent duplicate enrollments\n);\n```\n\n#### Check Constraint\n\n```sql\nCREATE TABLE products (\n  id INT PRIMARY KEY,\n  price DECIMAL(10, 2) CHECK (price >= 0),\n  stock INT CHECK (stock >= 0),\n  discount_percent INT CHECK (discount_percent BETWEEN 0 AND 100)\n);\n```\n\n#### Not Null Constraint\n\n```sql\nCREATE TABLE users (\n  id INT PRIMARY KEY,\n  email VARCHAR(255) NOT NULL,\n  name VARCHAR(100) NOT NULL,\n  bio TEXT  -- Nullable (optional)\n);\n```\n\n---\n\n### Common Schema Patterns\n\n#### One-to-Many (Orders → Order Items)\n\n```sql\nCREATE TABLE orders (\n  id INT PRIMARY KEY,\n  customer_id INT NOT NULL,\n  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\n);\n\nCREATE TABLE order_items (\n  id INT PRIMARY KEY,\n  order_id INT NOT NULL,\n  product_id INT NOT NULL,\n  quantity INT NOT NULL,\n  price DECIMAL(10, 2) NOT NULL,\n  FOREIGN KEY (order_id) REFERENCES orders(id) ON DELETE CASCADE\n);\n```\n\n#### Many-to-Many (Students ↔ Courses)\n\n```sql\nCREATE TABLE students (\n  id INT PRIMARY KEY,\n  name VARCHAR(100) NOT NULL\n);\n\nCREATE TABLE courses (\n  id INT PRIMARY KEY,\n  title VARCHAR(200) NOT NULL\n);\n\n-- Junction table (also called join table, linking table)\nCREATE TABLE enrollments (\n  student_id INT,\n  course_id INT,\n  enrolled_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,\n  grade VARCHAR(2),\n  PRIMARY KEY (student_id, course_id),\n  FOREIGN KEY (student_id) REFERENCES students(id) ON DELETE CASCADE,\n  FOREIGN KEY (course_id) REFERENCES courses(id) ON DELETE CASCADE\n);\n```\n\n#### Self-Referencing (Employees → Manager)\n\n```sql\nCREATE TABLE employees (\n  id INT PRIMARY KEY,\n  name VARCHAR(100) NOT NULL,\n  manager_id INT,\n  FOREIGN KEY (manager_id) REFERENCES employees(id)\n);\n```\n\n#### Polymorphic Relationships (Comments on Posts\u002FPhotos)\n\n```sql\n-- Approach 1: Separate foreign keys with CHECK constraint\nCREATE TABLE comments (\n  id INT PRIMARY KEY,\n  content TEXT NOT NULL,\n  post_id INT,\n  photo_id INT,\n  CHECK (\n    (post_id IS NOT NULL AND photo_id IS NULL) OR\n    (post_id IS NULL AND photo_id IS NOT NULL)\n  ),\n  FOREIGN KEY (post_id) REFERENCES posts(id) ON DELETE CASCADE,\n  FOREIGN KEY (photo_id) REFERENCES photos(id) ON DELETE CASCADE\n);\n\n-- Approach 2: commentable_type + commentable_id (Rails-style)\nCREATE TABLE comments (\n  id INT PRIMARY KEY,\n  content TEXT NOT NULL,\n  commentable_type VARCHAR(50) NOT NULL,  -- 'Post' or 'Photo'\n  commentable_id INT NOT NULL\n);\n-- Note: No foreign key constraint possible (less data integrity)\n```\n\n---\n\n## NoSQL Database Design\n\n### Document Databases (MongoDB)\n\n**When to use**:\n- Schema flexibility needed\n- Rapid iteration\n- Hierarchical data\n- Read-heavy workloads\n\n#### Embedding vs Referencing\n\n**Embedding (Denormalization)**\n```json\n{\n  \"_id\": \"order_123\",\n  \"customer\": {\n    \"id\": \"cust_456\",\n    \"name\": \"Jane Smith\",\n    \"email\": \"jane@example.com\"\n  },\n  \"items\": [\n    { \"product_id\": \"prod_789\", \"quantity\": 2, \"price\": 29.99 },\n    { \"product_id\": \"prod_101\", \"quantity\": 1, \"price\": 49.99 }\n  ],\n  \"total\": 109.97,\n  \"created_at\": \"2025-10-31T10:30:00Z\"\n}\n```\n\n**When to embed:**\n- Data accessed together frequently\n- 1:few relationships (few items)\n- Child documents don't need independent existence\n\n**Referencing (Normalization)**\n```json\n{\n  \"_id\": \"order_123\",\n  \"customer_id\": \"cust_456\",\n  \"item_ids\": [\"item_1\", \"item_2\"],\n  \"total\": 109.97,\n  \"created_at\": \"2025-10-31T10:30:00Z\"\n}\n```\n\n**When to reference:**\n- Data accessed independently\n- 1:many relationships (many items)\n- Large documents (approaching 16MB limit)\n- Frequently updated data\n\n#### Indexing in MongoDB\n\n```javascript\n\u002F\u002F Create index\ndb.users.createIndex({ email: 1 }, { unique: true });\n\n\u002F\u002F Composite index\ndb.orders.createIndex({ customer_id: 1, created_at: -1 });\n\n\u002F\u002F Text index for search\ndb.articles.createIndex({ title: \"text\", content: \"text\" });\n\n\u002F\u002F Geospatial index\ndb.stores.createIndex({ location: \"2dsphere\" });\n```\n\n---\n\n## Database Migrations\n\n### Migration Best Practices\n\n**1. Always Reversible**\n```sql\n-- Up migration\nALTER TABLE users ADD COLUMN phone VARCHAR(20);\n\n-- Down migration\nALTER TABLE users DROP COLUMN phone;\n```\n\n**2. Backward Compatible**\n```sql\n-- ✅ Good: Add nullable column\nALTER TABLE users ADD COLUMN middle_name VARCHAR(50);\n\n-- ❌ Bad: Add required column (breaks existing code)\nALTER TABLE users ADD COLUMN middle_name VARCHAR(50) NOT NULL;\n\n-- ✅ Better: Add nullable, then populate, then make required\n-- Migration 1: Add column\nALTER TABLE users ADD COLUMN middle_name VARCHAR(50);\n\n-- Migration 2: Populate with default\nUPDATE users SET middle_name = '' WHERE middle_name IS NULL;\n\n-- Migration 3: Make required\nALTER TABLE users MODIFY COLUMN middle_name VARCHAR(50) NOT NULL;\n```\n\n**3. Data Migrations Separate from Schema Changes**\n```sql\n-- Migration 1: Schema change\nALTER TABLE orders ADD COLUMN status VARCHAR(20) DEFAULT 'pending';\n\n-- Migration 2: Data migration\nUPDATE orders SET status = 'completed' WHERE completed_at IS NOT NULL;\n```\n\n**4. Test Migrations on Production Copy**\n- Test on staging with production data snapshot\n- Measure migration duration\n- Plan for downtime (if needed)\n\n---\n\n### Zero-Downtime Migrations\n\n**Adding a Column:**\n```sql\n-- Step 1: Add nullable column\nALTER TABLE users ADD COLUMN phone VARCHAR(20);\n\n-- Step 2: Deploy code that writes to new column\n-- (Application now writes to both old and new column)\n\n-- Step 3: Backfill existing rows\nUPDATE users SET phone = old_phone WHERE phone IS NULL;\n\n-- Step 4: Make column required (if needed)\nALTER TABLE users MODIFY COLUMN phone VARCHAR(20) NOT NULL;\n```\n\n**Renaming a Column:**\n```sql\n-- Step 1: Add new column\nALTER TABLE users ADD COLUMN email_address VARCHAR(255);\n\n-- Step 2: Copy data\nUPDATE users SET email_address = email;\n\n-- Step 3: Deploy code that reads from new column\n\n-- Step 4: Deploy code that writes to new column\n\n-- Step 5: Drop old column\nALTER TABLE users DROP COLUMN email;\n```\n\n---\n\n## Performance Optimization\n\n### Query Optimization\n\n**Use EXPLAIN to analyze queries:**\n```sql\nEXPLAIN SELECT * FROM orders WHERE customer_id = 123 AND status = 'pending';\n```\n\n**Look for:**\n- **Type**: ALL (table scan - bad), index, ref, eq_ref\n- **Possible keys**: Indexes available\n- **Key**: Index actually used\n- **Rows**: Estimated rows scanned\n\n**Optimization techniques:**\n- Add indexes on WHERE, ORDER BY, GROUP BY columns\n- Avoid SELECT * (fetch only needed columns)\n- Use LIMIT for pagination\n- Denormalize for read-heavy queries\n\n### N+1 Query Problem\n\n```python\n# ❌ Bad: N+1 queries (1 query for orders + N queries for customers)\norders = db.query(\"SELECT * FROM orders\")\nfor order in orders:\n    customer = db.query(f\"SELECT * FROM customers WHERE id = {order.customer_id}\")\n    print(f\"{customer.name} ordered {order.total}\")\n\n# ✅ Good: Single query with JOIN\nresults = db.query(\"\"\"\n    SELECT orders.*, customers.name\n    FROM orders\n    JOIN customers ON orders.customer_id = customers.id\n\"\"\")\nfor result in results:\n    print(f\"{result.name} ordered {result.total}\")\n```\n\n---\n\n## Integration with Agents\n\n### Backend System Architect\n- Uses this skill when designing data models\n- Applies normalization and indexing strategies\n- Plans for scalability and performance\n\n### Code Quality Reviewer\n- Validates schema design follows best practices\n- Checks for missing indexes and constraints\n- Reviews migration safety\n\n### AI\u002FML Engineer\n- Uses denormalization patterns for analytics\n- Designs data pipelines and aggregation tables\n\n---\n\n## Quick Start Checklist\n\nWhen designing a new schema:\n\n- [ ] Identify entities and relationships\n- [ ] Choose SQL or NoSQL based on requirements\n- [ ] Normalize to 3NF (SQL) or decide embed\u002Freference (NoSQL)\n- [ ] Define primary keys (INT auto-increment or UUID)\n- [ ] Add foreign key constraints\n- [ ] Choose appropriate data types\n- [ ] Add unique constraints where needed\n- [ ] Plan indexing strategy (foreign keys, WHERE columns)\n- [ ] Add NOT NULL constraints for required fields\n- [ ] Create CHECK constraints for validation\n- [ ] Plan for soft deletes (deleted_at column) if needed\n- [ ] Add timestamps (created_at, updated_at)\n- [ ] Design migration scripts (up and down)\n- [ ] Test migrations on staging\n\n---\n\n**Skill Version**: 1.0.0\n**Last Updated**: 2025-10-31\n**Maintained by**: AI Agent Hub Team\n",{"name":5,"tags":44,"author":46,"version":47,"description":7},[20,24,36,33,38,45],"migrations","AI Agent Hub","1.0.0","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fariegoldkin\u002Fdatabase-schema-designer",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill database-schema-designer",{"tool":63,"command":64},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill database-schema-designer",{"tool":66,"command":67},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill database-schema-designer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fariegoldkin\u002Fdatabase-schema-designer\u002FSKILL.md",true,[71,77,81],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"checklists\u002Fschema-design-checklist.md","REFERENCE","参考文档",6784,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fariegoldkin\u002Fdatabase-schema-designer\u002Fchecklists\u002Fschema-design-checklist.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"skill-report.json",9174,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fariegoldkin\u002Fdatabase-schema-designer\u002Fskill-report.json",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"templates\u002Fmigration-template.sql","OTHER","其他",2583,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fariegoldkin\u002Fdatabase-schema-designer\u002Ftemplates\u002Fmigration-template.sql",[88,97,106,115,121,127],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":39},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[94,95,96],"model","model hierarchy","model hierarchy skill",{"skillNo":98,"name":99,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":39},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[103,104,105],"MCP","zoom","zoom mcp",{"skillNo":107,"name":108,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":39},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[112,113,114,104],"sdk","zoom apps sdk","apps",{"skillNo":116,"name":117,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":39},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[117],{"skillNo":122,"name":123,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":39},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[123],{"skillNo":128,"name":129,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":39},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[129]]