[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CXAPZY8N17YV1P7FXNR8DC":3,"skill-same:01M6CXAPZY8N17YV1P7FXNR8DC":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":24,"linkOnly":25,"markdownContent":26,"markdownBody":27,"frontMatter":28,"refName":31,"commitSha":32,"skillDirectory":5,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M6CXAPZY8N17YV1P7FXNR8DC","mongodb",null,"MongoDB document database with flexible schema and horizontal scaling","ffsshhttiikk\u002Fopencode-agents-skills","ffsshhttiikk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226346827?v=4","01M6CWD9RR3Y7VRQX3MXYC8FYH","01M6CWD9WVPYAZW0J82G1VKGHY",3,"MIT","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fmongodb\u002FSKILL.md",[],[5,18,19,20,21,22,23],"database","schema","opencode","databases","document","scaling","2026-11-10 10:12:30",false,"---\nname: mongodb\ndescription: MongoDB document database with flexible schema and horizontal scaling\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: developers\n  category: databases\n---\n## What I do\n- Design document schemas\n- Write aggregation pipelines\n- Use indexes for performance\n- Implement data modeling patterns\n- Work with change streams\n- Use transactions across collections\n- Optimize queries\n\n## When to use me\nWhen building applications with flexible schemas or high write throughput.\n\n## CRUD Operations\n```javascript\n\u002F\u002F Insert\ndb.users.insertOne({\n  name: \"John\",\n  email: \"john@example.com\",\n  tags: [\"developer\", \"admin\"],\n  profile: { age: 30, city: \"NYC\" }\n});\n\ndb.users.insertMany([\n  { name: \"Alice\" },\n  { name: \"Bob\" }\n]);\n\n\u002F\u002F Query\ndb.users.find({ name: \"John\" });\ndb.users.findOne({ _id: ObjectId(\"...\") });\n\n\u002F\u002F Update\ndb.users.updateOne(\n  { _id: ObjectId(\"...\") },\n  { $set: { name: \"Jane\" } }\n);\n\ndb.users.updateMany(\n  { status: \"active\" },\n  { $set: { verified: true } }\n);\n\n\u002F\u002F Delete\ndb.users.deleteOne({ _id: ObjectId(\"...\") });\ndb.users.deleteMany({ status: \"inactive\" });\n```\n\n## Query Operators\n```javascript\n\u002F\u002F Comparison\ndb.products.find({ price: { $gt: 100, $lt: 500 } });\ndb.users.find({ age: { $gte: 18, $lte: 30 } });\n\n\u002F\u002F Logical\ndb.users.find({\n  $or: [{ status: \"active\" }, { role: \"admin\" }]\n});\n\ndb.users.find({\n  $and: [\n    { status: \"active\" },\n    { role: { $ne: \"guest\" } }\n  ]\n});\n\n\u002F\u002F Element\ndb.users.find({ email: { $exists: true, $type: \"string\" } });\n\n\u002F\u002F Array\ndb.users.find({ tags: \"developer\" });\ndb.users.find({ tags: { $all: [\"admin\", \"developer\"] } });\ndb.users.find({ \"profile.city\": \"NYC\" });\n\n\u002F\u002F Regex\ndb.users.find({ name: { $regex: \"^J\", $options: \"i\" } });\n```\n\n## Aggregation Pipeline\n```javascript\ndb.orders.aggregate([\n  \u002F\u002F Match\n  { $match: { status: \"completed\" } },\n  \n  \u002F\u002F Unwind array\n  { $unwind: \"$items\" },\n  \n  \u002F\u002F Group\n  { $group: {\n    _id: \"$customer_id\",\n    total: { $sum: \"$items.price\" },\n    count: { $sum: 1 }\n  }},\n  \n  \u002F\u002F Sort\n  { $sort: { total: -1 } },\n  \n  \u002F\u002F Limit\n  { $limit: 10 },\n  \n  \u002F\u002F Project (select fields)\n  { $project: {\n    _id: 0,\n    customer: \"$_id\",\n    total: 1,\n    count: 1\n  }}\n]);\n```\n\n## More Aggregation\n```javascript\n\u002F\u002F Lookup (join)\ndb.orders.aggregate([\n  {\n    $lookup: {\n      from: \"users\",\n      localField: \"user_id\",\n      foreignField: \"_id\",\n      as: \"user\"\n    }\n  },\n  { $unwind: \"$user\" }\n]);\n\n\u002F\u002F Add computed fields\n{\n  $addFields: {\n    total: { $sum: \"$items.price\" },\n    discount: {\n      $cond: { if: { $gte: [\"$total\", 100] }, then: 0.1, else: 0 }\n    }\n  }\n}\n\n\u002F\u002F Facet (multiple aggregations)\n{\n  $facet: {\n    byStatus: [{ $group: { _id: \"$status\", count: { $sum: 1 } } }],\n    totalValue: [{ $group: { _id: null, total: { $sum: \"$total\" } } }]\n  }\n}\n```\n\n## Indexes\n```javascript\n\u002F\u002F Single field\ndb.users.createIndex({ email: 1 });\n\n\u002F\u002F Compound\ndb.orders.createIndex({ user_id: 1, created_at: -1 });\n\n\u002F\u002F Unique\ndb.users.createIndex({ email: 1 }, { unique: true });\n\n\u002F\u002F Text\ndb.articles.createIndex({ title: \"text\", content: \"text\" });\ndb.articles.find({ $text: { $search: \"mongodb\" } });\n\n\u002F\u002F Partial\ndb.users.createIndex(\n  { email: 1 },\n  { partialFilterExpression: { verified: true } }\n);\n\n\u002F\u002F Explain\ndb.users.find({ name: \"John\" }).explain(\"executionStats\");\n```\n\n## Data Modeling\n```javascript\n\u002F\u002F Embedded (one-to-one)\n{\n  _id: ObjectId(\"...\"),\n  name: \"John\",\n  address: {\n    street: \"123 Main St\",\n    city: \"NYC\"\n  }\n}\n\n\u002F\u002F Embedded (one-to-many)\n{\n  _id: ObjectId(\"...\"),\n  name: \"John\",\n  orders: [\n    { id: 1, total: 100 },\n    { id: 2, total: 200 }\n  ]\n}\n\n\u002F\u002F Reference (many-to-many)\n{\n  _id: ObjectId(\"...\"),\n  name: \"Math 101\",\n  student_ids: [ObjectId(\"...\"), ObjectId(\"...\")]\n}\n```\n","## What I do\n- Design document schemas\n- Write aggregation pipelines\n- Use indexes for performance\n- Implement data modeling patterns\n- Work with change streams\n- Use transactions across collections\n- Optimize queries\n\n## When to use me\nWhen building applications with flexible schemas or high write throughput.\n\n## CRUD Operations\n```javascript\n\u002F\u002F Insert\ndb.users.insertOne({\n  name: \"John\",\n  email: \"john@example.com\",\n  tags: [\"developer\", \"admin\"],\n  profile: { age: 30, city: \"NYC\" }\n});\n\ndb.users.insertMany([\n  { name: \"Alice\" },\n  { name: \"Bob\" }\n]);\n\n\u002F\u002F Query\ndb.users.find({ name: \"John\" });\ndb.users.findOne({ _id: ObjectId(\"...\") });\n\n\u002F\u002F Update\ndb.users.updateOne(\n  { _id: ObjectId(\"...\") },\n  { $set: { name: \"Jane\" } }\n);\n\ndb.users.updateMany(\n  { status: \"active\" },\n  { $set: { verified: true } }\n);\n\n\u002F\u002F Delete\ndb.users.deleteOne({ _id: ObjectId(\"...\") });\ndb.users.deleteMany({ status: \"inactive\" });\n```\n\n## Query Operators\n```javascript\n\u002F\u002F Comparison\ndb.products.find({ price: { $gt: 100, $lt: 500 } });\ndb.users.find({ age: { $gte: 18, $lte: 30 } });\n\n\u002F\u002F Logical\ndb.users.find({\n  $or: [{ status: \"active\" }, { role: \"admin\" }]\n});\n\ndb.users.find({\n  $and: [\n    { status: \"active\" },\n    { role: { $ne: \"guest\" } }\n  ]\n});\n\n\u002F\u002F Element\ndb.users.find({ email: { $exists: true, $type: \"string\" } });\n\n\u002F\u002F Array\ndb.users.find({ tags: \"developer\" });\ndb.users.find({ tags: { $all: [\"admin\", \"developer\"] } });\ndb.users.find({ \"profile.city\": \"NYC\" });\n\n\u002F\u002F Regex\ndb.users.find({ name: { $regex: \"^J\", $options: \"i\" } });\n```\n\n## Aggregation Pipeline\n```javascript\ndb.orders.aggregate([\n  \u002F\u002F Match\n  { $match: { status: \"completed\" } },\n  \n  \u002F\u002F Unwind array\n  { $unwind: \"$items\" },\n  \n  \u002F\u002F Group\n  { $group: {\n    _id: \"$customer_id\",\n    total: { $sum: \"$items.price\" },\n    count: { $sum: 1 }\n  }},\n  \n  \u002F\u002F Sort\n  { $sort: { total: -1 } },\n  \n  \u002F\u002F Limit\n  { $limit: 10 },\n  \n  \u002F\u002F Project (select fields)\n  { $project: {\n    _id: 0,\n    customer: \"$_id\",\n    total: 1,\n    count: 1\n  }}\n]);\n```\n\n## More Aggregation\n```javascript\n\u002F\u002F Lookup (join)\ndb.orders.aggregate([\n  {\n    $lookup: {\n      from: \"users\",\n      localField: \"user_id\",\n      foreignField: \"_id\",\n      as: \"user\"\n    }\n  },\n  { $unwind: \"$user\" }\n]);\n\n\u002F\u002F Add computed fields\n{\n  $addFields: {\n    total: { $sum: \"$items.price\" },\n    discount: {\n      $cond: { if: { $gte: [\"$total\", 100] }, then: 0.1, else: 0 }\n    }\n  }\n}\n\n\u002F\u002F Facet (multiple aggregations)\n{\n  $facet: {\n    byStatus: [{ $group: { _id: \"$status\", count: { $sum: 1 } } }],\n    totalValue: [{ $group: { _id: null, total: { $sum: \"$total\" } } }]\n  }\n}\n```\n\n## Indexes\n```javascript\n\u002F\u002F Single field\ndb.users.createIndex({ email: 1 });\n\n\u002F\u002F Compound\ndb.orders.createIndex({ user_id: 1, created_at: -1 });\n\n\u002F\u002F Unique\ndb.users.createIndex({ email: 1 }, { unique: true });\n\n\u002F\u002F Text\ndb.articles.createIndex({ title: \"text\", content: \"text\" });\ndb.articles.find({ $text: { $search: \"mongodb\" } });\n\n\u002F\u002F Partial\ndb.users.createIndex(\n  { email: 1 },\n  { partialFilterExpression: { verified: true } }\n);\n\n\u002F\u002F Explain\ndb.users.find({ name: \"John\" }).explain(\"executionStats\");\n```\n\n## Data Modeling\n```javascript\n\u002F\u002F Embedded (one-to-one)\n{\n  _id: ObjectId(\"...\"),\n  name: \"John\",\n  address: {\n    street: \"123 Main St\",\n    city: \"NYC\"\n  }\n}\n\n\u002F\u002F Embedded (one-to-many)\n{\n  _id: ObjectId(\"...\"),\n  name: \"John\",\n  orders: [\n    { id: 1, total: 100 },\n    { id: 2, total: 200 }\n  ]\n}\n\n\u002F\u002F Reference (many-to-many)\n{\n  _id: ObjectId(\"...\"),\n  name: \"Math 101\",\n  student_ids: [ObjectId(\"...\"), ObjectId(\"...\")]\n}\n```\n",{"name":5,"license":14,"metadata":29,"description":7,"compatibility":20},{"audience":30,"category":21},"developers","main","5f7a3e453c98261f93d19a6a7de44ad8f7b72d41",2,"https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk","2026-03-01 06:55:40",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill mongodb",{"tool":43,"command":44},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill mongodb",{"tool":46,"command":47},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill mongodb","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fmongodb\u002FSKILL.md",true,[],[52,63,73,82,91,99],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":24},"01M6CXT9TXDF79BWJTMQAPB49G","xamarin","Xamarin cross-platform development","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fxamarin\u002FSKILL.md",[],[54,59,60,61,20,62],"platform","cross-platform","mobile","development",{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":24},"01M6CXT8AD04MFYDA32VW3FKAG","wrangling","Data wrangling fundamentals","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwrangling\u002FSKILL.md",[],[65,70,20,71,72],"data wrangling","science","data",{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":24},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[75,80,20,81],"system","scripting",{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":24},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[89,21,20,90,72],"wide column","model",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":24},"01M6CXT28FMT2P4V9GZE67WA8E","wide-column-stores","Wide-column database stores","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column-stores\u002FSKILL.md",[],[98,21,20,18],"wide column stores",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":24},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[101,106,107,108,20,109,110],"websocket","real-time","time","best practices","implementation"]