Mongodb
Skill a5c-ai/babysitter/library/specializations/web-development/skills/mongodb
MongoDB schema design, aggregation pipelines, indexing strategies, and performance.From its SKILL.md
npx -y skills add a5c-ai/babysitter --skill mongodbAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.2 KB, 189 tokens by cl100k_base, as published. Nobody here has run it
MongoDB Skill
Expert assistance for MongoDB database design and operations.
Capabilities
- Design document schemas
- Build aggregation pipelines
- Create optimal indexes
- Implement data modeling patterns
- Configure replication and sharding
Aggregation Pipeline
const results = await collection.aggregate([
{ $match: { status: 'active' } },
{ $group: { _id: '$category', total: { $sum: '$amount' } } },
{ $sort: { total: -1 } },
{ $limit: 10 },
]).toArray();
Indexing
// Compound index
await collection.createIndex({ userId: 1, createdAt: -1 });
// Text index
await collection.createIndex({ title: 'text', content: 'text' });
Target Processes
- mern-stack-development
- database-design
- backend-development
What ships with it: 1 file
339 B alongside SKILL.md
- README.md339 B