[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C32F494R4GT2DHGAVAPRXE":3,"skill-same:01M7C32F494R4GT2DHGAVAPRXE":112},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7C32F494R4GT2DHGAVAPRXE","databases",null,"Design schemas, write queries for MongoDB and PostgreSQL. Use for database design, SQL\u002FNoSQL queries, aggregation pipelines, indexes, migrations, replication, performance optimization, psql CLI.","Truc350\u002FWebHomeStay","Truc350","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F176447042?v=4","01M7C2S7D6AAK15J66E3NDXSXK","Huỳnh Thị Thanh Trúc","01M7C2S7DTPMN5ZM8876HF8KF8",0,"MIT","https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: databases\ndescription: Design schemas, write queries for MongoDB and PostgreSQL. Use for database design, SQL\u002FNoSQL queries, aggregation pipelines, indexes, migrations, replication, performance optimization, psql CLI.\nlicense: MIT\n---\n\n# Databases Skill\n\nUnified guide for working with MongoDB (document-oriented) and PostgreSQL (relational) databases. Choose the right database for your use case and master both systems.\n\n## When to Use This Skill\n\nUse when:\n- Designing database schemas and data models\n- Writing queries (SQL or MongoDB query language)\n- Building aggregation pipelines or complex joins\n- Optimizing indexes and query performance\n- Implementing database migrations\n- Setting up replication, sharding, or clustering\n- Configuring backups and disaster recovery\n- Managing database users and permissions\n- Analyzing slow queries and performance issues\n- Administering production database deployments\n\n## Reference Navigation\n\n### Database Design\n- **[db-design.md](references\u002Fdb-design.md)** - Activate when user requests: Database\u002Ftable design for transactional (OLTP), analytics (OLAP), create or extend schema, design fact\u002Fdimension tables, analyze\u002Freview CSV\u002FJSON\u002FSQL files to create tables, or need advice on data storage structure.\n\n### MongoDB References\n- **[mongodb-crud.md](references\u002Fmongodb-crud.md)** - CRUD operations, query operators, atomic updates\n- **[mongodb-aggregation.md](references\u002Fmongodb-aggregation.md)** - Aggregation pipeline, stages, operators, patterns\n- **[mongodb-indexing.md](references\u002Fmongodb-indexing.md)** - Index types, compound indexes, performance optimization\n- **[mongodb-atlas.md](references\u002Fmongodb-atlas.md)** - Atlas cloud setup, clusters, monitoring, search\n\n### PostgreSQL References\n- **[postgresql-queries.md](references\u002Fpostgresql-queries.md)** - SELECT, JOINs, subqueries, CTEs, window functions\n- **[postgresql-psql-cli.md](references\u002Fpostgresql-psql-cli.md)** - psql commands, meta-commands, scripting\n- **[postgresql-performance.md](references\u002Fpostgresql-performance.md)** - EXPLAIN, query optimization, vacuum, indexes\n- **[postgresql-administration.md](references\u002Fpostgresql-administration.md)** - User management, backups, replication, maintenance\n\n## Python Utilities\n\nDatabase utility scripts in `scripts\u002F`:\n- **db_migrate.py** - Generate and apply migrations for both databases (MongoDB and PostgreSQL)\n- **db_backup.py** - Backup and restore MongoDB and PostgreSQL\n- **db_performance_check.py** - Analyze slow queries and recommend indexes\n\n```bash\n# Generate migration\npython scripts\u002Fdb_migrate.py --db mongodb --generate \"add_user_index\"\n\n# Run backup\npython scripts\u002Fdb_backup.py --db postgres --output \u002Fbackups\u002F\n\n# Check performance\npython scripts\u002Fdb_performance_check.py --db mongodb --threshold 100ms\n```\n\n## Best Practices\n\n**MongoDB:**\n- Use embedded documents for 1-to-few relationships\n- Reference documents for 1-to-many or many-to-many\n- Index frequently queried fields\n- Use aggregation pipeline for complex transformations\n- Enable authentication and TLS in production\n- Use Atlas for managed hosting\n\n**PostgreSQL:**\n- Normalize schema to 3NF, denormalize for performance\n- Use foreign keys for referential integrity\n- Index foreign keys and frequently filtered columns\n- Use EXPLAIN ANALYZE to optimize queries\n- Regular VACUUM and ANALYZE maintenance\n- Connection pooling (pgBouncer) for web apps\n\n## Resources\n\n- MongoDB: https:\u002F\u002Fwww.mongodb.com\u002Fdocs\u002F\n- PostgreSQL: https:\u002F\u002Fwww.postgresql.org\u002Fdocs\u002F\n- MongoDB University: https:\u002F\u002Flearn.mongodb.com\u002F\n- PostgreSQL Tutorial: https:\u002F\u002Fwww.postgresqltutorial.com\u002F\n","# Databases Skill\n\nUnified guide for working with MongoDB (document-oriented) and PostgreSQL (relational) databases. Choose the right database for your use case and master both systems.\n\n## When to Use This Skill\n\nUse when:\n- Designing database schemas and data models\n- Writing queries (SQL or MongoDB query language)\n- Building aggregation pipelines or complex joins\n- Optimizing indexes and query performance\n- Implementing database migrations\n- Setting up replication, sharding, or clustering\n- Configuring backups and disaster recovery\n- Managing database users and permissions\n- Analyzing slow queries and performance issues\n- Administering production database deployments\n\n## Reference Navigation\n\n### Database Design\n- **[db-design.md](references\u002Fdb-design.md)** - Activate when user requests: Database\u002Ftable design for transactional (OLTP), analytics (OLAP), create or extend schema, design fact\u002Fdimension tables, analyze\u002Freview CSV\u002FJSON\u002FSQL files to create tables, or need advice on data storage structure.\n\n### MongoDB References\n- **[mongodb-crud.md](references\u002Fmongodb-crud.md)** - CRUD operations, query operators, atomic updates\n- **[mongodb-aggregation.md](references\u002Fmongodb-aggregation.md)** - Aggregation pipeline, stages, operators, patterns\n- **[mongodb-indexing.md](references\u002Fmongodb-indexing.md)** - Index types, compound indexes, performance optimization\n- **[mongodb-atlas.md](references\u002Fmongodb-atlas.md)** - Atlas cloud setup, clusters, monitoring, search\n\n### PostgreSQL References\n- **[postgresql-queries.md](references\u002Fpostgresql-queries.md)** - SELECT, JOINs, subqueries, CTEs, window functions\n- **[postgresql-psql-cli.md](references\u002Fpostgresql-psql-cli.md)** - psql commands, meta-commands, scripting\n- **[postgresql-performance.md](references\u002Fpostgresql-performance.md)** - EXPLAIN, query optimization, vacuum, indexes\n- **[postgresql-administration.md](references\u002Fpostgresql-administration.md)** - User management, backups, replication, maintenance\n\n## Python Utilities\n\nDatabase utility scripts in `scripts\u002F`:\n- **db_migrate.py** - Generate and apply migrations for both databases (MongoDB and PostgreSQL)\n- **db_backup.py** - Backup and restore MongoDB and PostgreSQL\n- **db_performance_check.py** - Analyze slow queries and recommend indexes\n\n```bash\n# Generate migration\npython scripts\u002Fdb_migrate.py --db mongodb --generate \"add_user_index\"\n\n# Run backup\npython scripts\u002Fdb_backup.py --db postgres --output \u002Fbackups\u002F\n\n# Check performance\npython scripts\u002Fdb_performance_check.py --db mongodb --threshold 100ms\n```\n\n## Best Practices\n\n**MongoDB:**\n- Use embedded documents for 1-to-few relationships\n- Reference documents for 1-to-many or many-to-many\n- Index frequently queried fields\n- Use aggregation pipeline for complex transformations\n- Enable authentication and TLS in production\n- Use Atlas for managed hosting\n\n**PostgreSQL:**\n- Normalize schema to 3NF, denormalize for performance\n- Use foreign keys for referential integrity\n- Index foreign keys and frequently filtered columns\n- Use EXPLAIN ANALYZE to optimize queries\n- Regular VACUUM and ANALYZE maintenance\n- Connection pooling (pgBouncer) for web apps\n\n## Resources\n\n- MongoDB: https:\u002F\u002Fwww.mongodb.com\u002Fdocs\u002F\n- PostgreSQL: https:\u002F\u002Fwww.postgresql.org\u002Fdocs\u002F\n- MongoDB University: https:\u002F\u002Flearn.mongodb.com\u002F\n- PostgreSQL Tutorial: https:\u002F\u002Fwww.postgresqltutorial.com\u002F\n",{"name":5,"license":15,"description":7},"main","af64bb75a16e8bc1847a568059b9300e09f27c4a",".agents\u002Fskills\u002Fdatabases","https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay","https:\u002F\u002Fgithub.com\u002FTruc350","2026-09-04 21:59:58",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add Truc350\u002FWebHomeStay --skill databases",{"tool":36,"command":37},"bunx","bunx skills add Truc350\u002FWebHomeStay --skill databases",{"tool":39,"command":40},"pnpm","pnpm dlx skills add Truc350\u002FWebHomeStay --skill databases","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002FSKILL.md",true,[44,50,54,58,62,66,70,74,78,84,88,92,96,100,104,108],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fmongodb-aggregation.md","REFERENCE","参考文档",9333,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Freferences\u002Fmongodb-aggregation.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fmongodb-atlas.md",9284,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Freferences\u002Fmongodb-atlas.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fmongodb-crud.md",8355,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Freferences\u002Fmongodb-crud.md",{"path":59,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmongodb-indexing.md",10618,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Freferences\u002Fmongodb-indexing.md",{"path":63,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fpostgresql-administration.md",12113,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Freferences\u002Fpostgresql-administration.md",{"path":67,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fpostgresql-performance.md",11613,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Freferences\u002Fpostgresql-performance.md",{"path":71,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fpostgresql-psql-cli.md",10523,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Freferences\u002Fpostgresql-psql-cli.md",{"path":75,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fpostgresql-queries.md",10091,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Freferences\u002Fpostgresql-queries.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fdb_backup.py","SCRIPT","脚本",16765,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Fscripts\u002Fdb_backup.py",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fdb_migrate.py",14220,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Fscripts\u002Fdb_migrate.py",{"path":89,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Fdb_performance_check.py",16022,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Fscripts\u002Fdb_performance_check.py",{"path":93,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":94,"sourceHtmlUrl":95},"scripts\u002Frequirements.txt",558,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Fscripts\u002Frequirements.txt",{"path":97,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":98,"sourceHtmlUrl":99},"scripts\u002Ftests\u002Frequirements.txt",69,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Fscripts\u002Ftests\u002Frequirements.txt",{"path":101,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Ftests\u002Ftest_db_backup.py",10800,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Fscripts\u002Ftests\u002Ftest_db_backup.py",{"path":105,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Ftests\u002Ftest_db_migrate.py",9529,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Fscripts\u002Ftests\u002Ftest_db_migrate.py",{"path":109,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":110,"sourceHtmlUrl":111},"scripts\u002Ftests\u002Ftest_db_performance_check.py",11933,"https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdatabases\u002Fscripts\u002Ftests\u002Ftest_db_performance_check.py",[113,120,127,134,142,149],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7C3D9JFFHDYQ93YQ2NFSTXV","widget-cms","Tạo, sửa và kiểm thử widget Laravel CMS theo renderer theme\u002Fcore\u002Fplugin, layout builder, settings_schema, shortcode, hook, CSS\u002FJS và zone contract.","https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwidget-cms\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"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":19},"01M7C3CNZVN589PK7ZJ1JZ98JB","website-sitemap","This skill should be used to create, crawl, map, redesign, or migrate website sitemaps and information architecture from briefs, ERP data, URLs, documents, or mixed inputs.","https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwebsite-sitemap\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":19},"01M7C3C36PECBZQR0RBXGE8781","web-frameworks","Build with Next.js (App Router, RSC, SSR, ISR), Turborepo monorepos. Use for React apps, server rendering, build optimization, caching strategies, shared dependencies.","https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweb-frameworks\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":138,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":19},"01M7C3A7X0WG8RWDDJFB9CHP0F","ui-styling","Style UIs with shadcn\u002Fui components (Radix UI + Tailwind CSS). Use for accessible components, themes, dark mode, responsive layouts, design systems, color customization.","https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fui-styling\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":19},"01M7C39497ER4DVF3R8P9R6K41","threejs","Build 3D web apps with Three.js (WebGL\u002FWebGPU). 556 searchable examples, 60 API classes, 20 use cases. Actions: create 3D scene, load model, add animation, implement physics, build VR\u002FXR. Topics: GLTF loader, PBR materials, particle effects, shadows, post-processing, compute shaders, TSL. Integrations: WebGPU, physics engines, spatial audio.","https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fthreejs\u002FSKILL.md",[],[],{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":19},"01M7C38TQE66MV142R5K58QJM6","theme-cms-ecommerce","This skill should be used independently to create, update, validate, or package complete Laravel CMS storefronts with product catalogs, search, promotions, cart, checkout, and responsive shopping UX.","https:\u002F\u002Fgithub.com\u002FTruc350\u002FWebHomeStay\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftheme-cms-ecommerce\u002FSKILL.md",[],[]]