Babysitter mongodb

MongoDB schema design, aggregation pipelines, indexing strategies, and performance.

install
source · Clone the upstream repo
git clone https://github.com/a5c-ai/babysitter
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a5c-ai/babysitter "$T" && mkdir -p ~/.claude/skills && cp -r "$T/library/specializations/web-development/skills/mongodb" ~/.claude/skills/a5c-ai-babysitter-mongodb && rm -rf "$T"
manifest: library/specializations/web-development/skills/mongodb/SKILL.md
source content

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